41fc6ac8ff6aeac68545f10c5d9fb466090ec868
[gnulib.git] / ChangeLog
1 2012-12-31  Eric Blake  <eblake@redhat.com>
2
3         git-version-gen: avoid test -z portability glitch
4         * build-aux/git-version-gen: Prefer portable test spelling, since
5         git-version-gen is run on more than just developer machines.
6
7 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
8
9         git-version-gen: add --fallback option to use if git is not present
10         * build-aux/git-version-gen: Add support for the new option --fallback,
11         which comes into play when there is no $tarball_version_file and
12         git is not working.
13         (scriptversion): Update.
14
15         maint.mk: handle missing git with more grace
16         * top/maint.mk (no-submodule-changes, public-submodule-commit):
17         Quietly proceed if git is not present.
18
19 2012-12-31  Eric Blake  <eblake@redhat.com>
20
21         dup2: work around cygwin bug
22         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
23         * lib/dup2.c (rpl_dup2): Work around it.
24         * doc/posix-functions/dup2.texi (dup2): Document it.
25
26 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
27
28         regex: remove unnecessary dependency on localcharset.h
29         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
30         hasn't been needed for years.
31         * modules/regex (Depends-on): Remove localcharset.
32
33         regex: revert single-byte change
34         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35         to this function.  This was alredy fixed in a different way, at
36         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
37         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
38         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
39
40         regex: simplify based on Gawk version
41         * lib/regex_internal.c (re_dfa_add_node): Simplify.
42         Reported by Aharon Robbins in
43         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
44
45 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46
47         regex: check that pattern char is single-byte
48         Reported by Aharon Robbins in
49         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
50         * lib/regexec.c (check_node_accept_bytes):
51         Return 0 if the pattern string has a multibyte character here.
52
53         regex: implement rational ranges
54         Reported by Aharon Robbins in
55         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
56         * lib/regcomp.c (build_range_exp) [!_LIBC]:
57         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
58         Implement rational ranges.
59
60         regex: avoid redefining __wctype
61         Reported by Aharon Robbins in
62         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
63         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
64         #undef before defining.
65
66         regex: port to hosts where malloc (0) == NULL
67         Reported by Aharon Robbins in
68         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
69         * lib/regex_internal.c (re_node_set_alloc):
70         Don't assume that malloc (0) yields nonnull.
71         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
72         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
73         * modules/regex (Files): Add m4/eealloc.m4.
74
75         regex: port to C89
76         Reported by Aharon Robbins in
77         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
78         * lib/regcomp.c (init_word_char): Declaration before statement.
79
80         regex: merge glibc changes
81         Also, copy the license wording from glibc.  This simplifies
82         merging changes.  gnulib-tool will change the wording to GPL as
83         appropriate, when importing it to other packages.  The only
84         glibc change made since the last merge, which needs merging, is:
85         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
86         * lib/regex_internal.h (gettext): Remove use of INTUSE.
87
88         * users.txt: Add Emacs.
89
90         doc: omit mention of version when not needed
91         * doc/gnulib-intro.texi (Portability and Application Code):
92         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
93         Don't mention particular dates or versions when not necessary, so
94         that the documentation won't go out of date so quickly.
95
96         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
97
98 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
99
100         bootstrap: pass --force to autoreconf.
101         * build-aux/bootstrap (AUTORECONFFLAGS): New.
102         Add "--force" so that Automake's ylwrap and other such tools
103         be updated at each bootstrap invocation.
104         Use it.
105
106 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
107
108         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
109         The earlier patch forgot to update one of the #if conditions, causing
110         a problem on Debian testing i386 reported by Mats Erik Andersson
111         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
112         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
113         (__argp_fmtstream_puts, argp_fmtstream_puts)
114         (__argp_fmtstream_write, argp_fmtstream_write)
115         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
116
117         * doc/gnulib-readme.texi: Minor fixups.
118         (Portability guidelines): Modernize URLs.  Remove some repetition.
119         (Indent with spaces not TABs): Reword to avoid too-long lines.
120         Remove some '@ifset standalone' stuff that isn't used.
121
122         * doc/gnulib-readme.texi (Portability guidelines):
123         ctype.h, not ctime.h.
124
125         Correct name of POSIX.1-2001.
126         * doc/posix-functions/fgetc.texi (fgetc):
127         * doc/posix-functions/fgets.texi (fgets):
128         * doc/posix-functions/fread.texi (fread):
129         * doc/posix-functions/fscanf.texi (fscanf):
130         * doc/posix-functions/getc.texi (getc):
131         * doc/posix-functions/getchar.texi (getchar):
132         * doc/posix-functions/scanf.texi (scanf):
133         POSIX.1-2001, not POSIX-2001.
134
135         doc: move README into manual
136         * README: Move contents to new file doc/gnulib-readme.texi.
137         Replace with a one-line summary.
138         * doc/gnulib.texi (Brief Overview): New section,
139         with old intro preface.  Include gnulib-readme.texi for contents.
140         (Philosophy): Rename from "Introduction", since this
141         section no longer introduces the rest.  Write a new preface.
142         * doc/gnulib-readme.texi: New file, with the old contents of
143         README texinfo-ized.  This way, the README info appears
144         in the online and printed manual.
145
146 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
147
148         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
149         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
150         c_vasprintf() prototype.
151
152 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
153
154         c-vasprintf: Fix "empty declaration" warning reported by GCC.
155         * lib/c-vasprintf.h: Remove stray semicolon.
156
157 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
158
159         gettext: avoid obsolete macro AM_PROG_MKDIR_P
160         It is obsolete and is planned to be removed from Automake 1.14; see
161         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
162         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
163         (installdirs-data, installdirs-data-yes):
164         Use $(MKDIR_P), not $(mkdir_p).
165         * m4/intl.m4 (AM_INTL_SUBDIR):
166         * m4/po.m4 (AM_PO_SUBDIRS):
167         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
168
169 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
170
171         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
172         On this platform, we are not optimizing but we are using
173         the substitute for extern inlines, so compile as if
174         C99-style extern inline, or a substitute, is available.
175         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
176         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
177         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
178         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
179         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
180         Declare as ARGP_FS_EI, not as extern.
181         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
182         (__option_is_short, _option_is_end, __option_is_end)
183         [!_LIBC && __USE_EXTERN_INLINES]:
184         Declare as ARGP_EI, not as extern.
185
186 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
187
188         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
189         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
190         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
191         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
192         ...), as the latter is fatal with older Autoconfs.
193         Problem reported and fix suggested by Eric Blake in thread starting at
194         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
195
196 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
197
198         AC_PROG_MKDIR_P: don't workaround if not buggy
199         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
200         Define only for Autoconf versions before 2.62.
201         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
202         undocumented m4_PACKAGE_VERSION, for consistency with the
203         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
204         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
205         was introduced in 2.62.
206
207 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
208
209         New 'c-*printf' modules for formatted output in C locale.
210
211         New module 'c-vasnprintf'.
212         * modules/c-vasnprintf: New file.
213         * lib/c-vasnprintf.c: New file.
214         * lib/c-vasnprintf.h: New file.
215
216         New module 'c-snprintf'.
217         * modules/c-snprintf: New file.
218         * modules/c-snprintf-tests: New file.
219         * lib/c-snprintf.c: New file.
220         * lib/c-snprintf.h: New file.
221         * tests/test-c-snprintf.c: New file.
222         * tests/test-c-snprintf.sh: New file.
223
224         New module 'c-vsnprintf'.
225         * modules/c-vsnprintf: New file.
226         * modules/c-vsnprintf-tests: New file.
227         * lib/c-vsnprintf.c: New file.
228         * lib/c-vsnprintf.h: New file.
229         * tests/test-c-vsnprintf.c: New file.
230         * tests/test-c-vsnprintf.sh: New file.
231
232         New module 'c-vasprintf'.
233         * modules/c-vasprintf: New file.
234         * modules/c-vasprintf-tests: New file.
235         * lib/c-asprintf.c: New file.
236         * lib/c-vasprintf.c: New file.
237         * lib/c-vasprintf.h: New file.
238         * tests/test-c-vasprintf.c  +: New file.
239         * tests/test-c-vasprintf.sh: New file.
240
241         New module 'c-xvasprintf'.
242         * modules/c-xvasprintf: New file.
243         * modules/c-xvasprintf-tests: New file.
244         * lib/c-xasprintf.c: New file.
245         * lib/c-xvasprintf.c: New file.
246         * lib/c-xvasprintf.h: New file.
247         * tests/test-c-xvasprintf.c: New file.
248         * tests/test-c-xvasprintf.sh: New file.
249
250 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
251
252         argp: better 'inline'
253         Use extern-inline module to declare extern inline functions.
254         This avoids some bogus warning diagnostics.  Problem discovered
255         when modifying GNU tar to use the manywarnings module.
256         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
257         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
258         Define based on extern-inline.
259         * modules/argp (Depends-on): Add extern-inline.
260
261 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
262
263         filemode, sys_stat: Handle MPX files a la AIX.
264         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
265         * lib/sys_stat.in.h (S_ISMPX): New macro.
266         * tests/test-sys_stat.c: Add tests for MPX files.
267
268 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
269
270         x-to-1: honor $PERL
271         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
272         a chance to use his preferred version of Perl.  This is typically
273         required by Darwin users whose default /usr/bin/perl does not have all
274         the libraries required by help2man, and who need to use their MacPorts
275         installation of Perl instead.
276
277 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
278
279         gnu-web-doc-update: add all the new files, even in new directories
280         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
281         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
282         Use it.
283         (main): Don't use cvsutils to get the list of unknown files,
284         just add all the existing files and directories.
285
286 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
287
288         gnu-web-doc-update: improve --help
289         * build-aux/gnu-web-doc-update: Move comments into --help.
290
291 2012-12-07  Eric Wong  <normalperson@yhbt.net>
292
293         mountlist: recognize more "dummy" file systems
294         * lib/mountlist.c (ME_DUMMY_0):
295         Add these dummy FS names to the list:
296         - "debugfs" virtual filesystem for kernel debugging
297         - "devpts" PTY slave filesystem
298         - "devtmpfs" device filesystem on top of tmpfs/ramfs
299         - "fusectl" control filesystem for FUSE
300         - "mqueue" enumerates POSIX message queues
301         - "rpc_pipefs" kernel <-> userspace bridge for NFS
302         - "sysfs" is for exporting kernel objects
303         - "devfs" device filesystem for Linux 2.4 and FreeBSD
304
305 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
306
307         extern-inline: avoid incompatibility with Darwin Libc
308         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
309         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
310         Problem reported by Akim Demaille in
311         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
312
313 2012-12-11  Simon Josefsson  <simon@josefsson.org>
314
315         gnupload: Work with GnuPG using gpg-agent (for smartcards).
316         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
317         let it handle password prompting.
318
319 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
320
321         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
322         * lib/canonicalize.c (canonicalize_filename_mode):
323         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
324         fetching the current directory.  Don't overrun the beginning of
325         rpath if there's no slashes after the MS-Windows drive letter.
326
327 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
328
329         maint.mk: avoid extra forks
330         * top/maint.mk (_cfg_mk): The GNU make manual documents that
331         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
332         So use that instead of "$(shell test -f FILE && echo FILE)".
333
334 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
335
336         vasnprintf: fix ASCII_ONLY typo
337         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
338         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
339         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
340         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
341         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
342
343 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
344
345         list, oset, xlist, xoset: fix extern inline issue with C99
346         This was introduced by my recent changes for 'inline'.
347         Problem reported for gettext by Daiki Ueno in
348         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
349         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
350         (gl_list_nx_create, gl_list_size, gl_list_node_value)
351         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
352         (gl_list_previous_node, gl_list_get_at)
353         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
354         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
355         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
356         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
357         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
358         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
359         (gl_list_iterator_free, gl_sortedlist_search)
360         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
361         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
362         (gl_sortedlist_remove):
363         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
364         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
365         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
366         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
367         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
368         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
369         (gl_list_add_at, gl_sortedlist_add):
370         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
371         Wrap these extern decls inside "#if 0", because they are implemented
372         as inline functions, and extern inline is not what's wanted here.
373         It would simplify these .h files to remove the extern decls entirely,
374         although a downside would be less-clear separation between
375         specification and implementation.
376
377 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
378
379         sys_stat: no 'static inline'
380         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
381         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
382
383         extern-inline: no 'static inline'
384         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
385         Do not require AC_C_INLINE.
386         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
387         'static inline', for older compilers.
388
389         snippet/warn-on-use: no 'static inline'
390         * build-aux/snippet/warn-on-use.h:
391         Remove unnecessary 'inline' in comment.
392
393         rbtree-list, rbtreehash-list: no 'static inline'
394         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
395         * lib/gl_anytree_list2.h (node_at):
396         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
397         (gl_oset_first, add_nodes_to_buckets):
398         Now static, not static inline.
399
400         regex: no 'static inline'
401         * lib/regex_internal.c (calc_state_hash):
402         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
403         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
404         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
405         Now static, not static inline.
406         (inline) [__GNUC__ < 3 && _LIBC]:
407         Remove macro; no longer needed.
408
409         xvasprintf: no 'static inline'
410         * lib/xvasprintf.c (xstrcat):
411         Now static, not static inline.
412         * m4/xvasprintf.m4 (gl_XVASPRINTF):
413         Do not require AC_C_INLINE.
414
415         parse-datetime, parse-duration: no 'static inline'
416         * lib/parse-datetime.y (to_uchar):
417         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
418         (scale_n_add):
419         Now static, not static inline.
420         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
421         * modules/parse-duration (configure.ac):
422         Do not require AC_C_INLINE.
423
424         getaddrinfo: no 'static inline'
425         * lib/getaddrinfo.c (validate_family):
426         Now static, not static inline.
427         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
428         Do not require AC_C_INLINE.
429
430         ftruncate, fts, lstat, openat, raise: no 'static inline'
431         * lib/ftruncate.c (chsize_nothrow):
432         * lib/fts.c (opendirat, diropen):
433         * lib/lstat.c (orig_lstat):
434         * lib/openat.c (orig_openat):
435         * lib/raise.c (raise_nothrow):
436         Now static, not static inline.
437         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
438         * m4/fts.m4 (gl_FUNC_FTS_CORE):
439         * m4/lstat.m4 (gl_PREREQ_LSTAT):
440         * m4/openat.m4 (gl_PREREQ_OPENAT):
441         * m4/raise.m4 (gl_PREREQ_RAISE):
442         Do not require AC_C_INLINE.
443
444         fflush, stat: no 'static inline'
445         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
446         (clear_ungetc_buffer, disable_seek_optimization)
447         (restore_seek_optimization, update_fpos_cache):
448         * lib/stat.c (orig_stat):
449         Now static, not static inline.
450         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
451         (update_fpos_cache):
452         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
453         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
454         * m4/stat.m4 (gl_PREREQ_STAT):
455         Do not require AC_C_INLINE.
456
457         error, filevercmp: no 'static inline'
458         * lib/error.c (is_open, flush_stdout):
459         * lib/filevercmp.c (order):
460         Now static, not static inline.
461         * m4/error.m4 (gl_PREREQ_ERROR):
462         * modules/filevercmp (configure.ac):
463         Do not require AC_C_INLINE.
464
465         dup, execute, fatal-signal, etc.: no 'static inline'
466         * lib/dup.c (dup_nothrow):
467         * lib/execute.c (nonintr_close, nonintr_open):
468         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
469         * lib/fopen.c (orig_fopen):
470         * lib/freadseek.c (freadptrinc):
471         * lib/freopen.c (orig_freopen):
472         * lib/fstat.c (orig_fstat, fstat_nothrow):
473         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
474         (get_rusage_as_via_iterator):
475         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
476         * lib/getdtablesize.c (_setmaxstdio_nothrow):
477         * lib/isatty.c (_isatty_nothrow):
478         * lib/open.c (orig_open):
479         * lib/read.c (read_nothrow):
480         * lib/sigprocmask.c (signal_nothrow):
481         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
482         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
483         * lib/wait-process.c (unregister_slave_subprocess):
484         * lib/write.c (write_nothrow):
485         Now static, not static inline.
486         * lib/spawn-pipe.c (nonintr_open): Define only if
487         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
488         * m4/dup.m4 (gl_PREREQ_DUP):
489         * m4/execute.m4 (gl_EXECUTE):
490         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
491         * m4/fopen.m4 (gl_PREREQ_FOPEN):
492         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
493         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
494         * m4/fstat.m4 (gl_PREREQ_FSTAT):
495         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
496         * m4/isatty.m4 (gl_PREREQ_ISATTY):
497         * m4/open.m4 (gl_PREREQ_OPEN):
498         * m4/read.m4 (gl_PREREQ_READ):
499         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
500         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
502         * m4/wait-process.m4 (gl_WAIT_PROCESS):
503         * m4/write.m4 (gl_PREREQ_WRITE):
504         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
505         Do not require AC_C_INLINE.
506
507         c-strtod, memcoll, readutmp: no 'static inline'
508         * lib/c-strtod.c (c_locale):
509         * lib/memcoll.c (strcoll_loop):
510         * lib/readutmp.c (desirable_utmp_entry):
511         Now static, not static inline.
512         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
513         * m4/memcoll.m4 (gl_MEMCOLL):
514         * m4/readutmp.m4 (gl_READUTMP):
515         Do not require AC_C_INLINE.
516
517         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
518         * lib/arctwo.c (to_uchar):
519         * lib/md4.c (set_uint32):
520         * lib/md5.c (set_uint32):
521         * lib/sha1.c (set_uint32):
522         * lib/sha256.c (set_uint32):
523         * lib/sha512.c (set_uint64):
524         Now static, not static inline.  This is a bit simpler, and doesn't
525         affect performance with GCC and default optimization.
526         * m4/arctwo.m4 (gl_ARCTWO):
527         * m4/md4.m4 (gl_MD4):
528         * m4/md5.m4 (gl_MD5):
529         * m4/sha1.m4 (gl_SHA1):
530         * m4/sha256.m4 (gl_SHA256):
531         * m4/sha512.m4 (gl_SHA512):
532         Do not require AC_C_INLINE.
533
534         cond, lock, thread: better 'inline'
535         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
536         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
537         New macros.  Use them instead of static inline, for header functions.
538         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
539         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
540         * lib/glthread/lock.c (gl_waitqueue_init)
541         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
542         * lib/glthread/thread.c (get_current_thread_handle):
543         Change 'static inline' to 'inline'.
544         * lib/glthread/cond.h, lib/glthread/thread.h:
545         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
546         * m4/cond.m4 (gl_COND):
547         * m4/lock.m4 (gl_PREREQ_LOCK):
548         * m4/thread.m4 (gl_THREAD):
549         Do not require AC_C_INLINE.
550         * modules/cond, modules/thread (Depends-on): Add extern-inline.
551
552         chdir-long, cycle-check, savewd: better 'inline'
553         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
554         (find_non_slash):
555         * lib/cycle-check.c (is_zero_or_power_of_two):
556         * lib/savewd.c (savewd_delegating):
557         Change 'static inline' to 'inline'.
558         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
559         Replace all remaining uses of 'static inline' with it.
560         * lib/savewd.h:
561         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
562         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
563         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
564         * m4/savewd.m4 (gl_SAVEWD):
565         Do not require AC_C_INLINE.
566         * modules/savewd (Depends-on): Add extern-inline.
567
568         base32, base64: no need for 'inline'
569         * lib/base32.c (to_uchar, get_8, decode_8):
570         * lib/base64.c (to_uchar, get_4, decode_4):
571         Change 'static inline' to 'inline'.
572         * m4/base32.m4 (gl_PREREQ_BASE32):
573         * m4/base64.m4 (gl_PREREQ_BASE64):
574         Do not require AC_C_INLINE.
575
576         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
577         * lib/gl_array_oset.c (gl_array_nx_add_at):
578         (gl_array_remove_at):
579         * lib/gl_linkedhash_list.c (hash_resize_after_add)
580         (add_to_bucket, remove_from_bucket):
581         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
582         Change 'static inline' to 'static', as it's simpler to omit
583         'inline' unless there's a significant performance advantage.
584
585         list, oset, xlist, xoset, xsublist: simplify via extern inline
586         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
587         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
588         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
589         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
590         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
591         New macro.  Replace all uses of 'static inline' with it.
592         [HAVE_INLINE]: Implement functions as *_INLINE functions,
593         instead of as macros FOO that are defined to static inline
594         functions FOO_inline.
595         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
596         * lib/gl_xsublist.c:
597         Reimplement from scratch, by defining the corresponding *_INLINE
598         macro and including the corresponding .h file.  This is simpler.
599         * modules/list, modules/oset, modules/xlist, modules/xoset:
600         (Files): Remove m4/gl_list.m4.
601         (configure.ac): Remove gl_LIST.
602         * m4/gl_list.m4: Remove.
603         * modules/list, modules/oset, modules/xlist, modules/xoset:
604         * modules/xsublist:
605         (Depends-on): Depend on extern-inline, not inline.
606
607         xalloc: better 'inline'
608         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
609         New macro.  Replace all uses of 'static inline' with it.
610         (static_inline): Remove.
611         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
612         Let 'extern inline' do the work automatically, instead of doing
613         it by hand.
614         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
615         Remove.  All uses removed.
616         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
617
618         gethrxtime: better 'inline'
619         * lib/xtime.c: New file.
620         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
621         * lib/xtime.h (XTIME_INCLUDE):
622         New macros.  Replace all uses of 'static inline' with them.
623         * lib/gethrxtime.c (gethrxtime): Define only if
624         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
625         this source file is now always compiled, because of the extern inline.
626         * lib/gethrxtime.h, lib/xtime.h:
627         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
628         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
629         if gethrtime works, as they're not needed in that case.
630         (gl_XTIME): Do not require AC_C_INLINE.
631         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
632         compiled now.  Move the check into gl_GETHRXTIME.
633         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
634         (Depends-on): Add extern-inline.
635         (configure.ac): gethrxtime is always compiled now.
636         (lib_SOURCES): Add gethrxtime.c.
637
638         wctype-h: better 'inline'
639         * lib/wctype-h.c: New file.
640         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
641         New macro.  Replace all uses of 'static inline' with it.
642         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
643         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
644         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
645         (Depends-on): Add extern-inline.
646
647         unistd: better 'inline'
648         * lib/unistd.c: New file.
649         * lib/unistd.in.h (_GL_UNISTD_INLINE):
650         New macro.  Replace all uses of 'static inline' with it.
651         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
652         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
653         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
654         (Depends-on): Add extern-inline.
655
656         sys_socket: better 'inline'
657         * lib/sys_socket.c: New file.
658         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
659         New macro.  Replace all uses of 'static inline' with it.
660         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
661         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
662         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
663         (Depends-on): Add extern-inline.
664
665         stdio: better 'inline'
666         * lib/stdio.c: New file.
667         * lib/stdio.in.h (_GL_STDIO_INLINE):
668         New macro.  Replace all uses of 'static inline' with it.
669         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
670         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
671         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
672         (Depends-on): Add extern-inline.
673
674         sigaction: better 'inline'
675         * lib/sig-handler.c: New file.
676         * lib/sig-handler.h (SIG_HANDLER_INLINE):
677         New macro.  Replace all uses of 'static inline' with it.
678         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
679         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
680         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
681         (Depends-on): Add extern-inline.
682
683         selinux-h: better 'inline'
684         * lib/se-context.c, lib/se-selinux.c: New files.
685         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
686         * lib/se-context.in.h (SE_CONTEXT_INLINE):
687         New macro.  Replace all uses of 'static inline' with it.
688         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
689         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
690         New macro.  Replace all uses of 'static inline' with it.
691         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
692         * modules/selinux-h (Files, lib_SOURCES):
693         Add lib/se-context.c, lib/se-selinux.c.
694         (Depends-on): Add extern-inline.
695         (configure.ac): Do not require AC_C_INLINE.
696
697         pthread: better 'inline'
698         * lib/pthread.c: New file.
699         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
700         New macro.  Replace all uses of 'static inline' with it.
701         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
702         * m4/pthread.m4 (gl_PTHREAD_CHECK):
703         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
704         * modules/pthread (Files): Add lib/pthread.c.
705         (Depends-on): Add extern-inline.
706
707         math: better 'inline'
708         * lib/math.c: New file.
709         * lib/math.in.h (_GL_MATH_INLINE):
710         New macro.  Replace all uses of 'static inline' with it.
711         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
712         * m4/math_h.m4 (gl_MATH_H):
713         Do not require AC_C_INLINE.
714         * modules/math (Files, lib_SOURCES):
715         Add lib/math.c.
716         (Depends-on): Add extern-inline.
717
718         count-one-bits: better 'inline'
719         * lib/count-one-bits.c: New file.
720         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
721         New macro.  Replace all uses of 'static inline' with it.
722         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
723         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
724         Do not require AC_C_INLINE.
725         * modules/count-one-bits (Files, lib_SOURCES):
726         Add lib/count-one-bits.c.
727         (Depends-on): Add extern-inline.
728
729         count-leading-zeros: better 'inline'
730         * lib/count-leading-zeros.c: New file.
731         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
732         New macro.  Replace all uses of 'static inline' with it.
733         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
734         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
735         Do not require AC_C_INLINE.
736         * modules/count-leading-zeros (Files, lib_SOURCES):
737         Add lib/count-leading-zeros.c.
738         (Depends-on): Add extern-inline.
739
740         bitrotate: better 'inline'
741         * lib/bitrotate.c: New file.
742         * lib/bitrotate.h (BITROTATE_INLINE):
743         New macros.
744         Replace all uses of 'static inline' with them.
745         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
746         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
747         (Depends-on): Add extern-inline.
748         (configure.ac): Do not require AC_C_INLINE.
749
750 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
751
752         maint.mk: avoid gratuitous failure
753         Reported by Stefano Lattarini in
754         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
755         * top/maint.mk (public-submodule-commit): Quote more safely.
756
757 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
758
759         canonicalize, canonicalize-lgpl: support MS-Windows file names
760         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
761         for test cases, which it'd be nice to add at some point.
762         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
763         * lib/canonicalize.c (canonicalize_filename_mode):
764         * lib/canonicalize-lgpl.c (__realpath):
765         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
766         slash is at the beginning of the file name.  Use ISSLASH, instead
767         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
768         the first character with '/'.  Test for
769         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
770         with a drive letter.
771         * lib/canonicalize.c (SLASHES): New macro.
772         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
773
774 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
775
776         fts: introduce FTS_VERBATIM
777         * lib/fts_.h (FTS_VERBATIM): New bit flag.
778         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
779         * lib/fts.c (fts_open): Honor it.
780
781 2012-11-09  Pádraig Brady  <P@draigBrady.com>
782
783         getlogin-tests: allow errno == ENXIO
784         * tests/test-getlogin.c (main): Skip tests if getlogin fails
785         with errno == ENXIO (No controlling tty).
786         getlogin_r-tests: Likewise. Also allow errno == ENOENT
787         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
788         with errno == ENOENT.  This was reported to happen in various
789         situations on GNU/Linux.
790
791 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
792
793         getlogin-tests: allow errno == ENOENT
794         * tests/test-getlogin.c (main): Skip tests if getlogin fails
795         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
796         when running a test in an Emacs shell buffer.
797
798 2012-11-08  Jim Meyering  <jim@meyering.net>
799
800         tests/nap.h: avoid warning about unused variable
801         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
802
803         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
804         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
805         white space before each of the special-cased file names, to avoid
806         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
807         in http://bugs.gnu.org/12830.
808
809 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
810
811         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
812         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
813         fails with errno == EBADF when fd is opened with O_PATH.
814         Reported by Jim Meyering in
815         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
816         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
817         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
818
819 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
820
821         test-utimens: speed up by taking shorter naps
822         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
823         New functions.
824         (nap): Use them, to do a better job of guessing the delay.
825         On Fedora 17 with ext4 atop md atop hard disks, this made
826         test-utimens run 10x faster, because the test napped for
827         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
828         <http://bugs.gnu.org/12820#11>.
829
830 2012-11-07  Jim Meyering  <jim@meyering.net>
831
832         mountlist.c: fix a compilation failure
833         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
834         I introduced while transforming commit v0.0-7683-g613bcb6
835
836 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
837
838         errno: port to LynxOS 178 2.2.2
839         Problem reported by Joel Brobecker in
840         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
841         * doc/posix-headers/errno.texi (errno.h): Document this.
842         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
843         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
844         Supply a string for EILSEQ.
845         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
846
847 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
848
849         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
850         Linux kernel 2.6.39 introduced O_PATH (see
851         <http://lwn.net/Articles/433854/>) and this is a better fallback
852         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
853         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
854         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
855         * lib/fcntl.in.h (O_ACCMODE):
856         * tests/test-fcntl-h.c (main):
857         Do not reject O_ACCMODE merely because it has more than the
858         minimal number of bits, as POSIX allows extensions here.
859
860 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
861
862         mountlist: do not classify a bind-mounted dir entry as "dummy"
863         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
864         the "none"-testing clause.
865         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
866         exception for bind-mounted directories.
867
868 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
869
870         quote: provide a means to escape strings with nul characters
871         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
872         (quote, quote_n): Rename formal arguments for consistency with
873         quotearg.
874
875 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
876
877         test-raise: don't assume 199 is an invalid signal
878         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
879
880         sh-quote-tests: port to Solaris 9
881         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
882         Problem reported by Dagobert Michelsen in
883         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
884
885 2012-10-28  Jim Meyering  <jim@meyering.net>
886
887         maint.mk: rename a new configurable variable
888         * top/maint.mk (_gl_translatable_string_re): Rename from
889         translation-markers: _gl_ prefix to insulate from user Makefile code,
890         and the _re suffix to inform that it's a regular expression.
891
892 2012-10-26  Eric Blake  <eblake@redhat.com>
893
894         maint.mk: let packages tweak sc_po_check pattern
895         * top/maint.mk (sc_po_check): Add translation-markers, to allow
896         finding files with other translation markers.
897
898 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
899
900         euidaccess: speed up 'configure' on GNU hosts
901         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
902         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
903         it's needed only in this case.  Use AC_CHECK_DECLS, not
904         AC_CHECK_DECLS_ONCE.
905         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
906         or AC_REQUIRE for AC_FUNC_GETGROUPS.
907
908         * lib/regexec.c (re_search_internal): Fix grammar in comment.
909
910 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
911
912         fchmodat, fchownat, fstatat: port to non-inlining compilers
913         Problem reported for FreeBSD 9 by Jim Meyering in
914         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
915         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
916         New files, which define FCHMODAT_INLINE etc.
917         * lib/fchmodat.c (FCHMODAT_INLINE):
918         * lib/fchownat.c (FCHOWNAT_INLINE):
919         * lib/fstatat.c (FSTATAT_INLINE):
920         Remove, as chmodat.c etc. now do this.
921         * modules/fchmodat (Files): Add lib/chmodat.c.
922         * modules/fchownat (Files): Add lib/chownat.c.
923         * modules/fstatat (Files): Add lib/statat.c.
924
925 2012-10-15  Jim Meyering  <jim@meyering.net>
926
927         fchmodat.c, fchownat.c: compile-impeding typos
928         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
929         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
930         Introduced in commit v0.0-7636-gd202279.
931
932 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
933
934         fcntl-h: support GNU flags like O_IGNORE_CTTY
935         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
936         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
937         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
938         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
939         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
940         Define to 0 if not already defined.
941         * tests/test-fcntl-h.c: Test these new flags.
942
943 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
944
945         faccessat, etc.: support AT_FDCWD-only use
946         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
947         this function only if its first argument is AT_FDCWD.
948         Emacs wants faccessat for AT_EACCESS but not for any first-arg
949         values other than AT_FDCWD, so it doesn't want all the openat
950         machinery with fchdir etc.
951         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
952         * modules/fstatat, modules/mkdirat, modules/openat (Files):
953         * modules/unlinkat (Files):
954         Remove lib/openat-priv.h, as at-internal supplies this file.
955         Removing this file here allows us to support programs like Emacs
956         that avoid at-internal.
957
958         faccessat: speed up 'configure' on mainstream hosts
959         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
960         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
961         since it's only on unusual platforms that we need to check for
962         'access', and it's better not to slow 'configure' down on all
963         platforms.
964
965         faccessat: port to Solaris 10
966         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
967         Needed on Solaris 10, which doesn't have AT_EACCESS,
968         so we need the Gnulib fcntl.h, which defines it.
969
970 2012-10-14  Pádraig Brady  <P@draigBrady.com>
971         canonicalize: fix C89 compilation
972         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
973         declarations so C89 is supported.  Also remove the comment
974         referencing memorty allocation as the suggested feature could
975         not be implemented as suggested.
976         Reported by Michael Goffioul.
977
978 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
979
980         group-member: omit unnecessary dependencies
981         This is for Emacs, which has its own allocator and where we
982         don't want to use xalloc.
983         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
984         since we no longer use xmalloc.  Do not include stdbool.h, since
985         the changes below happen to remove the only use of bool.
986         (GROUPBUF_SIZE): New constant.
987         (struct group_info): Remove n_groups member.  Add groupbuf member.
988         This lets us get the groups without using malloc, usually.
989         (free_group_info, get_group_info): Adjust to this.
990         (get_group_info): Return the number of groups found, or -1 on error.
991         Use plain malloc not xmalloc, and treat its failure as if there
992         are no groups, as the user already loses in case of error.
993         (group_member): Simplify, based on changes to get_group_info.
994         * modules/group-member (Depends-on): Remove dependencies on
995         xalloc and stdbool.  Add dependency on xalloc-oversized.
996
997 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
998
999         gethrxtime: port to C++
1000         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1001
1002 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1003
1004         ptsname: fix macro-name typo
1005         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1006
1007 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1008
1009         inttostr: Relax license.
1010         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1011
1012 2012-10-03  Eric Blake  <eblake@redhat.com>
1013
1014         ptsname_r: support ptys returned by FreeBSD posix_openpt
1015         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1016         lives in /dev/pts/.
1017
1018 2012-10-02  Eric Blake  <eblake@redhat.com>
1019
1020         pselect: reject invalid file descriptors
1021         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1022         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1023         * modules/pselect (Depends-on): Add dup2.
1024         * doc/posix-functions/pselect.texi (pselect): Document this.
1025
1026         select: reject invalid file descriptors
1027         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1028         * lib/select.c (rpl_select) [!win32]: Work around it.
1029         * modules/select (Depends-on): Add dup2.
1030         * doc/posix-functions/select.texi (select): Document this.
1031
1032         select: enhance test
1033         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1034         New functions.
1035         (test_function): Enhance test.
1036         (do_select_bad_fd): Avoid any stale errno values.
1037
1038         ptsname: reject invalid file descriptors
1039         http://www.austingroupbugs.net/view.php?id=503
1040         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1042         * modules/stdlib (Makefile.am): Replace witness.
1043         * lib/stdlib.in.h (ptsname): Allow for replacement.
1044         * modules/ptsname (configure.ac): Trigger replacement.
1045         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1046
1047 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1048
1049         hash-pjw-bare: new module
1050         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1051         * lib/hash-pjw-bare.h: Likewise.
1052         * modules/hash-pjw-bare: New file.
1053         * MODULES.html.sh (Misc): Add it.
1054
1055 2012-10-02  Eric Blake  <eblake@redhat.com>
1056
1057         manywarnings: cater to more gcc infelicities
1058         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1059         -Wuninitialized without -O.
1060
1061 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1062
1063         select, poll tests: Make setsockopt invocation effective.
1064         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1065         the bind() call.
1066         * tests/test-select.h (open_server_socket): Likewise.
1067
1068 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1069
1070         sockets, sys_stat: restore AC_C_INLINE
1071         This undoes the 2012-09-22 patch.
1072         * m4/sockets.m4 (gl_SOCKETS):
1073         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1074         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1075         and does not support plain 'inline'.  Reported by Bruno Haible in
1076         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1077
1078 2012-09-30  Bruno Haible  <bruno@clisp.org>
1079
1080         localeconv tests: Avoid test failure on OpenIndiana.
1081         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1082         skip the 'grouping' and 'mon_grouping' tests.
1083         Reported by Jim Meyering.
1084
1085 2012-09-30  Bruno Haible  <bruno@clisp.org>
1086
1087         havelib: Follow libtool developments.
1088         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1089         Suggested by Simon Josefsson.
1090
1091 2012-09-29  Jim Meyering  <meyering@redhat.com>
1092
1093         fstatat.c: fix a compile-impeding typo
1094         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1095         Introduced in commit v0.0-7636-gd202279.
1096         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1097
1098 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1099
1100         extern-inline: provide a -Wundef safe config.h
1101         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1102         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1103         to produce a -Wundef warning free config.h.
1104
1105 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1106
1107         hash-pjw: relax license to LGPLv2+
1108         * modules/hash-pjw (License): Relax, with consent of author.
1109
1110 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1111
1112         maint.mk: fix strict vs. lazy variable issues with RELEASE
1113         * top/maint.mk (_equal): New function.
1114         (member_check): Strip the result to avoid spurious spaces.
1115         (url_dir_list): Do not use ifeq, which is strict, as it will
1116         require RELEASE_TYPE to be defined.
1117         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1118         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1119         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1120         (announcement_Cc_beta,announcement_mail_headers_beta)
1121         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1122         (release): Do not depend on $(release-type), as it forces its
1123         evaluation.  Bounce to it.
1124
1125 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1126
1127         maint.mk: formatting changes
1128         * top/maint.mk: Indent bodies of if's.
1129
1130 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1131
1132         maint.mk: factor the validation of RELEASE_TYPE
1133         With help from Jim Meyering.
1134         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1135         * top/maint.mk (_empty, _sp): Move their definition earlier.
1136         (member-check, release-type): New.
1137         Use the latter instead of $(RELEASE_TYPE).
1138         Remove now useless local checks.
1139
1140 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1141
1142         maint.mk: provide "make upload" to ease uploading
1143         See
1144         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1145         Do not depend simply on the current $(VERSION), as there may have been
1146         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1147         as "make release-commit" already does.
1148
1149         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1150         "make TYPE".
1151
1152         * top/maint.mk (upload_command, upload, release): New.
1153         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1154         (VERSION): first word of $(RELEASE) is always right.
1155         (emit_upload_commands): Adjust.
1156         * top/README-release: Update.
1157
1158 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1159
1160         maint.mk: silent rules
1161         With help from Stefano Lattarini.
1162         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1163         (announcement): Use $(AM_V_at).
1164
1165 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1166
1167         localename: port gl_locale_name_thread_unsafe to FreeBSD
1168         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1169         and use the simpler FreeBSD implementation on Mac OS X as well.
1170         Original idea suggested by Ed Maste in
1171         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1172
1173 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1174
1175         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1176         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1177         * lib/mbuiter.c, lib/xsize.c: New files.
1178         * lib/binary-io.h (BINARY_IO_INLINE):
1179         * lib/eealloc.h (EEALLOC_INLINE):
1180         * lib/mbfile.h (MBFILE_INLINE):
1181         * lib/mbiter.h (MBITER_INLINE):
1182         * lib/mbuiter.h (MBUITER_INLINE):
1183         * lib/xsize.h (XSIZE_INLINE):
1184         New macros.
1185         Replace all uses of 'static inline' with them.
1186         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1187         * m4/eealloc.m4 (gl_EEALLOC):
1188         * m4/mbfile.m4 (gl_MBFILE):
1189         * m4/mbiter.m4 (gl_MBITER):
1190         * m4/xsize.m4 (gl_XSIZE):
1191         Do not require AC_C_INLINE.
1192         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1193         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1194         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1195         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1196         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1197         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1198         * modules/binary-io, modules/eealloc, modules/mbfile:
1199         * modules/mbiter, modules/mbuiter:
1200         (Depends-on): Add extern-inline.
1201
1202         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1203         * lib/pipe-filter-aux.c: New file.
1204         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1205         Replace all uses of 'static inline' with it.
1206         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1207         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1208         (filter_retcode): No real need for inline here.
1209         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1210         (Files): Add lib/pipe-filter-aux.c.
1211         (Depends-on): Add extern-inline.
1212         (configure.ac): Do not require AC_C_INLINE.
1213         (lib_SOURCES): Add pipe-filter-aux.c.
1214
1215         fdutimensat: omit unnecessary AC_C_INLINE
1216         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1217
1218         fchmodat, fchownat, fstatat: use extern-inline
1219         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1220         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1221         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1222         New macros.
1223         * lib/openat.h:
1224         Replace all uses of 'static inline' with them.
1225         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1226         * modules/fchmodat, modules/fchownat, modules/fstatat:
1227         * modules/openat-h:
1228         (Depends-on):
1229         Add extern-inline.
1230         (configure.ac): Remove AC_C_INLINE.
1231
1232         acl, mbchar, priv-set: use extern-inline
1233         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1234         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1235         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1236         New macros.
1237         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1238         Replace all uses of 'static inline' with it.
1239         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1240         * m4/acl.m4 (gl_FUNC_ACL):
1241         * m4/mbchar.m4 (gl_MBCHAR):
1242         * m4/priv-set.m4 (gl_PRIV_SET):
1243         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1244         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1245         Add extern-inline.
1246
1247         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1248         * m4/sockets.m4 (gl_SOCKETS):
1249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1250         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1251         environments where it's already guaranteed to work, so we needn't
1252         check for it at 'configure'-time.
1253
1254         tls-tests: omit unnecessary 'inline'
1255         * tests/test-tls.c (perhaps_yield): No longer inline.
1256         Simplicity and portability trump efficiency in test cases.
1257
1258         utimens-tests: avoid unnecessary 'inline'
1259         * modules/fdutimensat-tests (configure.ac):
1260         * modules/futimens-tests (configure.ac):
1261         * modules/utimens-tests (configure.ac):
1262         * modules/utimensat-tests (configure.ac):
1263         Remove AC_C_INLINE.
1264         * tests/test-utimens-common.h (ctime_compare):
1265         No longer inline.  Simplicity and portability trump efficiency here.
1266
1267         misc: don't limit commentary to inline functions
1268         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1269         * lib/xalloc-oversized.h, lib/xsize.h:
1270         Contrast macros to functions in general, not just to inline functions,
1271         when the commentary does not apply only to inline functions.
1272
1273 2012-09-20  Jim Meyering  <meyering@redhat.com>
1274
1275         non-recursive-gnulib-prefix-hack: new module
1276         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1277         the file that originated in Bison.
1278         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1279         largely copied from a snippet that resided in bison's configure.ac.
1280         * modules/non-recursive-gnulib-prefix-hack: New file.
1281         * MODULES.html.sh (Support for maintaining and releasing projects):
1282         Add it.
1283
1284 2012-09-18  Jim Meyering  <meyering@redhat.com>
1285
1286         maint.mk: generalize _gl_tight_scope for non-recursive make
1287         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1288         that *.h would describe additional .h files in the directory
1289         specified by $(_gl_TS_dir).  I.e., add this...
1290         (_gl_TS_other_headers): New variable.
1291
1292         maint.mk: exempt trailing blanks found in "binary" files
1293         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1294         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1295         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1296
1297 2012-09-17  Jim Meyering  <meyering@redhat.com>
1298
1299         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1300         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1301         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1302         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1303
1304 2012-09-17  Jim Meyering  <meyering@redhat.com>
1305
1306         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1307         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1308         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1309         It is not in the same category as "exit (0)" or "exit (1)", and
1310         besides, I know of no symbolic name for that 77.  Reported by
1311         Richard W.M. Jones in
1312         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1313
1314 2012-09-17  Jim Meyering  <meyering@redhat.com>
1315
1316         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1317         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1318         all uses of #define, not just those that start in column 1.
1319         Richard W.M. Jones reported a false positive in
1320         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1321
1322 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1323
1324         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1325         * lib/localcharset.c (locale_charset) [DARWIN7]:
1326         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1327         as these two values are incompatible.  Problem reported by Max Horn.
1328         For more discussion, please see
1329         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1330
1331         doc: document sticky-EOF issue
1332         * doc/posix-functions/fgetc.texi (fgetc):
1333         * doc/posix-functions/fgets.texi (fgets):
1334         * doc/posix-functions/fread.texi (fread):
1335         * doc/posix-functions/fscanf.texi (fscanf):
1336         * doc/posix-functions/getc.texi (getc):
1337         * doc/posix-functions/getchar.texi (getchar):
1338         * doc/posix-functions/scanf.texi (scanf):
1339         Mention that glibc and default Solaris do not conform to
1340         C99 and POSIX-2001 or later, with respect to how getchar
1341         etc. behave when feof reports nonzero.
1342
1343 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1344
1345         poll: fix poll(0, NULL, msec)
1346         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1347         but nfd is 0.  In that case poll should behave like select.
1348
1349 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1350             Paolo Bonzini <bonzini@gnu.org>
1351
1352         poll: fix for systems that can't recv() on a non-socket
1353         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1354         is readable.  In this case POLLHUP will not be supported.
1355         * doc/posix-functions/poll.texi: Document this.
1356
1357 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1358
1359         poll/select: document portability problems not fixed by Gnulib.
1360         * doc/posix-functions/poll.texi: poll does not work well on
1361         pipes under Windows.  It has the same limitations as select on
1362         BeOS.
1363         * doc/posix-functions/select.texi: select does not work well
1364         on pipes under Windows.
1365
1366 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1367
1368         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1369         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1370         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1371         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1372
1373 2012-09-06  Eric Blake  <eblake@redhat.com>
1374
1375         net_if: give more details about the bug being fixed
1376         * doc/posix-headers/net_if.texi: Add clarification.
1377
1378 2012-09-05  Eric Blake  <eblake@redhat.com>
1379
1380         net_if: new module
1381         * modules/net_if: New module, borrowing ideas from netinet_in.
1382         * m4/net_if_h.m4: New file.
1383         * lib/net_if.in.h: Likewise.
1384         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1385         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1386         * tests/test-net_if.c: Make function checks conditional.
1387         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1388
1389 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1390
1391         readutmp: fix non-portable UT_PID use
1392         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1393         Use `UT_PID (u) > 0' as absolute condition.
1394
1395 2012-09-04  Jim Meyering  <meyering@redhat.com>
1396
1397         fts: reduce two or more trailing spaces to just one, usually
1398         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1399         or more slashes, trim all but the final one.  But if a name consists
1400         solely of two slashes, don't modify it.  If it consists solely of
1401         three or more slashes, strip all but one.
1402
1403         This is part of the solution to a minor problem with rm:
1404         it would print a bogus ELOOP diagnostic when failing to remove
1405         the slash-decorated name of a symlink-to-directory:
1406
1407             $ mkdir d && ln -s d s && env rm -r s/
1408             rm: cannot remove 's': Too many levels of symbolic links
1409
1410         With the change below and a trivial don't-trim-trailing-slashes
1411         adjustment to remove.c, it does this:
1412
1413             $ env rm -r s/
1414             rm: cannot remove 's/': Not a directory
1415
1416         Improved by: Eric Blake
1417
1418         fts: when there is no risk of overlap, use memcpy, not memmove
1419         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1420
1421 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1422
1423         stdbool: be more compatible with mixed C/C++ compiles
1424         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1425         Define to bool, true, false, respectively, as GCC's builtin
1426         stdbool.h does.  Problem reported by Michael Goffioul in
1427         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1428
1429 2012-08-28  Jim Meyering  <meyering@redhat.com>
1430
1431         revert last change: it was not needed
1432         * tests/test-vc-list-files-git.sh: There's already a test for
1433         a working git, just below.
1434
1435 2012-08-28  Jim Meyering  <meyering@redhat.com>
1436
1437         tests: test-vc-list-files-git.sh: skip if git is not available
1438         * tests/test-vc-list-files-git.sh: Skip this test when git is
1439         not available.
1440
1441 2012-08-26  Bruno Haible  <bruno@clisp.org>
1442
1443         gnulib-tool: Remove no-op option --no-changelog.
1444         * gnulib-tool (func_usage): Don't mention --no-changelog.
1445         (do_changelog): Remove variable.
1446         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1447
1448 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1449
1450         doc: remove fdl-1.2.texi
1451         It is no longer used or maintained, and its use of @acronym
1452         is problematic.  See the thread containing
1453         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1454         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1455         * doc/old-licenses/fdl-1.2.texi: Remove.
1456
1457         execinfo: port to FreeBSD
1458         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1459         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1460         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1461         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1462
1463 2012-08-23  Jim Meyering  <meyering@redhat.com>
1464
1465         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1466         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1467         to placate gcc's -Wold-style-declaration.
1468
1469 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1470
1471         doc: do not use @acronym
1472         * doc/inet_ntoa.texi (inet_ntoa):
1473         * doc/parse-datetime.texi (Seconds since the Epoch)
1474         (Specifying time zone rules):
1475         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1476         Don't use @acronym.  Problem reported by John Darlington in
1477         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1478
1479 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1480
1481         stdnoreturn: port to newer GCCs
1482         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1483         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1484         Problem reported by Jim Meyering in
1485         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1486         Also, rename the 'test' function to a void a clash with the
1487         already-supplied 'main' function; this fixes a bug that incorrectly
1488         rejected GCC 4.7.1's <stdnoreturn.h>.
1489         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1490         Document GCC problem.
1491
1492 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1493
1494         pipe-filter: fix comment typo
1495         * lib/pipe-filter.h: Mention correct function.
1496
1497 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1498
1499         execinfo: new module
1500         This is for Emacs.  Currently, it provides a no-effect stub
1501         on all platforms where it does not already work.
1502         It already works on glibc-based systems, and on Solaris 11.
1503         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1504         New files.
1505         * doc/glibc-headers/execinfo.texi (execinfo.h):
1506         * MODULES.html.sh (Misc): Document it.
1507
1508 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1509
1510         extern-inline: support old GCC 'inline'
1511         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1512         if available.  This applies to GCC versions 2.7 through 4.2, or
1513         when newer GCC is using -fgnu89-inline.  The goal is to address
1514         some of the performance issues mentioned by Bruno Haible in
1515         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1516
1517 2012-08-20  Eric Blake  <eblake@redhat.com>
1518
1519         maint.mk: avoid redundant file name in message
1520         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1521         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1522         (sc_makefile_path_separator_check): Remove bogus $(ME).
1523
1524 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1525
1526         timer-time: fix link order when static linking on glibc
1527         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1528         _after_ -lrt so that it's significant.
1529
1530 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1531
1532         timespec: omit unnecessary AC_C_INLINE
1533         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1534
1535         stat-time: omit unnecessary AC_C_INLINE
1536         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1537         Do not require AC_C_INLINE.
1538
1539         ignore-value: omit unnecessary AC_C_INLINE
1540         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1541
1542         sys_select: avoid 'static inline'
1543         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1544
1545         mktime: avoid 'static inline'
1546         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1547         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1548
1549 2012-08-19  Bruno Haible  <bruno@clisp.org>
1550
1551         gnulib-tool: Improve coding style.
1552         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1553         func_emit_lib_Makefile_am.
1554         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1555
1556 2012-08-19  Bruno Haible  <bruno@clisp.org>
1557
1558         gnulib-tool: Fix indentation.
1559         * gnulib-tool (func_import): Fix indentation.
1560
1561 2012-08-19  Bruno Haible  <bruno@clisp.org>
1562
1563         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1564         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1565         on the list of removed files.
1566
1567 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1568
1569         test-parse-datetime: avoid glibc leap-second glitch
1570         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1571         with the 2012 rules.  Problem reported by Bruce Dubbs in
1572         <http://bugs.gnu.org/12206>.
1573
1574 2012-08-14  Bruno Haible  <bruno@clisp.org>
1575
1576         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1577         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1578         from argument.
1579         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1580
1581 2012-08-14  Eric Blake  <eblake@redhat.com>
1582
1583         ldexp: relax license
1584         * modules/ldexp (License): Trivial relax, since the module only
1585         provides a permissively licensed m4 file.
1586
1587 2012-08-13  Bruno Haible  <bruno@clisp.org>
1588
1589         gnulib-tool: Fix persistence of --witness-c-macro option.
1590         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1591         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1592
1593 2012-08-11  Eric Blake  <eblake@redhat.com>
1594
1595         count-leading-zeros: use a lookup table on non-gcc compilers
1596         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1597         alternate implementation, suggested by Jim Meyering.
1598
1599 2012-08-10  Eric Blake  <eblake@redhat.com>
1600
1601         count-leading-zeros: new module
1602         * modules/count-leading-zeros: New module.
1603         * m4/count-leading-zeros.m4: New file.
1604         * lib/count-leading-zeros.h: Likewise.
1605         * modules/count-leading-zeros-tests: New test.
1606         * tests/test-count-leading-zeros.c: New file.
1607         * MODULES.html.sh (Integer arithmetic functions): Document it.
1608
1609 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1610             Jim Meyering  <meyering@redhat.com>
1611
1612         maintainer-makefile: Fix syntax error with dash.
1613         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1614         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1615
1616 2012-08-05  Jim Meyering  <meyering@redhat.com>
1617
1618         extern-inline: also ignore -Wmissing-declarations
1619         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1620         required with gcc-4.8.0-to-be.
1621
1622         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1623         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1624         for /error ?([^,]*)/.  This avoids false-positives for strings like
1625         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1626
1627 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1628
1629         gnumakefile: better interaction with Automake-NG
1630         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1631         Automake-NG always contain a definition of VPATH, even in non-VPATH
1632         builds (its value being simply '.' in that case).  So, in the
1633         'clean-GNUmakefile' rule, to determine whether running under a
1634         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1635         '$(VPATH)' expands to the empty string.
1636
1637 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1638
1639         base64: Use extern C scope in header file, for C++.
1640         * lib/base64.h: Add C++ namespace protection.
1641
1642 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1643
1644         stat-time, timespec, u64: support naive out-of-dir builds
1645         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1646         Use '#include "foo.h"', not '#include <foo.h>', when including
1647         one's own interface.  This works better when configuring with
1648         out-of-directory builds, since packages need not add an
1649         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1650
1651 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1652
1653         utimens: use extern-inline
1654         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1655         * lib/utimens.h: Add copyright notice, since this is now large enough
1656         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1657         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1658         * modules/utimens (Depends-on): Add extern-inline.
1659
1660         u64: use extern-inline
1661         * lib/u64.c: New file.
1662         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1663         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1664         * modules/u64 (Files): Add lib/u64.c.
1665         (Depends-on): Add extern-inline.
1666         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1667         does that now.
1668         (lib_SOURCES): Add u64.c.
1669
1670         timespec: use extern-inline
1671         * lib/timespec.c: New file.
1672         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1673         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1674         * modules/timespec (Files): Add lib/timespec.c.
1675         (Depends-on): Add extern-inline.
1676         (lib_SOURCES): Add timespec.c.
1677
1678         stat-time: use extern-inline
1679         * lib/stat-time.c: New file.
1680         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1681         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1682         * modules/stat-time (Files): Add lib/stat-time.c.
1683         (Depends-on): Add extern-inline.
1684         (lib_SOURCES): Add stat-time.c.
1685
1686         extern-inline: new module
1687         * modules/extern-inline, m4/extern-inline.m4: New files.
1688         This is for better support of 'extern inline' a la ISO C99,
1689         with a portable alternative on compilers that do not support
1690         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1691         of the Emacs executable, when compiled with debugging disabled,
1692         which is a typical way that Emacs is built while developing.
1693
1694 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1695
1696         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1697         * build-aux/do-release-commit-and-tag: Move variable definitions
1698         together.
1699         ($branch): Instead of defaulting to "master", default to the current
1700         branch (as gnu-web-doc-update does).
1701         (help): Display the current values of the option arguments.
1702         * top/maint.mk (release-commit): New.
1703         * top/README-release: Simplify the corresponding step.
1704
1705 2012-07-30  Eric Blake  <eblake@redhat.com>
1706
1707         passfd: fix comment on recvfd
1708         * lib/passfd.c (recvfd): Fix comment.
1709         Reported by Jann Horn <jannhorn@googlemail.com>.
1710
1711 2012-07-30  Jim Meyering  <meyering@redhat.com>
1712
1713         maint.mk: avoid a sub-shell
1714         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1715
1716 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1717
1718         maint.mk: use silent-rules support from Automake
1719         * top/maint.mk (news-check, vc-diff-check, announcement)
1720         (no-submodule-changes, alpha beta stable, release-prep)
1721         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1722
1723 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1724
1725         maint.mk: provide a web-manual-update target
1726         * top/maint.mk: here.
1727         * top/README-release: Use it to simplify the web manual update step.
1728
1729 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1730
1731         README-release: shorten the circuit to post a news
1732         * top/README-release: Point directly to the news submission form.
1733
1734 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1735
1736         gnu-web-doc-update: fix --help
1737         * build-aux/gnu-web-doc-update: The information "top level" was written
1738         twice.
1739
1740 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1741
1742         maint.mk: absolute VPATH issue
1743         * top/maint.mk (release-prep): Help Git find .git/.
1744         From Jim Meyering.
1745
1746 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1747
1748         gitlog-to-changelog: fix previous change
1749         * build-aux/gitlog-to-changelog: Fix condition.
1750         Add missing ";".
1751
1752 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1753
1754         gitlog-to-changelog: don't expect .git to be in $srcdir
1755         Reported by Bruno Haible.
1756         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1757         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1758         Use it.
1759
1760 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1761
1762         maint.mk: absolute VPATH build fix
1763         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1764         $(srcdir) is not a parent of $(builddir).
1765
1766 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1767
1768         clean-temp: Fix memory leak.
1769         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1770         'files' members of tmpdir.
1771
1772 2012-07-27  Jim Meyering  <meyering@redhat.com>
1773
1774         maint.mk: new rule: refresh-gnulib-patches
1775         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1776         Use this rule to refresh them.
1777         * top/maint.mk (refresh-gnulib-patches): New rule.
1778
1779 2012-07-24  Bruno Haible  <bruno@clisp.org>
1780
1781         gnulib-tool: Fix handling of inctests variable.
1782         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1783         Reported by Nick Bowler <nbowler@elliptictech.com>.
1784
1785 2012-07-22  Bruno Haible  <bruno@clisp.org>
1786
1787         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1788         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1789         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1790         Remove exemption for getpass.h.
1791         Suggested by Eric Blake.
1792
1793 2012-07-20  Eric Blake  <eblake@redhat.com>
1794
1795         verify: document conflict with -Wnested-externs
1796         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1797
1798         maint.mk: forbid exit(-1)
1799         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1800
1801 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1802
1803         fsusage: port back to Solaris
1804         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1805         error (fsd not declared) on Solaris 10.  Reported privately by
1806         Andrew Borodin.
1807
1808 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1809
1810         gnu-web-doc-update: fix error messages
1811         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1812
1813         gnu-web-doc-update: check the requirements.
1814         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1815         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1816         * build-aux/bootstrap (find_tool): Comment change.
1817
1818 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1819
1820         maint.mk: minor simplication.
1821         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1822         for default values.
1823
1824 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1825
1826         gitlog-to-changelog: VPATH build issues
1827         If builddir is not a subdirectory of srcdir, running git from it will
1828         fail.
1829         * build-aux/gitlog-to-changelog (--srcdir): New option.
1830
1831 2012-07-15  Bruno Haible  <bruno@clisp.org>
1832
1833         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1834         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1835         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1836         Remove exemption for fpending.h.
1837         Suggested by Eric Blake.
1838
1839 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1840
1841         pthread_sigmask: fix bug on FreeBSD 9
1842         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1843         Include string.h.
1844         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1845         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1846         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1847         but pthread_sigmask (1729, NULL, NULL) returns zero.
1848         See <http://bugs.gnu.org/11884>.
1849         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1850         by inspecting whether the main call changed the old mask.
1851
1852 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1853
1854         README-release: make it more legible
1855         * top/README-release: Improve typography slightly.
1856
1857 2012-07-15  Jim Meyering  <meyering@redhat.com>
1858
1859         maint: require that each sc_... command start with "@"
1860         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1861         "make sc_maint" helps us avoid this nit.
1862
1863 2012-07-15  Jim Meyering  <meyering@redhat.com>
1864
1865         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1866         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1867
1868 2012-07-13  Eric Blake  <eblake@redhat.com>
1869
1870         maint.mk: new syntax check for HAVE_DECL checks
1871         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1872         * cfg.mk
1873         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1874         Exempt some false positives.
1875         Based on a report by Karel Zak.
1876
1877         argp: make HAVE_DECL usage consistent
1878         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1879         macros, not whether they are defined.
1880         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1881         convention with other declaration checks.
1882         Reported by Karel Zak, with suggestions from Paul Eggert.
1883
1884         stat-time: relax license to LGPLv2+
1885         * modules/stat-time (License): Relax, with consent of all authors.
1886
1887         strndup: fix m4 usage error
1888         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1889         defined, to either 0 or 1.
1890         Reported by Karel Zak.
1891
1892 2012-07-11  Jim Meyering  <meyering@redhat.com>
1893
1894         maint: enable the sc_avoid_if_before_free syntax-check rule
1895         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1896         (if_before_free_offenders_): Define.
1897         (if_before_free_basename_re_): Define.
1898         Exempt current files with useless if-before-free.
1899
1900 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1901
1902         gettext: do not assume '#define ... defined ...' behavior
1903         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1904         Do not use '#define FOO ... defined BAR ...', as the C standard says
1905         it's not portable to expect that this works after macro expansion.
1906         Problem reported for gzip by Steven M. Schweda in
1907         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1908
1909 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1910
1911         getloadavg: clean out old Emacs and Autoconf cruft
1912         See Glenn Morris in <http://bugs.gnu.org/11905>.
1913         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1914         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1915         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1916         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1917
1918 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1919
1920         bootstrap: let warn be like tests/init.sh's warn_
1921         Reported by Jim Meyering.
1922         * build-aux/bootstrap (warn): Remove, replaced by...
1923         (warnf_, warn_): these.
1924         Adjust callers.
1925         Shorten messages that no longer fit in 80 columns.
1926
1927 2012-07-09  Bruno Haible  <bruno@clisp.org>
1928
1929         getopt: Simplify after Emacs changed.
1930         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1931         (gl_GETOPT_IFELSE): Remove macro.
1932
1933 2012-07-09  Jim Meyering  <meyering@redhat.com>
1934
1935         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1936         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1937
1938         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1939         Bugs in both of those conspired to make the
1940         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1941         _sc_search_regexp's handling of non-empty $in_files would filter
1942         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1943         choice of in_files value meant there would be no match in most
1944         projects, due to the presence of two or more Makefile.in files.
1945         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1946         Fix a bug in how a non-empty $$in_files was processed:
1947         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1948         in spite of the name, it's a regexp, not a list of file names.
1949
1950 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1951
1952         getloadavg, getopt: fix commentary re configure.in
1953         Autoconf is deprecating the name 'configure.in', so change it to
1954         to the new name 'configure.ac' in a couple of places.
1955         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1956         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1957         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1958         Emacs has renamed it to configure.ac, and it no longer refers
1959         to these macros anyway.
1960
1961         timespec: mark functions with const attributes
1962         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1963         Mark with _GL_ATTRIBUTE_CONST.
1964
1965 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1966
1967         canonicalize[-lgpl]: handle "guessing" values when cross-building
1968         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1969         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1970         matches "*yes" instead of just "yes".  Regression introduced in commit
1971         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1972
1973 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1974             Bruno Haible  <bruno@clisp.org>
1975
1976         canonicalize: make the right guess when cross-compiling to GNU
1977         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1978         determine whether cross-compiling to glibc systems, so as to
1979         include GNU/Hurd.
1980
1981 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1982
1983         timespec-sub: avoid duplicate include
1984         * lib/timespec-sub.c: Do not include <config.h> twice.
1985         Reported by Juanma Barranquero.
1986
1987 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1988
1989         bootstrap: use a more consistent error reporting scheme
1990         * build-aux/bootstrap (warn, die): New.
1991         Use them.
1992
1993 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1994
1995         sys_time: allow too-wide tv_sec
1996         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1997         timeval even if tv_sec is wider than time_t.  This allows
1998         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1999         as without this patch gnulib replaces struct timeval
2000         and OpenBSD futimes therefore has a type mismatch.
2001         * doc/posix-headers/sys_time.texi: Mention this.
2002
2003         pthread: check for both pthread_create and pthread_join
2004         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2005         alter the check so that it tests for both pthread_create and
2006         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2007         Suggested by Bruno Haible and Richard Yao in
2008         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2009
2010         parse-datetime: doc tuneup
2011         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2012         spacing issues.
2013
2014 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2015
2016         do-release-commit-and-tag: fix the previous commit
2017         * build-aux/do-release-commit-and-tag: Actually the test was right,
2018         but the comment and the error message were misleading.
2019         Fix comment, and improve error message.
2020         Perform check first, so that NEWS is not modified uselessly.
2021
2022         do-release-commit-and-tag: fix typo
2023         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2024         _not_ start with a stub.
2025
2026 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2027
2028         pthread: check for pthread_create, not pthread_join
2029         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2030         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2031         pthread_join in libc.  I hope this removes the need for all the
2032         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2033         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2034
2035 2012-07-04  Jim Meyering  <meyering@redhat.com>
2036
2037         parse-datetime: fix failure to diagnose invalid input
2038         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2039         rather than diagnosing the invalid input.  Now it reports this:
2040         date: invalid date '\260'
2041         * lib/parse-datetime.y (to_uchar): Define.
2042         (yylex): Don't sign-extend "other" bytes.
2043         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2044         Thanks to Bruno Haible for the patch to this file.
2045         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2046         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2047
2048 2012-07-03  Jim Meyering  <meyering@redhat.com>
2049
2050         bootstrap: do not require now-removed build-aux/missing
2051         Now that build-aux/missing is, er, missing, bootstrap would
2052         silently fail.
2053         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2054         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2055         no longer part of gnulib.
2056         Diagnose the failure.
2057
2058 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2059
2060         alloca: add support for HP NonStop TNS/E native
2061         * lib/alloca.in.h (alloca): Support the new host.
2062         From a suggestion by Joachim Schmitz in
2063         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2064
2065 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2066
2067         fsusage: remove code not needed on non GNU/Linux systems.
2068
2069         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2070         Don't include headers no longer needed in this case.
2071         * lib/fsusage.c [STAT_STATVFS &&
2072         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2073         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2074
2075 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2076
2077         fsusage: include files needed for glibc 2.6 fallback
2078         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2079         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2080         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2081         Problem reported by Ludovic Courtès in
2082         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2083
2084         fsusage: avoid needless check on GNU/Linux
2085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2086         on GNU/Linux systems, since it can't possibly work.
2087
2088 2012-07-01  Bruno Haible  <bruno@clisp.org>
2089
2090         log: Fix an autoconf >= 2.64 warning.
2091         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2092         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2093
2094 2012-06-28  Bruno Haible  <bruno@clisp.org>
2095
2096         log10f: Fix possible configuration problem.
2097         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2098         $LOGF_LIBM.
2099         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2100
2101 2012-06-28  Bruno Haible  <bruno@clisp.org>
2102
2103         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2104         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2105         not gl_cv_func_unlink_works.
2106         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2107
2108 2012-06-27  Eric Blake  <eblake@redhat.com>
2109
2110         config: drop scripts that automake says are not independent
2111         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2112         * build-aux/elisp-comp: Delete.
2113         * build-aux/missing: Likewise.
2114         * build-aux/ylwrap: Likewise.
2115         * modules/elisp-comp: Likewise.
2116         * MODULES.html.sh: Drop mention of elisp-comp.
2117         * NEWS: Mention this.
2118
2119 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2120
2121         root-uid: new module
2122         This is for portability to Tandem's NonStop Kernel.
2123         * lib/root-uid.h, modules/root-uid: New files.
2124         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2125         * lib/write-any-file.c, tests/test-sethostname2.c:
2126         Include "root-uid.h".
2127         * lib/euidaccess.c (euidaccess):
2128         * lib/pt_chown.c (main):
2129         * lib/unlinkdir.c (cannot_unlink_dir):
2130         * lib/write-any-file.c (can_write_any_file):
2131         * m4/mknod.m4 (gl_FUNC_MKNOD):
2132         * tests/test-sethostname2.c (geteuid, main):
2133         Don't assume ROOT_UID == 0.
2134         * modules/euidaccess (Depends-on):
2135         * modules/pt_chown (Depends-on):
2136         * modules/sethostname-tests (Depends-on):
2137         * modules/unlinkdir (Depends-on):
2138         * modules/write-any-file (Depends-on):
2139         Add root-uid.
2140
2141         regex: use locale-independent comparison for codeset name
2142         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2143         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2144         for codeset name.
2145         * lib/regex_internal.h: Do not include <strings.h>, since we
2146         no longer use strcasecmp.
2147         * modules/regex (Depends-on): Remove strcase.
2148
2149 2012-06-23  Bruno Haible  <bruno@clisp.org>
2150
2151         getopt-posix: No longer guarantee that option processing is resettable.
2152         * doc/posix-functions/getopt.texi: Drop description of problem with
2153         internal state. Fix info about mingw and msvc9.
2154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2155         option processing by getopt(). Run three test programs instead of one.
2156         Simplify cross-compilation guess.
2157         * NEWS: Mention the change.
2158         Reported by Rich Felker <dalias@aerifal.cx>.
2159
2160 2012-06-26  Bruno Haible  <bruno@clisp.org>
2161
2162         argp, regex: Ensure strcasecmp gets declared.
2163         * lib/argp-help.c: Include <strings.h>.
2164         * lib/regex_internal.h: Likewise.
2165         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2166
2167 2012-06-24  Bruno Haible  <bruno@clisp.org>
2168
2169         ptsname_r: Make it consistent with ptsname on AIX.
2170         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2171         implementation as for OSF/1.
2172         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2173         a pty master.
2174
2175         ptsname_r: Make it consistent with ptsname on OSF/1.
2176         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2177         OSF/1.
2178
2179 2012-06-24  Bruno Haible  <bruno@clisp.org>
2180
2181         ttyname_r: Fix result on OSF/1, Solaris.
2182         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2183
2184 2012-06-24  Bruno Haible  <bruno@clisp.org>
2185
2186         ptsname_r: Add support for Solaris.
2187         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2188         Solaris.
2189
2190         ptsname_r: Fix test failure on native Windows.
2191         * modules/ptsname_r (Depends-on): Add isatty.
2192
2193         ptsname_r: Fix test failures on IRIX, Solaris.
2194         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2195         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2196         accordingly.
2197         * lib/ptsname_r.c: Include <fcntl.h>.
2198         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2199         set errno if fd is invalid.
2200         * tests/test-isatty.c (main): Update comments.
2201
2202 2012-06-24  Bruno Haible  <bruno@clisp.org>
2203
2204         ptsname test: Extend test.
2205         * tests/test-ptsname.c: Include <errno.h>.
2206         (main): Test behaviour with invalid file descriptor.
2207
2208 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2209
2210         time: fix obsolete comment
2211         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2212         reference to HAVE_STRUCT_TIMESPEC in comment.
2213
2214 2012-06-23  Bruno Haible  <bruno@clisp.org>
2215
2216         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2218         does not handle abbreviated long options with equivalent
2219         disambiguations, set gl_replace_getopt to yes.
2220         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2221
2222 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2223
2224         time_r: fix typo that always overrode localtime_r decl
2225         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2226         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2227         not in a standard include.
2228
2229 2012-06-22  Bruno Haible  <bruno@clisp.org>
2230
2231         Write "Mac OS X" instead of "MacOS X".
2232         * README: Write "Mac OS X" instead of "MacOS X".
2233         * build-aux/bootstrap: Likewise.
2234         * build-aux/install-reloc: Likewise.
2235         * lib/acl-internal.h: Likewise.
2236         * lib/acl_entries.c: Likewise.
2237         * lib/argp-ba.c: Likewise.
2238         * lib/argp-pv.c: Likewise.
2239         * lib/config.charset: Likewise.
2240         * lib/copy-acl.c: Likewise.
2241         * lib/csharpexec.c: Likewise.
2242         * lib/euidaccess.c: Likewise.
2243         * lib/fbufmode.c: Likewise.
2244         * lib/fflush.c: Likewise.
2245         * lib/file-has-acl.c: Likewise.
2246         * lib/filemode.h: Likewise.
2247         * lib/fpurge.c: Likewise.
2248         * lib/freadable.c: Likewise.
2249         * lib/freadahead.c: Likewise.
2250         * lib/freading.c: Likewise.
2251         * lib/freadptr.c: Likewise.
2252         * lib/freadseek.c: Likewise.
2253         * lib/fseeko.c: Likewise.
2254         * lib/fseterr.c: Likewise.
2255         * lib/fsusage.c: Likewise.
2256         * lib/fwritable.c: Likewise.
2257         * lib/fwriting.c: Likewise.
2258         * lib/get-rusage-as.c: Likewise.
2259         * lib/get-rusage-data.c: Likewise.
2260         * lib/getdomainname.c: Likewise.
2261         * lib/idpriv-drop.c: Likewise.
2262         * lib/idpriv-droptemp.c: Likewise.
2263         * lib/localcharset.c: Likewise.
2264         * lib/locale.in.h: Likewise.
2265         * lib/localename.c: Likewise.
2266         * lib/mbsrtowcs-state.c: Likewise.
2267         * lib/nproc.c: Likewise.
2268         * lib/passfd.c: Likewise.
2269         * lib/posix_openpt.c: Likewise.
2270         * lib/printf-parse.c: Likewise.
2271         * lib/progreloc.c: Likewise.
2272         * lib/safe-read.h: Likewise.
2273         * lib/safe-write.h: Likewise.
2274         * lib/sched.in.h: Likewise.
2275         * lib/set-mode-acl.c: Likewise.
2276         * lib/signal.in.h: Likewise.
2277         * lib/stdint.in.h: Likewise.
2278         * lib/stdio-impl.h: Likewise.
2279         * lib/stdlib.in.h: Likewise.
2280         * lib/strtod.c: Likewise.
2281         * lib/sys_select.in.h: Likewise.
2282         * lib/tcgetsid.c: Likewise.
2283         * lib/unistd.in.h: Likewise.
2284         * lib/unlockpt.c: Likewise.
2285         * lib/vasnprintf.c: Likewise.
2286         * lib/vma-iter.c: Likewise.
2287         * lib/wcsrtombs-state.c: Likewise.
2288         * m4/acl.m4: Likewise.
2289         * m4/acosl.m4: Likewise.
2290         * m4/asinl.m4: Likewise.
2291         * m4/atanl.m4: Likewise.
2292         * m4/c-stack.m4: Likewise.
2293         * m4/cosl.m4: Likewise.
2294         * m4/expl.m4: Likewise.
2295         * m4/extensions.m4: Likewise.
2296         * m4/fdatasync.m4: Likewise.
2297         * m4/fmal.m4: Likewise.
2298         * m4/frexp.m4: Likewise.
2299         * m4/frexpf.m4: Likewise.
2300         * m4/frexpl.m4: Likewise.
2301         * m4/fsusage.m4: Likewise.
2302         * m4/getdomainname.m4: Likewise.
2303         * m4/getloadavg.m4: Likewise.
2304         * m4/getopt.m4: Likewise.
2305         * m4/gettext.m4: Likewise.
2306         * m4/gnulib-common.m4: Likewise.
2307         * m4/intdiv0.m4: Likewise.
2308         * m4/intlmacosx.m4: Likewise.
2309         * m4/largefile.m4: Likewise.
2310         * m4/ldexpl.m4: Likewise.
2311         * m4/link-follow.m4: Likewise.
2312         * m4/locale-ar.m4: Likewise.
2313         * m4/locale-fr.m4: Likewise.
2314         * m4/locale-ja.m4: Likewise.
2315         * m4/locale-tr.m4: Likewise.
2316         * m4/locale-zh.m4: Likewise.
2317         * m4/locale_h.m4: Likewise.
2318         * m4/lock.m4: Likewise.
2319         * m4/logl.m4: Likewise.
2320         * m4/mathfunc.m4: Likewise.
2321         * m4/minus-zero.m4: Likewise.
2322         * m4/mktime.m4: Likewise.
2323         * m4/mmap-anon.m4: Likewise.
2324         * m4/multiarch.m4: Likewise.
2325         * m4/nanosleep.m4: Likewise.
2326         * m4/nocrash.m4: Likewise.
2327         * m4/poll.m4: Likewise.
2328         * m4/printf-frexpl.m4: Likewise.
2329         * m4/printf.m4: Likewise.
2330         * m4/signbit.m4: Likewise.
2331         * m4/sinl.m4: Likewise.
2332         * m4/sqrtl.m4: Likewise.
2333         * m4/strerror_r.m4: Likewise.
2334         * m4/tanl.m4: Likewise.
2335         * m4/threadlib.m4: Likewise.
2336         * m4/ttyname_r.m4: Likewise.
2337         * m4/unlink.m4: Likewise.
2338         * m4/visibility.m4: Likewise.
2339         * m4/wcwidth.m4: Likewise.
2340         * tests/minus-zero.h: Likewise.
2341         * tests/test-alloca-opt.c: Likewise.
2342         * tests/test-copy-acl.sh: Likewise.
2343         * tests/test-copy-file.sh: Likewise.
2344         * tests/test-fdatasync.c: Likewise.
2345         * tests/test-file-has-acl.sh: Likewise.
2346         * tests/test-flock.c: Likewise.
2347         * tests/test-fsync.c: Likewise.
2348         * tests/test-localename.c: Likewise.
2349         * tests/test-malloca.c: Likewise.
2350         * tests/test-nonblocking-pipe.h: Likewise.
2351         * tests/test-nonblocking-socket.h: Likewise.
2352         * tests/test-openpty.c: Likewise.
2353         * tests/test-posix_openpt.c: Likewise.
2354         * tests/test-ptsname.c: Likewise.
2355         * tests/test-ptsname_r.c: Likewise.
2356         * tests/test-sameacls.c: Likewise.
2357         * tests/test-select.h: Likewise.
2358         * tests/test-set-mode-acl.sh: Likewise.
2359         * tests/test-snprintf-posix.h: Likewise.
2360         * tests/test-sprintf-posix.h: Likewise.
2361         * tests/test-strtod.c: Likewise.
2362         * tests/test-time.c: Likewise.
2363         * tests/test-vasnprintf-posix.c: Likewise.
2364         * tests/test-vasprintf-posix.c: Likewise.
2365         * doc/acl-resources.txt: Likewise.
2366         * doc/**/*.texi: Likewise.
2367         Reported by Max Horn <max@quendi.de>.
2368
2369 2012-06-22  Bruno Haible  <bruno@clisp.org>
2370
2371         grantpt: Relax requirement regarding invalid file descriptors.
2372         * lib/grantpt.c: Don't include <fcntl.h>.
2373         (grantpt): Don't verify the validity of the file descriptor.
2374         * modules/grantpt (Depends-on): Remove fcntl-h.
2375         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2376         file descriptors.
2377         * doc/posix-functions/grantpt.texi: Document more platforms on which
2378         grantpt succeeds for invalid file descriptors.
2379         Reported by Rich Felker <dalias@aerifal.cx>.
2380
2381 2012-06-22  Bruno Haible  <bruno@clisp.org>
2382
2383         fbufmode test: Don't test unportable behaviour.
2384         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2385         (main): Invoke it three times.
2386         Reported by Szabolcs Nagy <nsz@port70.net>
2387         and Rich Felker <dalias@aerifal.cx>.
2388
2389 2012-06-21  Bruno Haible  <bruno@clisp.org>
2390
2391         gnulib-tool: Refactor inctests variable.
2392         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2393         (func_modules_transitive_closure,
2394         func_modules_transitive_closure_separately,
2395         func_import, func_create_testdir): Update.
2396
2397         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2398         * gnulib-tool: Accept option --without-tests.
2399         (func_usage): Document --without-tests option. Rearrange.
2400         (inctests): Normalize according to the mode.
2401         * NEWS: Mention the change.
2402         Suggested by Simon Josefsson.
2403
2404 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2405
2406         parse-duration test: Avoid spurious output.
2407         * tests/test-parse-duration.sh: Reindent with leading tabs.
2408
2409 2012-06-21  Jim Meyering  <meyering@redhat.com>
2410
2411         maint: disable the strncpy prohibition
2412         * cfg.mk: Do not prohibit strncpy here.
2413
2414 2012-06-21  Bruno Haible  <bruno@clisp.org>
2415
2416         nonblocking: Avoid compilation error on mingw64.
2417         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2418         fscanf.
2419         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2420         * modules/vfscanf (configure.ac): Likewise.
2421         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2422         definition only if stdio.h has prepared it.
2423         Reported by Daniel P. Berrange <berrange@redhat.com>.
2424
2425 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2426
2427         gnulib-tool: Use readlink if it is available.
2428         * gnulib-tool (func_readlink): Choose function more appropriately.
2429
2430 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2431
2432         posixtm-tests: port to buggy compiler
2433         Problem reported by Simon Josefsson in
2434         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2435         * modules/posixtm-tests (Depends-on): Add stdint.
2436         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2437         Now of type int_least64_t, not int64_t, both because that's
2438         what INT64_C returns and because int_least64_t works even
2439         on 72-bit hosts.
2440         (T): Use INT64_C on constants outside the traditional int range,
2441         to work around compiler bug noted by Simon.
2442
2443         mktime: fix integer overflow in 'configure'-time test
2444         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2445         after integer overflow.  Problem reported by Rich Felker in
2446         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2447         Also, don't look for further instances of a bug if we've already
2448         found one instance; this helps 'configure' run faster.
2449
2450 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2451
2452         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2453         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2454         GetVersionEx correctly.
2455         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2456
2457 2012-06-20  Bruno Haible  <bruno@clisp.org>
2458
2459         fdopen: Allow implementations that don't reject invalid fd arguments.
2460         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2461         succeeds.
2462         Reported by Rich Felker <dalias@aerifal.cx>.
2463
2464 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2465
2466         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2467         bring in LIBINTL.
2468
2469 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2470
2471         init.sh: do not rely on autoupated PWD
2472         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2473         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2474         Although Nelson's bug was not necessarily fixed by this patch,
2475         it seems wise to make the change for safety.
2476         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2477         automagically after 'cd'; this is not reliable on older shells.
2478         (setup_): Fail if we cannot cd to temporary directory.
2479
2480 2012-06-19  Bruno Haible  <bruno@clisp.org>
2481
2482         stat, fstat: Avoid warnings on mingw64.
2483         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2484         redefining.
2485         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2486         Reported by Daniel P. Berrange <berrange@redhat.com>.
2487
2488 2012-06-19  Bruno Haible  <bruno@clisp.org>
2489
2490         stdioext: Add support for musl libc.
2491
2492         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2493         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2494
2495         * m4/fseterr.m4: New file.
2496         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2497         function exists.
2498         * modules/fseterr (Files): Add m4/fseterr.m4.
2499         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2500         __fseterr does not exist.
2501         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2502
2503         * lib/freadable.h: Update comment.
2504
2505         * lib/fwritable.h: Update comment.
2506
2507         * lib/freading.h: Update comment.
2508
2509         * lib/fwriting.h: Update comment.
2510
2511         * m4/freadahead.m4: New file.
2512         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2513         that function exists.
2514         * modules/freadahead (Files): Add m4/freadahead.m4.
2515         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2516         __freadahead does not exist.
2517         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2518
2519         * m4/freadptr.m4: New file.
2520         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2521         function exists.
2522         * modules/freadptr (Files): Add m4/freadptr.m4.
2523         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2524         __freadptr does not exist.
2525         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2526
2527         * m4/freadseek.m4: New file.
2528         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2529         exists.
2530         * modules/freadseek (Files): Add m4/freadseek.m4.
2531         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2532
2533         * lib/fpurge.c (fpurge): Update comment.
2534
2535         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2536
2537 2012-06-19  Bruno Haible  <bruno@clisp.org>
2538
2539         *printf-posix: Put more info into config.log.
2540         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2541         exit code into config.log.
2542
2543 2012-06-19  Bruno Haible  <bruno@clisp.org>
2544
2545         getopt-gnu: Fix exit code overflow in autoconf test.
2546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2547         to keep them below < 128.
2548
2549 2012-06-17  Jim Meyering  <meyering@redhat.com>
2550
2551         maint.mk: fix typo in code to derive GPG key at release time
2552         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2553
2554 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2555
2556         regex: avoid warning when pointers are not long
2557         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2558         and uintptr_t, not long, for portability to hosts where pointers and
2559         long have different sizes.  Issue noted by Daniel P. Berrange in
2560         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2561         and fix suggested by Bruno Haible in
2562         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2563
2564 2012-06-17  Bruno Haible  <bruno@clisp.org>
2565
2566         dummy: Relicense into the public domain.
2567         * modules/dummy (License): Set to "public domain".
2568         Suggested by Reuben Thomas.
2569
2570 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2571
2572         announce-gen: VPATH issues
2573         * build-aux/announce-gen (--srcdir): New option, used to trim the
2574         $srcdir part of the path from $builddir to NEWS.
2575         * top/maint.mk (announcement): Adjust.
2576
2577 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2578
2579         gnu-web-doc-update: VPATH builds
2580         * build-aux/gnu-web-doc-update (--builddir): New option.
2581         Revamp the handling of options.
2582         Prefer $(...) to `...`.
2583         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2584         the template, and it is GNU mktemp specific.
2585         Prefer set -e to long series of &&.
2586         Restore the initial git branch, not "master".
2587         Properly initialize submodules (don't rely only on bootstrap).
2588         Do not reconfigure blindly, use config.status.
2589         * top/README-release: Update instructions for gnu-web-doc-update.
2590
2591 2012-06-11  Jim Meyering  <meyering@redhat.com>
2592
2593         maint.mk: revert most of the previous change re "all these"
2594         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2595         For rationale, see the discussion at
2596         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2597
2598 2012-06-10  Karl Berry  <karl@gnu.org>
2599
2600         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2601
2602         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2603
2604 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2605
2606         parse-duration: Relicense under LGPLv2+.
2607         * modules/parse-duration (License): Change to LGPLv2+.
2608
2609 2012-06-10  Jim Meyering  <meyering@redhat.com>
2610
2611         maint.mk: prohibit common grammar error: "all these"
2612         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2613         the list of prohibited word sequences.  It should be "all of these".
2614         * lib/tempname.c (__gen_tempname): Fix one of them.
2615
2616 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2617
2618         do-release-commit-and-tag: support VPATH builds
2619         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2620         (noteworthy): Defined earlier to factor its value.
2621         (noteworthy_stub): New.
2622         Use it to factor.
2623         (help_version): Split into...
2624         (help, version): these.
2625         Adjust the option processing part.
2626         Support "--option=value" in addition to "--option value".
2627         (builddir): New.
2628         (--builddir): New option.
2629         * top/README-release: Document this.
2630         Reword slightly so that the reader cannot understand that he
2631         has to do these steps before calling do-release-commit-and-tag.
2632
2633 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2634
2635         readme-release: also require announce-gen and maintainer-makefile
2636         * modules/readme-release (Depends-on): here.
2637         * modules/announce-gen, modules/do-release-commit-and-tag,
2638         modules/gnu-web-doc-update, modules/maintainer-makefile
2639         (Description): Point to readme-release.
2640
2641 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2642
2643         maint.mk: fix VPATH issues.
2644         * top/maint.mk (news-check): GNU Make understand $< very well.
2645         (release-prep): NEWS is in $(srcdir).
2646
2647 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2648
2649         readme-release: require the promoted modules.
2650         * modules/readme-release (Depends-on): Add
2651         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2652         in this text.
2653
2654 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2655             Bruno Haible  <bruno@clisp.org>
2656
2657         error, strerror-override: Support mingw64 from Fedora 17.
2658         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2659         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2660         EINPROGRESS.
2661         * lib/strerror-override.h (strerror_override): Test it.
2662         * lib/strerror-override.c (strerror_override): Likewise.
2663         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2664
2665 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2666             Bruno Haible  <bruno@clisp.org>
2667
2668         error, strerror-override: Support mingw64 from Fedora 17.
2669         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2670         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2671         * lib/strerror-override.h (strerror_override): Test it.
2672         * lib/strerror-override.c (strerror_override): Likewise.
2673
2674 2012-06-03  Bruno Haible  <bruno@clisp.org>
2675
2676         error, strerror-override: Support new errno values from POSIX:2008.
2677         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2678         ENOTRECOVERABLE.
2679         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2680         platforms.
2681         * lib/strerror-override.c (strerror_override): Conditionalize the
2682         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2683         * lib/strerror-override.h (strerror_override): Declare also if
2684         GNULIB_defined_EOWNERDEAD is defined.
2685         * tests/test-errno.c (e130, e131): New variables.
2686         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2687         ENOTRECOVERABLE.
2688         Reported by Paolo Bonzini.
2689
2690 2012-05-31  Jim Meyering  <meyering@redhat.com>
2691
2692         savewd: add missing dependency on sys_wait module
2693         * modules/savewd (Depends-on): Add sys_wait, needed at least
2694         for MSVC.  Report and suggested change by Michael Goffioul.
2695
2696 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2697
2698         system-quote-tests: port to CentOS 5
2699         Problem reported by Tom G. Christensen in
2700         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2701         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2702
2703 2012-05-29  Jim Meyering  <meyering@redhat.com>
2704
2705         maint: fix typos in comments and ChangeLog
2706         Culprits identified and fixed mostly automatically using these commands:
2707         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2708         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2709         using http://github.com/lyda/misspell-check
2710         * ChangeLog: Fix typos.
2711         * doc/solaris-versions: Likewise.
2712         * lib/regexec.c (re_search_stub): Likewise.
2713         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2714
2715 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2716
2717         manywarnings: remove duplicate -Wmultichar entry
2718         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2719         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2720         so keep the entry marked as documented.
2721
2722 2012-05-27  Karl Berry  <karl@gnu.org>
2723
2724         * config/srclist.txt (mktime.c): remove last libc sync,
2725         perhaps just temporarily.
2726
2727 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         regex: don't assume uint64_t or uint32_t
2730         * lib/regcomp.c (init_word_char): Don't assume that the types
2731         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2732         them, and on some 32-bit compilers there is no uint64_t.
2733         Problem reported by Gianluigi Tiesi in
2734         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2735
2736 2012-05-25  Jim Meyering  <meyering@redhat.com>
2737
2738         maint.mk: add strncpy-prohibiting syntax-check rule
2739         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2740
2741 2012-05-24  Jim Meyering  <meyering@redhat.com>
2742
2743         maint.mk: compute $(gpg_key_ID) more portably
2744         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2745         That use of sed is not portable to some fringe systems.
2746         Reported by Paul Eggert in
2747         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2748
2749 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2750
2751         mktime: sync from glibc
2752         * config/srclist.txt: Uncomment mktime.c.
2753         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2754         First, indent with tabs, since glibc uses tabs and doesn't want to
2755         change and we'd rather be identical to glibc.  Also, two small
2756         coding changes:
2757         (isdst_differ): Use &&, not &, as && is the usual style.
2758         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2759         for clarity.
2760
2761 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2762
2763         announce-gen: du -h is more portable than du --human
2764         * build-aux/announce-gen (sizes): Invoke du with -h instead
2765         of --human.  Accept leading white space in its output.
2766
2767 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2768
2769         announce-gen: Improve diagnostics.
2770         * build-aux/announce-gen: When parsing command line options,
2771         prefer "announce-gen: option --release-type requires an argument"
2772         to "Option release-type requires an argument".
2773
2774 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2775
2776         maint.mk: gpg_key_ID: use sed more portably
2777         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2778         the closing brace.
2779         (refresh-po): Fuse two sed invocations into one.
2780
2781 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2782
2783         gitlog-to-changelog: support the log message format used in Bison.
2784         * build-aux/gitlog-to-changelog: Support --strip-tab and
2785         --strip-cherry-picked.
2786
2787 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2788
2789         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2790         the rest of the current time slice to another thread in the current
2791         process. So if the thread that feeds the file decscriptor we're
2792         polling is not in the current process, we get busy-waiting.
2793         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2794         Patch from Theodore Leblond.
2795         * lib/select.c: Split polling out of the loop that sets the output
2796         fd_sets.  Check for zero result and loop if the wait timeout is
2797         infinite.
2798
2799 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2800
2801         select: Fix build error on IRIX 6.5.
2802         * lib/select.c: Include stddef.h for NULL.
2803
2804 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2805
2806         gc: fix libgcrypt detection on older machines.
2807         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2808         copyright years because the file has been distributed every year
2809         since it was created.
2810
2811 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2812
2813         crypto: fix bug in large buffer handling
2814         Problem reported by Serge Belyshev for glibc in
2815         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2816         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2817         * lib/md4.c (md4_process_block):
2818         * lib/md5.c (md5_process_block):
2819         * lib/sha1.c (sha1_process_block):
2820         * lib/sha256.c (sha256_process_block):
2821         Don't assume the buffer length is less than 2**32.
2822         * lib/sha512.c (sha512_process_block): Likewise.
2823         Here, the bug is present only in the rare case where the host does
2824         not support uint64_t or where size_t is wider than 64 bits.
2825         Use u64size to work around the problems.
2826         * lib/u64.h (u64size): New macro.
2827
2828 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2829
2830         fsusage: fix block size returned on older Linux 2.6
2831
2832         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2833         which is available since Linux 2.6.
2834         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2835         when the member is available so it can be used as a fallback.
2836         * doc/posix-functions/statvfs.texi: Mention the hang issue
2837         on Linux < 2.6.36.
2838
2839 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2840
2841         bootstrap: suppress stderr chatter
2842         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2843         Omit unnecessary chatter to stderr.  The main program chatter
2844         was there only inadvertantly.
2845
2846         bootstrap: .gitignore files created by autopoint, libtool
2847         I ran into this problem when bootstrapping the latest diffutils.
2848         After './bootstrap', 'git status' reported lots of untracked files
2849         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2850         autopoint and do not need to be version-controlled.
2851         * build-aux/bootstrap: Put into .gitignore the files that
2852         autopoint and libtool create, by keeping track of files that exist
2853         after but not before these programs are run.
2854         (version_controlled_file): Move up.  2nd arg is now full file
2855         name, not base name; this is more convenient.  Put CVS at the end,
2856         as it's now somewhat deprecated.
2857
2858 2012-05-14  Jim Meyering  <meyering@redhat.com>
2859
2860         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2861         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2862         definition.  Reported by Bruno Haible.
2863
2864 2012-05-13  Bruno Haible  <bruno@clisp.org>
2865             Paul Eggert  <eggert@cs.ucla.edu>
2866
2867         binary-io: Define set_binary_mode function.
2868         * lib/binary-io.h (set_binary_mode): New function.
2869         (SET_BINARY): Define in terms of set_binary_mode.
2870         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2871         * tests/test-binary-io.c (main): Accept an argument, and test either
2872         set_binary_mode or SET_BINARY depending on the argument.
2873         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2874         argument. Clean up also t-bin-out0.tmp.
2875
2876 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2877
2878         bootstrap: take advantage of POSIX shell features
2879
2880         The 'bootstrap' script offered by Gnulib script already uses POSIX
2881         shell features (like $((...)) arithmetic expansions) that are not
2882         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2883         means that bootstrap must already be run using a proper POSIX shell,
2884         which will thus provide more features, like ${var#pattern} parameter
2885         expansion or inversion of a command exit status with '!'.  We can
2886         thus use these features to improve the clarity and the performances
2887         of the bootstrap script.
2888
2889         Suggested by Eric Blake.
2890
2891         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2892         of sed/expr plus command substitutions, to save some forks.  While
2893         we are at it, prefer the POSIX $(...) form of command substitution,
2894         rather than the legacy form `...` (since the former is visually
2895         clearer and interacts better with quoting), and prefer the idiom:
2896           "if ! CMD; then ACTION ..."
2897         over the idiom:
2898           "if CMD; then :; else ACTION ..."
2899         which was required by legacy Bourne shells not supporting '!'.
2900
2901 2012-05-12  Bruno Haible  <bruno@clisp.org>
2902
2903         system-quote: Add more comments.
2904         * lib/system-quote.h: Add more comments about wilcards and limitations.
2905         Suggested by Eli Zaretskii <eliz@gnu.org>.
2906
2907         sh-quote, system-quote: Add comments about wildcards.
2908         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2909         * lib/system-quote.h: Likewise.
2910         Reported by Eli Zaretskii <eliz@gnu.org>.
2911
2912 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2913
2914         fsusage: check for GNU/Linux statvfs problem dynamically
2915         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2916         Define STAT_STATFS2_BSIZE too, since in this case the code now
2917         checks dynamically whether statvfs is reliable, falling back on
2918         Linux-style statfs otherwise.
2919         (statvfs_works): New function, for dynamically testing statvfs.
2920         (get_fs_usage) [STAT_STATVFS]: Use it.
2921         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2922         statvfs on GNU/Linux hosts, since it's now done dynamically.
2923
2924 2012-05-10  Bruno Haible  <bruno@clisp.org>
2925
2926         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2927         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2928         '?' character.
2929         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2930         * tests/test-system-quote-main.c (check_all): Check also strings like
2931         "??????????".
2932         Reported by Eli Zaretskii <eliz@gnu.org>.
2933
2934 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2935
2936         _Noreturn: port config.h to gcc -Wundef
2937         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2938         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2939         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2940
2941 2012-05-10  Bruno Haible  <bruno@clisp.org>
2942
2943         system-quote: Refactor.
2944         * lib/system-quote.h (system_quote_copy): Fix comment.
2945         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2946         New functions, extracted from system_quote_copy.
2947         (system_quote_length, system_quote_copy): Use these functions.
2948         Reported by Paul Eggert.
2949
2950 2012-05-08  Bruno Haible  <bruno@clisp.org>
2951
2952         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2953         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2954
2955 2012-05-08  Bruno Haible  <bruno@clisp.org>
2956
2957         Tests for module 'system-quote'.
2958         * modules/system-quote-tests: New file.
2959         * tests/test-system-quote.sh: New file.
2960         * tests/test-system-quote-main.c: New file.
2961         * tests/test-system-quote-child.c: New file.
2962
2963         New module 'system-quote'.
2964         * lib/system-quote.h: New file.
2965         * lib/system-quote.c: New file.
2966         * modules/system-quote: New file.
2967
2968 2012-05-08  Bruno Haible  <bruno@clisp.org>
2969
2970         sh-quote: Make C++ safe and allow multiple inclusion.
2971         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2972         declarations in extern "C".
2973
2974 2012-05-08  Bruno Haible  <bruno@clisp.org>
2975
2976         sh-quote tests: Make tests stricter.
2977         * tests/test-sh-quote.c (check_one): Check the return value of
2978         shell_quote_copy.
2979         (main): Check a string with a CR character. Check a string that
2980         contains UCHAR_MAX.
2981
2982 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2983
2984         warnings.m4: provide a means to specify the program to compile.
2985         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2986         (gl_WARN_ADD): here.
2987         Use gl_AS_VAR_APPEND.
2988         Support an argument to specify the program to compile.
2989         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2990         AC_SUBST the WARN_CFLAGS when they are used.
2991         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2992         leave this to gl_WARN_ADD.
2993
2994 2012-05-08  Eric Blake  <eblake@redhat.com>
2995
2996         doc: recommendations on gettext version
2997         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2998         choice between versions.
2999         * DEPENDENCIES (gettext): Cover both approaches.
3000
3001 2012-05-08  Jim Meyering  <meyering@redhat.com>
3002
3003         init.sh: explain why EXEEXT support uses aliases rather than functions
3004         * tests/init.sh: Add a comment.
3005
3006         init.sh: don't let bash aliases interfere with tests
3007         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3008         is bash.  This avoids problems for those who alias standard commands to
3009         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3010         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3011
3012 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3013
3014         stdint: be more consistent with glibc, SunOS libc
3015         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3016         (gl_int_fast16_t, gl_uint_fast16_t)
3017         (gl_int_fast32_t, gl_uint_fast32_t)
3018         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3019         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3020         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3021         Be consistent with glibc by default, and with SunOS 5.10 and later
3022         if __sun is defined.  This lessens the likelihood of clashes if
3023         code compiled for older hosts is combined with code compiled for
3024         newer ones.  Problem reported by Niels Möller in
3025         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3026
3027 2012-05-07  Eric Blake  <eblake@redhat.com>
3028
3029         isatty: relax license to LGPLv2+
3030         * modules/isatty (License): Relax license.
3031
3032 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3033
3034         stat-size: comment fix
3035         * lib/stat-size.h: Remove obsolete comment about indenting.
3036
3037 2012-05-06  Bruno Haible  <bruno@clisp.org>
3038
3039         Tests for module 'sh-quote'.
3040         * modules/sh-quote-tests: New file.
3041         * tests/test-sh-quote.c: New file.
3042
3043 2012-05-06  Bruno Haible  <bruno@clisp.org>
3044
3045         sh-quote: Improve shell_quote_argv's signature.
3046         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3047         * lib/sh-quote.c (shell_quote_argv): Likewise.
3048
3049 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3050
3051         stdint: document issues with int_fast8_t etc.
3052         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3053         stdint.h substitutes may define these types differently.  See
3054         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3055
3056 2012-05-05  Bruno Haible  <bruno@clisp.org>
3057
3058         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3059         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3060         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3061         or 'guessing no (mishandles large arguments)'.
3062
3063 2012-05-05  Bruno Haible  <bruno@clisp.org>
3064
3065         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3066         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3067         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3068         set gl_cv_func_link_follows_symlink to "guessing no".
3069
3070 2012-05-05  Bruno Haible  <bruno@clisp.org>
3071
3072         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3073         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3074         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3075         "guessing no".
3076         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3077
3078 2012-05-05  Bruno Haible  <bruno@clisp.org>
3079
3080         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3081         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3082         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3083         set gl_cv_struct_dirent_d_ino to "guessing yes".
3084
3085 2012-05-05  Bruno Haible  <bruno@clisp.org>
3086
3087         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3088         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3089         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3090         "guessing yes".
3091
3092 2012-05-05  Bruno Haible  <bruno@clisp.org>
3093
3094         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3095         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3096         compiling to a glibc system, set gl_cv_func_signbit and
3097         gl_cv_func_signbit_gcc to "guessing yes".
3098
3099 2012-05-05  Bruno Haible  <bruno@clisp.org>
3100
3101         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3102         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3103         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3104         to "guessing yes".
3105         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3106         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3107
3108 2012-05-05  Bruno Haible  <bruno@clisp.org>
3109
3110         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3111         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3112         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3113         gl_cv_func_realpath_works to "guessing yes".
3114
3115 2012-05-05  Bruno Haible  <bruno@clisp.org>
3116
3117         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3118         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3119         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3120
3121 2012-05-04  Bruno Haible  <bruno@clisp.org>
3122
3123         Tweak last commit.
3124         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3125         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3126
3127 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3128
3129         unistd_h: make it easier to avoid sys_types_h
3130         This is useful for Emacs, which has its own method of porting to
3131         Windows, and which therefore does not need the sys_types_h module.
3132         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3133         code moved here from gl_SYS_TYPES_H.
3134         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3135         using the code directly.
3136         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3137         gl_SYS_TYPES_H.
3138         * modules/sys_types (Files):
3139         * modules/unistd (Files): Add m4/off_t.m4.
3140
3141 2012-05-03  Bruno Haible  <bruno@clisp.org>
3142
3143         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3144         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3145         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3146         "guessing yes" or "guessing no".
3147         (gl_FUNC_LSTAT): Update.
3148         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3149         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3150         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3151
3152 2012-05-03  Bruno Haible  <bruno@clisp.org>
3153
3154         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3155         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3156         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3157         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3158         cross-compiling, choose the first alternative on glibc systems.
3159         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3160
3161 2012-05-03  Bruno Haible  <bruno@clisp.org>
3162
3163         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3164         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3165         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3166
3167 2012-05-03  Bruno Haible  <bruno@clisp.org>
3168
3169         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3170         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3171
3172 2012-05-03  Bruno Haible  <bruno@clisp.org>
3173
3174         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3175         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3176         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3177         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3178         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3179         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3180         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3181         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3182         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3183         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3184         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3185         gl_cv_func_chown_ctime_works to "guessing yes".
3186         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3187         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3188         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3189         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3190         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3192         compiling to glibc systems, set gl_cv_func_open_directory_works to
3193         "guessing yes".
3194         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3195         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3196         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3197         "guessing yes".
3198         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3199         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3200         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3201         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3202         "guessing yes".
3203         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3204         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3205         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3206         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3207         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3208         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3209         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3210         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3211         "guessing yes".
3212         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3213         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3214         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3215         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3216         "guessing yes".
3217         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3218         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3219         "guessing yes".
3220         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3221         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3222         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3223         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3224         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3225         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3226         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3227         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3228         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3229         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3230         "guessing yes".
3231         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3232         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3233         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3234         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3235         "guessing yes".
3236         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3237         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3238         "guessing yes".
3239         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3240         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3241         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3242         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3243         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3244         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3245         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3246         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3247         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3248         "guessing yes".
3249         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3250         compiling to glibc systems, set gl_cv_func_mknod_works to
3251         "guessing yes".
3252         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3253         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3254         "guessing yes".
3255         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3256         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3257         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3258         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3259         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3260         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3261         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3262         compiling to glibc systems, set gl_cv_func_svid_putenv to
3263         "guessing yes".
3264         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3265         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3266         "guessing yes".
3267         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3268         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3269         "guessing yes".
3270         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3271         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3272         to "guessing yes".
3273         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3274         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3275         to "guessing yes".
3276         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3277         compiling to glibc systems, set gl_cv_func_rmdir_works to
3278         "guessing yes".
3279         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3280         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3281         gl_cv_func_unlink_parent_fails to "guessing yes".
3282         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3283         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3284         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3285         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3286         gl_cv_func_rename_dest_works to "guessing yes".
3287         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3288         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3289         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3290         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3291         "guessing yes".
3292         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3293         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3294         "guessing yes".
3295         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3296         compiling to glibc systems, set gl_cv_func_setenv_works to
3297         "guessing yes".
3298         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3299         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3300         "guessing yes".
3301         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3302         compiling to glibc systems, set gl_cv_func_sleep_works to
3303         "guessing yes".
3304         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3305         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3306         "guessing yes".
3307         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3308         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3309         "guessing yes".
3310         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3311         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3312         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3313         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3314         "guessing yes".
3315         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3316         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3317         "guessing yes".
3318         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3319         compiling to glibc systems, set gl_cv_func_usleep_works to
3320         "guessing yes".
3321         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3322         compiling to glibc systems, set gl_cv_func_futimesat_works to
3323         "guessing yes".
3324
3325 2012-05-03  Bruno Haible  <bruno@clisp.org>
3326
3327         Say "guessing yes" or "guessing no" when cross-compiling.
3328         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3329         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3330         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3331         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3332         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3333         am_cv_func_working_getline to "guessing yes" or "guessing no".
3334         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3335         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3336         (gl_FUNC_MEMMEM): When cross-compiling, set
3337         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3338         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3339         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3341         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3342         "guessing no".
3343         (gl_FUNC_STRCASESTR): When cross-compiling, set
3344         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3345         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3346         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3347         (gl_FUNC_STRSTR): When cross-compiling, set
3348         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3349         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3350         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3351         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3352         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3353
3354 2012-05-01  Bruno Haible  <bruno@clisp.org>
3355
3356         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3357         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3358         * build-aux/reloc-ldflags: Likewise.
3359         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3360
3361 2012-05-01  Bruno Haible  <bruno@clisp.org>
3362
3363         gnulib-tool: Remove transitional code.
3364         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3365         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3366
3367 2012-05-01  Bruno Haible  <bruno@clisp.org>
3368
3369         getcwd: Fix misindentation.
3370         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3371
3372 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3373
3374         exclude: process exclude and include directives in order
3375         This restores the pre-2009 behavior, and is part of a fix of a
3376         grep bug reported by Quentin Arce in
3377         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3378         * lib/exclude.c (struct exclude): Remove 'tail' member.
3379         (new_exclude_segment): Prepend the new segment instead of appending.
3380         Return void, since that's now more convenient.
3381         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3382         (file_name_matches): Renamed from excluded_file_name_p.
3383         (file_pattern_matches, file_name_matches):
3384         Return true if the pattern matches, not if it excludes.
3385         All callers changed.
3386         (excluded_file_name): Process the list in reverse order;
3387         since the list is now reversed this restores the pre-2009 behavior.
3388         (add_exclude): Adjust to new reversed-order list.  Use local var
3389         rather than macro, for clarity.
3390         * tests/test-exclude7.sh: Adjust to corrected behavior.
3391
3392         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3393         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3394         it's not possible here.  Handle the case of \ at end of pattern
3395         without dumping core.
3396         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3397
3398         _Noreturn: future-proof non-GNU and non-MSVC compilers
3399         * build-aux/snippet/_Noreturn.h (_Noreturn):
3400         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3401         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3402         C11 or later.  This is more likely to work with random future C
3403         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3404         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3405
3406         exclude: handle wildcards with FNM_EXTMATCH
3407         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3408         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3409         comment that "has wildcards" really means "has or may have
3410         wildcards".  Simplify by avoiding the need to call strcspn.
3411
3412 2012-04-29  Bruno Haible  <bruno@clisp.org>
3413
3414         gnulib-tool: Fix list of authors.
3415         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3416
3417 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3418
3419         bootstrap: support Automake-NG in $buildreq
3420         * bootstrap (check_versions): Handle automake and aclocal from
3421         Automake-NG specially.  They can be specified as respectively
3422         the "automake-ng" and "aclocal-ng" requirements.
3423
3424 2012-04-25  Eric Blake  <eblake@redhat.com>
3425
3426         bootstrap: only force latest Makefile.in.in for gettext module
3427         * build-aux/bootstrap (with_gettext): Only install latest
3428         Makefile.in.in for projects requesting bleeding edge gettext.
3429
3430 2012-04-22  Bruno Haible  <bruno@clisp.org>
3431
3432         doc: Mention reason for replacement on glibc/Linux systems.
3433         * doc/posix-functions/dprintf.texi: Mention the problem with special
3434         'long double' values.
3435         * doc/posix-functions/fprintf.texi: Likewise.
3436         * doc/posix-functions/printf.texi: Likewise.
3437         * doc/posix-functions/snprintf.texi: Likewise.
3438         * doc/posix-functions/sprintf.texi: Likewise.
3439         * doc/posix-functions/vdprintf.texi: Likewise.
3440         * doc/posix-functions/vfprintf.texi: Likewise.
3441         * doc/posix-functions/vprintf.texi: Likewise.
3442         * doc/posix-functions/vsnprintf.texi: Likewise.
3443         * doc/posix-functions/vsprintf.texi: Likewise.
3444         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3445         platforms with F_DUPFD_CLOEXEC problems.
3446         * doc/posix-functions/glob.texi: Mention which platforms are affected
3447         by the problem with symbolic links.
3448         * doc/posix-functions/linkat.texi: Mention the problem with
3449         AT_SYMLINK_FOLLOW on Linux.
3450
3451 2012-04-22  Bruno Haible  <bruno@clisp.org>
3452
3453         pwrite: Don't replace on all platforms.
3454         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3455
3456 2012-04-22  Bruno Haible  <bruno@clisp.org>
3457
3458         rint* tests: Avoid gcc warnings.
3459         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3460         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3461         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3462
3463 2012-04-21  Bruno Haible  <bruno@clisp.org>
3464
3465         users.txt: Update.
3466         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3467         switched from CVS to git, bzr, or svn.
3468
3469 2012-04-21  Bruno Haible  <bruno@clisp.org>
3470
3471         Large File Support for native Windows platforms.
3472
3473         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3474         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3475
3476         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3477         type.
3478         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3479         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3480         * doc/posix-headers/sys_types.texi: Mention the effect of the
3481         'largefile' module.
3482
3483         * lib/fcntl.in.h: Add comments about off_t.
3484         * modules/fcntl-h (Depends-on): Add sys_types.
3485
3486         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3487         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3488         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3489         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3490         * modules/unistd (Depends-on): Add sys_types.
3491         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3492
3493         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3494         instead of lseek.
3495         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3496         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3497         * modules/lseek (Depends-on): Add sys_types.
3498
3499         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3500         msvc-nothrow.h.
3501         (SetFileSize): New function.
3502         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3503         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3504         if Large File Support is requested.
3505         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3506         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3507
3508         * lib/stdio.in.h: Add comments about off_t.
3509         * modules/stdio (Depends-on): Add sys_types.
3510
3511         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3512         instead of ftello.
3513         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3514         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3515         (gl_PREREQ_FTELLO): New macro.
3516         * modules/ftello (Depends-on): Add sys_types.
3517         (configure.ac): Incoke gl_PREREQ_FTELLO.
3518
3519         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3520         instead of fseeko.
3521         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3522         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3523         (gl_PREREQ_FSEEKO): New macro.
3524         * modules/fseeko (Depends-on): Add sys_types.
3525         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3526
3527         * lib/sys_stat.in.h: Add comments about off_t.
3528         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3529         64-bit integer for st_size in 'struct stat'.
3530         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3531         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3532         * modules/sys_stat (Depends-on): Add sys_types.
3533         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3534
3535         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3536         instead of stat or _stat.
3537
3538         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3539         'struct _stati64' instead of fstat and 'struct stat'.
3540         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3541         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3542
3543         Reported by Ray Satiro <raysatiro@yahoo.com>.
3544
3545 2012-04-19  Eric Blake  <eblake@redhat.com>
3546
3547         bootstrap: accommodate older libtool
3548         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3549         Reported by Daniel P. Berrange.
3550
3551 2012-04-19  Jim Meyering  <meyering@redhat.com>
3552
3553         announce-gen: avoid failure due to lack of Digest::SHA1
3554         Even with the preferred Digest::SHA available, this script
3555         would fail when the backup module, Digest::SHA1, was not installed.
3556         * build-aux/announce-gen: Quote the conditional use of "use".
3557         Reported by Reuben Thomas in:
3558         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3559
3560         bootstrap: don't let a user's CDPATH setting affect this script
3561         When CDPATH is set, cd will sometimes generate output.
3562         When "cd" is run in a subshell whose output matters, that
3563         surprising-to-some output can cause malfunction.
3564         Unsetting CDPATH turns off this shell "feature."
3565         * build-aux/bootstrap (CDPATH): Unset.
3566         Reported by Reuben Thomas in:
3567         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3568         and inspired by his patch here:
3569         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3570
3571 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3572         and Jim Meyering  <meyering@redhat.com>
3573
3574         maint.mk: catch "see @xref{}" and similar
3575         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3576         prohibit "See also @xref{", "Also see @pxref{", and similar.
3577
3578 2012-04-16  Jim Meyering  <meyering@redhat.com>
3579
3580         bootstrap: really use gnulib's po/Makefile.in.in
3581         * build-aux/bootstrap: Correct the source file name in previous change.
3582         Reported by Akim Demaille.
3583
3584         configmake: correct minor inconsistency in Makefile rule
3585         * modules/configmake (Makefile.am): All other rules like this one
3586         run the final "mv -f ..." in the same backslash-continued command
3587         as the one that does everything else.  This one put the mv -f ...
3588         command on a separate, non-backslash-continued line.
3589         Make it like the others.
3590
3591         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3592         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3593         the one from gettext.  Reported by Akim Demaille.
3594
3595 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3596
3597         Fix recursion of install-* into po directories.
3598         Bison's install-pdf bug reported by Hans Aberg at
3599         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3600         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3601         (install-info, install-pdf, install-ps): New targets.
3602
3603 2012-04-16  Jim Meyering  <meyering@redhat.com>
3604
3605         maint: avoid spurious "make sc_maint" failure
3606         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3607         exempt all *.class file names, for lib/javaversion.class.
3608
3609 2012-04-15  Bruno Haible  <bruno@clisp.org>
3610
3611         lseek: Make configure test independent of environment.
3612         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3613         Windows, we know that lseek() on pipes is broken; skip the runtime
3614         test.
3615
3616 2012-04-14  Bruno Haible  <bruno@clisp.org>
3617
3618         stat: Bypass buggy override in mingw64.
3619         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3620         * lib/stat.c (stat) [mingw64]: Define to _stat.
3621         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3622
3623 2012-04-14  Bruno Haible  <bruno@clisp.org>
3624
3625         pathmax: Fix compilation error on MSVC 9.
3626         * modules/pathmax (Depends-on): Add unistd.
3627
3628 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3629
3630         README: document pointer comparison assumption
3631         * README (Portability guidelines): Document assumption about
3632         pointer comparisons, in response to a recent bug-gnulib comment by
3633         Jeffrey Kegler.
3634
3635 2012-04-12  Bruno Haible  <bruno@clisp.org>
3636
3637         Tests for module 'getrusage'.
3638         * modules/getrusage-tests: New file.
3639         * tests/test-getrusage.c: New file.
3640
3641         New module 'getrusage'.
3642         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3643         warn-on-use.h.
3644         (getrusage): New declaration.
3645         * lib/getrusage.c: New file.
3646         * m4/getrusage.m4: New file.
3647         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3648         is declared.
3649         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3650         HAVE_GETRUSAGE.
3651         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3652         snippet/c++defs, snippet/warn-on-use.
3653         (Makefile.am): Update generation of sys/resource.h. Substitute
3654         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3655         * modules/getrusage: New file.
3656         * doc/posix-functions/getrusage.texi: Mention the new module.
3657
3658 2012-04-12  Bruno Haible  <bruno@clisp.org>
3659
3660         Tests for module 'sys_resource'.
3661         * modules/sys_resource-tests: New file.
3662         * tests/test-sys_resource.c: New file.
3663
3664         New module 'sys_resource'.
3665         * lib/sys_resource.in.h: New file.
3666         * m4/sys_resource_h.m4: New file.
3667         * modules/sys_resource: New file.
3668         * doc/posix-headers/sys_resource.texi: Mention the new module.
3669
3670 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3671
3672         ioctl: Fix compilation error on mingw.
3673         * lib/ioctl.c: Include <windows.h>.
3674         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3675
3676 2012-04-04  Jim Meyering  <meyering@redhat.com>
3677
3678         regex: correct #pragma guard expression
3679         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3680         not 4.3.  Correct its cpp guard expression.
3681
3682 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3683
3684         regex: remove unnecessary type punning
3685         Problem reported by Vladimir Serbinenko in
3686         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3687         * lib/regex.h (struct re_pattern_buffer): Change the type of
3688         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3689         Fix comment to match code.
3690         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3691         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3692         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3693         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3694         (set_regs):
3695         Omit no-longer-necessary casts.
3696
3697 2012-04-03  Bruno Haible  <bruno@clisp.org>
3698
3699         Tests for module 'ilogbl'.
3700         * modules/ilogbl-tests: New file.
3701         * tests/test-ilogbl.c: New file.
3702
3703         New module 'ilogbl'.
3704         * lib/math.in.h (ilogbl): New declaration.
3705         * lib/ilogbl.c: New file.
3706         * m4/ilogbl.m4: New file.
3707         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3709         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3710         Split sed invocation, to avoid the limit of 100 substitutions of
3711         HP-UX 'sed'.
3712         * modules/ilogbl: New file.
3713         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3714         * doc/posix-functions/ilogbl.texi: Mention the new module.
3715
3716 2012-04-03  Bruno Haible  <bruno@clisp.org>
3717
3718         Tests for module 'ilogbf'.
3719         * modules/ilogbf-tests: New file.
3720         * tests/test-ilogbf.c: New file.
3721
3722         New module 'ilogbf'.
3723         * lib/math.in.h (ilogbf): New declaration.
3724         * lib/ilogbf.c: New file.
3725         * m4/ilogbf.m4: New file.
3726         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3728         REPLACE_ILOGBF.
3729         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3730         REPLACE_ILOGBF.
3731         * modules/ilogbf: New file.
3732         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3733         * doc/posix-functions/ilogbf.texi: Mention the new module.
3734
3735 2012-04-03  Bruno Haible  <bruno@clisp.org>
3736
3737         Tests for module 'ilogb'.
3738         * modules/ilogb-tests: New file.
3739         * tests/test-ilogb.c: New file.
3740         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3741         tests/test-logb-ieee.h.
3742
3743         New module 'ilogb'.
3744         * lib/math.in.h (ilogb): New declaration.
3745         * lib/ilogb.c: New file.
3746         * m4/ilogb.m4: New file.
3747         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3749         REPLACE_ILOGB.
3750         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3751         REPLACE_ILOGB.
3752         * modules/ilogb: New file.
3753         * tests/test-math-c++.cc: Check the declaration of ilogb.
3754         * doc/posix-functions/ilogb.texi: Mention the new module.
3755
3756 2012-04-03  Bruno Haible  <bruno@clisp.org>
3757
3758         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3759         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3760         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3761         (main): Check their values.
3762         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3763         problem.
3764
3765 2012-04-03  Bruno Haible  <bruno@clisp.org>
3766
3767         Tests for module 'logbl-ieee'.
3768         * modules/logbl-ieee-tests: New file.
3769         * tests/test-logbl-ieee.c: New file.
3770
3771         New module 'logbl-ieee'.
3772         * modules/logbl-ieee: New file.
3773
3774         Tests for module 'logb-ieee'.
3775         * modules/logb-ieee-tests: New file.
3776         * tests/test-logb-ieee.c: New file.
3777
3778         New module 'logb-ieee'.
3779         * modules/logb-ieee: New file.
3780
3781         Tests for module 'logbf-ieee'.
3782         * modules/logbf-ieee-tests: New file.
3783         * tests/test-logbf-ieee.c: New file.
3784         * tests/test-logb-ieee.h: New file.
3785
3786         New module 'logbf-ieee'.
3787         * modules/logbf-ieee: New file.
3788
3789 2012-04-03  Bruno Haible  <bruno@clisp.org>
3790
3791         Tests for module 'logbl'.
3792         * modules/logbl-tests: New file.
3793         * tests/test-logbl.c: New file.
3794
3795         New module 'logbl'.
3796         * lib/math.in.h (logbl): New declaration.
3797         * lib/logbl.c: New file.
3798         * m4/logbl.m4: New file.
3799         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3801         REPLACE_LOGBL.
3802         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3803         REPLACE_LOGBL.
3804         * modules/logbl: New file.
3805         * tests/test-math-c++.cc: Check the declaration of logbl.
3806         * doc/posix-functions/logbl.texi: Mention the new module.
3807
3808 2012-04-02  Bruno Haible  <bruno@clisp.org>
3809
3810         Tests for module 'logbf'.
3811         * modules/logbf-tests: New file.
3812         * tests/test-logbf.c: New file.
3813
3814         New module 'logbf'.
3815         * lib/math.in.h (logbf): New declaration.
3816         * lib/logbf.c: New file.
3817         * m4/logbf.m4: New file.
3818         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3819         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3820         REPLACE_LOGBF.
3821         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3822         REPLACE_LOGBF.
3823         * modules/logbf: New file.
3824         * tests/test-math-c++.cc: Check the declaration of logbf.
3825         * doc/posix-functions/logbf.texi: Mention the new module.
3826
3827 2012-04-02  Bruno Haible  <bruno@clisp.org>
3828
3829         logb tests: More tests.
3830         * tests/test-logb.h: New file, based on tests/test-logb.c and
3831         tests/test-frexp.h.
3832         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3833         (main): Just invoke test_function.
3834         * modules/logb-tests (Files): Add tests/test-logb.h,
3835         tests/minus-zero.h, tests/randomd.c.
3836         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3837
3838         logb: Provide replacement and workarounds.
3839         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3840         is 1.
3841         * lib/logb.c: New file.
3842         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3843         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3844         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3845         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3846         * modules/logb (Files): Add lib/logb.c.
3847         (Depends-on): Add isfinite, frexp, isnand.
3848         (configure.ac): Compile the replacement code logb.c if needed.
3849         * tests/test-math-c++.cc: Check the declaration of logb.
3850         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3851         with subnormal numbers.
3852
3853 2012-04-02  Bruno Haible  <bruno@clisp.org>
3854
3855         log10* tests: Speed up.
3856         * tests/test-log10.h (test_function): Reduce amount of random numbers
3857         to test.
3858
3859 2012-04-01  Bruno Haible  <bruno@clisp.org>
3860
3861         logf-ieee: Fix test whether logf works.
3862         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3863
3864 2012-04-01  Bruno Haible  <bruno@clisp.org>
3865
3866         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3867         * lib/log10l.c: Include <float.h>
3868         (log10l): On IRIX, normalize the +Infinity value.
3869         * modules/log10l (Depends-on): Add 'float'.
3870         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3871         +Infinity.
3872
3873         log10f-ieee: Work around test failure on NetBSD 5.1.
3874         * m4/log10f-ieee.m4: New file.
3875         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3876         test whether log10f works with a negative argument. Replace it if not.
3877         * lib/log10f.c (log10f): For negative arguments, return NaN.
3878         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3879         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3880         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3881
3882         log10f-ieee: Work around test failure on Solaris 9.
3883         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3884         (configure.ac): Require gl_FUNC_LOG10F.
3885
3886         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3887         * m4/log10-ieee.m4: New file.
3888         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3889         whether log10 works with a negative argument. Replace it if not.
3890         * lib/log10.c (log10): For negative arguments, return NaN.
3891         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3892         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3893         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3894
3895         Tests for module 'log10l-ieee'.
3896         * modules/log10l-ieee-tests: New file.
3897         * tests/test-log10l-ieee.c: New file.
3898
3899         New module 'log10l-ieee'.
3900         * modules/log10l-ieee: New file.
3901
3902         Tests for module 'log10-ieee'.
3903         * modules/log10-ieee-tests: New file.
3904         * tests/test-log10-ieee.c: New file.
3905
3906         New module 'log10-ieee'.
3907         * modules/log10-ieee: New file.
3908
3909         Tests for module 'log10f-ieee'.
3910         * modules/log10f-ieee-tests: New file.
3911         * tests/test-log10f-ieee.c: New file.
3912         * tests/test-log10-ieee.h: New file.
3913
3914         New module 'log10f-ieee'.
3915         * modules/log10f-ieee: New file.
3916
3917 2012-04-01  Bruno Haible  <bruno@clisp.org>
3918
3919         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3920         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3921         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3922         workaround.
3923         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3924         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3926         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3927         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3928         (Depends-on): Update conditions.
3929         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3930         IRIX 6.5, OSF/1 5.1 problems.
3931
3932 2012-04-01  Bruno Haible  <bruno@clisp.org>
3933
3934         log10f: Work around OSF/1 5.1 bug.
3935         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3936         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3937         workaround.
3938         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3939         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3941         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3942         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3943         (Depends-on): Update conditions.
3944         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3945
3946 2012-04-01  Bruno Haible  <bruno@clisp.org>
3947
3948         log10: Work around OSF/1 5.1 bug.
3949         * lib/math.in.h (log10): New declaration.
3950         * lib/log10.c: New file.
3951         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3952         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3953         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3955         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3956         * modules/log10 (Files): Add lib/log10.c.
3957         (Depends-on): Add math.
3958         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3959         * tests/test-math-c++.cc: Check the declaration of log10.
3960         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3961
3962 2012-03-31  Bruno Haible  <bruno@clisp.org>
3963
3964         log10l tests: More tests.
3965         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3966         tests/minus-zero.h, tests/randoml.c.
3967         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3968         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3969         (main): Invoke test_function.
3970
3971         log10f tests: More tests.
3972         * modules/log10f-tests (Files): Add tests/test-log10.h,
3973         tests/minus-zero.h, tests/randomf.c.
3974         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3975         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3976         (main): Invoke test_function.
3977
3978         log10 tests: More tests.
3979         * tests/test-log10.h: New file.
3980         * modules/log10-tests (Files): Add tests/test-log10.h,
3981         tests/minus-zero.h, tests/randomd.c.
3982         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3983         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3984         (main): Invoke test_function.
3985
3986 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3987
3988         fflush: Fix syntax error.
3989         * lib/fflush.c: Include unused-parameter.h, needed for
3990         _GL_UNUSED_PARAMETER.
3991         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3992
3993 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3994
3995         regex: pacify GCC when compiling GRUB
3996         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3997         a diagnostic.  Reported by Vladimir Serbinenko in
3998         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3999
4000 2012-03-29  Eric Blake  <eblake@redhat.com>
4001
4002         stdio: don't assume gets any more
4003         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4004         support.
4005         * modules/stdio (Makefile.am): Likewise.
4006         * lib/stdio-read.c (gets): Likewise.
4007         * tests/test-stdio-c++.cc: Likewise.
4008         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4009         * lib/stdio.in.h (gets): Make warning occur in more places.
4010         * doc/posix-functions/gets.texi (gets): Update documentation.
4011         Reported by Christer Solskogen.
4012
4013         maint.mk: fix syntax checks without exclusions
4014         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4015         Reported by Daniel P. Berrange.
4016
4017         strerror_r: avoid compiler warning
4018         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4019         level.
4020
4021         fflush: avoid compiler warning
4022         * lib/fflush.c (update_fpos_cache): Mark variables that are
4023         potentially unused.
4024
4025 2012-03-25  Bruno Haible  <bruno@clisp.org>
4026
4027         Tests for module 'localeconv'.
4028         * modules/localeconv-tests: New file.
4029         * tests/test-localeconv.c: New file.
4030
4031         New module 'localeconv'.
4032         * lib/locale.in.h (localeconv): New declaration.
4033         * lib/localeconv.c: New file.
4034         * m4/localeconv.m4: New file.
4035         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4036         REPLACE_LOCALECONV.
4037         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4038         REPLACE_LOCALECONV.
4039         * modules/localeconv: New file.
4040         * modules/nl_langinfo (Depends-on): Add localeconv.
4041         * modules/human (Depends-on): Likewise.
4042         * doc/posix-functions/localeconv.texi: Mention the new module.
4043
4044 2012-03-25  Bruno Haible  <bruno@clisp.org>
4045
4046         locale: Provide a complete 'struct lconv'.
4047         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4048         'struct lconv' does not contain int_p_cs_precedes.
4049         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4050         * doc/posix-headers/locale.texi: Update.
4051
4052         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4053         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4054         * doc/posix-headers/locale.texi: Update.
4055
4056         locale: Provide a working 'struct lconv'.
4057         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4058         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4059         'struct lconv' does not even contain decimal_point.
4060         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4061         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4062         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4063         * doc/posix-headers/locale.texi: Mention the problems with
4064         'struct lconv'.
4065         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4066
4067 2012-03-24  Bruno Haible  <bruno@clisp.org>
4068
4069         Enable common subexpression optimization in GCC.
4070         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4071         macros.
4072         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4073         GCC attribute 'const'.
4074         (uc_locale_language): Declare with GCC attribute 'pure'.
4075         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4076         with GCC attribute 'const'.
4077         * lib/unictype.in.h (uc_is_general_category_withtable,
4078         uc_combining_class, uc_combining_class_name,
4079         uc_combining_class_long_name, uc_bidi_class_name,
4080         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4081         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4082         uc_decimal_value, uc_digit_value, uc_numeric_value,
4083         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4084         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4085         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4086         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4087         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4088         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4089         Declare with GCC attribute 'const'.
4090         (uc_general_category_name, uc_general_category_long_name,
4091         uc_general_category_byname, uc_general_category,
4092         uc_is_general_category, uc_combining_class_byname,
4093         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4094         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4095         Declare with GCC attribute 'pure'.
4096         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4097         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4098         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4099         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4100         with GCC attribute 'pure'.
4101         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4102         'const'.
4103         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4104         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4105         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4106         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4107         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4108         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4109         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4110         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4111         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4112         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4113         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4114         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4115         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4116         GCC attribute 'pure'.
4117         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4118         'const'.
4119         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4120         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4121         u32_strwidth): Declare with GCC attribute 'pure'.
4122
4123         Enable common subexpression optimization in GCC.
4124         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4125         (alphasort): Declare with GCC attribute 'pure'.
4126         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4127         (atoll): Declare with GCC attribute 'pure'.
4128         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4129         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4130         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4131         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4132         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4133         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4134         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4135
4136 2012-03-24  Bruno Haible  <bruno@clisp.org>
4137
4138         gnulib-tool: Avoid unintended error output from 'cmp'.
4139         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4140         "cmp -s", not "cmp > /dev/null".
4141
4142 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4143
4144         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4145
4146         It's not just Automake versions < 1.9b that creates an empty
4147         pkgdatadir at installation time if pkgdata_DATA is specified
4148         to empty; modern automake versions do this as well, at least
4149         until automake 1.11.4 (not yet released at the moment of writing,
4150         but soon to appear).  That behaviour was generally considered a
4151         feature rather than a bug, at least until this discussion:
4152         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4153
4154         See also automake bugs #10997 and #11030.
4155
4156         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4157         reference to relevant automake bug numbers.
4158         (func_emit_tests_Makefile_am): Likewise.
4159
4160 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4161
4162         announce-gen: use Digest::SHA when possible
4163         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4164         back to Digest::SHA1 if necessary.
4165
4166 2012-03-20  Jim Meyering  <meyering@redhat.com>
4167
4168         tests: avoid gcc warnings about argv vs. const initializers
4169         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4170         warnings about discarding 'const' qualifier from pointer target type.
4171         * tests/test-posix_spawn2.c (main): Likewise.
4172
4173 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4174
4175         README-release: simplify slightly
4176         * top/README-release: Run "git checkout master" only once.
4177
4178 2012-03-15  Mark Wielaard  <mark@klomp.org>
4179
4180         git-merge-changelog: add specific example on how to use with hg.
4181         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4182
4183 2012-03-18  Mark Wielaard  <mark@klomp.org>
4184
4185         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4186
4187 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4188
4189         git-version-gen: don't let "prefix" envvar cause trouble
4190         * build-aux/git-version-gen (prefix): Initialize properly,
4191         so as not to use a value specified via the environment.
4192         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4193
4194 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4195
4196         regex: diagnose too-large repeat counts in EREs
4197         Previously, the code did not diagnose the too-large repeat count
4198         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4199         as if it were 'b\{1000000000}', which is unexpected.
4200         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4201         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4202         is a reasonable one for this problem.  Another option would be to
4203         create a new REG_OVERFLOW error for repeat counts that are too large.
4204         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4205         count is too large, so that the caller can distinguish the two cases.
4206         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4207         "Too large" return code, and that repeat counts are one example of this.
4208
4209 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4210
4211         doc: some glibc x32 integer width issues
4212         * doc/posix-headers/sys_types.texi (sys/types.h):
4213         * doc/posix-headers/time.texi (time.h):
4214         Mention that glibc x32 does not conform to POSIX in a couple of
4215         areas related to integer widths.
4216
4217 2012-03-15  Bruno Haible  <bruno@clisp.org>
4218
4219         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4220         * lib/fma.c (VOLATILE): New macro.
4221         (FUNC): Use it to work around a GCC compiler bug.
4222
4223 2012-03-13  Bruno Haible  <bruno@clisp.org>
4224
4225         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4226         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4227         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4228         REPLACE_HYPOTL to 1.
4229         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4230
4231 2012-03-13  Bruno Haible  <bruno@clisp.org>
4232
4233         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4234         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4235         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4236         REPLACE_REMAINDERL to 1.
4237         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4238         bug.
4239
4240 2012-03-13  Bruno Haible  <bruno@clisp.org>
4241
4242         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4243         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4244         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4245         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4246         too big rounding errors.
4247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4248         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4249         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4250         (Depends-on): Update conditions.
4251         * tests/test-sqrtl.c (my_ldexpl): New function.
4252         (main): Add test of a particular value.
4253         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4254
4255 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4256
4257         doc: Update timer_* platform portability notes.
4258         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4259         that always return ENOSYS.
4260         * doc/posix-functions/timer_delete.texi: Likewise.
4261         * doc/posix-functions/timer_gettime.texi: Likewise.
4262         * doc/posix-functions/timer_settime.texi: Likewise.
4263
4264 2012-03-13  Bruno Haible  <bruno@clisp.org>
4265
4266         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4267         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4268         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4269         REPLACE_CBRTL to 1.
4270         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4271
4272 2012-03-13  Bruno Haible  <bruno@clisp.org>
4273
4274         remainderl: Avoid compilation error on AIX >= 5.2.
4275         * lib/math.in.h (remainderl): Undefine macro from the system header.
4276
4277 2012-03-13  Bruno Haible  <bruno@clisp.org>
4278
4279         Avoid compilation errors with MSVC option -fp:strict.
4280         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4281         * lib/cbrtf.c: Likewise.
4282         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4283
4284 2012-03-12  Bruno Haible  <bruno@clisp.org>
4285
4286         uninorm: Don't crash in out-of-memory conditions.
4287         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4288         gracefully.
4289         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4290         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4291
4292 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4293
4294         quote: fix syntax-check
4295         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4296         also exports quote_quoting_options.
4297
4298 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4299
4300         Collapse list of copyright years to ranges.  See
4301         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4302         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4303         build-aux/csharpexec.sh.in, build-aux/gnupload,
4304         build-aux/install-reloc, build-aux/javacomp.sh.in,
4305         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4306         build-aux/move-if-change, build-aux/reloc-ldflags,
4307         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4308
4309 2012-03-11  Bruno Haible  <bruno@clisp.org>
4310
4311         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4312         * m4/log2f-ieee.m4: New file.
4313         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4314         whether log2f works with a minus zero argument. Replace it if not.
4315         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4316         (Depends-on): Add log2-ieee.
4317         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4318         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4319
4320         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4321         * m4/log2-ieee.m4: New file.
4322         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4323         whether log2 works with a minus zero argument. Replace it if not.
4324         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4325         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4326         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4327
4328         Tests for module 'log2l-ieee'.
4329         * modules/log2l-ieee-tests: New file.
4330         * tests/test-log2l-ieee.c: New file.
4331
4332         New module 'log2l-ieee'.
4333         * modules/log2l-ieee: New file.
4334
4335         Tests for module 'log2-ieee'.
4336         * modules/log2-ieee-tests: New file.
4337         * tests/test-log2-ieee.c: New file.
4338
4339         New module 'log2-ieee'.
4340         * modules/log2-ieee: New file.
4341
4342         Tests for module 'log2f-ieee'.
4343         * modules/log2f-ieee-tests: New file.
4344         * tests/test-log2f-ieee.c: New file.
4345         * tests/test-log2-ieee.h: New file.
4346
4347         New module 'log2f-ieee'.
4348         * modules/log2f-ieee: New file.
4349
4350 2012-03-11  Bruno Haible  <bruno@clisp.org>
4351
4352         Tests for module 'log2l'.
4353         * modules/log2l-tests: New file.
4354         * tests/test-log2l.c: New file.
4355
4356         New module 'log2l'.
4357         * lib/math.in.h (log2l): New declaration.
4358         * lib/log2l.c: New file.
4359         * m4/log2l.m4: New file.
4360         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4362         REPLACE_LOG2L.
4363         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4364         REPLACE_LOG2L.
4365         * modules/log2l: New file.
4366         * tests/test-math-c++.cc: Check the declaration of log2l.
4367         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4368         and OSF/1 problems.
4369
4370 2012-03-11  Bruno Haible  <bruno@clisp.org>
4371
4372         Tests for module 'log2f'.
4373         * modules/log2f-tests: New file.
4374         * tests/test-log2f.c: New file.
4375
4376         New module 'log2f'.
4377         * lib/math.in.h (log2f): New declaration.
4378         * lib/log2f.c: New file.
4379         * m4/log2f.m4: New file.
4380         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4382         REPLACE_LOG2F.
4383         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4384         REPLACE_LOG2F.
4385         * modules/log2f: New file.
4386         * tests/test-math-c++.cc: Check the declaration of log2f.
4387         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4388         and OSF/1 and Cygwin problems.
4389
4390 2012-03-11  Bruno Haible  <bruno@clisp.org>
4391
4392         Tests for module 'log2'.
4393         * modules/log2-tests: New file.
4394         * tests/test-log2.c: New file.
4395         * tests/test-log2.h: New file.
4396
4397         New module 'log2'.
4398         * lib/math.in.h (log2): New declaration.
4399         * lib/log2.c: New file.
4400         * m4/log2.m4: New file.
4401         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4403         REPLACE_LOG2.
4404         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4405         REPLACE_LOG2.
4406         * modules/log2: New file.
4407         * tests/test-math-c++.cc: Check the declaration of log2.
4408         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4409         and OSF/1 and Cygwin problems.
4410
4411 2012-03-11  Bruno Haible  <bruno@clisp.org>
4412
4413         exp2* tests: More tests.
4414         * tests/test-exp2.h (test_function): Test all integral arguments that
4415         don't need to overflow or denormalized numbers.
4416         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4417         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4418         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4419
4420 2012-03-10  Bruno Haible  <bruno@clisp.org>
4421
4422         log1pl-ieee: Work around test failure on AIX 7.1.
4423         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4424
4425         log1pl-ieee: Work around test failure on IRIX 6.5.
4426         * m4/log1pl-ieee.m4: New file.
4427         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4428         test whether log1pl works with a minus zero argument. Replace it if
4429         not.
4430         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4432         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4433         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4434         (Depends-on): Update conditions.
4435         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4436         m4/signbit.m4.
4437         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4438         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4439
4440         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4441         * m4/log1pf-ieee.m4: New file.
4442         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4443         test whether log1pf works with a minus zero argument. Replace it if
4444         not.
4445         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4446         m4/signbit.m4.
4447         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4448         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4449
4450         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4451         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4452         (configure.ac): Require gl_FUNC_LOG1PF.
4453
4454         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4455         * m4/log1p-ieee.m4: New file.
4456         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4457         whether log1p works with a minus zero argument. Replace it if not.
4458         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4460         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4461         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4462         (Depends-on): Update conditions.
4463         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4464         m4/signbit.m4.
4465         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4466         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4467
4468         Tests for module 'log1pl-ieee'.
4469         * modules/log1pl-ieee-tests: New file.
4470         * tests/test-log1pl-ieee.c: New file.
4471
4472         New module 'log1pl-ieee'.
4473         * modules/log1pl-ieee: New file.
4474
4475         Tests for module 'log1p-ieee'.
4476         * modules/log1p-ieee-tests: New file.
4477         * tests/test-log1p-ieee.c: New file.
4478
4479         New module 'log1p-ieee'.
4480         * modules/log1p-ieee: New file.
4481
4482         Tests for module 'log1pf-ieee'.
4483         * modules/log1pf-ieee-tests: New file.
4484         * tests/test-log1pf-ieee.c: New file.
4485         * tests/test-log1p-ieee.h: New file.
4486
4487         New module 'log1pf-ieee'.
4488         * modules/log1pf-ieee: New file.
4489
4490 2012-03-10  Bruno Haible  <bruno@clisp.org>
4491
4492         Tests for module 'log1pl'.
4493         * modules/log1pl-tests: New file.
4494         * tests/test-log1pl.c: New file.
4495
4496         New module 'log1pl'.
4497         * lib/math.in.h (log1pl): New declaration.
4498         * lib/log1pl.c: New file.
4499         * m4/log1pl.m4: New file.
4500         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4501         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4502         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4503         * modules/log1pl: New file.
4504         * tests/test-math-c++.cc: Check the declaration of log1pl.
4505         * doc/posix-functions/log1pl.texi: Mention the new module.
4506
4507 2012-03-10  Bruno Haible  <bruno@clisp.org>
4508
4509         Tests for module 'log1pf'.
4510         * modules/log1pf-tests: New file.
4511         * tests/test-log1pf.c: New file.
4512
4513         New module 'log1pf'.
4514         * lib/math.in.h (log1pf): New declaration.
4515         * lib/log1pf.c: New file.
4516         * m4/log1pf.m4: New file.
4517         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4519         REPLACE_LOG1PF.
4520         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4521         REPLACE_LOG1PF.
4522         * modules/log1pf: New file.
4523         * tests/test-math-c++.cc: Check the declaration of log1pf.
4524         * doc/posix-functions/log1pf.texi: Mention the new module.
4525
4526 2012-03-10  Bruno Haible  <bruno@clisp.org>
4527
4528         log1p tests: More tests.
4529         * tests/test-log1p.h: New file.
4530         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4531         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4532         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4533         (main): Invoke test_function.
4534
4535         log1p: Provide replacement for Minix and MSVC.
4536         * lib/math.in.h (log1p): New declaration.
4537         * lib/log1p.c: New file.
4538         * m4/log1p.m4: New file.
4539         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4541         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4542         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4543         (Depends-on): Add math, isnand, log, round.
4544         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4545         HAVE_LOG1P is 0.
4546         * tests/test-math-c++.cc: Check the declaration of log1p.
4547         * doc/posix-functions/log1p.texi: Mention the replacement.
4548
4549 2012-03-10  Bruno Haible  <bruno@clisp.org>
4550
4551         math tests: Small simplification.
4552         * tests/test-exp.h (test_function): Use the same err_bound for
4553         'double' on platforms with sizeof (long double) == sizeof (double)
4554         than on platforms with sizeof (long double) > sizeof (double).
4555         * tests/test-exp2.h (test_function): Likewise.
4556         * tests/test-expm1.h (test_function): Likewise.
4557         * tests/test-log.h (test_function): Likewise.
4558
4559 2012-03-10  Bruno Haible  <bruno@clisp.org>
4560
4561         Fix some comments.
4562         * lib/expl.c: Fix an ambiguous comment.
4563         * lib/expm1.c: Likewise.
4564         * lib/expm1l.c: Likewise.
4565         * lib/exp2.c: Likewise.
4566         * lib/exp2l.c: Likewise.
4567
4568 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4569
4570         regex: allow inclusion of <regex.h> before <limits.h>
4571         Without this patch, portable programs had to include <limits.h> before
4572         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4573         I ran into this problem with a test version of GNU grep on Solaris 8.
4574         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4575         This is done conditionally so that this change can be merged
4576         back to glibc.
4577         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4578         using the included regex.
4579
4580         fts: depend on fdopendir
4581         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4582         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4583         problem was introduced when fdopendir was split out.
4584
4585 2012-03-10  Bruno Haible  <bruno@clisp.org>
4586
4587         Remove unused variables.
4588         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4589         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4590
4591 2012-03-10  Bruno Haible  <bruno@clisp.org>
4592
4593         isnanf-nolibm: Fix last commit.
4594         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4595
4596         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4597         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4598
4599 2012-03-10  Bruno Haible  <bruno@clisp.org>
4600
4601         logf-ieee: Work around test failure on NetBSD 5.1.
4602         * m4/logf-ieee.m4: New file.
4603         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4604         whether logf works with a negative argument. Replace it if not.
4605         * lib/logf.c (logf): For negative arguments, return NaN.
4606         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4607         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4608         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4609
4610         logf-ieee: Work around test failure on Solaris 9.
4611         * modules/logf-ieee (Depends-on): Add log-ieee.
4612         (configure.ac): Require gl_FUNC_LOGF.
4613
4614         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4615         * m4/log-ieee.m4: New file.
4616         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4617         log works with a negative argument. Replace it if not.
4618         * lib/log.c (log): For negative arguments, return NaN.
4619         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4620         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4621         * doc/posix-functions/log.texi: Mention the log-ieee module.
4622
4623         Tests for module 'logl-ieee'.
4624         * modules/logl-ieee-tests: New file.
4625         * tests/test-logl-ieee.c: New file.
4626
4627         New module 'logl-ieee'.
4628         * modules/logl-ieee: New file.
4629
4630         Tests for module 'log-ieee'.
4631         * modules/log-ieee-tests: New file.
4632         * tests/test-log-ieee.c: New file.
4633
4634         New module 'log-ieee'.
4635         * modules/log-ieee: New file.
4636
4637         Tests for module 'logf-ieee'.
4638         * modules/logf-ieee-tests: New file.
4639         * tests/test-logf-ieee.c: New file.
4640         * tests/test-log-ieee.h: New file.
4641
4642         New module 'logf-ieee'.
4643         * modules/logf-ieee: New file.
4644
4645 2012-03-10  Bruno Haible  <bruno@clisp.org>
4646
4647         log: Fix bug introduced on 2012-03-09.
4648         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4649
4650 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4651
4652         timer-time: link explicitly with pthreads on glibc
4653         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4654         to support static linking, when newer glibc is
4655         detected, as that contains pthread emulation of
4656         POSIX timer functions where required.
4657         * modules/timer-time: Depend on threadlib to
4658         pull in the appropriate library to link.
4659
4660 2012-03-10  Bruno Haible  <bruno@clisp.org>
4661
4662         log* tests: More tests.
4663         * tests/test-log.h: New file.
4664         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4665         (main): Invoke test_function.
4666         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4667         (main): Invoke test_function.
4668         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4669         (main): Invoke test_function.
4670         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4671         tests/randomd.c.
4672         (Makefile.am): Add randomd.c to test_log_SOURCES.
4673         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4674         tests/randomf.c.
4675         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4676         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4677         tests/randoml.c.
4678         (Depends-on): Add 'float'.
4679         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4680
4681 2012-03-09  Bruno Haible  <bruno@clisp.org>
4682
4683         logl: Work around OSF/1 5.1 bug.
4684         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4685         * lib/logl.c (logl): If logl exists, use it and provide just the
4686         workaround.
4687         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4688         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4689         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4690         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4691         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4692         (Depends-on): Update conditions.
4693         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4694
4695 2012-03-09  Bruno Haible  <bruno@clisp.org>
4696
4697         logf: Work around OSF/1 5.1 bug.
4698         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4699         * lib/logf.c (logf): If logf exists, use it and provide just the
4700         workaround.
4701         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4702         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4704         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4705         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4706         (Depends-on): Update conditions.
4707         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4708
4709 2012-03-09  Bruno Haible  <bruno@clisp.org>
4710
4711         log: Work around OSF/1 5.1 bug.
4712         * lib/math.in.h (log): New declaration.
4713         * lib/log.c: New file.
4714         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4715         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4716         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4718         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4719         * modules/log (Files): Add lib/log.c.
4720         (Depends-on): Add math.
4721         (configure.ac): If REPLACE_LOG is 1, compile an override.
4722         * tests/test-math-c++.cc: Check the declaration of log.
4723         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4724
4725 2012-03-09  Jim Meyering  <meyering@redhat.com>
4726
4727         readtokens.c: adjust wording in a comment
4728         * lib/readtokens.c: Insert omitted "that" in a comment.
4729
4730 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4731
4732         modechange: add notations +40, 00440, etc.
4733         * lib/modechange.c (mode_compile): Support new notations
4734         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4735
4736 2012-03-08  Bruno Haible  <bruno@clisp.org>
4737
4738         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4739         * m4/exp2l-ieee.m4: New file.
4740         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4741         test whether exp2l works with a NaN argument and with a negative
4742         infinity argument. Replace it if not.
4743         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4745         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4746         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4747         (Depends-on): Update conditions.
4748         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4749         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4750         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4751
4752         Tests for module 'exp2l-ieee'.
4753         * modules/exp2l-ieee-tests: New file.
4754         * tests/test-exp2l-ieee.c: New file.
4755
4756         New module 'exp2l-ieee'.
4757         * modules/exp2l-ieee: New file.
4758
4759         Tests for module 'exp2-ieee'.
4760         * modules/exp2-ieee-tests: New file.
4761         * tests/test-exp2-ieee.c: New file.
4762
4763         New module 'exp2-ieee'.
4764         * modules/exp2-ieee: New file.
4765
4766         Tests for module 'exp2f-ieee'.
4767         * modules/exp2f-ieee-tests: New file.
4768         * tests/test-exp2f-ieee.c: New file.
4769         * tests/test-exp2-ieee.h: New file.
4770
4771         New module 'exp2f-ieee'.
4772         * modules/exp2f-ieee: New file.
4773
4774 2012-03-08  Bruno Haible  <bruno@clisp.org>
4775
4776         Tests for module 'exp2l'.
4777         * modules/exp2l-tests: New file.
4778         * tests/test-exp2l.c: New file.
4779
4780         New module 'exp2l'.
4781         * lib/math.in.h (exp2l): New declaration.
4782         * lib/exp2l.c: New file.
4783         * lib/expl-table.c: New file, extracted from lib/expl.c.
4784         * lib/expl.c (gl_expl_table): New declaration.
4785         (expl): Remove expl_table. Update reference.
4786         * m4/exp2l.m4: New file.
4787         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4789         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4790         * modules/exp2l: New file.
4791         * modules/expl (Files): Add lib/expl-table.c.
4792         (configure.ac): Compile also expl-table.c.
4793         * tests/test-math-c++.cc: Check the declaration of exp2l.
4794         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4795         problem.
4796
4797 2012-03-08  Bruno Haible  <bruno@clisp.org>
4798
4799         Tests for module 'exp2f'.
4800         * modules/exp2f-tests: New file.
4801         * tests/test-exp2f.c: New file.
4802
4803         New module 'exp2f'.
4804         * lib/math.in.h (exp2f): New declaration.
4805         * lib/exp2f.c: New file.
4806         * m4/exp2f.m4: New file.
4807         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4809         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4810         * modules/exp2f: New file.
4811         * tests/test-math-c++.cc: Check the declaration of exp2f.
4812         * doc/posix-functions/exp2f.texi: Mention the new module and the
4813         IRIX problem.
4814
4815 2012-03-08  Bruno Haible  <bruno@clisp.org>
4816
4817         Tests for module 'exp2'.
4818         * modules/exp2-tests: New file.
4819         * tests/test-exp2.c: New file.
4820         * tests/test-exp2.h: New file.
4821
4822         New module 'exp2'.
4823         * lib/math.in.h (exp2): New declaration.
4824         * lib/exp2.c: New file.
4825         * m4/exp2.m4: New file.
4826         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4828         REPLACE_EXP2.
4829         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4830         REPLACE_EXP2.
4831         * modules/exp2: New file.
4832         * tests/test-math-c++.cc: Check the declaration of exp2.
4833         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4834         and OpenBSD problems.
4835
4836 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4837
4838         savedir: fix comment typo
4839         * lib/savedir.c (savedirstream): Fix typo in comment.
4840
4841 2012-03-08  Bruno Haible  <bruno@clisp.org>
4842
4843         test-readtokens.c: use const; remove unwarranted cast
4844         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4845
4846 2012-03-08  Bruno Haible  <bruno@clisp.org>
4847
4848         fmal: Avoid compilation error on AIX.
4849         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4850         AIX 5.2..7.1.
4851
4852 2012-03-08  Bruno Haible  <bruno@clisp.org>
4853
4854         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4855         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4856         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4857         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4858         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4859         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4860         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4861
4862 2012-03-08  Bruno Haible  <bruno@clisp.org>
4863
4864         remainderf: Override buggy system function on IRIX 6.5.
4865         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4866         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4867         when it exists.
4868         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4869
4870 2012-03-08  Jim Meyering  <meyering@redhat.com>
4871
4872         test-readtokens.c: avoid const-related compilation warnings
4873         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4874
4875 2012-03-07  Jim Meyering  <meyering@redhat.com>
4876             Bruno Haible  <bruno@clisp.org>
4877
4878         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4879         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4880         tests/randomd.c.
4881         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4882         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4883         tests/randoml.c.
4884         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4885
4886 2012-03-07  Bruno Haible  <bruno@clisp.org>
4887
4888         expm1l: Avoid compilation error on AIX.
4889         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4890         AIX 5.2..7.1.
4891
4892 2012-03-07  Bruno Haible  <bruno@clisp.org>
4893
4894         expm1l: Don't override undeclared system function on IRIX 6.5.
4895         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4896         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4897         it exists. Set HAVE_DECL_EXPM1L.
4898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4899         HAVE_EXPM1L.
4900         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4901         HAVE_EXPM1L.
4902         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4903
4904 2012-03-07  Bruno Haible  <bruno@clisp.org>
4905
4906         remainderl: Don't override undeclared system function on IRIX 6.5.
4907         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4908         HAVE_REMAINDERL.
4909         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4910         declared when it exists. Set HAVE_DECL_REMAINDERL.
4911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4912         not HAVE_REMAINDERL.
4913         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4914         HAVE_REMAINDERL.
4915         * doc/posix-functions/remainderl.texi: Mention missing declaration
4916         problem.
4917
4918 2012-03-07  Bruno Haible  <bruno@clisp.org>
4919
4920         rintf: Don't override undeclared system function on IRIX 6.5.
4921         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4922         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4923         exists. Set HAVE_DECL_RINTF.
4924         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4925         HAVE_RINTF.
4926         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4927         HAVE_RINTF.
4928         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4929
4930 2012-03-07  Bruno Haible  <bruno@clisp.org>
4931
4932         roundl: Avoid compilation error on AIX.
4933         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4934         AIX 5.2..7.1.
4935
4936 2012-03-07  Bruno Haible  <bruno@clisp.org>
4937
4938         roundl: Don't override undeclared system function on IRIX 6.5.
4939         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4940         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4941         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4942         * modules/roundl (configure.ac): For replacement code, test
4943         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4944         (Depends-on): Update conditions.
4945         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4946
4947 2012-03-07  Bruno Haible  <bruno@clisp.org>
4948
4949         roundf: Don't override undeclared system function on IRIX 6.5.
4950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4951         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4952         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4953         * modules/roundf (configure.ac): For replacement code, test
4954         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4955         (Depends-on): Update conditions.
4956         * modules/roundf-ieee (Depends-on): Update conditions.
4957         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4958
4959 2012-03-07  Bruno Haible  <bruno@clisp.org>
4960
4961         round: Don't override undeclared system function on IRIX 6.5.
4962         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4963         argument.
4964         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4965         also when it is not declared. Set HAVE_ROUND. For replacement code,
4966         test HAVE_ROUND, not HAVE_DECL_ROUND.
4967         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4968         not HAVE_DECL_ROUND.
4969         (Depends-on): Update conditions.
4970         * modules/round-ieee (Depends-on): Update conditions.
4971         * doc/posix-functions/round.texi: Mention the IRIX problem.
4972
4973 2012-03-07  Bruno Haible  <bruno@clisp.org>
4974
4975         copysignf: Don't override undeclared system function on IRIX 6.5.
4976         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4977         HAVE_COPYSIGNF.
4978         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4979         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4981         not HAVE_COPYSIGNF.
4982         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4983         HAVE_COPYSIGNF.
4984         * doc/posix-functions/copysignf.texi: Mention missing declaration
4985         problem.
4986
4987 2012-03-07  Jim Meyering  <meyering@redhat.com>
4988
4989         readtokens: add tests
4990         * modules/readtokens-tests: New file.
4991         * tests/test-readtokens.c: New file.
4992
4993 2012-03-07  Jim Meyering  <meyering@redhat.com>
4994
4995         quotearg: the module must now include quote.h
4996         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4997         So must the module.
4998         * modules/quotearg (Files): Add quote.h.
4999
5000 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5001
5002         readtokens: avoid core dumps with unusual calling patterns
5003         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5004         * lib/readtokens.c: Include limits.h.
5005         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5006         (readtoken): Don't cache the delimiters; the cache code was buggy
5007         if !delim && saved_delim, or if the new n_delim differs from the old.
5008         Also, it wasn't thread-safe.
5009
5010 2012-03-07  Bruno Haible  <bruno@clisp.org>
5011
5012         quote: Adhere to common module description layout.
5013         * modules/quote (Makefile.am): Add back empty section.
5014
5015 2012-03-06  Akim Demaille  <demaille@gostai.com>
5016
5017         quote: fuse into quotearg
5018         This patch is made for the benefit of Bison.
5019         quote does not leave the choice of the quoting style to the user.
5020         quoting_style provides poor customizability, yet quoting_options,
5021         which is very rich, is hidden inside quotearg.c.  So in order to
5022         allow quote customization, move its implementation to quotearg.c.
5023         * lib/quote.c: Remove.
5024         * modules/quote: Adjust.
5025         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5026         warning: provide all the members of literal structs.
5027         (quote_quoting_options): New.
5028         (quote, quote_n): Import implementation from quote.c.
5029         * lib/quote.h: Import the comments from quote.c.
5030         (quote_quoting_options): New.
5031
5032 2012-03-06  Bruno Haible  <bruno@clisp.org>
5033
5034         Tests for module 'expm1l-ieee'.
5035         * modules/expm1l-ieee-tests: New file.
5036         * tests/test-expm1l-ieee.c: New file.
5037
5038         New module 'expm1l-ieee'.
5039         * modules/expm1l-ieee: New file.
5040
5041         Tests for module 'expm1f-ieee'.
5042         * modules/expm1f-ieee-tests: New file.
5043         * tests/test-expm1f-ieee.c: New file.
5044
5045         New module 'expm1f-ieee'.
5046         * modules/expm1f-ieee: New file.
5047
5048         Tests for module 'expm1-ieee'.
5049         * modules/expm1-ieee-tests: New file.
5050         * tests/test-expm1-ieee.c: New file.
5051         * tests/test-expm1-ieee.h: New file.
5052
5053         New module 'expm1-ieee'.
5054         * modules/expm1-ieee: New file.
5055         * m4/expm1-ieee.m4: New file.
5056         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5057         whether expm1 works with a minus zero argument. Replace it if not.
5058         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5060         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5061         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5062         (Depends-on): Update conditions.
5063         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5064         AIX problem.
5065
5066 2012-03-06  Bruno Haible  <bruno@clisp.org>
5067
5068         Work around expm1f bug on IRIX 6.5.
5069         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5070         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5071         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5072         not work.
5073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5074         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5075         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5076         (Depends-on): Update conditions.
5077         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5078
5079 2012-03-06  Bruno Haible  <bruno@clisp.org>
5080
5081         Tests for module 'expm1l'.
5082         * modules/expm1l-tests: New file.
5083         * tests/test-expm1l.c: New file.
5084
5085         New module 'expm1l'.
5086         * lib/math.in.h (expm1l): New declaration.
5087         * lib/expm1l.c: New file.
5088         * m4/expm1l.m4: New file.
5089         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5090         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5091         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5092         * modules/expm1l: New file.
5093         * tests/test-math-c++.cc: Check the declaration of expm1l.
5094         * doc/posix-functions/expm1l.texi: Mention the new module.
5095
5096 2012-03-06  Bruno Haible  <bruno@clisp.org>
5097
5098         Tests for module 'expm1f'.
5099         * modules/expm1f-tests: New file.
5100         * tests/test-expm1f.c: New file.
5101
5102         New module 'expm1f'.
5103         * lib/math.in.h (expm1f): New declaration.
5104         * lib/expm1f.c: New file.
5105         * m4/expm1f.m4: New file.
5106         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5108         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5109         * modules/expm1f: New file.
5110         * tests/test-math-c++.cc: Check the declaration of expm1f.
5111         * doc/posix-functions/expm1f.texi: Mention the new module.
5112
5113 2012-03-06  Bruno Haible  <bruno@clisp.org>
5114
5115         Tests for module 'expm1'.
5116         * modules/expm1-tests: New file.
5117         * tests/test-expm1.c: New file.
5118         * tests/test-expm1.h: New file.
5119
5120         New module 'expm1'.
5121         * lib/math.in.h (expm1): New declaration.
5122         * lib/expm1.c: New file.
5123         * m4/expm1.m4: New file.
5124         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5126         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5127         * modules/expm1: New file.
5128         * tests/test-math-c++.cc: Check the declaration of expm1.
5129         * doc/posix-functions/expm1.texi: Mention the new module.
5130
5131 2012-03-06  Bruno Haible  <bruno@clisp.org>
5132
5133         math: Ensure declarations of math functions.
5134         * modules/acosf (Depends-on): Add 'extensions'.
5135         * modules/asinf (Depends-on): Likewise.
5136         * modules/atan2f (Depends-on): Likewise.
5137         * modules/atanf (Depends-on): Likewise.
5138         * modules/cbrt (Depends-on): Likewise.
5139         * modules/cbrtf (Depends-on): Likewise.
5140         * modules/cbrtl (Depends-on): Likewise.
5141         * modules/copysignf (Depends-on): Likewise.
5142         * modules/copysignl (Depends-on): Likewise.
5143         * modules/cosf (Depends-on): Likewise.
5144         * modules/coshf (Depends-on): Likewise.
5145         * modules/expf (Depends-on): Likewise.
5146         * modules/fabsf (Depends-on): Likewise.
5147         * modules/fabsl (Depends-on): Likewise.
5148         * modules/fmaf (Depends-on): Likewise.
5149         * modules/fmal (Depends-on): Likewise.
5150         * modules/fmodf (Depends-on): Likewise.
5151         * modules/fmodl (Depends-on): Likewise.
5152         * modules/frexpf (Depends-on): Likewise.
5153         * modules/frexpl (Depends-on): Likewise.
5154         * modules/hypot (Depends-on): Likewise.
5155         * modules/hypotf (Depends-on): Likewise.
5156         * modules/hypotl (Depends-on): Likewise.
5157         * modules/ldexpf (Depends-on): Likewise.
5158         * modules/ldexpl (Depends-on): Likewise.
5159         * modules/log10f (Depends-on): Likewise.
5160         * modules/log10l (Depends-on): Likewise.
5161         * modules/log1p (Depends-on): Likewise.
5162         * modules/logb (Depends-on): Likewise.
5163         * modules/logf (Depends-on): Likewise.
5164         * modules/modff (Depends-on): Likewise.
5165         * modules/modfl (Depends-on): Likewise.
5166         * modules/powf (Depends-on): Likewise.
5167         * modules/remainderf (Depends-on): Likewise.
5168         * modules/remainderl (Depends-on): Likewise.
5169         * modules/rintf (Depends-on): Likewise.
5170         * modules/rintl (Depends-on): Likewise.
5171         * modules/sinf (Depends-on): Likewise.
5172         * modules/sinhf (Depends-on): Likewise.
5173         * modules/sqrtf (Depends-on): Likewise.
5174         * modules/tanf (Depends-on): Likewise.
5175         * modules/tanhf (Depends-on): Likewise.
5176         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5177         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5178         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5179         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5180         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5181         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5182         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5183         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5184         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5185         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5186         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5187         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5188         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5189         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5190         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5191         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5192         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5193         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5194         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5195         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5196         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5197         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5198         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5199         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5200         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5201         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5202         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5203         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5204         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5205         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5206         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5207         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5208         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5209         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5210         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5211         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5212         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5213         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5214         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5215         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5216         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5217
5218 2012-03-06  Bruno Haible  <bruno@clisp.org>
5219
5220         math: Update module names in warnings.
5221         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5222         tanl): Use specific module name in warn-on-use warning.
5223
5224 2012-03-06  Bruno Haible  <bruno@clisp.org>
5225
5226         expl: Simplify computation.
5227         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5228
5229 2012-03-05  Bruno Haible  <bruno@clisp.org>
5230
5231         exp* tests: More tests.
5232         * tests/test-exp.h: New file.
5233         * tests/test-exp.c: Include <float.h> and test-exp.h.
5234         (main): Invoke test_function.
5235         * tests/test-expf.c: Include <float.h> and test-exp.h.
5236         (main): Invoke test_function.
5237         * tests/test-expl.c: Include <float.h> and test-exp.h.
5238         (main): Invoke test_function.
5239         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5240         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5241         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5242         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5243         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5244         (Depends-on): Add 'float'.
5245         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5246
5247         expl: Fix precision of computed result.
5248         * lib/expl.c: Completely rewritten.
5249         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5250         (Maintainer): Add me.
5251         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5252
5253 2012-03-05  Bruno Haible  <bruno@clisp.org>
5254
5255         cbrt* tests: More tests.
5256         * tests/test-cbrt.h: New file.
5257         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5258         (main): Invoke test_function.
5259         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5260         (main): Invoke test_function.
5261         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5262         (main): Invoke test_function.
5263         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5264         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5265         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5266         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5267         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5268         (Depends-on): Add 'float'.
5269         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5270
5271 2012-03-05  Bruno Haible  <bruno@clisp.org>
5272
5273         hypot* tests: More tests.
5274         * tests/test-hypot.h: New file, partially extracted from
5275         tests/test-hypotl.c.
5276         * tests/test-hypot.c: Include test-hypot.h.
5277         (main): Invoke test_function.
5278         * tests/test-hypotf.c: Include test-hypot.h.
5279         (main): Invoke test_function.
5280         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5281         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5282         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5283         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5284         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5285         tests/randomf.c.
5286         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5287         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5288         tests/randoml.c.
5289         (Depends-on): Add 'fpucw', 'float'.
5290         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5291
5292 2012-03-05  Bruno Haible  <bruno@clisp.org>
5293
5294         fpucw: Doc about FreeBSD.
5295         * lib/fpucw.h: Mention FreeBSD in comments.
5296
5297 2012-03-04  Bruno Haible  <bruno@clisp.org>
5298
5299         sqrt* tests: More tests.
5300         * tests/test-sqrt.h: New file.
5301         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5302         (main): Invoke test_function.
5303         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5304         (main): Invoke test_function.
5305         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5306         (main): Invoke test_function.
5307         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5308         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5309         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5310         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5311         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5312         (Depends-on): Add 'float'.
5313         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5314
5315 2012-03-04  Bruno Haible  <bruno@clisp.org>
5316
5317         remainder* tests: More tests.
5318         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5319         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5320         (main): Invoke test_function.
5321         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5322         (main): Invoke test_function.
5323         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5324         (main): Invoke test_function.
5325         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5326         tests/randomd.c.
5327         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5328         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5329         tests/randomf.c.
5330         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5331         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5332         tests/randoml.c.
5333         (Depends-on): Add 'float'.
5334         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5335
5336 2012-03-04  Bruno Haible  <bruno@clisp.org>
5337
5338         remainder, remainderf, remainderl: Fix computation for large quotients.
5339         * lib/remainder.c: Completely rewritten.
5340         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5341         USE_FLOAT.
5342         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5343         USE_LONG_DOUBLE.
5344         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5345         isnand, isinf. Remove round, fma.
5346         * modules/remainderf (Files): Add lib/remainder.c.
5347         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5348         Remove roundf, fmaf.
5349         * modules/remainderl (Files): Add lib/remainder.c.
5350         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5351         isinf. Remove roundl, fmal.
5352         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5353         REMAINDER_LIBM.
5354         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5355         REMAINDERF_LIBM.
5356         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5357         REMAINDERL_LIBM.
5358
5359 2012-03-04  Bruno Haible  <bruno@clisp.org>
5360
5361         fmod* tests: More tests.
5362         * tests/test-fmod.h (my_ldexp): New function.
5363         (test_function): Reduce amount of random numbers to test. Add tests
5364         of very large quotients x / y.
5365         * tests/test-fmod.c (MAX_EXP): New macro.
5366         * tests/test-fmodf.c (MAX_EXP): Likewise.
5367         * tests/test-fmodl.c (MAX_EXP): Likewise.
5368
5369 2012-03-04  Bruno Haible  <bruno@clisp.org>
5370
5371         fmod, fmodl: Fix computation for large quotients x / y.
5372         * lib/fmod.c: Completely rewritten.
5373         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5374         USE_LONG_DOUBLE.
5375         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5376         isnand. Remove fma.
5377         * modules/fmodl (Files): Add lib/fmod.c.
5378         (Depends-on): Add float, isfinite, signbit, fabsl,
5379         frexpl, ldexpl, isnanl. Remove fma.
5380         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5381         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5382
5383 2012-03-03  Bruno Haible  <bruno@clisp.org>
5384
5385         fmod* tests: More tests.
5386         * tests/test-fmod.h: New file.
5387         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5388         (main): Invoke test_function.
5389         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5390         (main): Invoke test_function.
5391         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5392         (main): Invoke test_function.
5393         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5394         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5395         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5396         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5397         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5398         (Depends-on): Add 'float'.
5399         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5400
5401 2012-03-03  Bruno Haible  <bruno@clisp.org>
5402
5403         rint* tests: More tests.
5404         * tests/test-rint.h: New file, partially extracted from
5405         tests/test-rintl.c.
5406         * tests/test-rint.c: Include test-rint.h.
5407         (main): Invoke test_function.
5408         * tests/test-rintf.c: Include test-rint.h.
5409         (main): Invoke test_function.
5410         * tests/test-rintl.c: Include test-rint.h.
5411         (main): Invoke test_function.
5412         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5413         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5414         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5415         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5416         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5417         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5418
5419 2012-03-03  Bruno Haible  <bruno@clisp.org>
5420
5421         modf* tests: More tests.
5422         * tests/test-modf.h: New file.
5423         * tests/test-modf.c: Include <float.h> and test-modf.h.
5424         (main): Invoke test_function.
5425         * tests/test-modff.c: Include <float.h> and test-modf.h.
5426         (main): Invoke test_function.
5427         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5428         (main): Invoke test_function.
5429         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5430         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5431         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5432         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5433         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5434         (Depends-on): Add 'float'.
5435         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5436
5437 2012-03-03  Bruno Haible  <bruno@clisp.org>
5438
5439         fabs* tests: More tests.
5440         * tests/test-fabs.h: New file, partially extracted from
5441         tests/test-fabsl.c.
5442         * tests/test-fabs.c (RANDOM): New macro.
5443         * tests/test-fabsf.c (RANDOM): New macro.
5444         * tests/test-fabsl.c (RANDOM): New macro.
5445         * modules/fabs-tests (Files): Add tests/randomd.c.
5446         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5447         * modules/fabsf-tests (Files): Add tests/randomf.c.
5448         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5449         * modules/fabsl-tests (Files): Add tests/randoml.c.
5450         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5451
5452 2012-03-03  Bruno Haible  <bruno@clisp.org>
5453
5454         ldexp* tests: More tests.
5455         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5456         * tests/test-ldexp.c (RANDOM): New macro.
5457         * tests/test-ldexpf.c (RANDOM): New macro.
5458         * tests/test-ldexpl.c (RANDOM): New macro.
5459         * modules/ldexp-tests (Files): Add tests/randomd.c.
5460         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5461         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5462         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5463         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5464         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5465
5466 2012-03-03  Bruno Haible  <bruno@clisp.org>
5467
5468         frexp* tests: More tests.
5469         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5470         * tests/test-frexp.c (RANDOM): New macro.
5471         * tests/test-frexpf.c (RANDOM): New macro.
5472         * tests/test-frexpl.c (RANDOM): New macro.
5473         * modules/frexp-tests (Files): Add tests/randomd.c.
5474         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5475         * modules/frexpf-tests (Files): Add tests/randomf.c.
5476         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5477         * modules/frexpl-tests (Files): Add tests/randoml.c.
5478         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5479
5480 2012-03-03  Bruno Haible  <bruno@clisp.org>
5481
5482         Support for pseudo-random numbers in tests.
5483         * tests/randomf.c: New file.
5484         * tests/randomd.c: New file.
5485         * tests/randoml.c: New file.
5486         * tests/macros.h (randomf, randomd, randoml): New declarations.
5487
5488 2012-03-03  Bruno Haible  <bruno@clisp.org>
5489
5490         frexp* tests: Refactor.
5491         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5492         * tests/test-frexp.c: Include and use it.
5493         * tests/test-frexpf.c: Likewise.
5494         * tests/test-frexpl.c: Likewise.
5495         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5496         * modules/frexpf-tests (Files): Likewise.
5497         * modules/frexpl-tests (Files): Likewise.
5498
5499 2012-03-02  Jim Meyering  <meyering@redhat.com>
5500
5501         maint: don't specify XZ_OPT=-9ev in dist-related rule
5502         Using xz's -9 option is warranted only if you have a very large
5503         tarball (see xz's documentation for the sizes vs. presets), and
5504         requires 64MiB of memory at decompression time.
5505         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5506         Automake's default of just "-e" is fine.  Override on a
5507         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5508
5509 2012-03-01  Eric Blake  <eblake@redhat.com>
5510
5511         maint.mk: allow announcement for non-gnulib project
5512         * maint.mk (announcement): Skip gnulib version if not used.
5513
5514 2012-03-01  Jim Meyering  <meyering@redhat.com>
5515
5516         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5517         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5518         envvar settings cannot interfere.  Otherwise, setting envvars like
5519         prohibit=foo require=bar, etc. would cause spurious test failures.
5520
5521 2012-03-01  Eric Blake  <eblake@redhat.com>
5522
5523         maint.mk: add per-line exclusions to prohibitions
5524         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5525         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5526         (sc_const_long_option): Use it.
5527
5528 2012-03-01  Bruno Haible  <bruno@clisp.org>
5529
5530         Tests for module 'expl-ieee'.
5531         * modules/expl-ieee-tests: New file.
5532         * tests/test-expl-ieee.c: New file.
5533
5534         New module 'expl-ieee'.
5535         * modules/expl-ieee: New file.
5536
5537         Tests for module 'exp-ieee'.
5538         * modules/exp-ieee-tests: New file.
5539         * tests/test-exp-ieee.c: New file.
5540
5541         New module 'exp-ieee'.
5542         * modules/exp-ieee: New file.
5543
5544         Tests for module 'expf-ieee'.
5545         * modules/expf-ieee-tests: New file.
5546         * tests/test-expf-ieee.c: New file.
5547         * tests/test-exp-ieee.h: New file.
5548
5549         New module 'expf-ieee'.
5550         * modules/expf-ieee: New file.
5551
5552 2012-02-29  Bruno Haible  <bruno@clisp.org>
5553
5554         cbrtl-ieee: Work around test failure on IRIX 6.5.
5555         * m4/cbrtl-ieee.m4: New file.
5556         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5557         test whether cbrtl works with a minus zero argument. Replace it if not.
5558         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5559         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5560         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5561         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5562         (Depends-on): Update conditions.
5563         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5564         m4/signbit.m4.
5565         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5566         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5567         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5568
5569         Tests for module 'cbrtl-ieee'.
5570         * modules/cbrtl-ieee-tests: New file.
5571         * tests/test-cbrtl-ieee.c: New file.
5572
5573         New module 'cbrtl-ieee'.
5574         * modules/cbrtl-ieee: New file.
5575
5576         Tests for module 'cbrt-ieee'.
5577         * modules/cbrt-ieee-tests: New file.
5578         * tests/test-cbrt-ieee.c: New file.
5579
5580         New module 'cbrt-ieee'.
5581         * modules/cbrt-ieee: New file.
5582
5583         Tests for module 'cbrtf-ieee'.
5584         * modules/cbrtf-ieee-tests: New file.
5585         * tests/test-cbrtf-ieee.c: New file.
5586         * tests/test-cbrt-ieee.h: New file.
5587
5588         New module 'cbrtf-ieee'.
5589         * modules/cbrtf-ieee: New file.
5590
5591 2012-02-29  Bruno Haible  <bruno@clisp.org>
5592
5593         cbrtf: Work around bug in IRIX 6.5 system function.
5594         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5595         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5596         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5597         work.
5598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5599         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5600         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5601         (Depends-on): Update conditions.
5602         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5603
5604 2012-02-29  Bruno Haible  <bruno@clisp.org>
5605
5606         Tests for module 'cbrtl'.
5607         * modules/cbrtl-tests: New file.
5608         * tests/test-cbrtl.c: New file.
5609
5610         New module 'cbrtl'.
5611         * lib/math.in.h (cbrtl): New declaration.
5612         * lib/cbrtl.c: New file.
5613         * m4/cbrtl.m4: New file.
5614         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5616         HAVE_DECL_CBRTL.
5617         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5618         HAVE_DECL_CBRTL.
5619         * modules/cbrtl: New file.
5620         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5621         * doc/posix-functions/cbrtl.texi: Mention the new module.
5622
5623 2012-02-29  Bruno Haible  <bruno@clisp.org>
5624
5625         Tests for module 'cbrtf'.
5626         * modules/cbrtf-tests: New file.
5627         * tests/test-cbrtf.c: New file.
5628
5629         New module 'cbrtf'.
5630         * lib/math.in.h (cbrtf): New declaration.
5631         * lib/cbrtf.c: New file.
5632         * m4/cbrtf.m4: New file.
5633         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5635         HAVE_DECL_CBRTF.
5636         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5637         HAVE_DECL_CBRTF.
5638         * modules/cbrtf: New file.
5639         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5640         * doc/posix-functions/cbrtf.texi: Mention the new module.
5641
5642 2012-02-29  Bruno Haible  <bruno@clisp.org>
5643
5644         cbrt: Provide replacement on MSVC and Minix.
5645         * lib/math.in.h (cbrt): New declaration.
5646         * lib/cbrt.c: New file.
5647         * m4/cbrt.m4: New file.
5648         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5650         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5651         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5652         (Depends-on): Add dependencies.
5653         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5654         * tests/test-math-c++.cc: Check the declaration of cbrt.
5655         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5656         replacement.
5657
5658 2012-02-29  Bruno Haible  <bruno@clisp.org>
5659
5660         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5661         * m4/hypotl-ieee.m4: New file.
5662         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5663         test whether hypotl works with mixed NaN and Infinity arguments.
5664         Replace it if not.
5665         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5667         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5668         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5669         (Depends-on): Update conditions.
5670         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5671         (Depends-on): Add hypot-ieee.
5672         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5673         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5674
5675         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5676         * m4/hypotf-ieee.m4: New file.
5677         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5678         test whether hypotf works with mixed NaN and Infinity arguments.
5679         Replace it if not.
5680         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5681         (Depends-on): Add hypot-ieee.
5682         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5683         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5684
5685         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5686         * lib/math.in.h (hypot): New declaration.
5687         * lib/hypot.c: New file.
5688         * m4/hypot-ieee.m4: New file.
5689         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5690         whether hypot works with mixed NaN and Infinity arguments. Replace it
5691         if not.
5692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5693         REPLACE_HYPOT.
5694         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5695         * modules/hypot (Files): Add lib/hypot.c.
5696         (Depends-on): Add dependencies.
5697         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5698         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5699         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5700         * tests/test-math-c++.cc: Check the declaration of hypot.
5701         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5702
5703         Tests for module 'hypotl-ieee'.
5704         * modules/hypotl-ieee-tests: New file.
5705         * tests/test-hypotl-ieee.c: New file.
5706
5707         New module 'hypotl-ieee'.
5708         * modules/hypotl-ieee: New file.
5709
5710         Tests for module 'hypot-ieee'.
5711         * modules/hypot-ieee-tests: New file.
5712         * tests/test-hypot-ieee.c: New file.
5713
5714         New module 'hypot-ieee'.
5715         * modules/hypot-ieee: New file.
5716
5717         Tests for module 'hypotf-ieee'.
5718         * modules/hypotf-ieee-tests: New file.
5719         * tests/test-hypotf-ieee.c: New file.
5720         * tests/test-hypot-ieee.h: New file.
5721
5722         New module 'hypotf-ieee'.
5723         * modules/hypotf-ieee: New file.
5724
5725 2012-02-29  Bruno Haible  <bruno@clisp.org>
5726
5727         Remove unused variables.
5728         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5729         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5730         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5731         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5732
5733 2012-02-29  Eric Blake  <eblake@redhat.com>
5734
5735         termios: fix pid_t always, not just for tcgetsid
5736         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5737         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5738         just when building tcgetsid.
5739
5740 2012-02-29  Bruno Haible  <bruno@clisp.org>
5741
5742         Tests for module 'hypotl'.
5743         * modules/hypotl-tests: New file.
5744         * tests/test-hypotl.c: New file.
5745
5746         New module 'hypotl'.
5747         * lib/math.in.h (hypotl): New declaration.
5748         * lib/hypotl.c: New file.
5749         * m4/hypotl.m4: New file.
5750         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5751         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5752         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5753         * modules/hypotl: New file.
5754         * tests/test-math-c++.cc: Check the hypotl declaration.
5755         * doc/posix-functions/hypotl.texi: Mention the new module.
5756
5757 2012-02-29  Eric Blake  <eblake@redhat.com>
5758
5759         tcgetsid: fix cygwin header bug
5760         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5761
5762         docs: update cygwin progress
5763         * doc/posix-functions/llround.texi (llround): Added in cygwin
5764         1.7.8.
5765         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5766         * doc/glibc-functions/program_invocation_name.texi
5767         (program_invocation_name): Likewise.
5768         * doc/glibc-functions/program_invocation_short_name.texi
5769         (program_invocation_short_name): Likewise.
5770         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5771         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5772         Likewise.
5773         * doc/posix-functions/pthread_spin_destroy.texi
5774         (pthread_spin_destroy): Added in cygwin 1.7.10.
5775         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5776         Likewise.
5777         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5778         Likewise.
5779         * doc/posix-functions/pthread_spin_trylock.texi
5780         (pthread_spin_trylock): Likewise.
5781         * doc/posix-functions/pthread_spin_unlock.texi
5782         (pthread_spin_unlock): Likewise.
5783         * doc/posix-functions/pthread_setschedprio.texi
5784         (pthread_setschedprio): Likewise.
5785         * doc/posix-functions/pthread_attr_getstack.texi
5786         (pthread_attr_getstack): Likewise.
5787         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5788         (pthread_attr_getstackaddr): Likewise.
5789         * doc/glibc-functions/pthread_getattr_np.texi
5790         (pthread_getattr_np): Likewise.
5791         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5792         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5793         * doc/posix-functions/clock_settime.texi (clock_settime):
5794         Likewise.
5795         * doc/posix-functions/pthread_attr_getguardsize.texi
5796         (pthread_attr_getguardsize): Likewise.
5797         * doc/posix-functions/pthread_attr_setguardsize.texi
5798         (pthread_attr_setguardsize): Likewise.
5799         * doc/posix-functions/pthread_attr_setstack.texi
5800         (pthread_attr_setstack): Likewise.
5801         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5802         (pthread_attr_setstackaddr): Likewise.
5803         * doc/posix-functions/clock_getcpuclockid.texi
5804         (clock_getcpuclockid): Likewise.
5805         * doc/posix-functions/pthread_getcpuclockid.texi
5806         (pthread_getcpuclockid): Likewise.
5807         * doc/glibc-functions/error.texi (error): Likewise.
5808         * doc/glibc-functions/error_at_line.texi (error_at_line):
5809         Likewise.
5810         * doc/glibc-functions/error_message_count.texi
5811         (error_message_count): Likewise.
5812         * doc/glibc-functions/error_one_per_line.texi
5813         (error_one_per_line): Likewise.
5814         * doc/glibc-functions/error_print_progname.texi
5815         (error_print_progname): Likewise.
5816         * doc/posix-functions/pthread_condattr_getclock.texi
5817         (pthread_condattr_getclock): Likewise.
5818         * doc/posix-functions/pthread_condattr_setclock.texi
5819         (pthread_condattr_setclock): Likewise.
5820         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5821         Likewise.
5822         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5823         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5824         * doc/glibc-functions/get_current_dir_name.texi
5825         (get_current_dir_name): Likewise.
5826         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5827         Likewise.
5828         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5829         wrong return type.
5830         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5831         1.7.11.
5832
5833 2012-02-29  Bruno Haible  <bruno@clisp.org>
5834
5835         Tests for module 'hypotf'.
5836         * modules/hypotf-tests: New file.
5837         * tests/test-hypotf.c: New file.
5838
5839         New module 'hypotf'.
5840         * lib/math.in.h (hypotf): New declaration.
5841         * lib/hypotf.c: New file.
5842         * m4/hypotf.m4: New file.
5843         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5844         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5845         REPLACE_HYPOTF.
5846         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5847         REPLACE_HYPOTF.
5848         * modules/hypotf: New file.
5849         * tests/test-math-c++.cc: Check the hypotf declaration.
5850         * doc/posix-functions/hypotf.texi: Mention the new module.
5851
5852         hypot: Prepare for hypotf module.
5853         * m4/hypot.m4: New file.
5854         * modules/hypot (Files): Add m4/hypot.m4.
5855         (configure.ac): Invoke gl_FUNC_HYPOT.
5856
5857 2012-02-29  Bruno Haible  <bruno@clisp.org>
5858
5859         hypot tests: More tests.
5860         * tests/test-hypot.c: Include <float.h>.
5861         (main): Add tests about overflow and underflow.
5862
5863 2012-02-29  Bruno Haible  <bruno@clisp.org>
5864
5865         math code: Add comments.
5866         * lib/acosl.c: Add comment about related glibc source files.
5867         * lib/asinl.c: Likewise.
5868         * lib/atanl.c: Likewise.
5869         * lib/expl.c: Likewise.
5870         * lib/logl.c: Likewise.
5871         * lib/sincosl.c: Likewise.
5872         * lib/sinl.c: Likewise.
5873         * lib/tanl.c: Likewise.
5874         * lib/trigl.c: Likewise.
5875         * lib/cosl.c: Likewise. Fix comments.
5876
5877 2012-02-28  Bruno Haible  <bruno@clisp.org>
5878
5879         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5880         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5881         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5882         HUGE_VALL are defined.
5883         (numeric_equald): Renamed from numeric_equal.
5884         (numeric_equalf, numeric_equall): New functions.
5885         (main): Check also HUGE_VALF, HUGE_VALL.
5886         * modules/math-tests (Files): Add tests/macros.h.
5887         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5888         HUGE_VALL.
5889
5890 2012-02-28  Bruno Haible  <bruno@clisp.org>
5891
5892         doc: Move ISO C11 feature notes into POSIX chapters.
5893         * doc/posix-functions/aligned_alloc.texi: Renamed from
5894         doc/glibc-functions/aligned_alloc.texi.
5895         * doc/posix-functions/quick_exit.texi: Renamed from
5896         doc/glibc-functions/quick_exit.texi.
5897         * doc/posix-headers/uchar.texi: Renamed from
5898         doc/glibc-headers/uchar.texi.
5899         * doc/posix-functions/c16rtomb.texi: Renamed from
5900         doc/glibc-functions/c16rtomb.texi.
5901         * doc/posix-functions/c32rtomb.texi: Renamed from
5902         doc/glibc-functions/c32rtomb.texi.
5903         * doc/posix-functions/mbrtoc16.texi: Renamed from
5904         doc/glibc-functions/mbrtoc16.texi.
5905         * doc/posix-functions/mbrtoc32.texi: Renamed from
5906         doc/glibc-functions/mbrtoc32.texi.
5907         * doc/gnulib.texi: Update.
5908         (Glibc uchar.h): Remove section.
5909         Suggested by Eric Blake.
5910
5911 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5912
5913         stdnoreturn: port to MSVC better
5914         MSVC standard headers use __declspec(noreturn), so #define noreturn
5915         to empty on that platform.  Reported by Bruno Haible in
5916         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5917         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5918         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5919
5920 2012-02-28  Bruno Haible  <bruno@clisp.org>
5921
5922         doc: Mention new glibc headers and functions.
5923         * doc/glibc-headers/uchar.texi: New file.
5924         * doc/glibc-functions/aligned_alloc.texi: New file.
5925         * doc/glibc-functions/c16rtomb.texi: New file.
5926         * doc/glibc-functions/c32rtomb.texi: New file.
5927         * doc/glibc-functions/clock_adjtime.texi: New file.
5928         * doc/glibc-functions/fanotify_init.texi: New file.
5929         * doc/glibc-functions/fanotify_mark.texi: New file.
5930         * doc/glibc-functions/inet6_opt_append.texi: New file.
5931         * doc/glibc-functions/inet6_opt_find.texi: New file.
5932         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5933         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5934         * doc/glibc-functions/inet6_opt_init.texi: New file.
5935         * doc/glibc-functions/inet6_opt_next.texi: New file.
5936         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5937         * doc/glibc-functions/inet6_rth_add.texi: New file.
5938         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5939         * doc/glibc-functions/inet6_rth_init.texi: New file.
5940         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5941         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5942         * doc/glibc-functions/inet6_rth_space.texi: New file.
5943         * doc/glibc-functions/login.texi: New file.
5944         * doc/glibc-functions/mbrtoc16.texi: New file.
5945         * doc/glibc-functions/mbrtoc32.texi: New file.
5946         * doc/glibc-functions/name_to_handle_at.texi: New file.
5947         * doc/glibc-functions/ntp_gettimex.texi: New file.
5948         * doc/glibc-functions/open_by_handle_at.texi: New file.
5949         * doc/glibc-functions/prlimit.texi: New file.
5950         * doc/glibc-functions/process_vm_readv.texi: New file.
5951         * doc/glibc-functions/process_vm_writev.texi: New file.
5952         * doc/glibc-functions/recvmmsg.texi: New file.
5953         * doc/glibc-functions/scandirat.texi: New file.
5954         * doc/glibc-functions/sendmmsg.texi: New file.
5955         * doc/glibc-functions/setns.texi: New file.
5956         * doc/glibc-functions/timespec_get.texi: New file.
5957         * doc/gnulib.texi: Include them.
5958         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5959         sections.
5960         Reported by Eric Blake.
5961
5962 2012-02-28  Bruno Haible  <bruno@clisp.org>
5963
5964         Avoid compilation errors with MSVC option -fp:strict.
5965         * lib/floor.c: Use MSVC specific pragma fenv_access.
5966         * lib/ceil.c: Likewise.
5967         * lib/trunc.c: Likewise.
5968         * lib/round.c: Likewise.
5969         * lib/rint.c: Likewise.
5970         * lib/fma.c: Likewise.
5971         * lib/integer_length.c: Likewise.
5972         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5973         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5974         * tests/test-floor2.c: Likewise.
5975         * tests/test-floorf2.c: Likewise.
5976         * tests/test-ceil2.c: Likewise.
5977         * tests/test-ceilf2.c: Likewise.
5978         * tests/test-trunc2.c: Likewise.
5979         * tests/test-truncf2.c: Likewise.
5980         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5981
5982 2012-02-27  Bruno Haible  <bruno@clisp.org>
5983
5984         Tests for module 'sqrtl-ieee'.
5985         * modules/sqrtl-ieee-tests: New file.
5986         * tests/test-sqrtl-ieee.c: New file.
5987
5988         New module 'sqrtl-ieee'.
5989         * modules/sqrtl-ieee: New file.
5990
5991         Tests for module 'sqrt-ieee'.
5992         * modules/sqrt-ieee-tests: New file.
5993         * tests/test-sqrt-ieee.c: New file.
5994
5995         New module 'sqrt-ieee'.
5996         * modules/sqrt-ieee: New file.
5997
5998         Tests for module 'sqrtf-ieee'.
5999         * modules/sqrtf-ieee-tests: New file.
6000         * tests/test-sqrtf-ieee.c: New file.
6001         * tests/test-sqrt-ieee.h: New file.
6002
6003         New module 'sqrtf-ieee'.
6004         * modules/sqrtf-ieee: New file.
6005
6006 2012-02-27  Bruno Haible  <bruno@clisp.org>
6007
6008         remainderl-ieee: Work around test failure on OSF/1.
6009         * m4/remainderl-ieee.m4: New file.
6010         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6011         present, test whether remainderl works with a zero second argument.
6012         Replace it if not.
6013         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6015         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6016         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6017         (Depends-on): Update conditions.
6018         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6019         (Depends-on): Add remainder-ieee.
6020         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6021         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6022         module.
6023
6024         remainderf-ieee: Work around test failure on OSF/1.
6025         * m4/remainderf-ieee.m4: New file.
6026         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6027         present, test whether remainderf works with a zero second argument.
6028         Replace it if not.
6029         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6030         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6031         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6032         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6033         (Depends-on): Update conditions.
6034         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6035         (Depends-on): Add remainder-ieee.
6036         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6037         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6038         module.
6039
6040         remainder-ieee: Work around test failure on OSF/1.
6041         * m4/remainder-ieee.m4: New file.
6042         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6043         present, test whether remainder works with a zero second argument.
6044         Replace it if not.
6045         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6046         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6047         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6048         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6049         (Depends-on): Update dependencies.
6050         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6051         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6052         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6053
6054         Tests for module 'remainderl-ieee'.
6055         * modules/remainderl-ieee-tests: New file.
6056         * tests/test-remainderl-ieee.c: New file.
6057
6058         New module 'remainderl-ieee'.
6059         * modules/remainderl-ieee: New file.
6060
6061         Tests for module 'remainder-ieee'.
6062         * modules/remainder-ieee-tests: New file.
6063         * tests/test-remainder-ieee.c: New file.
6064
6065         New module 'remainder-ieee'.
6066         * modules/remainder-ieee: New file.
6067
6068         Tests for module 'remainderf-ieee'.
6069         * modules/remainderf-ieee-tests: New file.
6070         * tests/test-remainderf-ieee.c: New file.
6071         * tests/test-remainder-ieee.h: New file.
6072
6073         New module 'remainderf-ieee'.
6074         * modules/remainderf-ieee: New file.
6075
6076 2012-02-27  Bruno Haible  <bruno@clisp.org>
6077
6078         modff, modfl: Fix configure syntax error.
6079         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6080         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6081
6082 2012-02-27  Bruno Haible  <bruno@clisp.org>
6083
6084         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6085         * m4/fmodl-ieee.m4: New file.
6086         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6087         whether fmodl works with zero arguments. Replace it if not.
6088         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6089         (Depends-on): Add fmod-ieee.
6090         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6091         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6092
6093         fmodf-ieee: Work around test failure on OSF/1.
6094         * m4/fmodf-ieee.m4: New file.
6095         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6096         whether fmodf works with zero arguments. Replace it if not.
6097         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6099         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6100         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6101         (Depends-on): Update dependencies.
6102         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6103         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6104         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6105
6106         fmodf-ieee: Work around test failure on MSVC 9.
6107         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6108         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6109
6110         fmod-ieee: Work around test failures on OSF/1, mingw.
6111         * m4/fmod-ieee.m4: New file.
6112         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6113         whether fmod works with zero arguments. Replace it if not.
6114         * lib/math.in.h (fmod): New declaration.
6115         * lib/fmod.c: New file.
6116         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6118         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6119         * modules/fmod (Files): Add lib/fmod.c.
6120         (Depends-on): Add math, isinf, trunc, fma.
6121         (configure.ac): Arrange to compile lib/fmod.c if needed.
6122         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6123         m4/signbit.m4.
6124         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6125         * tests/test-math-c++.cc: Check the declaration of fmod.
6126         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6127
6128         fmodl-ieee: Fix test failures.
6129         * lib/fmodl.c (fmodl): Treat Inf specially.
6130         * modules/fmodl (Depends-on): Add isinf.
6131
6132         Tests for module 'fmodl-ieee'.
6133         * modules/fmodl-ieee-tests: New file.
6134         * tests/test-fmodl-ieee.c: New file.
6135
6136         New module 'fmodl-ieee'.
6137         * modules/fmodl-ieee: New file.
6138
6139         Tests for module 'fmod-ieee'.
6140         * modules/fmod-ieee-tests: New file.
6141         * tests/test-fmod-ieee.c: New file.
6142
6143         New module 'fmod-ieee'.
6144         * modules/fmod-ieee: New file.
6145
6146         Tests for module 'fmodf-ieee'.
6147         * modules/fmodf-ieee-tests: New file.
6148         * tests/test-fmodf-ieee.c: New file.
6149         * tests/test-fmod-ieee.h: New file.
6150
6151         New module 'fmodf-ieee'.
6152         * modules/fmodf-ieee: New file.
6153
6154 2012-02-27  Bruno Haible  <bruno@clisp.org>
6155
6156         Tests for module 'rintl-ieee'.
6157         * modules/rintl-ieee-tests: New file.
6158         * tests/test-rintl-ieee.c: New file.
6159
6160         New module 'rintl-ieee'.
6161         * modules/rintl-ieee: New file.
6162
6163         Tests for module 'rint-ieee'.
6164         * modules/rint-ieee-tests: New file.
6165         * tests/test-rint-ieee.c: New file.
6166
6167         New module 'rint-ieee'.
6168         * modules/rint-ieee: New file.
6169
6170         Tests for module 'rintf-ieee'.
6171         * modules/rintf-ieee-tests: New file.
6172         * tests/test-rintf-ieee.c: New file.
6173         * tests/test-rint-ieee.h: New file.
6174
6175         New module 'rintf-ieee'.
6176         * modules/rintf-ieee: New file.
6177
6178 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6179
6180         regex: re_search etc. should return -2 when memory exhausted
6181         This bug was uncovered when testing 'grep'.  Without the fix,
6182         re_search and friends return -1 when memory is exhausted, but -1
6183         means no match, and this causes grep to falsely report no-match
6184         instead of memory-exhaustion.  See
6185         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6186         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6187         trouble; this can occur if re_search_internal ran out of memory.
6188
6189 2012-02-26  Bruno Haible  <bruno@clisp.org>
6190
6191         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6192         * m4/modfl-ieee.m4: New file.
6193         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6194         whether modfl works with Inf. Replace it if not.
6195         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6197         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6198         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6199         (Depends-on): Update dependencies.
6200         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6201         m4/signbit.m4.
6202         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6203         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6204
6205         modfl-ieee: Fix dependencies.
6206         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6207
6208         modfl-ieee: Fix test failures.
6209         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6210         * modules/modfl (Depends-on): Add isfinite, isinf.
6211
6212         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6213         * m4/modff-ieee.m4: New file.
6214         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6215         whether modff works with NaN and Inf. Replace it if not.
6216         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6218         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6219         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6220         (Depends-on): Update dependencies.
6221         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6222         m4/signbit.m4.
6223         (Depends-on): Add modf-ieee.
6224         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6225         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6226
6227         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6228         * m4/modf-ieee.m4: New file.
6229         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6230         whether modf works with NaN and Inf. Replace it if not.
6231         * lib/math.in.h (modf): New declaration.
6232         * lib/modf.c: New file.
6233         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6235         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6236         * modules/modf (Files): Add lib/modf.c.
6237         (Depends-on): Add math, isfinite, trunc, isinf.
6238         (configure.ac): Addrange to compile lib/modf.c if needed.
6239         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6240         m4/signbit.m4.
6241         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6242         * tests/test-math-c++.cc: Check the declaration of modf.
6243         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6244
6245         Tests for module 'modfl-ieee'.
6246         * modules/modfl-ieee-tests: New file.
6247         * tests/test-modfl-ieee.c: New file.
6248
6249         New module 'modfl-ieee'.
6250         * modules/modfl-ieee: New file.
6251
6252         Tests for module 'modf-ieee'.
6253         * modules/modf-ieee-tests: New file.
6254         * tests/test-modf-ieee.c: New file.
6255
6256         New module 'modf-ieee'.
6257         * modules/modf-ieee: New file.
6258
6259         Tests for module 'modff-ieee'.
6260         * modules/modff-ieee-tests: New file.
6261         * tests/test-modff-ieee.c: New file.
6262         * tests/test-modf-ieee.h: New file.
6263
6264         New module 'modff-ieee'.
6265         * modules/modff-ieee: New file.
6266
6267 2012-02-26  Bruno Haible  <bruno@clisp.org>
6268
6269         Tests for module 'fabsl-ieee'.
6270         * modules/fabsl-ieee-tests: New file.
6271         * tests/test-fabsl-ieee.c: New file.
6272
6273         New module 'fabsl-ieee'.
6274         * modules/fabsl-ieee: New file.
6275
6276         Tests for module 'fabs-ieee'.
6277         * modules/fabs-ieee-tests: New file.
6278         * tests/test-fabs-ieee.c: New file.
6279
6280         New module 'fabs-ieee'.
6281         * modules/fabs-ieee: New file.
6282
6283         Tests for module 'fabsf-ieee'.
6284         * modules/fabsf-ieee-tests: New file.
6285         * tests/test-fabsf-ieee.c: New file.
6286         * tests/test-fabs-ieee.h: New file.
6287
6288         New module 'fabsf-ieee'.
6289         * modules/fabsf-ieee: New file.
6290
6291 2012-02-26  Bruno Haible  <bruno@clisp.org>
6292
6293         Tests for module 'fmal-ieee'.
6294         * modules/fmal-ieee-tests: New file.
6295         * tests/test-fmal-ieee.c: New file.
6296
6297         New module 'fmal-ieee'.
6298         * modules/fmal-ieee: New file.
6299
6300         Tests for module 'fma-ieee'.
6301         * modules/fma-ieee-tests: New file.
6302         * tests/test-fma-ieee.c: New file.
6303
6304         New module 'fma-ieee'.
6305         * modules/fma-ieee: New file.
6306
6307         Tests for module 'fmaf-ieee'.
6308         * modules/fmaf-ieee-tests: New file.
6309         * tests/test-fmaf-ieee.c: New file.
6310         * tests/test-fma-ieee.h: New file.
6311
6312         New module 'fmaf-ieee'.
6313         * modules/fmaf-ieee: New file.
6314
6315 2012-02-26  Bruno Haible  <bruno@clisp.org>
6316
6317         Tests for module 'ldexpl-ieee'.
6318         * modules/ldexpl-ieee-tests: New file.
6319         * tests/test-ldexpl-ieee.c: New file.
6320
6321         New module 'ldexpl-ieee'.
6322         * modules/ldexpl-ieee: New file.
6323
6324         Tests for module 'ldexp-ieee'.
6325         * modules/ldexp-ieee-tests: New file.
6326         * tests/test-ldexp-ieee.c: New file.
6327
6328         New module 'ldexp-ieee'.
6329         * modules/ldexp-ieee: New file.
6330
6331         Tests for module 'ldexpf-ieee'.
6332         * modules/ldexpf-ieee-tests: New file.
6333         * tests/test-ldexpf-ieee.c: New file.
6334         * tests/test-ldexp-ieee.h: New file.
6335
6336         New module 'ldexpf-ieee'.
6337         * modules/ldexpf-ieee: New file.
6338
6339 2012-02-26  Bruno Haible  <bruno@clisp.org>
6340
6341         Refactor frexp*-ieee tests.
6342         * tests/test-frexp-ieee.h: New file.
6343         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6344         (main): Just call test_function.
6345         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6346         (main): Just call test_function.
6347         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6348         (main): Just call test_function.
6349         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6350         * modules/frexp-ieee-tests (Files): Likewise.
6351         * modules/frexpl-ieee-tests (Files): Likewise.
6352
6353         Tests for module 'frexpl-ieee'.
6354         * modules/frexpl-ieee-tests: New file.
6355         * tests/test-frexpl-ieee.c: New file.
6356
6357         New module 'frexpl-ieee'.
6358         * modules/frexpl-ieee: New file.
6359
6360         Tests for module 'frexp-ieee'.
6361         * modules/frexp-ieee-tests: New file.
6362         * tests/test-frexp-ieee.c: New file.
6363
6364         New module 'frexp-ieee'.
6365         * modules/frexp-ieee: New file.
6366
6367         Tests for module 'frexpf-ieee'.
6368         * modules/frexpf-ieee-tests: New file.
6369         * tests/test-frexpf-ieee.c: New file.
6370
6371         New module 'frexpf-ieee'.
6372         * modules/frexpf-ieee: New file.
6373
6374 2012-02-26  Bruno Haible  <bruno@clisp.org>
6375
6376         roundl-ieee tests: More tests.
6377         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6378         (main): Add tests for [MX] shaded specification in POSIX.
6379         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6380         (Depends-on): Add isnanl-nolibm.
6381
6382         round-ieee tests: More tests.
6383         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6384         (main): Add tests for [MX] shaded specification in POSIX.
6385         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6386         (Depends-on): Add isnand-nolibm.
6387
6388         roundf-ieee tests: More tests.
6389         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6390         (main): Add tests for [MX] shaded specification in POSIX.
6391         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6392         (Depends-on): Add isnanf-nolibm.
6393
6394         truncl-ieee tests: More tests.
6395         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6396         (main): Add tests for [MX] shaded specification in POSIX.
6397         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6398         (Depends-on): Add isnanl-nolibm.
6399
6400         trunc-ieee tests: More tests.
6401         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6402         (main): Add tests for [MX] shaded specification in POSIX.
6403         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6404         (Depends-on): Add isnand-nolibm.
6405
6406         truncf-ieee tests: More tests.
6407         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6408         (main): Add tests for [MX] shaded specification in POSIX.
6409         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6410         (Depends-on): Add isnanf-nolibm.
6411
6412         ceill-ieee tests: More tests.
6413         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6414         (main): Add tests for [MX] shaded specification in POSIX.
6415         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6416         (Depends-on): Add isnanl-nolibm.
6417
6418         ceil-ieee tests: More tests.
6419         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6420         (main): Add tests for [MX] shaded specification in POSIX.
6421         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6422         (Depends-on): Add isnand-nolibm.
6423
6424         ceilf-ieee tests: More tests.
6425         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6426         (main): Add tests for [MX] shaded specification in POSIX.
6427         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6428         (Depends-on): Add isnanf-nolibm.
6429
6430         floorl-ieee tests: More tests.
6431         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6432         (main): Add tests for [MX] shaded specification in POSIX.
6433         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6434         (Depends-on): Add isnanl-nolibm.
6435
6436         floor-ieee tests: More tests.
6437         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6438         (main): Add tests for [MX] shaded specification in POSIX.
6439         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6440         (Depends-on): Add isnand-nolibm.
6441
6442         floorf-ieee tests: More tests.
6443         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6444         (main): Add tests for [MX] shaded specification in POSIX.
6445         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6446         (Depends-on): Add isnanf-nolibm.
6447
6448 2012-02-26  Bruno Haible  <bruno@clisp.org>
6449
6450         fpieee: More comments.
6451         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6452
6453 2012-02-25  Bruno Haible  <bruno@clisp.org>
6454
6455         Tests for module 'log10l'.
6456         * modules/log10l-tests: New file.
6457         * tests/test-log10l.c: New file.
6458         * tests/test-math-c++.cc: Check the declaration of log10l.
6459
6460         New module 'log10l'.
6461         * lib/math.in.h (log10l): New declaration.
6462         * lib/log10l.c: New file.
6463         * m4/log10l.m4: New file.
6464         * modules/log10l: New file.
6465         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6466         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6467         HAVE_DECL_LOG10L.
6468         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6469         HAVE_DECL_LOG10L.
6470         * doc/posix-functions/log10l.texi: Mention the new module.
6471
6472 2012-02-25  Bruno Haible  <bruno@clisp.org>
6473
6474         fmodl, remainder*: Avoid wrong results due to rounding errors.
6475         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6476         expected bounds.
6477         * lib/remainderf.c (remainderf): Likewise.
6478         * lib/remainder.c (remainder): Likewise.
6479         * lib/remainderl.c (remainderl): Likewise.
6480
6481 2012-02-25  Bruno Haible  <bruno@clisp.org>
6482
6483         Tests for module 'remainderl'.
6484         * modules/remainderl-tests: New file.
6485         * tests/test-remainderl.c: New file.
6486         * tests/test-math-c++.cc: Check the declaration of remainderl.
6487
6488         New module 'remainderl'.
6489         * lib/math.in.h (remainderl): New declaration.
6490         * lib/remainderl.c: New file.
6491         * m4/remainderl.m4: New file.
6492         * modules/remainderl: New file.
6493         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6494         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6495         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6496         HAVE_REMAINDERL.
6497         * doc/posix-functions/remainderl.texi: Mention the new module.
6498
6499 2012-02-25  Bruno Haible  <bruno@clisp.org>
6500
6501         Tests for module 'remainderf'.
6502         * modules/remainderf-tests: New file.
6503         * tests/test-remainderf.c: New file.
6504         * tests/test-math-c++.cc: Check the declaration of remainderf.
6505
6506         New module 'remainderf'.
6507         * lib/math.in.h (remainderf): New declaration.
6508         * lib/remainderf.c: New file.
6509         * m4/remainderf.m4: New file.
6510         * modules/remainderf: New file.
6511         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6513         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6514         HAVE_REMAINDERF.
6515         * doc/posix-functions/remainderf.texi: Mention the new module.
6516
6517 2012-02-25  Bruno Haible  <bruno@clisp.org>
6518
6519         remainder: Support for MSVC.
6520         * lib/math.in.h (remainder): New declaration.
6521         * lib/remainder.c: New file.
6522         * m4/remainder.m4: New file.
6523         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6524         (Depends-on): Add math, round, fma.
6525         (configure.ac): Use results of gl_FUNC_REMAINDER.
6526         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6528         HAVE_DECL_REMAINDER.
6529         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6530         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6531         * tests/test-math-c++.cc: Check the declaration of remainder.
6532         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6533         problems are fixed.
6534
6535 2012-02-25  Bruno Haible  <bruno@clisp.org>
6536
6537         Tests for module 'fmodl'.
6538         * modules/fmodl-tests: New file.
6539         * tests/test-fmodl.c: New file.
6540         * tests/test-math-c++.cc: Check the declaration of fmodl.
6541
6542         New module 'fmodl'.
6543         * lib/math.in.h (fmodl): New declaration.
6544         * lib/fmodl.c: New file.
6545         * m4/fmodl.m4: New file.
6546         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6548         REPLACE_FMODL.
6549         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6550         REPLACE_FMODL.
6551         * modules/fmodl: New file.
6552         * doc/posix-functions/fmodl.texi: Mention the new module.
6553
6554 2012-02-25  Bruno Haible  <bruno@clisp.org>
6555
6556         Tests for module 'modfl'.
6557         * modules/modfl-tests: New file.
6558         * tests/test-modfl.c: New file.
6559         * tests/test-math-c++.cc: Check the declaration of modfl.
6560
6561         New module 'modfl'.
6562         * lib/math.in.h (modfl): New declaration.
6563         * lib/modfl.c: New file.
6564         * m4/modfl.m4: New file.
6565         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6567         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6568         * modules/modfl: New file.
6569         * doc/posix-functions/modfl.texi: Mention the new module.
6570
6571 2012-02-25  Bruno Haible  <bruno@clisp.org>
6572
6573         Tests for module 'fabsl'.
6574         * modules/fabsl-tests: New file.
6575         * tests/test-fabsl.c: New file.
6576         * tests/test-math-c++.cc: Check the declaration of fabsl.
6577
6578         New module 'fabsl'.
6579         * lib/math.in.h (fabsl): New declaration.
6580         * lib/fabsl.c: New file.
6581         * m4/fabsl.m4: New file.
6582         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6584         REPLACE_FABSL.
6585         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6586         REPLACE_FABSL.
6587         * modules/fabsl: New file.
6588         * doc/posix-functions/fabsl.texi: Mention the new module.
6589
6590 2012-02-25  Bruno Haible  <bruno@clisp.org>
6591
6592         fabs tests: More tests.
6593         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6594         (zero): New variable.
6595         (main): Add tests for signed zero.
6596         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6597
6598         fabsf tests: More tests.
6599         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6600         (zero): New variable.
6601         (main): Add tests for signed zero.
6602         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6603
6604 2012-02-24  Bruno Haible  <bruno@clisp.org>
6605
6606         atanl: Provide function definition on MSVC.
6607         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6608         function pointer.
6609         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6610
6611 2012-02-24  Bruno Haible  <bruno@clisp.org>
6612
6613         acosl: Provide function definition on MSVC.
6614         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6615         function pointer.
6616         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6617
6618 2012-02-24  Bruno Haible  <bruno@clisp.org>
6619
6620         asinl: Provide function definition on MSVC.
6621         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6622         function pointer.
6623         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6624
6625 2012-02-24  Bruno Haible  <bruno@clisp.org>
6626
6627         tanl: Provide function definition on MSVC.
6628         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6629         function pointer.
6630         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6631
6632 2012-02-24  Bruno Haible  <bruno@clisp.org>
6633
6634         cosl: Provide function definition on MSVC.
6635         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6636         function pointer.
6637         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6638
6639 2012-02-24  Bruno Haible  <bruno@clisp.org>
6640
6641         sinl: Provide function definition on MSVC.
6642         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6643         function pointer.
6644         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6645
6646 2012-02-24  Bruno Haible  <bruno@clisp.org>
6647
6648         logl: Provide function definition on MSVC.
6649         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6650         function pointer.
6651         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6652
6653 2012-02-24  Bruno Haible  <bruno@clisp.org>
6654
6655         expl: Provide function definition on MSVC.
6656         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6657         function pointer.
6658         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6659
6660 2012-02-24  Bruno Haible  <bruno@clisp.org>
6661
6662         sqrtl: Provide function definition on MSVC.
6663         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6664         a function pointer.
6665         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6666
6667 2012-02-24  Bruno Haible  <bruno@clisp.org>
6668
6669         ceill: Provide function definition on MSVC.
6670         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6671         used as a function pointer.
6672         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6673
6674 2012-02-24  Bruno Haible  <bruno@clisp.org>
6675
6676         floorl: Provide function definition on MSVC.
6677         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6678         used as a function pointer.
6679         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6680
6681 2012-02-24  Bruno Haible  <bruno@clisp.org>
6682
6683         ceilf: Provide function definition on MSVC.
6684         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6685         used as a function pointer.
6686         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6687
6688 2012-02-24  Bruno Haible  <bruno@clisp.org>
6689
6690         floorf: Provide function definition on MSVC.
6691         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6692         used as a function pointer.
6693         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6694
6695 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6696
6697         stdnoreturn: new module
6698         This implements a replacement for C11's <stdnoreturn.h>.
6699         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6700         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6701         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6702         * tests/test-stdnoreturn.c: New files.
6703
6704 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6705
6706         regex: fix false multibyte matches in some regular expressions
6707         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6708         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6709         * lib/regex_internal.c (re_string_skip_chars):
6710         Fix miscomputation of remain_len that may cause incomplete
6711         multi-byte character and false match.
6712
6713 2012-02-24  Jim Meyering  <meyering@redhat.com>
6714
6715         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6716         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6717         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6718         Remove now-unnecessary str''cmp obfuscation.
6719         Suggested by Akim Demaille.
6720
6721 2012-02-24  Bruno Haible  <bruno@clisp.org>
6722
6723         streq: Rename macro.
6724         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6725         * NEWS: Mention the change.
6726         * lib/mbrtowc.c (mbrtowc): Update.
6727         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6728         * lib/wcwidth.c (wcwidth): Update.
6729         Suggested by Akim Demaille and Jim Meyering.
6730
6731 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6732
6733         regex: fix typo in definition of MIN
6734         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6735         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6736
6737 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6738             Bruno Haible  <bruno@clisp.org>
6739
6740         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6741         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6742         entries into a stack-allocated buffer directly.
6743         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6744
6745 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6746             Bruno Haible  <bruno@clisp.org>
6747
6748         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6749
6750          - There were several instances of this pattern:
6751
6752              for (;;) {
6753                n = acl (f, GETACLCNT, 0, NULL);
6754                [ allocate an array A of size N ]
6755                if (acl (f, GETACL, n, a) == n)
6756                  break;
6757              }
6758
6759            This loop might never terminate if some other process is constantly
6760            manipulating the file's ACL.  The loop should be rewritten to
6761            terminate.
6762
6763          - The acl (... GETACLNT ...) call is merely an optimization; its value
6764            is merely a hint as to how big to make the array.  A better
6765            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6766            and just guess a reasonably-big size, growing the size and trying
6767            again if it's not large enough.  This guarantees termination, and
6768            saves a system call.
6769
6770         * lib/acl-internal.h: Include <limits.h>.
6771         (MIN, SIZE_MAX): New macros.
6772         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6773         a stack-allocated buffer, and use malloc if it does not fit. Don't
6774         use GETACLCNT.
6775         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6776
6777 2012-02-19  Bruno Haible  <bruno@clisp.org>
6778
6779         acl: Fix endless loop on Solaris with vxfs.
6780         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6781         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6782         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6783         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6784         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6785         Reported by Bill Jones in
6786         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6787
6788 2012-02-19  Bruno Haible  <bruno@clisp.org>
6789
6790         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6791         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6792         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6793         that this function returns 0 in some more cases.
6794
6795 2012-02-19  Bruno Haible  <bruno@clisp.org>
6796
6797         acl: Update doc references.
6798         * doc/acl-resources.txt: Update links to Solaris documentation.
6799
6800 2012-02-19  Bruno Haible  <bruno@clisp.org>
6801
6802         Fix test failure in many locales on Solaris 11.
6803         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6804         'tr' arguments.
6805         * tests/test-pipe-filter-ii1.c (main): Likewise.
6806         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6807         expressions in the C locale.
6808         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6809         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6810
6811 2012-02-19  Bruno Haible  <bruno@clisp.org>
6812
6813         gnulib-tool: Improve usage message.
6814         * gnulib-tool (func_usage): Move doc of --help and --version to the
6815         section "Operation modes".
6816
6817 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6818
6819         README-release: make it easier to execute commands
6820         * top/README-release: break commands out on to separate lines.
6821
6822 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6823
6824         GNUmakefile: simplify detection of unconfigured trees
6825         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6826         whether the tree make is being run from is already configured or
6827         not.  Related simplifications.
6828
6829 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6830
6831         * gnulib-tool (func_usage): Document --help and --version.
6832
6833 2012-02-11  Jim Meyering  <meyering@redhat.com>
6834
6835         bootstrap: don't exit 0 upon gnulib-tool failure
6836         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6837         its exit status, not 0.
6838
6839 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6840
6841         README-release: various improvements
6842         * top/README-release: Give a command to push changes for the
6843         release.  Add "distcheck" to list of other pre-release checks.
6844         Fix instance of "make stable" which should be "make TYPE".
6845
6846 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6847
6848         maint: replace FSF snail-mail addresses with URLs
6849         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6850         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6851         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6852         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6853         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6854         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6855         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6856         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6857         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6858         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6859         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6860         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6861         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6862         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6863         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6864         * lib/glthread/thread.c, lib/glthread/thread.h:
6865         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6866         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6867         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6868         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6869         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6870         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6871         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6872         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6873         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6874         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6875         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6876         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6877         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6878         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6879         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6880         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6881         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6882         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6883         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6884         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6885         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6886         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6887         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6888         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6889         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6890         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6891         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6892         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6893         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6894         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6895         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6896         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6897         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6898         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6899         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6900         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6901         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6902         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6903         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6904         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6905         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6906         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6907         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6908         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6909         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6910         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6911         * tests/test-poll.c, tests/test-quotearg-simple.c:
6912         * tests/test-quotearg.c, tests/test-quotearg.h:
6913         * tests/test-round-ieee.c, tests/test-round1.c:
6914         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6915         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6916         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6917         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6918         * tests/test-strerror.c, tests/test-strerror_r.c:
6919         * tests/test-strsignal.c, tests/test-strverscmp.c:
6920         * tests/test-xmemdup0.c:
6921         Replace FSF snail mail addresses with URLs, as per GNU coding
6922         standards.  See glibc bug
6923         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6924
6925 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6926
6927         README-release: capitalize a word and split a line
6928         * top/README-release: Fix punctuation and spacing.
6929
6930 2012-02-08  Akim Demaille  <demaille@gostai.com>
6931
6932         fatal-signal: use C prototypes (with explicit void).
6933         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6934         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6935
6936 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6937
6938         regex: spelling fix
6939         * lib/regexec.c: spelling fix
6940
6941         regex: rely on stdint.h for SIZE_MAX
6942         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6943
6944 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6945
6946         regex: merge glibc changes
6947
6948         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6949         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6950         (init_word_char): Work even if bitset words are not exactly 32 or
6951         64 bits wide.  Don't assume there are no padding bits.
6952         * lib/regex.c [_LIBC]: Do not include <config.h>.
6953         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6954         and -Wtype-limits.
6955         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6956         needless disagreement with glibc.  All uses changed.  Define it to
6957         1 only if _GNU_SOURCE, to match glibc.
6958         (_REG_RM_NAME): Remove; no longer needed, since the names in
6959         question are now all protected by __USE_GNU.
6960         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6961         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6962         * lib/regex_internal.h (MIN): New macro.
6963
6964         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6965         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6966
6967         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6968         * lib/regex_internal.c (re_string_fetch_byte_case):
6969         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6970         is miscompiled, and it turns out it is because of an incorrect
6971         attribute on re_string_fetch_byte_case.  Unlike
6972         re_string_peek_byte_case, this one is really not pure, it modifies
6973         memory (increments pstr->cur_idx), and with the pure attribute GCC
6974         assumed it doesn't and it cached the presumed value of
6975         regexp->cur_idx in a variable across the
6976          for (;; ++i)
6977            {
6978              if (i >= BRACKET_NAME_BUF_SIZE)
6979                return REG_EBRACK;
6980              if (token->type == OP_OPEN_CHAR_CLASS)
6981                ch = re_string_fetch_byte_case (regexp);
6982              else
6983                ch = re_string_fetch_byte (regexp);
6984              if (re_string_eoi(regexp))
6985                return REG_EBRACK;
6986              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6987                break;
6988              elem->opr.name[i] = ch;
6989            }
6990
6991         2011-11-29 Andreas Schwab <schwab@redhat.com>
6992         * lib/regcomp.c (build_equiv_class):
6993         Fix access after end of search string in regex matcher.
6994
6995         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6996         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6997
6998         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6999         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7000
7001         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7002         * lib/regcomp.c (parse_branch, parse_sub_exp):
7003         More regex memory leak fixes and tests.
7004         (parse_sub_exp, parse_bracket_exp):
7005         Fix memory leak for some invalid regular expressions.
7006
7007         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7008         * lib/regex_internal.c, lib/regexec.c:
7009         Fix unnecessary overallocation due to incomplete character.  When
7010         incomplete characters are found at the end of a string the code
7011         ran amok and allocated lots of memory.  Stricter limits are now in
7012         place.
7013
7014         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7015         * lib/regex.h: Update documentation.
7016
7017         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7018         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7019
7020         2010-05-05 Andreas Schwab <schwab@redhat.com>
7021         * lib/regexec.c (find_collation_sequence_value):
7022         Fix lookup of collation sequence value during regexp matching.
7023
7024         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7025         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7026
7027         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7028         * lib/regex.h: Cleanup namespace.
7029
7030         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7031         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7032
7033         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7034         * lib/regex_internal.h: Prevent some declarations and definitions
7035         to be seen when used in tests.
7036
7037         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7038         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7039         __libc_lock_* macros if not _LIBC.
7040         (struct re_dfa_t): Add lock.
7041
7042 2012-02-07  Eric Blake  <eblake@redhat.com>
7043
7044         maint.mk: also prohibit lower-case @var@
7045         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7046         lower case, like @top_srcdir@.
7047
7048 2012-02-04  Eric Blake  <eblake@redhat.com>
7049
7050         canonicalize: avoid uninitialized memory use
7051         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7052         random '/' left in dest.
7053         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7054
7055 2012-02-04  Bruno Haible  <bruno@clisp.org>
7056
7057         isatty: Fix test failure of ptsname_r on native Windows.
7058         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7059         and don't set errno.
7060         (isatty): Test first whether fd is valid. Set errno when returning 0.
7061
7062 2012-02-04  Bruno Haible  <bruno@clisp.org>
7063
7064         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7065         * tests/test-spawn-pipe-main.c: Include progname.h.
7066         (main): Invoke set_program_name.
7067         * modules/spawn-pipe-tests (Depends-on): Add progname.
7068
7069         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7070         * tests/test-nonblocking-socket-main.c: Include progname.h.
7071         (main): Invoke set_program_name.
7072         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7073
7074         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7075         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7076         (main): Invoke set_program_name.
7077         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7078
7079 2012-02-04  Eric Blake  <eblake@redhat.com>
7080
7081         canonicalize-lgpl: fix // handling
7082         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7083
7084         canonicalize: fix // handling
7085         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7086         /// to //, since only // is special.
7087
7088 2012-02-04  Bruno Haible  <bruno@clisp.org>
7089
7090         ioctl: Fix test failure on native Windows.
7091         * lib/ioctl.c: Include msvc-nothrow.h.
7092         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7093
7094 2012-02-04  Bruno Haible  <bruno@clisp.org>
7095
7096         fsync: Avoid test failure on native Windows.
7097         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7098         read-only.
7099
7100 2012-02-04  Bruno Haible  <bruno@clisp.org>
7101
7102         sys_select: Avoid syntax error on OpenBSD 5.0.
7103         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7104         currently being included, just include the system's <sys/select.h>.
7105
7106 2012-02-04  Bruno Haible  <bruno@clisp.org>
7107
7108         sys_select: Avoid syntax error on OpenBSD 5.0.
7109         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7110         <sys/select.h>, not before.
7111         Reported by Jiri B <jirib@devio.us>.
7112
7113 2012-02-04  Bruno Haible  <bruno@clisp.org>
7114
7115         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7116         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7117         global variables.
7118         * tests/test-get-rusage-data.c (main): Likewise.
7119         Reported by Jim Meyering.
7120
7121 2012-02-04  Bruno Haible  <bruno@clisp.org>
7122
7123         stdioext: Fix last commit.
7124         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7125
7126 2012-02-03  Bruno Haible  <bruno@clisp.org>
7127
7128         stdioext: Add tentative support for Plan9.
7129         * lib/stdio-impl.h: Include <errno.h>.
7130         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7131         * lib/freadable.c (freadable): Likewise.
7132         * lib/fwritable.c (fwritable): Likewise.
7133         * lib/fbufmode.c (fbufmode): Likewise.
7134         * lib/freading.c (freading): Likewise.
7135         * lib/fwriting.c (fwriting): Likewise.
7136         * lib/freadptr.c (freadptr): Likewise.
7137         * lib/freadseek.c (freadptrinc): Likewise.
7138         * lib/freadahead.c (freadahead): Likewise.
7139         * lib/fpurge.c (fpurge): Likewise.
7140         * lib/fseeko.c (rpl_fseeko): Likewise.
7141         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7142         Reported by Jens Staal <staal1978@gmail.com>.
7143
7144 2012-02-02  Jim Meyering  <meyering@redhat.com>
7145
7146         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7147         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7148         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7149         not even to try to add the attribute.  Instead, add a pragma to suppress
7150         the suggestion/warning.
7151
7152 2012-01-31  Karl Berry  <karl@gnu.org>
7153
7154         setstate doc: typo.
7155         * doc/posix-functions/setstate.texi (setstate): { not (.
7156
7157 2012-01-31  Bruno Haible  <bruno@clisp.org>
7158
7159         popen: Make more robust on Windows.
7160         * lib/popen.c: On native Windows, use the _popen based code even if
7161         HAVE_POPEN is set.
7162         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7163         environment variable on native Windows.
7164
7165 2012-01-30  Bruno Haible  <bruno@clisp.org>
7166
7167         pclose: Fix typo.
7168         * lib/stdio.in.h (pclose): Fix typo in warning message.
7169
7170 2012-01-30  Bruno Haible  <bruno@clisp.org>
7171
7172         doc about getlogin_r, setstate.
7173         * doc/posix-functions/getlogin_r.texi: List the incompatible
7174         declaration problem under "not fixed by gnulib".
7175         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7176         problem on Solaris 11 and other platforms.
7177
7178 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7179             Bruno Haible  <bruno@clisp.org>
7180
7181         poll tests: Make test more robust.
7182         * tests/test-poll.c: Include macros.h.
7183         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7184         return value of various I/O operations.
7185         * modules/poll-tests (Files): Add tests/macros.h.
7186
7187 2012-01-30  Bruno Haible  <bruno@clisp.org>
7188
7189         sys_stat: Fix support for mingw64 and MSVC.
7190         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7191         header files already do it.
7192         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7193         stat itself.
7194         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7195
7196 2012-01-30  Bruno Haible  <bruno@clisp.org>
7197
7198         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7200         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7201
7202 2012-01-29  Bruno Haible  <bruno@clisp.org>
7203
7204         quotearg: Fix test failure on MacOS X 10.5.
7205         * tests/test-quotearg-simple.c: Include localcharset.h.
7206         (main): If the locale encoding is not ASCII, bypass the tests of
7207         locale_quoting_style and clocale_quoting_style.
7208         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7209
7210 2012-01-29  Jim Meyering  <meyering@redhat.com>
7211
7212         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7213         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7214         detect uses of canonicalize_file_name.
7215
7216 2012-01-28  Bruno Haible  <bruno@clisp.org>
7217
7218         test-framework-sh: Fix test failure with AIX 7.1 diff.
7219         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7220         in column 1, like 'diff -c' does.
7221         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7222         whether 'diff -u' is used. Instead, test whether the output contains
7223         some '@' character.
7224
7225 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7226
7227         strtoimax: eliminate need for stdint.h, inttypes.h checks
7228         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7229         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7230         the prerequisites for a recently-introduced strtoimax test.
7231         I guess this might cause strtoimax to be replaced when not
7232         strictly necessary on older hosts, but this shouldn't introduce
7233         any bugs and it should make Emacs 'configure' faster on typical
7234         modern hosts.  Problem discovered when importing the latest gnulib
7235         to an Emacs test version.
7236         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7237
7238 2012-01-28  Bruno Haible  <bruno@clisp.org>
7239
7240         sys_time: Override 'struct timeval' on some native Windows platforms.
7241         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7242         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7243         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7244         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7245         needs to be overridden.
7246         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7247         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7248         * tests/test-sys_select.c: Check that the tv_sec member has the same
7249         size as a 'time_t'.
7250         * tests/test-sys_time.c: Likewise.
7251         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7252         is set, set also REPLACE_GETTIMEOFDAY.
7253         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7254         convert the resulting 'struct timeval' before returning.
7255         * lib/select.c: Include <sys/time.h>.
7256         (select, timeval): Undefine at the right place.
7257         * modules/select (Depends-on): Add sys_time.
7258         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7259         some Windows platforms.
7260         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7261
7262 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7263
7264         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7265         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7266         an integer.
7267         * lib/fcntl.c (dupfd): Likewise.
7268         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7269
7270 2012-01-28  Bruno Haible  <bruno@clisp.org>
7271
7272         fcntl: Avoid compilation error on native Windows.
7273         * modules/fcntl (Depends-on): Add 'close'.
7274
7275 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7276
7277         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7278         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7279         pointer to an integer.
7280         * lib/poll.c (IsConsoleHandle): Likewise.
7281         * lib/isatty.c (IsConsoleHandle): Likewise.
7282
7283 2012-01-28  Jim Meyering  <meyering@redhat.com>
7284
7285         doc: clarify README-release
7286         * top/README-release: Clarify: you should make a point to have
7287         the latest stable versions of build tools in your PATH, and the
7288         reference to buildreq is solely for its list of tool names, not
7289         for its minimal-functional version numbers.
7290         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7291
7292         maint.mk: use more readable (yet functionally equivalent) quoting
7293         It is common to quote a single quote in a single quoted string like
7294         this:  '...'\''...'.  Unless you know the idiom, that looks like
7295         gibberish, so prefer to double-quote the string when possible.
7296         Then you can use a more readable, lone single quote: "...'..."
7297         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7298         "don't" is more readable than the equivalent 'don'\''t'.
7299         (sc_cast_of_x_alloc_return_value): Likewise.
7300         (sc_cast_of_alloca_return_value): Likewise.
7301         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7302         rather than '\'':'\''.
7303
7304 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7305
7306         stdalign: relax _Alignof and tighten _Alignas test
7307         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7308         as it was too strict: alignof must divide offsetof, but it need
7309         not equal offsetof.  Inspired by Joseph S. Myers's comment
7310         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7311         Conversely, tighten the _Alignas test a bit, as the resulting
7312         alignment must be exactly 8.
7313
7314 2012-01-27  Bruno Haible  <bruno@clisp.org>
7315
7316         stdalign: Document the last change.
7317         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7318
7319 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7320
7321         stdalign: check that alignof and offsetof are consistent
7322         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7323         Problem reported for gnulib by Richard W.M. Jones in
7324         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7325
7326 2012-01-27  Jim Meyering  <meyering@redhat.com>
7327
7328         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7329         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7330         convert a sequence with gaps to the minimal containing range.
7331         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7332         * tests/test-update-copyright.sh: Test for this.
7333         The FSF confirmed it is ok to do this, assuming there is at
7334         least one significant change per year in the affected range:
7335         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7336
7337 2012-01-26  Bruno Haible  <bruno@clisp.org>
7338
7339         pipe2: refine doc about thread-safety
7340         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7341         multithread-safety problem.
7342         * doc/glibc-functions/accept4.texi: Likewise.
7343
7344 2012-01-26  Bruno Haible  <bruno@clisp.org>
7345
7346         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7347         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7348         In the test program, include <fcntl.h>, for O_RDONLY.
7349
7350 2012-01-26  Eric Blake  <eblake@redhat.com>
7351
7352         pipe2: document lack of thread-safety in replacement
7353         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7354         issue in replacement.
7355         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7356         Based on a report by Eric Wong.
7357
7358 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7359             Bruno Haible  <bruno@clisp.org>
7360
7361         malloca: Avoid warnings on x86_64 mingw64.
7362         * lib/malloca.c: Include <stdint.h>.
7363         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7364         * modules/malloca (Depends-on): Add stdint.
7365         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7366
7367 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7368
7369         obstack: remove __STDC__ conditionals
7370         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7371         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7372         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7373         m4/include_next.m4 as the only gnulib-maintained places that still
7374         refer to __STDC__.
7375
7376 2012-01-24  Bruno Haible  <bruno@clisp.org>
7377
7378         havelib: Modern quoting.
7379         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7380         the recent change to the GNU coding standards.
7381
7382 2012-01-24  Bruno Haible  <bruno@clisp.org>
7383
7384         stdint: Improve support for Android.
7385         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7386         Reported by Simon Josefsson <simon@josefsson.org>.
7387
7388 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7389
7390         doc: omit trailing empty lines from INSTALL etc.
7391         * doc/Makefile (INSTALL): Omit trailing empty lines.
7392         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7393         omit trailing empty lines.  This simplifies the build procedure.
7394
7395 2012-01-23  Jim Meyering  <meyering@redhat.com>
7396
7397         tests: avoid spurious warnings about gl_sockets_startup
7398         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7399         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7400         reporting a "statement with no effect".
7401         * tests/test-accept.c (main): Mark as "(void)".
7402         * tests/test-accept4.c (main): Likewise.
7403         * tests/test-bind.c (main): Likewise.
7404         * tests/test-connect.c (main): Likewise.
7405         * tests/test-getpeername.c (main): Likewise.
7406         * tests/test-getsockname.c (main): Likewise.
7407         * tests/test-getsockopt.c (main): Likewise.
7408         * tests/test-listen.c (main): Likewise.
7409         * tests/test-recv.c (main): Likewise.
7410         * tests/test-recvfrom.c (main): Likewise.
7411         * tests/test-send.c (main): Likewise.
7412         * tests/test-sendto.c (main): Likewise.
7413         * tests/test-setsockopt.c (main): Likewise.
7414         * tests/test-shutdown.c (main): Likewise.
7415
7416 2012-01-21  Bruno Haible  <bruno@clisp.org>
7417
7418         locale-fr.m4: Fix for Android.
7419         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7420         failure of the test program on Bionic libc.
7421
7422 2012-01-21  Jim Meyering  <meyering@redhat.com>
7423
7424         bootstrap: fail when bootstrap_post_import_hook fails
7425         Otherwise, it's far too easy to miss diagnostics emitted
7426         between gnulib-tool's output and that of running configure.
7427         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7428
7429 2012-01-17  Jim Meyering  <meyering@redhat.com>
7430
7431         maint: enable sc_trailing_blank
7432         * build-aux/pmccabe.css: Remove trailing blanks.
7433         * doc/acl-cygwin.txt: Likewise.
7434         * doc/gnu-oids.texi: Likewise
7435         * cfg.mk: Enable sc_trailing_blank.
7436         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7437
7438 2012-01-17  Jim Meyering  <meyering@redhat.com>
7439
7440         maint: enable sc_prohibit_openat_without_use
7441         * cfg.mk: Enable sc_prohibit_openat_without_use.
7442         Exempt lib/selinux-at.c.
7443
7444 2012-01-17  Jim Meyering  <meyering@redhat.com>
7445
7446         maint: enable sc_prohibit_cloexec_without_use
7447         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7448         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7449
7450 2012-01-17  Jim Meyering  <meyering@redhat.com>
7451
7452         maint: enable sc_prohibit_intprops_without_use
7453         * cfg.mk: Enable sc_prohibit_intprops_without_use
7454         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7455
7456 2012-01-17  Jim Meyering  <meyering@redhat.com>
7457
7458         maint: enable sc_prohibit_hash_pjw_without_use
7459         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7460         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7461         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7462         following " (".
7463
7464 2012-01-17  Jim Meyering  <meyering@redhat.com>
7465
7466         maint: enable double-word-prohibiting rule
7467         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7468         Exempt three files.
7469
7470 2012-01-17  Jim Meyering  <meyering@redhat.com>
7471
7472         maint: remove empty lines at EOF, but excluding modules/*
7473         Apply syntax rules at home as well as abroad.  Most changes
7474         were induced by running this:
7475           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7476             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7477             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7478         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7479         Exempt modules/* and two binary files.
7480         Also exempt doc/INSTALL*, per request from Bruno Haible.
7481         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7482         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7483         * doc/Copyright/request-assign.future: Likewise.
7484         * doc/Copyright/request-disclaim.changes: Likewise.
7485         * doc/INSTALL: Likewise.
7486         * doc/INSTALL.ISO: Likewise.
7487         * doc/INSTALL.UTF-8: Likewise.
7488         * doc/acl-cygwin.txt: Likewise.
7489         * doc/acl-resources.txt: Likewise.
7490         * doc/fdl-1.2.texi: Likewise.
7491         * doc/fdl-1.3.texi: Likewise.
7492         * doc/fdl.texi: Likewise.
7493         * lib/argp-pin.c: Likewise.
7494         * lib/round.c: Likewise.
7495         * lib/unicase/u16-totitle.c: Likewise.
7496         * lib/unictype/block_test.c: Likewise.
7497         * lib/uninorm/canonical-decomposition.c: Likewise.
7498         * m4/README: Likewise.
7499         * m4/relocatable-lib.m4: Likewise.
7500         * tests/test-isnand-nolibm.c: Likewise.
7501         * tests/test-isnand.c: Likewise.
7502         * tests/uninorm/NormalizationTest.txt: Likewise.
7503
7504 2012-01-17  Jim Meyering  <meyering@redhat.com>
7505
7506         maint: add framework to run syntax-check rules against gnulib sources
7507         * cfg.mk: New file, to disable all currently-failing tests.
7508         We'll enable them one by one, as they are made to pass.
7509         * Makefile (sc_maint): New rule.
7510
7511 2012-01-21  Bruno Haible  <bruno@clisp.org>
7512
7513         stdint: Add support for Android.
7514         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7515         include the system's <stdint.h>.
7516         Reported by Simon Josefsson <simon@josefsson.org>.
7517
7518 2012-01-19  Jim Meyering  <meyering@redhat.com>
7519
7520         bootstrap: add bootstrap_post_import_hook
7521         Bison does still need something like the gnulib_mk_hook whose
7522         invocation I had to remove along with slurp in commit 767ccd40.
7523         Technically, we could get along without it, but doing so would
7524         have required living with a warning and a mandatory post-bootstrap
7525         automake rerun.
7526         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7527         (bootstrap_post_import_hook): New function.
7528         Invoke it after gnulib-tool --import and before autoreconf.
7529
7530 2012-01-18  Jim Meyering  <meyering@redhat.com>
7531
7532         gitlog-to-changelog: don't use "no_"-prefixed variable name
7533         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7534         to enable both --cluster and --no-cluster.  Change variable name,
7535         s/\$no_cluster/$cluster/, and reverse usage to match.
7536
7537         gitlog-to-changelog: use "||", not "or" in expressions
7538         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7539         expressions.
7540
7541 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7542
7543         gitlog-to-changelog: new option --no-cluster
7544         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7545         clustering of adjacent commit messages.
7546
7547 2012-01-17  Jim Meyering  <meyering@redhat.com>
7548
7549         maint: spell file systems with two words, not one
7550         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7551         two words, not one.
7552
7553 2012-01-16  Jim Meyering  <meyering@redhat.com>
7554
7555         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7556         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7557
7558 2012-01-16  Eric Blake  <eblake@redhat.com>
7559
7560         bootstrap: cater to autoconf 2.59
7561         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7562         is not available.
7563
7564         bootstrap: properly check for libtool
7565         * build-aux/bootstrap (libtoolize): Also run libtool when older
7566         usage is detected.
7567
7568 2012-01-15  Bruno Haible  <bruno@clisp.org>
7569
7570         Improve support for MSVC 9.
7571         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7572         clashes on MSVC.
7573         * lib/fcntl.in.h: Likewise.
7574         * lib/stdlib.in.h: Likewise.
7575         * lib/sys_stat.in.h: Likewise.
7576
7577 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7578
7579         gnupload: we hold the master copy of this script now
7580         For motivation and more information, see:
7581         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7582         * build-aux/gnupload: Make it clear in the heading comments that the
7583         master copy of this file is maintained by gnulib.  Since we are at
7584         it, bump its copyright year and ...
7585         ($scriptversion): ... the date in its version.
7586         ($usage): Patches and bug reports should be sent to the gnulib list,
7587         not the automake one.
7588         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7589         anymore.
7590
7591 2012-01-15  Bruno Haible  <bruno@clisp.org>
7592
7593         Fix module 'random'.
7594         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7595         initstate, setstate are declared.
7596
7597 2012-01-14  Bruno Haible  <bruno@clisp.org>
7598
7599         Tests for module 'random'.
7600         * modules/random-tests: New file.
7601         * tests/test-random.c: New file, based on tests/test-random_r.c.
7602
7603         New module 'random'.
7604         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7605         declarations.
7606         * lib/random.c: New file, based on glibc/stdlib/random.c.
7607         * m4/random.m4: New file.
7608         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7609         HAVE_RANDOM.
7610         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7611         * modules/random: New file.
7612         * config/srclist.txt: Add an entry for random.c.
7613         * doc/posix-functions/random.texi: Mention the 'random' module.
7614         * doc/posix-functions/initstate.texi: Likewise.
7615         * doc/posix-functions/setstate.texi: Likewise.
7616         * doc/posix-functions/srandom.texi: Likewise.
7617
7618 2012-01-12  Bruno Haible  <bruno@clisp.org>
7619
7620         random_r: Use common idioms.
7621         * lib/random_r.c: Include <stdlib.h> first.
7622
7623         random_r: Override incompatible API on AIX, OSF/1.
7624         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7625         Override the system function if REPLACE_RANDOM_R is 1.
7626         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7627         and OSF/1, set REPLACE_RANDOM_R.
7628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7629         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7630         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7631         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7632         * doc/glibc-functions/random_r.texi: Likewise.
7633         * doc/glibc-functions/setstate_r.texi: Likewise.
7634
7635         random_r: Support for MSVC 9.
7636         * lib/random_r.c: Include stdint.h, not inttypes.h.
7637
7638 2012-01-12  Eric Blake  <eblake@redhat.com>
7639
7640         inet_ntop: guard extra work by IF_LINT
7641         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7642         better code generation when not checking for warnings.
7643         Suggested by Paul Eggert and Jim Meyering.
7644
7645         strptime: fix regression on mingw
7646         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7647         Fix regression.  Reported by Bruno Haible.
7648
7649 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7650             Bruno Haible  <bruno@clisp.org>
7651
7652         copy-file: add error-code-returning variant.
7653         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7654         (qcopy_file_preserving): New declaration.
7655         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7656         copy_file_preserving. Change return type to 'int'. Don't emit an error
7657         message here.
7658         (copy_file_preserving): New function.
7659         * tests/test-copy-file.c: Include <stdlib.h>.
7660         (main): Test qcopy_file_preserving if the environment variable
7661         NO_STDERR_OUTPUT is set.
7662         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7663         with NO_STDERR_OUTPUT
7664         * tests/test-copy-file-2.sh: Likewise.
7665
7666 2012-01-10  Bruno Haible  <bruno@clisp.org>
7667
7668         copy-file: Use 'quote' module consistently.
7669         * lib/copy-file.c (copy_file_preserving): Use quote().
7670
7671         copy-file: Refactor.
7672         * lib/copy-file.c: Include quote.h.
7673         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7674         message here.
7675         * modules/copy-file (Depends-on): Add quote.
7676
7677         acl: Export qcopy_acl.
7678         * lib/acl.h (qcopy_acl): New declaration.
7679         * lib/copy-acl.c (qcopy_acl): Make non-static.
7680
7681         acl: Rename a local variable.
7682         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7683
7684         acl: Align return values of copy_acl and qcopy_acl.
7685         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7686         maybe < -1.
7687
7688 2012-01-11  Eric Blake  <eblake@redhat.com>
7689
7690         strptime: silence gcc warnings
7691         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7692         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7693         Reported by Daniel P. Berrange.
7694
7695         inet_ntop: silence gcc warning
7696         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7697         Reported by Daniel P. Berrange.
7698
7699 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7700
7701         getloadavg test: skip the test on GNU/Linux without /proc mounted
7702         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7703         file.  When /proc is not mounted, it always fails with ENOENT.
7704         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7705         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7706
7707 2012-01-10  Bruno Haible  <bruno@clisp.org>
7708
7709         regex: Avoid link error on MSVC 9.
7710         * modules/regex (Depends-on): Add wctype.
7711
7712 2012-01-10  Bruno Haible  <bruno@clisp.org>
7713
7714         doc: Mention --with-tests option.
7715         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7716         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7717         --with-tests.
7718         Reported by Reuben Thomas.
7719
7720 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7721
7722         users.txt: order package names lexicographically.
7723         * users.txt: Order package names lexicographically.
7724
7725 2012-01-10  Jim Meyering  <meyering@redhat.com>
7726
7727         maint.mk: fix description in comment
7728         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7729
7730         ignore-value: remove deprecated ignore_ptr function
7731         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7732         * NEWS: Note this.
7733
7734 2012-01-09  Jim Meyering  <meyering@redhat.com>
7735
7736         test-init.sh: avoid a subshell
7737         * tests/test-init.sh: Remove protective subshell.
7738         Suggested by Bernhard Voelker.  While a subshell is normally
7739         required to protect against older shells (Solaris, FreeBSD) that
7740         warn about a missing program before performing redirection, the
7741         shell-selection tests performed by init.sh probably exclude any
7742         offending shell.
7743
7744 2012-01-08  Bruno Haible  <bruno@clisp.org>
7745
7746         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7747         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7748         variable.
7749
7750 2012-01-08  Bruno Haible  <bruno@clisp.org>
7751
7752         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7753         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7754         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7755         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7756         macro.
7757         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7758         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7759         * lib/spawn_faction_addopen.c: Add workaround implementation if
7760         HAVE_WORKING_POSIX_SPAWN.
7761         * modules/spawn (Makefile): Substitute
7762         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7763         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7764         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7765         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7766         (Depends-on): Update conditions.
7767         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7768         the Solaris 11 bug.
7769
7770 2012-01-08  Bruno Haible  <bruno@clisp.org>
7771
7772         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7773         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7774         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7775         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7776         macro.
7777         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7778         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7779         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7780         HAVE_WORKING_POSIX_SPAWN.
7781         * modules/spawn (Makefile): Substitute
7782         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7783         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7784         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7785         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7786         (Depends-on): Update conditions.
7787         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7788         the Solaris 11 bug.
7789
7790 2012-01-08  Bruno Haible  <bruno@clisp.org>
7791
7792         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7793         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7794         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7795         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7796         HAVE_WORKING_POSIX_SPAWN.
7797         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7798         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7799         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7800         * lib/spawn_faction_addclose.c: Add workaround implementation if
7801         HAVE_WORKING_POSIX_SPAWN.
7802         * modules/spawn (Makefile): Substitute
7803         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7804         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7805         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7806         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7807         (Depends-on): Update conditions.
7808         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7809         the Solaris 11 bug.
7810
7811 2012-01-08  Bruno Haible  <bruno@clisp.org>
7812
7813         doc: Update for Solaris 11 2011-11.
7814         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7815         * m4/printf.m4: Update comments.
7816
7817 2012-01-08  Bruno Haible  <bruno@clisp.org>
7818
7819         mktime: Avoid compilation error on Solaris 11.
7820         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7821
7822 2012-01-08  Bruno Haible  <bruno@clisp.org>
7823
7824         doc: Small fix.
7825         * doc/posix-headers/nl_types.texi: Correct platforms list.
7826
7827 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7828
7829         Add lgpl-3.0 module.
7830         * MODULES.html.sh (Support for building documentation): Add
7831         lgpl-3.0.
7832         * modules/lgpl-3.0: New file.
7833
7834 2012-01-08  Jim Meyering  <meyering@redhat.com>
7835
7836         select.c: indent with spaces, not TABs
7837         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7838
7839 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7840
7841         quotearg: do not use grave accent for left quote
7842         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7843         locale_quoting_style.
7844         (quotearg_buffer_restyled): Fix example.
7845         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7846
7847 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7848
7849         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7850         Most programs do not have translation catalogs for English and much
7851         less separate catalogs for British and American English.  Drop the
7852         suggestion to translators about these two, and provide it
7853         automatically for Unicode locales.  Like most programs, even those
7854         using American English, we use single quotation marks.  This conflicts
7855         with the American typographic convention, but works better when you
7856         cite the entire error message within double quotes.  It also tries not
7857         to clash with established practice and with what non-gnulib programs
7858         will usually do.
7859         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7860         using an UTF-8 or GB-18030 locale.  The list of other locales with
7861         quotes was provided by Bruno Haible.
7862         (quotearg_buffer_restyled): Adjust instructions to translators.
7863         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7864         text, since this would be wrong when using Unicode.
7865         * modules/quotearg: Depend on c-strcaseeq.
7866
7867 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7868
7869         quotearg: fix Wikipedia link
7870         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7871
7872 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7873
7874         Fix for mingw with MSVC9.
7875         * m4/ld-version-script.m4: Check that compiler rejects version
7876         scripts with syntax errors.  Reported by Bruno Haible
7877         <bruno@clisp.org>.
7878
7879 2012-01-06  Bruno Haible  <bruno@clisp.org>
7880
7881         Talk about "native Windows API", not "Woe32".
7882         * lib/accept4.c: Update comments to mention native Windows.
7883         * lib/execute.c: Likewise.
7884         * lib/fatal-signal.c: Likewise.
7885         * lib/localcharset.c: Likewise.
7886         * lib/nanosleep.c: Likewise.
7887         * lib/nl_langinfo.c: Likewise.
7888         * lib/pclose.c: Likewise.
7889         * lib/pipe-filter-gi.c: Likewise.
7890         * lib/pipe-filter-ii.c: Likewise.
7891         * lib/pipe.c: Likewise.
7892         * lib/pipe2.c: Likewise.
7893         * lib/popen.c: Likewise.
7894         * lib/progreloc.c: Likewise.
7895         * lib/relocatable.c: Likewise.
7896         * lib/sigaction.c: Likewise.
7897         * lib/sigprocmask.c: Likewise.
7898         * lib/spawn-pipe.h: Likewise.
7899         * lib/spawn-pipe.c: Likewise.
7900         * lib/spawni.c: Likewise.
7901         * lib/stat-time.h: Likewise.
7902         * lib/w32spawn.h: Likewise.
7903         * tests/test-isatty.c: Likewise.
7904         * lib/config.charset: More comments.
7905         * doc/gnulib-intro.texi: Mention native Windows.
7906         * doc/posix-functions/_Exit_C99.texi: Likewise.
7907         * doc/posix-headers/fcntl.texi: Likewise.
7908
7909 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7910
7911         argp: Avoid crash if translator uses % characters in a translation.
7912         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7913         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7914
7915 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7916
7917         doc: C11 and C++11 are now official
7918         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7919         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7920         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7921         * modules/stdalign:
7922         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7923
7924 2012-01-06  Bruno Haible  <bruno@clisp.org>
7925
7926         uc-is-grapheme-break tests: Tweak.
7927         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7928         message.
7929
7930 2012-01-06  Bruno Haible  <bruno@clisp.org>
7931
7932         test-init.sh: correct the test for diff -u
7933         * tests/test-init.sh: Also redirect stdout to /dev/null.
7934
7935 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7936
7937         Use ', not `, for quoting output.
7938         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7939         (print_changelog_deltas, get_tool_versions, main program):
7940         * build-aux/git-version-gen:
7941         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7942         * build-aux/move-if-change (help):
7943         * build-aux/useless-if-before-free (usage, main program):
7944         * check-module (parse_module_file, usage)
7945         (find_included_lib_files, check_module):
7946         * lib/argmatch.c (main) [TEST]:
7947         * lib/argp-help.c (_help):
7948         * lib/getopt1.c (main) [TEST]:
7949         * lib/git-merge-changelog.c (usage):
7950         * lib/xstrtol-error.c (xstrtol_error):
7951         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7952         * m4/argz.m4 (gl_FUNC_ARGZ):
7953         * m4/bison.m4 (gl_BISON):
7954         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7955         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7956         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7957         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7958         * m4/gc-random.m4 (gl_GC_RANDOM):
7959         * m4/intl.m4 (gt_CHECK_DECL):
7960         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7961         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7962         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7963         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7964         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7965         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7966         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7967         * tests/test-dirname.c (main):
7968         * tests/test-getpass.c (main):
7969         * tests/test-iconvme.c (main):
7970         * tests/test-parse-datetime.c (LOG):
7971         * tests/test-xstrtoimax.sh:
7972         * tests/test-xstrtol.sh:
7973         * tests/test-xstrtoll.sh:
7974         * tests/test-xstrtoumax.sh:
7975         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7976         * top/GNUmakefile (abort-due-to-no-makefile):
7977         Quote 'like this', not `like this', as per the recent change to
7978         the GNU coding standards.
7979
7980 2012-01-05  Bruno Haible  <bruno@clisp.org>
7981
7982         strtoimax: Don't force a replacement on systems where intmax_t is int.
7983         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7984         'intmax_t' is not larger than 'int'.
7985         Reported by Pádraig Brady <P@draigBrady.com>.
7986
7987 2012-01-05  Bruno Haible  <bruno@clisp.org>
7988
7989         doc: Mention NetBSD bugs.
7990         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7991         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7992
7993 2012-01-05  Bruno Haible  <bruno@clisp.org>
7994
7995         strtoumax tests: Enhance tests.
7996         * tests/test-strtoumax.c (main): Add tests for large values.
7997
7998 2012-01-05  Bruno Haible  <bruno@clisp.org>
7999
8000         strtoimax: Work around AIX 5.1 bug.
8001         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8002         definition.
8003         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8004         Set HAVE_STRTOIMAX.
8005         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8006         REPLACE_STRTOIMAX.
8007         * modules/inttypes-incomplete (Makefile.am): Substitute
8008         REPLACE_STRTOIMAX.
8009         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8010         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8011         (Depends-on): Update conditions.
8012         * tests/test-strtoimax.c (main): Add tests for large values.
8013         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8014
8015 2012-01-05  Bruno Haible  <bruno@clisp.org>
8016
8017         inttypes: Modernize.
8018         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8019         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8020         (Makefile.am): Update inttypes.h rule.
8021
8022 2012-01-05  Jim Meyering  <meyering@redhat.com>
8023
8024         init.sh: don't waste a subshell just to redirect stderr
8025         * tests/init.sh: In testing for diff -u and diff -c, use a
8026         stderr-redirecting exec inside `...` rather than a subshell.
8027
8028         test-init.sh: avoid failure on HP-UX 11.00
8029         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8030         resolves to diff -c or cmp.  Reported by Bruno Haible.
8031
8032 2012-01-05  Bruno Haible  <bruno@clisp.org>
8033
8034         Tests for module 'strtoull'.
8035         * modules/strtoull-tests: New file.
8036         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8037
8038 2012-01-05  Bruno Haible  <bruno@clisp.org>
8039
8040         Tests for module 'strtoll'.
8041         * modules/strtoll-tests: New file.
8042         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8043
8044 2012-01-05  Bruno Haible  <bruno@clisp.org>
8045
8046         Tests for module 'strtoul'.
8047         * modules/strtoul-tests: New file.
8048         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8049
8050 2012-01-05  Bruno Haible  <bruno@clisp.org>
8051
8052         Tests for module 'strtol'.
8053         * modules/strtol-tests: New file.
8054         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8055
8056 2012-01-04  Jim Meyering  <meyering@redhat.com>
8057
8058         test-init.sh: accommodate Solaris 5.10's different diff -u output
8059         * tests/test-init.sh: Also exempt @@ lines from the comparison
8060         of diff output, since Solaris 5.10 and GNU diff formats differ.
8061         Reported by Stefano Lattarini.
8062
8063 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8064
8065         test-posixtm: don't assume signed integer wraparound
8066         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8067         after signed integer overflow.  Inspired by (though it may not
8068         fix) Bruno Haible's bug report in
8069         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8070
8071         Spell out "Windows 9x" and "Windows XP".
8072         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8073         "Windows 9x" and "WinXP" with "Windows XP".
8074
8075 2012-01-04  Jim Meyering  <meyering@redhat.com>
8076
8077         test-vc-list-files-cvs.sh: remove obsolete comment
8078         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8079         double exit.  Now that's all encapsulated via skip_ and Exit.
8080
8081 2012-01-04  Bruno Haible  <bruno@clisp.org>
8082
8083         Talk about "native Windows API", not "Win32".
8084         * lib/classpath.c: Update comments to mention native Windows.
8085         * lib/csharpexec.c: Likewise.
8086         * lib/dup2.c: Likewise.
8087         * lib/error.c: Likewise.
8088         * lib/fcntl.c: Likewise.
8089         * lib/filename.h: Likewise.
8090         * lib/findprog.c: Likewise.
8091         * lib/get-rusage-as.c: Likewise.
8092         * lib/get-rusage-data.c: Likewise.
8093         * lib/getpagesize.c: Likewise.
8094         * lib/javaexec.c: Likewise.
8095         * lib/msvc-inval.c: Likewise.
8096         * lib/msvc-nothrow.c: Likewise.
8097         * lib/nanosleep.c: Likewise.
8098         * lib/nonblocking.c: Likewise.
8099         * lib/printf-parse.c: Likewise.
8100         * lib/setlocale.c: Likewise.
8101         * lib/sigaction.c: Likewise.
8102         * lib/strerror_r.c: Likewise.
8103         * lib/tmpdir.c: Likewise.
8104         * lib/vasnprintf.c: Likewise.
8105         * lib/w32spawn.h: Likewise.
8106         * lib/waitpid.c: Likewise.
8107         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8108         * m4/locale-ar.m4: Likewise.
8109         * m4/locale-fr.m4: Likewise.
8110         * m4/locale-ja.m4: Likewise.
8111         * m4/locale-tr.m4: Likewise.
8112         * m4/locale-zh.m4: Likewise.
8113         * m4/printf.m4: Likewise.
8114         * tests/test-cloexec.c: Likewise.
8115         * tests/test-copy-acl.sh: Likewise.
8116         * tests/test-copy-file.sh: Likewise.
8117         * tests/test-file-has-acl.sh: Likewise.
8118         * tests/test-set-mode-acl.sh: Likewise.
8119         * tests/test-dup-safer.c: Likewise.
8120         * tests/test-dup2.c: Likewise.
8121         * tests/test-dup3.c: Likewise.
8122         * tests/test-fcntl.c: Likewise.
8123         * tests/test-nonblocking-pipe.h: Likewise.
8124         * tests/test-nonblocking-socket.h: Likewise.
8125         * tests/test-pipe.c: Likewise.
8126         * tests/test-pipe2.c: Likewise.
8127         * tests/test-spawn-pipe-child.c: Likewise.
8128         * doc/acl-resources.txt: Likewise.
8129         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8130         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8131         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8132         * lib/localcharset.c: Update comments to mention native Windows.
8133         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8134         * lib/localename.c: Likewise.
8135         * lib/progreloc.c: Likewise.
8136         * lib/relocatable.c: Likewise.
8137         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8138         (windows_compute_revents): Renamed from win32_compute_revents.
8139         (windows_compute_revents_socket): Renamed from
8140         win32_compute_revents_socket.
8141         * lib/select.c: Update comments to mention native Windows.
8142         (windows_poll_handle): Renamed from win32_poll_handle.
8143         * m4/threadlib.m4: Update comments to mention native Windows.
8144         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8145         --enable-threads=windows instead of --enable-threads=win32. Set
8146         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8147         * lib/glthread/lock.h: Update comments to mention native Windows.
8148         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8149         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8150         USE_WIN32_THREADS.
8151         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8152         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8153         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8154         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8155         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8156         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8157         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8158         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8159         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8160         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8161         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8162         * tests/test-tls.c: Likewise.
8163         Rationale:
8164         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8165         on both 32-bit and 64-bit Windows systems.
8166         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8167         line of distinction is between "native Windows" on one side and Unix/
8168         POSIX systems on the other side. More details in
8169         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8170         Suggested by Paul Eggert.
8171
8172 2012-01-03  Bruno Haible  <bruno@clisp.org>
8173
8174         isatty: Support for MSVC 9.
8175         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8176         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8177         (_isatty_nothrow): New function.
8178         (isatty): Use it instead of _isatty.
8179         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8180         * lib/poll.c (IsConsoleHandle): Likewise.
8181         * lib/select.c (IsConsoleHandle): Likewise.
8182         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8183         (gl_PREREQ_ISATTY): New macro.
8184         * modules/isatty (Depends-on): Add msvc-inval.
8185         (configure.ac): Invoke gl_PREREQ_ISATTY.
8186
8187 2012-01-03  Jim Meyering  <meyering@redhat.com>
8188
8189         maint.mk: remove temporary transition aid from over 1.5 years ago
8190         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8191         purpose was to aid in the transition (avoiding silent malfunction)
8192         from that old name to the new _sc_search_regexp.  This shim was
8193         added by commit 219c504b.
8194
8195         init.sh: do not try to accommodate compare arguments starting with "-"
8196         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8197         compare arguments that start with "-".  Besides, we do not worry
8198         about this when invoking diff or cmp; why start now with sed?
8199         Using "--" to separate options from argument would trigger sed
8200         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8201         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8202
8203 2012-01-02  Bruno Haible  <bruno@clisp.org>
8204
8205         Enhance tests for module 'isatty'.
8206         * modules/isatty-tests (Depends-on): Add pipe-posix.
8207         * tests/test-isatty.c: Include <fcntl.h>.
8208         (DEV_NULL): New macro.
8209         (main): Test the resut of isatty() also on regular files, pipes, and
8210         /dev/null.
8211
8212         New module 'isatty'.
8213         * lib/unistd.in.h (isatty): New declaration.
8214         * lib/isatty.c: New file, based on an idea of
8215         Bastien Roucariès <roucaries.bastien@gmail.com>.
8216         * m4/isatty.m4: New file.
8217         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8218         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8219         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8220         REPLACE_ISATTY.
8221         * modules/isatty: New file.
8222         * doc/posix-functions/isatty.texi: Mention the new module.
8223         Suggested by Paolo Bonzini.
8224
8225 2012-01-02  Bruno Haible  <bruno@clisp.org>
8226
8227         canonicalize: Tweak 2011-12-29 commit.
8228         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8229         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8230
8231 2012-01-02  Jim Meyering  <meyering@redhat.com>
8232
8233         gitlog-to-changelog: describe input syntax in --help output
8234         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8235
8236         gitlog-to-changelog: fix typo in --help: show backslash before email @
8237         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8238         in sources, but not in actual output.
8239
8240 2011-12-30  Jim Meyering  <meyering@redhat.com>
8241
8242         gitlog-to-changelog: don't malfunction when name contains %-directive
8243         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8244         in a name string cause trouble.  E.g., with a user name of "%s",
8245         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8246
8247 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8248
8249         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8250         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8251         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8252         the "  (tiny change)" notation that is appended to the standard
8253         ChangeLog "date  name  email" header line.
8254
8255 2012-01-01  Jim Meyering  <meyering@redhat.com>
8256
8257         test-framework-sh: init.sh: fix "make dist" failure
8258         When using gnulib-tool's --with-tests option and any module that
8259         depends on test-framework-sh, "make dist" would fail due to the
8260         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8261         in the gltests directory, and not in the gllib/ directory.
8262         One way to work around that is to move the EXTRA_DIST += init.sh
8263         from the primary module to the -tests one:
8264         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8265         * modules/test-framework-sh (Makefile.am): ...not here.
8266         Reported by Tom G. Christensen in
8267         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8268
8269         version-etc: update copyright year reported by --version
8270         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8271
8272 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8273
8274         canonicalize: only stat() if required
8275         * lib/canonicalize.c (canonicalize_filename_mode):
8276         Avoid calling l?stat() when both CAN_MISSING,
8277         and CAN_NOLINKS are set, as we neither need
8278         to resolve symlinks or test component existence.
8279
8280 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8281
8282         doc: cover st_ino issues once; add OpenVMS etc.
8283         * doc/posix-functions/stat.texi (stat):
8284         * doc/posix-functions/lstat.texi (lstat):
8285         * doc/posix-functions/fstatat.texi (fstatat):
8286         * doc/posix-functions/fstat.texi (fstat):
8287         Move general 'struct stat' stuff to sys_stat.texi,
8288         leaving behind a pointer.
8289         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8290         Merge duplicate info about 'struct stat' problems into here.
8291         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8292         and suggest partial workarounds.
8293
8294         same-inode: port to OpenVMS
8295         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8296         three st_ino values.
8297
8298 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8299
8300         canonicalize: fix references to stat() and lstat()
8301         * lib/canonicalize.c (canonicalize_filename_mode):
8302         Ensure references always resolve to a replacement
8303         function if required (even via a macro).
8304
8305 2011-12-30  Jim Meyering  <meyering@redhat.com>
8306
8307         gitlog-to-changelog: remove a little duplication
8308         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8309         rather than twice.
8310
8311 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8312
8313         canonicalize: add support for not resolving symlinks
8314         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8315         indicate we don't want to follow symlinks.  Also
8316         provide CAN_MODE_MASK to aid setting these existing
8317         mutually exclusive values.
8318         * lib/canonicalize.c (canonicalize_filename_mode):
8319         Extract the flags from can_mode parameter, which
8320         are currently just used to select between stat()
8321         and lstat().  Also ensure that mutually exclusive
8322         values are flagged immediately as invalid.
8323         * tests/test-canonicalize.c: Verify symlinks are
8324         not followed, and that invalid flag combinations
8325         are diagnosed.
8326
8327 2011-12-25  Jim Meyering  <meyering@redhat.com>
8328
8329         gitlog-to-changelog: do not clump multi-paragraph entries
8330         Identical header lines (date,name,email+coauthors) are suppressed,
8331         thus putting all entries with those same characteristics under
8332         a single header.  However, when a log entry consists of two or
8333         more paragraphs, it may not be clear where it starts and ends.
8334         This change makes it so that such an entry is always separated
8335         from others by a header line, even when that header would
8336         otherwise be suppressed.
8337         * build-aux/gitlog-to-changelog: Implement the above.
8338         Inspired by a related request from Stefano Lattarini in
8339         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8340
8341 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8342
8343         announce-gen: fix `cmd' typo in diagnostic
8344         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8345         diagnostic: a missing '$' meant that the command was not output.
8346
8347 2011-12-23  Jim Meyering  <meyering@redhat.com>
8348
8349         test-framework-sh: distribute init.sh
8350         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8351         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8352         fail due to the lack of init.sh.
8353
8354         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8355         * modules/atexit-tests: Rather than listing tests/init.sh,
8356         now that there's a module for it, simply depend on that new module.
8357         * modules/closein-tests: Likewise.
8358         * modules/exclude-tests: Likewise.
8359         * modules/getcwd-tests: Likewise.
8360         * modules/perror-tests: Likewise.
8361         * modules/pread-tests: Likewise.
8362         * modules/pwrite-tests: Likewise.
8363         * modules/vc-list-files-tests: Likewise.
8364         * modules/verify-tests: Likewise.
8365         * modules/xalloc-die-tests: Likewise.
8366         * modules/xstrtoimax-tests: Likewise.
8367         * modules/xstrtol-tests: Likewise.
8368         * modules/xstrtoll-tests: Likewise.
8369         * modules/xstrtoumax-tests: Likewise.
8370         * modules/yesno-tests: Likewise.
8371
8372 2011-12-22  Jim Meyering  <meyering@redhat.com>
8373
8374         test-framework-sh: add minimal tests of init.sh's compare function
8375         * modules/test-framework-sh-tests: New file.
8376         * tests/test-init.sh: New file.
8377
8378         test-framework-sh: new module
8379         * modules/test-framework-sh: New file.
8380         * MODULES.html.sh (Support for maintaining and releasing projects):
8381         List it.
8382
8383         init.sh: do not emit simulated diff output to stderr
8384         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8385
8386 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8387
8388         .gitignore: ignore gnulib.dvi and regex.info
8389         * doc/.gitignore:add gnulib.dvi and regex.info
8390
8391 2011-12-22  Jim Meyering  <meyering@redhat.com>
8392
8393         init.sh: correct previous change
8394         * tests/init.sh (compare): My previous change was wrong.
8395         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8396
8397         init.sh: avoid unwarranted test failure when using "set -e"
8398         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8399         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8400         a use like "compare exp out" would get evoke an unconditional failure.
8401
8402 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8403
8404         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8405         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8406         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8407         autoreconf that did not.
8408         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8409         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8410
8411 2011-12-17  Jim Meyering  <meyering@redhat.com>
8412
8413         bootstrap: remove some now-unneeded code
8414         This script arose back when gnulib-tool was young.
8415         Since then, it has seen improvements that render much of this
8416         script unnecessary.  In particular, it can now make symlinks
8417         to the files it uses.  Also, I no longer see as much value in
8418         marking files as read-only via comments.
8419         If you relied on the symlink-creation feature of the preceding
8420         version of this script, you can get most of that functionality
8421         by adding the --symlink option to the definition of
8422         gnulib_tool_option_extras in your bootstrap.conf file.
8423         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8424         Run autopoint and libtoolize *before* gnulib-tool.
8425         After it, run an abbreviated autoreconf, rather than a loop around
8426         all tools.
8427         (slirp, bt_mark_as_generated): Remove functions.
8428
8429 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8430
8431         ftoastr: fix typo
8432         * lib/ftoastr.h: Fix misspelling in comment.
8433
8434 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8435
8436         * top/README-release: fix punctuation.
8437
8438 2011-12-17  Jim Meyering  <meyering@redhat.com>
8439
8440         bootstrap: correct the recent buildreq change
8441         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8442         had no effect.
8443         * build-aux/bootstrap (buildreq): Bracket each search term with
8444         "*...*", so that the shell "case" statement works as intended.
8445         Add comments.
8446
8447 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8448
8449         build: let bootstrap resort to wget when downloading .po files
8450         * build-aux/bootstrap (download_po_files): Fallback to wget when
8451         downloading the .po files via rsync fails.  This is necessary to
8452         bootstrap from behind a strict firewall.
8453
8454 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8455
8456         stdint: don't assume C++11 when compiling with g++
8457         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8459         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8460         work also in C++ before C++11, as that improperly inhibits
8461         generating a substitute stdint.h for that case.
8462
8463 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8464
8465         alloca: protect comment from gnulib-tool
8466         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8467         that gnulib-tool doesn't think it's a license, and munge it to
8468         say "GCC version 3".
8469
8470 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8471
8472         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8473         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8474         $(abs_top_builddir) instead of $(top_builddir).
8475
8476 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8477
8478         strftime-tests: also test nanoseconds
8479         * tests/test-strftime.c (T): Add a test of %N.
8480
8481 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8482
8483         inttypes, stdint: add C++11 support
8484         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8485         when including inttypes.h and stdint.h.  Support this change to
8486         the standard.
8487         * doc/posix-headers/inttypes.texi (inttypes.h):
8488         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8489         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8490         Define if not defined already, for the benefit of pre-C++11 hosts.
8491         Define the standard format macros (e.g., PRId8) always.
8492         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8493         Likewise, if __cpluspus.  Define the standard constant and limit
8494         macros (e.g., INT8_C, INT8_MAX) always.
8495         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8496         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8497         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8498         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8499         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8500         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8501         Likewise.
8502
8503 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8504
8505         nonblocking tests: Fix test failure on Linux/PPC.
8506         Suggested by Prerna Saxena in
8507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8508         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8509         Set to 1100000.
8510
8511 2011-12-12  Jim Meyering  <meyering@redhat.com>
8512
8513         argmatch: don't hard-code `' when listing valid option arguments
8514         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8515         use the quote function to add quotes.  Use fputs rather than
8516         fprintf for the format string with no format directive.
8517
8518 2011-12-07  Eric Blake  <eblake@redhat.com>
8519
8520         bootstrap: detect tools required by gnulib-tool
8521         * build-aux/bootstrap (buildreq): Provide minimum implicit
8522         dependencies.
8523         * DEPENDENCIES: Mention patch as a prereq.
8524
8525 2011-12-04  Bruno Haible  <bruno@clisp.org>
8526
8527         sethostname: Port to Windows platforms.
8528         * lib/sethostname.c: Provide an alternate implementation for Windows
8529         platforms.
8530         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8531         (main): Skip the test if sethostname() fails with EPERM. On Windows
8532         platforms, don't check the result of gethostname().
8533
8534 2011-12-04  Bruno Haible  <bruno@clisp.org>
8535             Jim Meyering  <meyering@redhat.com>
8536
8537         tests: Avoid spurious error message on platforms without mktemp program.
8538         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8539
8540 2011-12-04  Bruno Haible  <bruno@clisp.org>
8541
8542         sethostname: Fix documentation.
8543         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8544         "not fixed" section.
8545
8546 2011-12-03  Bruno Haible  <bruno@clisp.org>
8547
8548         gnulib-tool: Verify that the License field is present and non-empty.
8549         * gnulib-tool (func_get_license_raw): New function, extracted from
8550         func_get_license.
8551         (func_get_license): Use it. Warn if the module is not a test module and
8552         has no license.
8553         Suggested by Jim Meyering.
8554
8555 2011-12-03  Bruno Haible  <bruno@clisp.org>
8556
8557         sethostname tests: Fix link error on mingw.
8558         * tests/test-sethostname1.c: New file, extracted from
8559         tests/test-sethostname.c.
8560         * tests/test-sethostname2.c: New file, extracted from
8561         tests/test-sethostname.c.
8562         * tests/test-sethostname.c: Remove file.
8563         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8564         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8565         (Depends-on): Add gethostname.
8566         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8567         Link the latter with $(GETHOSTNAME_LIB).
8568
8569         sethostname tests: Fix compilation error on mingw.
8570         * tests/test-sethostname.c: Don't include <sys/types.h>.
8571         (geteuid): Use a dummy value without uid_t.
8572         * modules/sethostname-tests (Depends-on): Remove sys_types.
8573
8574         sethostname tests: Avoid a gcc warning.
8575         * tests/test-sethostname.c (main): Remove an unused variable.
8576
8577         Tweak last commit.
8578         * modules/sethostname-tests (Files): Sort by decreasing importance.
8579         (configure.ac): Check for geteuid.
8580         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8581         the test when there's nothing to test. Drop an unnecessary cast.
8582         Improve an error message. Verify that the final sethostname() call
8583         succeeds.
8584
8585 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8586
8587         Add a test suite for the sethostname module.
8588         * modules/sethostname-tests: New file.  A test program
8589         for the sethostname module.
8590         * tests/test-sethostname.c: Likewise.
8591
8592 2011-12-03  Bruno Haible  <bruno@clisp.org>
8593
8594         Tweak last commit.
8595         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8596         Fix preprocessor directives indentation. Fix typos.
8597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8598         * modules/unistd (Makefile): Likewise.
8599
8600 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8601
8602         Integrate the sethostname module into unistd.
8603         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8604         into the unistd.h header.
8605         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8606         preprocessor directives.
8607         * modules/unistd: Setup the Makefile substitutions of the
8608         SETHOSTNAME preprocessor directives.
8609
8610 2011-12-03  Bruno Haible  <bruno@clisp.org>
8611
8612         Tweak last commit.
8613         * lib/sethostname.c: Don't include <string.h>.
8614         (sethostname): No need to copy the argument string to the stack. Don't
8615         call clearerr. Preserve errno when fprintf failed.
8616         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8617         Don't invoke AC_REPLACE_FUNCS.
8618         * modules/sethostname (Link): Remove empty section.
8619         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8620         failure problem.
8621
8622 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8623
8624         New module 'sethostname'.
8625         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8626         for systems that lack it.
8627         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8628         sethostname declaration and function.
8629         * modules/sethostname: New file.  Define the sethostname module.
8630
8631 2011-12-03  Bruno Haible  <bruno@clisp.org>
8632
8633         Tweak last commit.
8634         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8635
8636 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8637
8638         Split the HOST_NAME_MAX detection into a separate m4 macro.
8639         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8640         macro so it can be used by the pending sethostname module.
8641
8642 2011-12-03  Bruno Haible  <bruno@clisp.org>
8643
8644         Fix module descriptions syntax.
8645         * modules/argv-iter (License): Fix syntax.
8646         * modules/di-set (License): Likewise.
8647         * modules/ino-map (License): Likewise.
8648         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8649
8650 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8651
8652         stdalign: port to Clang 3.0
8653         Problem reported by Simon Josefsson in
8654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8655         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8656         which has <stdalign.h> but which does not define alignof.
8657         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8658
8659 2011-12-01  Eric Blake  <eblake@redhat.com>
8660
8661         mktempd: silence dd usage
8662         * build-aux/mktempd (rand_bytes): Silence dd.
8663
8664 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8665
8666         manywarnings: Don't mention gcc version in docstring.
8667         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8668         Jim Meyering <meyering@redhat.com>.
8669
8670 2011-11-30  Jim Meyering  <meyering@redhat.com>
8671
8672         hash: mark a few floating point constants with "f" suffix
8673         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8674         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8675         floating point constants with "f", since they're destined to be
8676         saved/used as "float"s.
8677
8678 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8679
8680         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8681         * tests/test-float.c (test_long_double): Correct and re-enable the
8682         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8683
8684 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8685
8686         Avoid subtracting two pointers that don't point into the same block.
8687         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8688         only pointers into the same memory block are subtracted. We cannot
8689         assume that sizeof (ptrdiff_t) == sizeof (void *).
8690
8691 2011-11-29  Eric Blake  <eblake@redhat.com>
8692
8693         maint.mk: add syntax check for use of compare from init.sh
8694         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8695         moved here from coreutils.
8696
8697         manywarnings: drop -Wunsuffixed-float-constants
8698         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8699         '1.0D', which is the only way to silence this warning for 'double'.
8700
8701 2011-11-29  Jim Meyering  <meyering@redhat.com>
8702
8703         hash: mark compute_bucket_size with the pure attribute
8704         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8705
8706         quotearg, propername: correct pragma guard expression
8707         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8708         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8709
8710 2011-11-28  Jim Meyering  <meyering@redhat.com>
8711
8712         propername: do not mark proper_name with the const attribute
8713         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8714         since it examines data pointed to by its parameter.
8715         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8716         the suggestion from -Wsuggest-attribute=const.
8717
8718         propername: mark one more function as const
8719         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8720
8721 2011-11-27  Jim Meyering  <meyering@redhat.com>
8722
8723         mark functions with const and pure attributes
8724
8725         Mark functions per suggestions from gcc-4.6 when using these options:
8726         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8727         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8728         Follow these guidelines: when possible, apply the attribute to
8729         an extern declaration, not to its definition.  Apply it to the
8730         definition only when the definition is static.
8731         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8732         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8733         * lib/base64.h (isbase64): Likewise.
8734         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8735         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8736         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8737         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8738         (c_tolower, c_toupper): Likewise.
8739         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8740         * lib/chdir-long.c (find_non_slash): Likewise.
8741         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8742         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8743         * lib/file-type.h (file_type): Likewise.
8744         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8745         * lib/filevercmp.c (verrevcmp): Likewise.
8746         * lib/freadahead.h (freadahead): Likewise.
8747         * lib/fts.c (fts_maxarglen): Likewise.
8748         * lib/hash-pjw.h (hash_pjw): Likewise.
8749         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8750         * lib/hash.c (is_prime, next_prime): Likewise.
8751         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8752         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8753         (hash_table_ok, hash_get_first, hash_string): Likewise.
8754         (compute_bucket_size): Likewise.
8755         * lib/i-ring.h (i_ring_empty): Likewise.
8756         * lib/isnan.c (isnanl): Likewise.
8757         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8758         * lib/memcasecmp.h (memcasecmp): Likewise.
8759         * lib/memchr2.h (memchr2): Likewise.
8760         * lib/memcmp2.h (memcmp2): Likewise.
8761         * lib/parse-datetime.y (lookup_zone): Likewise.
8762         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8763         [!WINDOWS_SOCKETS]: Likewise.
8764         * lib/strnlen1.h (strnlen1): Likewise.
8765         * lib/uniwidth.in.h (uc_width): Likewise.
8766         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8767         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8768         (quoting_options_from_style): Add a comment.
8769         * lib/propername.h (proper_name): Add a comment.
8770
8771 2011-11-27  Bruno Haible  <bruno@clisp.org>
8772
8773         Remove unused macros from !_LIBC code in glibc-borrowed files.
8774         * lib/fnmatch.c (STRCOLL): Remove macro.
8775         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8776         * lib/glob.c (__stat, __readdir64): Remove macros.
8777         * lib/tempname.c (__open64, __xstat64): Remove macros.
8778         Suggested by Paul Eggert.
8779
8780 2011-11-27  Bruno Haible  <bruno@clisp.org>
8781
8782         getcwd: Fix link error on MSVC 9.
8783         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8784
8785 2011-11-27  Bruno Haible  <bruno@clisp.org>
8786
8787         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8788         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8789         HAVE_OPENDIR is 0.
8790         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8791         HAVE_CLOSEDIR is 0.
8792         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8793         is 0.
8794         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8795
8796 2011-11-27  Bruno Haible  <bruno@clisp.org>
8797
8798         getcwd: Fix bug from 2011-08-17.
8799         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8800         platforms that need it.
8801         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8802         code of 4 to be a failure, not a success. This ensures that
8803         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8804
8805 2011-11-27  Bruno Haible  <bruno@clisp.org>
8806
8807         binary-io tests: Avoid test failure on mingw when libtool is used.
8808         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8809         Don't verify the size of t-bin-out1.tmp here.
8810         * tests/test-binary-io.sh: Verify it here.
8811         Reported by Simon Josefsson.
8812
8813 2011-11-26  Bruno Haible  <bruno@clisp.org>
8814
8815         Fix conflict between two instantiations of module 'unistd'.
8816         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8817         ${include_guard_prefix} also in the autoconf snippet.
8818         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8820         GNULIB_UNISTD_H_GETOPT.
8821         * modules/getopt-posix (configure.ac): Set the
8822         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8823         * modules/getopt-gnu (configure.ac): Likewise.
8824         * modules/unistd (Makefile.am): Change the substitution value of
8825         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8826         Reported by Simon Josefsson.
8827
8828 2011-11-25  Bruno Haible  <bruno@clisp.org>
8829
8830         pagealign_alloc: Doc and comments.
8831         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8832         module.
8833         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8834
8835 2011-11-25  Jim Meyering  <meyering@redhat.com>
8836
8837         test-update-copyright.sh: avoid false-positive failure
8838         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8839         around false positive failure on Cygwin/Windows.  The latter was
8840         matching erroneously-created files with names like
8841         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8842
8843 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8844
8845         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8846         * m4/valgrind-tests.m4: Check that the parameters that will be
8847         used works, not just a subset of them.  Reported by Bruno Haible
8848         <bruno@clisp.org>.
8849
8850 2011-11-24  Jim Meyering  <meyering@redhat.com>
8851
8852         test-stdalign.c: comment out long double tests
8853         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8854         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8855         error: '_Alignas' specifiers cannot reduce alignment of \
8856         'static_longdouble_alignas'.
8857
8858 2011-11-22  Jim Meyering  <meyering@redhat.com>
8859
8860         init.sh: make "compare /dev/null FILE" output more readable
8861         * tests/init.sh (compare_): Document the preferred order of arguments.
8862         (emit_diff_u_header_): New function.
8863         (compare_dev_null_): Emit a simulated diff, rather than just the
8864         contents of the unexpected file.  Suggestion from Bruno Haible.
8865
8866 2011-11-21  Jim Meyering  <meyering@redhat.com>
8867             Eric Blake  <eblake@redhat.com>
8868
8869         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8870         * tests/init.sh: Make our compare function slightly more portable.
8871         Reported by Bruno Haible in
8872         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8873
8874 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8875
8876         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8877         before using it, in code that ends up in config.h.
8878
8879 2011-11-20  Bruno Haible  <bruno@clisp.org>
8880
8881         getcwd: Work around getcwd bug on AIX 5..7.
8882         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8883         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8884         Use a different value for gl_cv_func_getcwd_path_max. Move the
8885         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8886         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8887         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8888         Define HAVE_MINIMALLY_WORKING_GETCWD.
8889         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8890         where it is not even minimally working, that is, on AIX.
8891         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8892         m4/getcwd-path-max.m4.
8893         (main): Update exit code computation.
8894         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8895         getcwd does not handle long file names.
8896
8897 2011-11-20  Bruno Haible  <bruno@clisp.org>
8898
8899         getcwd: Fix bug from 2009-09-10.
8900         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8901         like "no".
8902
8903 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8904
8905         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8906
8907 2011-11-20  Bruno Haible  <bruno@clisp.org>
8908
8909         fma tests: Avoid shadowing local variables.
8910         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8911         expected.
8912
8913 2011-11-20  Bruno Haible  <bruno@clisp.org>
8914
8915         copysignf tests: Fix.
8916         * tests/test-copysignf.c: Fix signature check.
8917
8918 2011-11-20  Bruno Haible  <bruno@clisp.org>
8919
8920         fma: Remove unused code.
8921         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8922         unused macros.
8923
8924 2011-11-20  Bruno Haible  <bruno@clisp.org>
8925
8926         sethostname: Fix doc about AIX.
8927         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8928         sethostname; it has it.
8929
8930         sethostname: Mention more portability problems.
8931         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8932         problem.
8933         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8934
8935 2011-11-19  Bruno Haible  <bruno@clisp.org>
8936
8937         Depend on module fcntl-h when AT_FDCWD is used.
8938         * modules/utimens (Depends-on): Add fcntl-h.
8939         * modules/areadlinkat (Depends-on): Likewise.
8940         * modules/areadlinkat-with-size (Depends-on): Likewise.
8941         * modules/faccessat (Depends-on): Likewise.
8942         * modules/fchmodat (Depends-on): Likewise.
8943         * modules/fchownat (Depends-on): Likewise.
8944         * modules/getcwd (Depends-on): Likewise.
8945         * modules/mkdirat (Depends-on): Likewise.
8946         * modules/mkfifoat (Depends-on): Likewise.
8947         * modules/readlinkat (Depends-on): Likewise.
8948         * modules/symlinkat (Depends-on): Likewise.
8949         * modules/dup2-tests (Depends-on): Likewise.
8950         * modules/fdutimensat-tests (Depends-on): Likewise.
8951         * modules/futimens-tests (Depends-on): Likewise.
8952
8953 2011-11-19  Bruno Haible  <bruno@clisp.org>
8954
8955         euidaccess: Update a comment.
8956         * lib/euidaccess.c: Update comment about platforms with faccessat.
8957
8958 2011-11-19  Bruno Haible  <bruno@clisp.org>
8959
8960         openat: Fix file list.
8961         * modules/openat (Files): Remove lib/at-func.c.
8962
8963 2011-11-19  Bruno Haible  <bruno@clisp.org>
8964
8965         fstatat: Simplify.
8966         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8967         gnulib should define rpl_fstatat, there is a
8968         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8969
8970 2011-11-19  Bruno Haible  <bruno@clisp.org>
8971
8972         Ensure 'inline' can be used in tests/test-utimens-common.h.
8973         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8974         * modules/futimens-tests (configure.ac): Likewise.
8975         * modules/utimens-tests (configure.ac): Likewise.
8976         * modules/utimensat-tests (configure.ac): Likewise.
8977
8978 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8979
8980         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8981         not hash_insert0.
8982         (hash_insert_if_absent): Doc fix.
8983
8984 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8985
8986         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8987
8988 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8989
8990         test-getcwd: disambiguate exit status
8991         * tests/test-getcwd.c (test_long_name): Return 0..7.
8992         (main): Exit with an unambiguous exit status.  The old
8993         code yielded a mysterious mixture of two failure codes.
8994
8995         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8996         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8997         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8998         rpl_fstatat or fstatat.  This should fix the other problem
8999         reported by Kai Habel in
9000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9001         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9003         and I reproduced it on a Solaris 8 host we still have in production.
9004
9005 2011-11-18  Jim Meyering  <meyering@redhat.com>
9006
9007         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9008         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9009         Add a sentence to the comment.
9010         (hash_insert0): New function that simply calls hash_insert_if_absent.
9011         * lib/hash.h (hash_insert_if_absent): Declare it.
9012         (hash_insert0): Add deprecation attribute.
9013         (_GL_ATTRIBUTE_DEPRECATED): Define.
9014         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9015         not hash_insert0.
9016         * NEWS: Mention it, even though it's not really an incompatible change.
9017
9018 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9019
9020         openat: avoid compilation failure due to lack of <errno.h> inclusion
9021         * lib/openat.c: Include <errno.h>.
9022
9023 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9024
9025         * modules/getcwd (Depends-on): Add fdopendir.
9026         This fixes one of the two problems reported by Kai Habel in
9027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9028
9029         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9030         stdalign problem reported by Ian Beckwith in
9031         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9032         * modules/crypto/gc-arcfour (Depends-on):
9033         Depend conditionally on crypto/arcfour.
9034         * modules/crypto/gc-arctwo (Depends-on):
9035         Depend conditionally on crypto/arctwo.
9036         * modules/crypto/gc-des (Depends-on):
9037         Depend conditionally on crypto/des.
9038         * modules/crypto/gc-hmac-md5 (Depends-on):
9039         Depend conditionally on crypto/hmac-md5.
9040         * modules/crypto/gc-hmac-sha1 (Depends-on):
9041         Depend conditionally on crypto/hmac-sha1.
9042         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9043         * modules/crypto/gc-md4 (Depends-on):
9044         Depend conditionally on crypto/md4.
9045         * modules/crypto/gc-md5 (Depends-on):
9046         Depend conditionally on crypto/md5.
9047         * modules/crypto/gc-rijndael (Depends-on):
9048         Depend conditionally on crypto/rijndael.
9049         * modules/crypto/gc-sha1 (Depends-on):
9050         Depend conditionally on crypto/sha1.
9051         * modules/crypto/gc-arcfour:
9052         * modules/crypto/gc-arctwo:
9053         * modules/crypto/gc-des:
9054         * modules/crypto/gc-hmac-md5:
9055         * modules/crypto/gc-hmac-sha1:
9056         * modules/crypto/gc-md2:
9057         * modules/crypto/gc-md4:
9058         * modules/crypto/gc-md5:
9059         * modules/crypto/gc-rijndael:
9060         * modules/crypto/gc-sha1:
9061         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9062         now that the conditional dependencies do the work for us.
9063
9064 2011-11-17  Jim Meyering  <meyering@redhat.com>
9065
9066         tests: factor st_ctime-comparison out of two headers
9067         * tests/test-utimens-common.h (ctime_compare): Define.
9068         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9069         * tests/test-lutimens.h (test_lutimens): Likewise.
9070         * tests/test-utimens.h (test_utimens): Likewise.
9071
9072         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9073         Invoke the test program via an init.sh-using wrapper.
9074         * tests/test-getcwd.sh: New file.
9075         * modules/getcwd-tests (Files): Add it.
9076         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9077
9078 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9079
9080         gitlog-to-changelog: support multi-author commits.
9081         The FSF cares about keeping track of all authors of patches to its
9082         projects, but Git doesn't provide obvious support for multi-author
9083         changesets. Consensus seems to be forming around the use of extra
9084         Signed-off-by inspired lines in the log message formatted as
9085         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9086         multi-author commits between version control systems.
9087         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9088         log message and output in standard ChangeLog multi-author format.
9089         Reported by Peter Rosin <peda@lysator.liu.se>
9090
9091 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9092             Bruno Haible  <bruno@clisp.org>
9093
9094         Fix some modules' file list.
9095         * modules/fstatat (Files): Add m4/lstat.m4.
9096         * modules/openat (Files): Likewise.
9097         * modules/unlinkat (Files): Likewise.
9098
9099 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9100
9101         maint.mk: fix tight-scope.mk generation in VPATH builds.
9102         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9103         reference with $(srcdir) so that the file is found correctly even
9104         when running `make syntax-check' in a VPATH build.
9105
9106 2011-11-13  Bruno Haible  <bruno@clisp.org>
9107             Jim Meyering  <meyering@redhat.com>
9108
9109         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9110         * tests/init.sh (compare): Remove "No differences encountered" or
9111         synonymous output from the 'diff' program.
9112
9113 2011-11-13  Bruno Haible  <bruno@clisp.org>
9114
9115         Makefile: Tweak indentation.
9116         * Makefile: Use tab as first character in every line that contains rule
9117         commands.
9118
9119 2011-11-13  Bruno Haible  <bruno@clisp.org>
9120
9121         Syntax check for copyright statements.
9122         * check-copyright: New file.
9123         * Makefile (sc_check_copyright): New rule.
9124
9125 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9126
9127         * build-aux/git-version-gen: Add --prefix to configure the tag
9128         match string.
9129
9130 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9131
9132         * build-aux/git-version-gen: Add --help and --version.
9133
9134 2011-11-12  Jim Meyering  <meyering@redhat.com>
9135
9136         revamp the other test-exclude?.sh scripts to use init.sh, too
9137         * tests/test-exclude1.sh: Use init.sh.
9138         * tests/test-exclude2.sh: Likewise.
9139         * tests/test-exclude3.sh: Likewise.
9140         * tests/test-exclude4.sh: Likewise.
9141         * tests/test-exclude5.sh: Likewise.
9142         * tests/test-exclude6.sh: Likewise.
9143         * tests/test-exclude7.sh: Likewise.
9144         * tests/test-exclude8.sh: Likewise.
9145         * modules/exclude-tests (Files): List init.sh.
9146
9147         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9148         These shell scripts ignored failure of the binary test-exclude,
9149         so making the latter return 77 didn't cause them to be skipped.
9150         * tests/test-exclude5.sh: Exit with test-exclude's error status
9151         when that program fails.  Revamp to use init.sh.
9152         * tests/test-exclude2.sh: Likewise.
9153
9154         test-exclude: fix a typo
9155         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9156
9157 2011-11-11  Bruno Haible  <bruno@clisp.org>
9158
9159         obstack: Fix compilation error on MSVC 9.
9160         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9161
9162 2011-11-11  Jim Meyering  <meyering@redhat.com>
9163
9164         test-exclude: skip tests rather than failing on deficient systems
9165         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9166         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9167         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9168         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9169
9170 2011-11-10  Bruno Haible  <bruno@clisp.org>
9171
9172         ptsname_r test: Avoid gcc warning on glibc systems.
9173         * tests/test-ptsname_r.c (null_ptr): New function.
9174         (test_errors): Use it.
9175
9176 2011-11-10  Bruno Haible  <bruno@clisp.org>
9177
9178         ptsname_r: Avoid compilation error on OSF/1 5.1.
9179         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9180         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9181         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9182         function is not declared or incompatibly declared.
9183         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9184         * modules/ptsname_r (Depends-on, configure.ac): Update.
9185         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9186
9187 2011-11-10  Bruno Haible  <bruno@clisp.org>
9188
9189         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9190         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9191         When cross-compiling, guess yes on all platforms except AIX.
9192         Reported by Ludovic Courtès <ludo@gnu.org>.
9193
9194 2011-11-09  Bruno Haible  <bruno@clisp.org>
9195
9196         ptsname_r tests: Fix bugs.
9197         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9198         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9199
9200 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9201
9202         fstatat: work with cross-compilation
9203         Problem reported by Ludovic Courtès in
9204         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9205         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9206         "cross-compiling" and assume the bug is present.  Replace
9207         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9208         an inverted sense, to be more conservative about our assumptions.
9209         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9210
9211 2011-11-09  Bruno Haible  <bruno@clisp.org>
9212
9213         Improve MODULES.html output.
9214         * modules/mkfifoat (Description): Use the word "function".
9215         * modules/readlinkat (Description): Likewise.
9216         * modules/symlinkat (Description): Likewise.
9217
9218 2011-11-09  Eric Blake  <eblake@redhat.com>
9219
9220         ptsname_r-tests: new test module
9221         * modules/ptsname_r-tests: New module.
9222         * tests/test-ptsname_r.c: New file.
9223
9224         ptsname_r: new module
9225         * modules/ptsname_r: New module.
9226         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9227         * lib/ptsname.c (__ptsname_r): Split...
9228         * lib/ptsname_r.c: ...into new file.
9229         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9230         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9231         * modules/stdlib (Makefile.am): Substitute witnesses.
9232         * lib/stdlib.in.h (ptsname_r): Declare it.
9233         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9234         * MODULES.html.sh (Misc): Likewise.
9235         * modules/ptsname (Depends-on): Alter dependency.
9236         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9237
9238 2011-11-09  Jim Meyering  <meyering@redhat.com>
9239
9240         announce-gen: be more concise when there's only one URL+tarball
9241         * build-aux/announce-gen (get_tool_versions): When you distribute
9242         only one type of tarball, combine the first two "Here are..."
9243         sections and make the key-checking grammar independent of
9244         how many tarballs there are.
9245
9246 2011-11-09  Eric Blake  <eblake@redhat.com>
9247
9248         openpty: provide a stub on mingw
9249         * lib/pty.in.h (includes): Provide forward declarations.
9250         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9251
9252         raise: fix mingw handling of SIGPIPE
9253         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9254
9255 2011-11-08  Bruno Haible  <bruno@clisp.org>
9256
9257         More conditional dependencies.
9258         * modules/faccessat (Depends-on): Add conditions.
9259         * modules/fchmodat (Depends-on): Likewise.
9260         * modules/fchownat (Depends-on): Likewise.
9261         * modules/fstatat (Depends-on): Likewise.
9262         * modules/mkfifoat (Depends-on): Likewise.
9263         * modules/readlinkat (Depends-on): Likewise.
9264         * modules/symlinkat (Depends-on): Likewise.
9265         * modules/unlinkat (Depends-on): Likewise.
9266         * modules/utimensat (Depends-on): Likewise.
9267         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9268         * modules/linkat (Depends-on): Refine the conditions.
9269         * modules/renameat (Depends-on): Likewise.
9270
9271 2011-11-08  Bruno Haible  <bruno@clisp.org>
9272
9273         faccessat: Move AC_LIBOBJ invocation to module description.
9274         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9275         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9276         invocation from here...
9277         * modules/faccessat (configure.ac): ... to here. Invoke
9278         gl_PREREQ_FACCESSAT.
9279
9280 2011-11-08  Bruno Haible  <bruno@clisp.org>
9281
9282         faccessat: Simplify autoconf macro.
9283         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9284         gl_FUNC_EUIDACCESS.
9285
9286 2011-11-08  Bruno Haible  <bruno@clisp.org>
9287
9288         renameat: Fix dependencies.
9289         * modules/renameat (Depends-on): Add stdbool.
9290
9291 2011-11-08  Bruno Haible  <bruno@clisp.org>
9292
9293         mkfifoat: Fix module description.
9294         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9295         not gl_UNISTD_MODULE_INDICATOR.
9296
9297 2011-11-08  Bruno Haible  <bruno@clisp.org>
9298
9299         fstatat: Remove unused dependency.
9300         * modules/fstatat (Depends-on): Remove fstat.
9301
9302 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9303
9304         GNUmakefile: behave when Makefile is missing.
9305         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9306
9307 2011-11-08  Bruno Haible  <bruno@clisp.org>
9308
9309         openat: Conditionalize dependencies.
9310         * lib/openat.c: Reduce the scope of some #includes.
9311         * modules/openat (Depends-on): Add conditions.
9312
9313 2011-11-07  Jim Meyering  <meyering@redhat.com>
9314
9315         maint.mk: extract GPG key ID without using a temporary file
9316         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9317         without using a temporary file.  Based on a suggestion from Werner Koch
9318         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9319
9320 2011-11-07  Eric Blake  <eblake@redhat.com>
9321
9322         grantpt: fix typo
9323         * lib/stdlib.in.h (grantpt): Check correct function.
9324
9325         maint.mk: silence new syntax check
9326         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9327
9328 2011-11-06  Bruno Haible  <bruno@clisp.org>
9329
9330         Doc about floating-point and math API.
9331         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9332         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9333
9334 2011-11-06  Bruno Haible  <bruno@clisp.org>
9335
9336         stdalign tests: Skip the test when compiled by Sun C.
9337         * tests/test-stdalign.c (main): Skip the test on Sun C.
9338
9339 2011-11-06  Bruno Haible  <bruno@clisp.org>
9340
9341         ansi-c++-opt: Complete the 2011-06-05 change.
9342         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9343         does not support namespaces, set the variable to "no", not to ":".
9344
9345 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9346
9347         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9348
9349 2011-11-06  Bruno Haible  <bruno@clisp.org>
9350
9351         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9352         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9353         (minus_zerol) [HP-UX]: New macro.
9354         (unary_minus) [HP-UX]: New function.
9355         (copysignl) [HP-UX]: Use unary_minus function.
9356
9357 2011-11-06  Bruno Haible  <bruno@clisp.org>
9358
9359         ldexp, ldexpf, ldexpl: Enhance tests.
9360         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9361         and tests/test-ldexpl.c.
9362         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9363         LDEXP, MIN_EXP, MAX_EXP): New macros.
9364         Include test-ldexp.h.
9365         (main): Just call test_function.
9366         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9367         infinity.h, nan.h.
9368         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9369         MAX_EXP): New macros.
9370         Include test-ldexp.h.
9371         (x, y): Remove variables.
9372         (main): Just call test_function.
9373         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9374         infinity.h, nan.h.
9375         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9376         MAX_EXP): New macros.
9377         Include test-ldexp.h.
9378         (x, y): Remove variables.
9379         (main): Just call test_function.
9380         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9381         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9382         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9383         (Depends-on): Add isnand-nolibm, signbit, float.
9384         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9385         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9386         (Depends-on): Add isnanf-nolibm, signbit, float.
9387
9388 2011-11-06  Bruno Haible  <bruno@clisp.org>
9389
9390         math tests: Cosmetics.
9391         * tests/test-math-c++.cc: Reorder declarations.
9392
9393 2011-11-05  Bruno Haible  <bruno@clisp.org>
9394
9395         fma*: Simplify test.
9396         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9397         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9398
9399         Tests for module 'fmal'.
9400         * modules/fmal-tests: New file.
9401         * tests/test-fmal1.c: New file.
9402         * tests/test-fmal2.c: New file.
9403
9404         New module 'fmal'.
9405         * lib/math.in.h (fmal): New declaration.
9406         * lib/fmal.c: New file.
9407         * m4/fmal.m4: New file.
9408         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9410         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9411         REPLACE_FMAL.
9412         * modules/fmal: New file.
9413         * doc/posix-functions/fmal.texi: Mention the new module and the various
9414         bugs.
9415
9416         Tests for module 'fmaf'.
9417         * modules/fmaf-tests: New file.
9418         * tests/test-fmaf1.c: New file.
9419         * tests/test-fmaf2.c: New file.
9420
9421         New module 'fmaf'.
9422         * lib/math.in.h (fmaf): New declaration.
9423         * lib/fmaf.c: New file.
9424         * m4/fmaf.m4: New file.
9425         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9427         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9428         REPLACE_FMAF.
9429         * modules/fmaf: New file.
9430         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9431         bugs.
9432
9433         Tests for module 'fma'.
9434         * modules/fma-tests: New file.
9435         * tests/test-fma1.c: New file.
9436         * tests/test-fma1.h: New file.
9437         * tests/test-fma2.c: New file.
9438         * tests/test-fma2.h: New file.
9439
9440         New module 'fma'.
9441         * lib/math.in.h (fma): New declaration.
9442         * lib/fma.c: New file.
9443         * m4/fma.m4: New file.
9444         * m4/fegetround.m4: New file.
9445         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9447         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9448         REPLACE_FMA.
9449         * modules/fma: New file.
9450         * doc/posix-functions/fma.texi: Mention the new module and the various
9451         bugs.
9452
9453         Extend gl_MATHFUNC.
9454         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9455         Support 'void' as argument type.
9456         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9457
9458 2011-11-05  Jim Meyering  <meyering@redhat.com>
9459
9460         maint.mk: also prohibit inclusion of dirent.h without use
9461         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9462
9463 2011-11-05  Bruno Haible  <bruno@clisp.org>
9464
9465         ldexpl tests: Avoid test failure on MSVC 9.
9466         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9467         value. Needed in order to enforce the conversion from a value greater
9468         than LDBL_MAX to Infinity.
9469
9470 2011-11-05  Bruno Haible  <bruno@clisp.org>
9471
9472         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9473         * modules/at-internal: New file, extracted from modules/openat.
9474         * modules/openat-h: New file.
9475         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9476         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9477         * modules/openat (Description): Add reference to POSIX function.
9478         (Files): Remove lib/openat.h, lib/openat-proc.c.
9479         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9480         intprops, unistd.
9481         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9482         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9483         gl_FCNTL_MODULE_INDICATOR.
9484         (Include): Remove unistd.h, openat.h.
9485         * modules/areadlinkat (Files): Add lib/at-func.c.
9486         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9487         openat-die, openat-h, save-cwd.
9488         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9489         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9490         openat-die, openat-h, save-cwd, unistd.
9491         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9492         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9493         openat-h, save-cwd. Remove fcntl-h, openat.
9494         * modules/fchmodat (Files): Remove lib/openat.h.
9495         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9496         openat, stdbool, unistd.
9497         * modules/fchownat (Files): Remove lib/openat.h.
9498         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9499         openat, stdbool, sys_stat.
9500         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9501         lib/openat-proc.c.
9502         (Depends-on): Add at-internal.
9503         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9504         * modules/fstatat (Files): Remove lib/openat.h.
9505         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9506         stdbool, unistd.
9507         * modules/fts (Depends-on): Add openat-h.
9508         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9509         openat.
9510         * modules/mkdirat (Files): Remove lib/openat.h.
9511         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9512         openat, stdbool, sys_stat.
9513         * modules/mkfifoat (Files): Add lib/at-func.c.
9514         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9515         openat-h, save-cwd. Remove fcntl-h, openat.
9516         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9517         * modules/readlinkat (Files): Add lib/at-func.c.
9518         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9519         openat-h, save-cwd. Remove fcntl-h, openat.
9520         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9521         openat.
9522         * modules/selinux-at (Files): Add lib/at-func.c.
9523         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9524         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9525         * modules/symlinkat (Files): Add lib/at-func.c.
9526         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9527         openat-h, save-cwd. Remove fcntl-h, openat.
9528         * modules/unlinkat (Files): Remove lib/openat.h.
9529         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9530         stdbool.
9531         * modules/utimensat (Files): Add lib/at-func.c.
9532         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9533         openat-die, openat-h, save-cwd.
9534         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9535         * modules/fdutimensat-tests (Depends-on): Add openat.
9536         * modules/fstatat-tests (Depends-on): Add openat-h.
9537         * modules/readlinkat-tests (Depends-on): Add openat.
9538         * modules/symlinkat-tests (Depends-on): Add openat.
9539
9540 2011-11-05  Bruno Haible  <bruno@clisp.org>
9541
9542         openat: Include <stdbool.h>.
9543         * lib/openat.c: Include <stdbool.h>.
9544
9545 2011-11-04  Bruno Haible  <bruno@clisp.org>
9546
9547         fchownat, renameat, unlinkat: Fix dependencies.
9548         * modules/fchownat (Depends-on): Add fstatat.
9549         * modules/renameat (Depends-on): Likewise.
9550         * modules/unlinkat (Depends-on): Likewise.
9551
9552 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9553
9554         openat: remove direct dependency on dirent
9555         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9556         and hasn't been needed ever since fdopendir was split into its own
9557         module on 2009-08-31.
9558         * modules/openat (Depends-on): Remove dirent.
9559
9560 2011-11-04  Bruno Haible  <bruno@clisp.org>
9561
9562         renameat: Optimize code size.
9563         * modules/renameat (configure.ac): Don't compile at-func2.c if
9564         REPLACE_RENAMEAT is 1.
9565
9566 2011-11-04  Bruno Haible  <bruno@clisp.org>
9567
9568         openat tests: Fix file list.
9569         * modules/openat-tests (Files): Add tests/test-open.h.
9570
9571 2011-11-04  Bruno Haible  <bruno@clisp.org>
9572
9573         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9574         * modules/fchmodat (Depends-on): Add openat-die.
9575         * modules/fchownat (Depends-on): Likewise.
9576         * modules/linkat (Depends-on): Likewise.
9577         * modules/renameat (Depends-on): Likewise.
9578         * modules/openat (Depends-on): Add dirent.
9579
9580 2011-11-04  Jim Meyering  <meyering@redhat.com>
9581
9582         at-func*.c: fix comments
9583         * lib/at-func2.c: Correct/improve first-line comment.
9584         * lib/at-func.c: Correct grammar in first-line comment.
9585
9586 2011-11-04  Bruno Haible  <bruno@clisp.org>
9587
9588         New module 'mkdirat', split off from module 'openat'.
9589         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9590         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9591         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9592         * modules/mkdirat: New file, extracted from modules/openat.
9593         * modules/openat (Files): Remove lib/mkdirat.c.
9594         (Depends-on): Remove mkdir.
9595         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9596         (Include): Remove <sys/stat.h>.
9597         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9598         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9599         tests/test-mkdir.h.
9600         (Depends-on): Remove ignore-value.
9601         (Makefile.am): Remove rules for test-mkdirat.
9602         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9603         of module 'openat'.
9604         * NEWS: Mention the change.
9605
9606 2011-11-04  Bruno Haible  <bruno@clisp.org>
9607
9608         closedir: Avoid warning on mingw.
9609         * lib/closedir.c: Include <unistd.h>.
9610
9611 2011-11-04  Bruno Haible  <bruno@clisp.org>
9612
9613         New module 'fstatat', split off from module 'openat'.
9614         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9615         defined.
9616         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9617         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9618         gl_FUNC_FSTATAT.
9619         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9620         * modules/fstatat: New file, extracted from modules/openat.
9621         * modules/openat (Files): Remove lib/fstatat.c.
9622         (Depends-on): Remove lstat.
9623         (configure.ac): Remove AC_LIBOBJ of fstatat.
9624         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9625         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9626         tests/test-lstat.h, tests/test-stat.h.
9627         (Depends-on): Remove getcwd-lgpl.
9628         (Makefile.am): Remove rules for test-fstatat.
9629         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9630         of module 'openat'.
9631         * NEWS: Mention the change.
9632         * modules/getcwd (Depends-on): Add fstatat.
9633         * modules/linkat (Depends-on): Likewise.
9634         * modules/mkfifoat-tests (Depends-on): Likewise.
9635         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9636
9637 2011-11-03  Bruno Haible  <bruno@clisp.org>
9638
9639         New module 'unlinkat', split off from module 'openat'.
9640         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9641         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9642         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9643         * modules/unlinkat: New file, extracted from modules/openat. Correct
9644         the dependency conditions.
9645         * modules/openat (Files): Remove lib/unlinkat.c.
9646         (Depends-on): Remove rmdir, unlink.
9647         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9648         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9649         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9650         tests/test-rmdir.h, tests/test-unlink.h.
9651         (Depends-on): Remove unlinkdir.
9652         (Makefile.am): Remove rules for test-unlinkat.
9653         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9654         of module 'openat'.
9655         * NEWS: Mention the change.
9656         * modules/linkat-tests (Depends-on): Add unlinkat.
9657         * modules/mkfifoat-tests (Depends-on): Likewise.
9658         * modules/readlinkat-tests (Depends-on): Likewise.
9659
9660 2011-11-02  Bruno Haible  <bruno@clisp.org>
9661
9662         New module 'fchmodat', split off from module 'openat'.
9663         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9664         defined.
9665         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9666         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9667         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9668         * modules/fchmodat: New file, extracted from modules/openat.
9669         * modules/openat (Files): Remove lib/fchmodat.c.
9670         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9671         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9672         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9673         (Makefile.am): Remove rules for test-fchmodat.
9674         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9675         of module 'openat'.
9676         * NEWS: Mention the change.
9677
9678 2011-11-02  Jim Meyering  <meyering@redhat.com>
9679
9680         putenv: indent #definition of "environ" to placate cppi
9681         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9682
9683         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9684         Git logs are often treated as immutable, because editing them
9685         changes the SHA1 checksums of all descendants.  Thus, errors in
9686         git logs tend to stay there forever.  However, when we generate
9687         a ChangeLog file -- typically for distribution -- from that git log,
9688         we can actually make corrections in the generated file.  The key
9689         lies in recording in machine-readable/applicable form the desired
9690         corrections.  See --help for description and an example.
9691         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9692         (usage): Describe it; alphabetize option descriptions.
9693         (main): Honor the new option, carefully.
9694
9695 2011-11-01  Jim Meyering  <meyering@redhat.com>
9696
9697         gitlog-to-changelog: avoid an infloop
9698         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9699         that ends up being empty.
9700
9701 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9702
9703         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9704         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9705         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9706         contains (possibly-quoted) backslashes.  This should avoid
9707         all-too-common shell bugs if COMPLICATED contains backslashes in
9708         the "wrong" places.  Reported by David Evans in
9709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9710         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9711         because we want ASCII ranges.  Is there some reason we don't use
9712         the C locale everywhere in this script?
9713         (func_module, top level): Avoid unwanted pathname expansion when
9714         $repo_url_prefix or $repo_url_suffix_repl contain shell
9715         metacharacters like '?' and '*'.
9716
9717 2011-11-01  Bruno Haible  <bruno@clisp.org>
9718
9719         fchownat: Improve description.
9720         * modules/fchownat (Description): Add link to function.
9721
9722 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9723
9724         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9725         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9727         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9728
9729 2011-11-01  Bruno Haible  <bruno@clisp.org>
9730
9731         alignof: Avoid collision with stdalign module.
9732         * lib/alignof.h (alignof): Remove macro.
9733         * NEWS: Mention the change.
9734         Reported by Paul Eggert.
9735
9736 2011-11-01  Bruno Haible  <bruno@clisp.org>
9737
9738         New module 'fchownat', split off from module 'openat'.
9739         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9740         defined.
9741         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9742         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9743         invoke gl_FUNC_FCHOWNAT.
9744         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9745         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9746         * modules/fchownat: New file, extracted from modules/openat.
9747         * modules/openat (Files): Remove lib/fchownat.c.
9748         (Depends-on): Remove lchown.
9749         (configure.ac): Remove AC_LIBOBJ of fchownat.
9750         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9751         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9752         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9753         (Depends-on): Remove mgetgroups, usleep, stat-time.
9754         (configure.ac): Remove test for getegid.
9755         (Makefile.am): Remove rules for test-fchownat.
9756         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9757         of module 'openat'.
9758         * NEWS: Mention the change.
9759
9760 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9761
9762         stdalign: port better to MSVC and to Sun C 5.11
9763         This fixes some of the problems reported by Bruno Haible in
9764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9765         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9766         shortcomings of MSVC and of Sun C 5.11.
9767         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9768         around __declspec arg.
9769         * modules/stdalign-tests (Files): Add tests/macros.h.
9770         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9771         Include macros.h, for ASSERT.
9772         (DECLARE_ALIGNED): Remove.
9773         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9774         to catch bug), and to 1 if not (simplifies the rest of the code).
9775         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9776         (CHECK_AUTO): Remove.
9777         (CHECK_ALIGNED): Check only the alignment of the static vars,
9778         since auto var alignment isn't supported by Sun C 5.11.
9779         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9780         ASSERT failures are easier to diagnose.
9781
9782 2011-10-31  Bruno Haible  <bruno@clisp.org>
9783
9784         doc about some IRIX 5.3 problems.
9785         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9786         on IRIX 5.3.
9787         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9788         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9789         5.3.
9790         * doc/posix-functions/grantpt.texi: Likewise.
9791         * doc/posix-functions/unlockpt.texi: Likewise.
9792         * doc/posix-functions/lgamma.texi: Likewise.
9793         * doc/posix-functions/nextafter.texi: Likewise.
9794         * doc/posix-functions/remainder.texi: Likewise.
9795         * doc/posix-functions/select.texi: Mention misplaced declaration on
9796         IRIX 5.3.
9797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9798
9799 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9800
9801         gitlog-to-changelog: fix git-log invocation.
9802         git-log mishandles date strings before 1970-01-01 UTC, and there is
9803         no use to specify --since=1970-01-01 by default anyway.
9804         * build-aux/gitlog-to-changelog: By default, when no --since option
9805         was given, do not specify explicit --since option to git-log.
9806
9807 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9808
9809         gitlog-to-changelog: new option --append-dot.
9810         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9811         first non-blank line of each commit message terminated with a dot.
9812
9813 2011-10-30  Bruno Haible  <bruno@clisp.org>
9814
9815         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9816         * lib/ffsl.h: Include <config.h>.
9817         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9818
9819 2011-10-30  Jim Meyering  <meyering@redhat.com>
9820
9821         GNUmakefile: reenable "make syntax-check" for most projects
9822         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9823         build-aux variable", "syntax-check" would do nothing but succeed with
9824         the "No version control files detected..." diagnostic (unless you
9825         happened to override _build-aux via cfg.mk).
9826         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9827         to precede inclusion of maint.mk.  Otherwise, these variables would
9828         be used undefined in any project that does not override the default.
9829
9830 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9831
9832         gitlog-to-changelog: treat a message with only blank lines as empty.
9833         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9834         trailing blank lines before the code that issues a warning about an
9835         empty commit message.
9836
9837 2011-10-30  Jim Meyering  <meyering@redhat.com>
9838
9839         test-parse-datetime.c: avoid new DST-related false positive test failure
9840         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9841         based on the time/date we'll convert, not the current time.
9842         Otherwise, the moment we cross a DST boundary like today's in
9843         Europe, (CEST to CET), that offset ends up being one hour off.
9844
9845 2011-10-27  Bruno Haible  <bruno@clisp.org>
9846
9847         fstat: Tweak documentation.
9848         * modules/fstat (Description): More precise description.
9849
9850 2011-10-27  Bruno Haible  <bruno@clisp.org>
9851
9852         Update documentation regarding 'largefile' module.
9853         * doc/posix-functions/fstat.texi: Tweak wording.
9854         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9855         problems with huge directories and/or small ino_t types.
9856         * doc/posix-functions/readdir.texi: Likewise.
9857         * doc/posix-functions/rewinddir.texi: Likewise.
9858
9859 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9860
9861         maint.mk: don't maintain a second build-aux variable.
9862         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9863         depends on GNUmakefile, which already maintains a cfg.mk
9864         overridable $(_build-aux) for projects with a non-standard
9865         build-aux directory location, although without the $(srcdir)
9866         prefix.  Use that variable consistently instead of introducing a
9867         second one.  Adjust all call sites.
9868
9869 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9870
9871         Add stdalign module and use it in other modules.
9872         This is based on a previous proposal by Bruno Haible
9873         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9874
9875         stdalign: new module
9876         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9877         * modules/stdalign: New files.
9878         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9879         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9880
9881         stdalign-tests: new module
9882         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9883
9884         argp: use stdalign
9885         * lib/argp-parse.c: Include <stdalign.h>.
9886         (alignof): Remove.
9887         * modules/argp (Depends-on): Add stdalign.
9888
9889         crypto libraries: use stdalign
9890         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9891         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9892         Do not include <stdlib.h> twice, in md4.c.
9893         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9894         because we are accessing a pointer's bit-pattern, not a size.
9895         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9896         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9897         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9898         * modules/crypto/sha512: Likewise.
9899
9900         sys_socket: use stdalign, not alignof
9901         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9902         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9903
9904 2011-10-27  Bruno Haible  <bruno@clisp.org>
9905
9906         raise test: Avoid a test failure on Linux/MIPS.
9907         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9908         because 99 is a valid signal on Linux/MIPS.
9909
9910 2011-10-27  Bruno Haible  <bruno@clisp.org>
9911
9912         nonblocking tests: Fix test failure on Linux/MIPS.
9913         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9914         Set to 270000.
9915
9916 2011-10-27  Bruno Haible  <bruno@clisp.org>
9917
9918         utimensat: Work around problem on Linux/hppa.
9919         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9920         values.
9921         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9922
9923 2011-10-25  Jim Meyering  <meyering@redhat.com>
9924
9925         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9926         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9927         after symbols like NULL, size_t, etc.
9928         Reported by Alfred M. Szmidt.
9929
9930         maint.mk: exempt ENODATA from a syntax-check rule
9931         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9932         from the sc_prohibit_always-defined_macros syntax-check rule.
9933         Add a comment.  See this for more details:
9934         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9935
9936 2011-10-23  Jim Meyering  <meyering@redhat.com>
9937
9938         fts: close parent dir FD before returning from post-traversal fts_read
9939         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9940         unlink A, even though an FD open on A remained.  This is suboptimal
9941         (holding a file descriptor open longer than needed), but otherwise not
9942         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9943         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9944         that represents a real problem: it causes the removal of A to fail
9945         with e.g., "rm: cannot remove `A': Device or resource busy"
9946
9947         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9948         directory file descriptors.  After completing the final, FTS_DP,
9949         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9950         cache, but then proceeded to add a new FD to it via the subsequent
9951         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9952         final file descriptor would be closed only via fts_close's call to
9953         fd_ring_clear.  Now, it is usually closed earlier, via the final
9954         FTS_DP-returning fts_read call.
9955         * lib/fts.c (restore_initial_cwd): New function, converted from
9956         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9957         Update callers.
9958         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9959         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9960
9961 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9962             Bruno Haible  <bruno@clisp.org>
9963             Jim Meyering  <jim@meyering.net>
9964
9965         readme-release: improve safety of release prep instructions.
9966         * README-release: Don't git pull all branches when only master
9967         is needed for the release process.
9968         Run make maintainer-clean before changing trees and merging.
9969         Don't try to run ./configure right after git pull in case files
9970         that influence the bootstrap process have changed, move the
9971         ./configure step to after running ./bootstrap.
9972         Don't bootstrap "one last time"... it's the first time!
9973
9974 2011-10-22  Bruno Haible  <bruno@clisp.org>
9975
9976         errno, strerror-override: Support for MSVC 10.
9977         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9978         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9979         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9980         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9981         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9982         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9983         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9984         Assign values compatible with MSVC 10.
9985         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9986         New macros.
9987         (GNULIB_defined_EWINSOCK): New macro.
9988         * lib/strerror-override.c (strerror_override): Update accordingly.
9989         * lib/strerror-override.h: Likewise.
9990         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9991         longer equal to the corresponding errno value.
9992         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9993
9994 2011-10-22  Bruno Haible  <bruno@clisp.org>
9995
9996         perror: Recognize when test program crashes.
9997         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9998         strerror, set gl_cv_func_perror_works to no.
9999         Reported by Daniel Richard G. <skunk@iskunk.org>.
10000
10001         perror: Fix indentation.
10002         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10003
10004 2011-10-22  Bruno Haible  <bruno@clisp.org>
10005
10006         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10007         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10008         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10009         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10010         functions, not as a macro.
10011         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10012         macros.
10013         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10014         absence of macro.
10015         Suggested by Eric Blake.
10016         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10017
10018 2011-10-21  Bruno Haible  <bruno@clisp.org>
10019
10020         relocatable-prog-wrapper: Don't leave object files behind.
10021         * build-aux/install-reloc: Re-synchronize list of .o files to be
10022         removed with list of compilation units.
10023
10024 2011-10-20  Bruno Haible  <bruno@clisp.org>
10025
10026         openpty, posix_openpt: Remove code duplication.
10027         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10028         * lib/openpty.c: Include <stdlib.h>.
10029         (openpty): Use posix_openpt on all platforms except IRIX.
10030         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10031
10032 2011-10-20  Bruno Haible  <bruno@clisp.org>
10033
10034         unlockpt: Detect invalid argument.
10035         * lib/unlockpt.c: Include <fcntl.h>.
10036         (unlockpt): Check whether fd is valid, using fcntl().
10037         * modules/unlockpt (Depends-on): Add fcntl-h.
10038
10039 2011-10-20  Bruno Haible  <bruno@clisp.org>
10040
10041         openpty: Avoid compilation error on AIX 6.1.
10042         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10043
10044 2011-10-20  Bruno Haible  <bruno@clisp.org>
10045
10046         posix_openpt: Support for OpenBSD.
10047         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10048         (posix_openpt) [OpenBSD]: New code.
10049         * lib/grantpt.c: Include <fcntl.h>.
10050         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10051         * modules/grantpt (Depends-on): Add fcntl-h.
10052
10053 2011-10-20  Bruno Haible  <bruno@clisp.org>
10054
10055         posix_openpt test: Coding style.
10056         * tests/test-posix_openpt.c: Use GNU coding style.
10057
10058 2011-10-20  Bruno Haible  <bruno@clisp.org>
10059
10060         grantpt: Support --avoid=pt_chown.
10061         * modules/grantpt (Files): Add lib/pty-private.h.
10062
10063 2011-10-20  Bruno Haible  <bruno@clisp.org>
10064
10065         posix_openpt: Fix autoconf macro.
10066         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10067         unneeded check for _getpty.
10068
10069 2011-10-20  Bruno Haible  <bruno@clisp.org>
10070
10071         openpty: Update comments.
10072         * lib/openpty.c: Add comments about Minix.
10073
10074 2011-10-19  Eric Blake  <eblake@redhat.com>
10075
10076         openpty: relax license
10077         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10078
10079         pt_chown: use configmake to simplify build
10080         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10081
10082         ptsname and others: relax license
10083         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10084         * modules/unlockpt (License): Likewise.
10085         * modules/pt_chown (License): Likewise.
10086         * modules/ptsname (License): Likewise.
10087         * modules/ttyname_r (License): Likewise.
10088
10089 2011-10-19  Jim Meyering  <meyering@redhat.com>
10090
10091         posix_openpt: remove spurious #endif
10092         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10093
10094 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10095
10096         maint.mk: Respect $(build_aux) in web-manual rule.
10097         * top/maint.mk (web-manual): Find gen-announce script in user's
10098         $(build_aux) directory instead of hard-coding 'build-aux'.
10099
10100 2011-10-19  Bruno Haible  <bruno@clisp.org>
10101
10102         posix_openpt: Fix compilation error.
10103         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10104         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10105         Mention the openpty module as an alternative.
10106
10107 2011-10-19  Bruno Haible  <bruno@clisp.org>
10108
10109         Support for old NeXTstep 3.3 frexp().
10110         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10111         execution time of the test to 5 seconds.
10112         Reported by Daniel Richard G. <skunk@iskunk.org>.
10113
10114 2011-10-19  Bruno Haible  <bruno@clisp.org>
10115
10116         Support for old NeXTstep 3.3 sed.
10117         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10118         part, use /.../, not \|...|. Escape periods in the header file name.
10119         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10120         Reported by Daniel Richard G. <skunk@iskunk.org>.
10121
10122 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10123
10124         Support for old NeXTstep 3.3 gcc.
10125         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10126         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10127         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10128         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10129         * lib/regex.h (_Restrict_arr_): Likewise.
10130         * lib/regex_internal.h (re_token_t): Likewise.
10131         * lib/regexec.c (check_node_accept_bytes): Likewise.
10132         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10133
10134 2011-10-18  Eric Blake  <eblake@redhat.com>
10135
10136         posix_openpt: new module
10137         * modules/posix_openpt: New module.
10138         * m4/posix_openpt.m4: New file.
10139         * lib/posix_openpt.c: Likewise.
10140         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10141         (gl_STDLIB_H_DEFAULTS): Set defaults.
10142         * modules/stdlib (Makefile.am): Substitute macros.
10143         * lib/stdlib.in.h (posix_openpt): Declare.
10144         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10145         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10146         * modules/posix_openpt-tests: New test module.
10147         * tests/test-posix_openpt.c: New test.
10148
10149 2011-10-15  Bruno Haible  <bruno@clisp.org>
10150
10151         xstrtoll: Fix compilation failure.
10152         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10153         from lib/strtol.c.
10154         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10155         some platforms.
10156         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10157
10158 2011-10-15  Bruno Haible  <bruno@clisp.org>
10159
10160         vasnprintf: Optimize bit search operation.
10161         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10163         gl_DOUBLE_EXPONENT_LOCATION.
10164         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10165         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10166         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10167         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10168         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10169         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10170         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10171         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10172         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10173
10174 2011-10-15  Bruno Haible  <bruno@clisp.org>
10175
10176         vasnprintf: Fix comments.
10177         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10178
10179 2011-10-14  Bruno Haible  <bruno@clisp.org>
10180
10181         Tests for module 'integer_length_ll'.
10182         * modules/integer_length_ll-tests: New file.
10183         * tests/test-integer_length_ll.c: New file.
10184
10185         New module 'integer_length_ll'.
10186         * lib/integer_length_ll.c: New file.
10187         * modules/integer_length_ll: New file.
10188
10189 2011-10-14  Bruno Haible  <bruno@clisp.org>
10190
10191         Tests for module 'integer_length_l'.
10192         * modules/integer_length_l-tests: New file.
10193         * tests/test-integer_length_l.c: New file.
10194
10195         New module 'integer_length_l'.
10196         * lib/integer_length_l.c: New file.
10197         * modules/integer_length_l: New file.
10198
10199 2011-10-14  Bruno Haible  <bruno@clisp.org>
10200
10201         Tests for module 'integer_length'.
10202         * modules/integer_length-tests: New file.
10203         * tests/test-integer_length.c: New file.
10204
10205         New module 'integer_length'.
10206         * lib/integer_length.h: New file.
10207         * lib/integer_length.c: New file.
10208         * modules/integer_length: New file.
10209
10210 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10211
10212         popen: Fix dependency conditions.
10213         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10214
10215 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10216
10217         perror: Fix autoconf test.
10218         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10219         <stdlib.h> and <string.h>.
10220
10221 2011-10-14  Bruno Haible  <bruno@clisp.org>
10222
10223         ffsl: Optimize on 64-bit platforms.
10224         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10225         unrolling.
10226
10227 2011-10-13  Bruno Haible  <bruno@clisp.org>
10228
10229         ffsl: Optimize on 32-bit platforms.
10230         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10231         use ffs() without a loop.
10232
10233         ffsl, ffsll: Optimize for GCC.
10234         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10235         * lib/ffsl.c (GCC_BUILTIN): New macro.
10236         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10237
10238 2011-10-13  Bruno Haible  <bruno@clisp.org>
10239
10240         ffs, bcopy, memset: Support symbol renaming via config.h.
10241         * lib/ffs.c: Include <config.h>.
10242         * lib/bcopy.c: Likewise.
10243         * lib/memset.c: Likewise.
10244
10245 2011-10-10  Bruno Haible  <bruno@clisp.org>
10246
10247         atanl: Simplify for platforms where 'long double' == 'double'.
10248         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10249         alternative implementation.
10250         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10251         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10252         * modules/atanl (Depends-on): Add atan. Update conditions.
10253
10254 2011-10-10  Bruno Haible  <bruno@clisp.org>
10255
10256         acosl: Simplify for platforms where 'long double' == 'double'.
10257         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10258         alternative implementation.
10259         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10260         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10261         * modules/acosl (Depends-on): Add acos. Update conditions.
10262
10263 2011-10-10  Bruno Haible  <bruno@clisp.org>
10264
10265         asinl: Simplify for platforms where 'long double' == 'double'.
10266         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10267         alternative implementation.
10268         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10269         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10270         * modules/asinl (Depends-on): Add asin. Update conditions.
10271
10272 2011-10-10  Bruno Haible  <bruno@clisp.org>
10273
10274         tanl: Simplify for platforms where 'long double' == 'double'.
10275         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10276         implementation.
10277         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10278         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10279         * modules/tanl (Depends-on): Add tan. Update conditions.
10280         (configure.ac): Don't compile trigl.c if
10281         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10282
10283 2011-10-10  Bruno Haible  <bruno@clisp.org>
10284
10285         cosl: Simplify for platforms where 'long double' == 'double'.
10286         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10287         implementation.
10288         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10289         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10290         * modules/cosl (Depends-on): Add cos. Update conditions.
10291         (configure.ac): Don't compile sincosl.c and trigl.c if
10292         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10293
10294 2011-10-10  Bruno Haible  <bruno@clisp.org>
10295
10296         sinl: Simplify for platforms where 'long double' == 'double'.
10297         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10298         implementation.
10299         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10300         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10301         * modules/sinl (Depends-on): Add sin. Update conditions.
10302         (configure.ac): Don't compile sincosl.c and trigl.c if
10303         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10304
10305 2011-10-10  Bruno Haible  <bruno@clisp.org>
10306
10307         logl: Simplify for platforms where 'long double' == 'double'.
10308         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10309         implementation.
10310         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10311         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10312         * modules/logl (Depends-on): Add log. Update conditions.
10313
10314 2011-10-10  Bruno Haible  <bruno@clisp.org>
10315
10316         expl: Simplify for platforms where 'long double' == 'double'.
10317         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10318         implementation.
10319         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10320         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10321         * modules/expl (Depends-on): Add exp. Update conditions.
10322
10323 2011-10-10  Bruno Haible  <bruno@clisp.org>
10324
10325         sqrtl: Simplify for platforms where 'long double' == 'double'.
10326         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10327         alternative implementation.
10328         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10329         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10330         * modules/sqrtl (Depends-on): Update conditions.
10331
10332 2011-10-10  Bruno Haible  <bruno@clisp.org>
10333
10334         ldexpl: Simplify for platforms where 'long double' == 'double'.
10335         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10336         alternative implementation.
10337         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10338         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10339         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10340
10341 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10342
10343         ffsll: set correct witness
10344         * modules/ffsll (configure.ac): Fix typo.
10345
10346 2011-10-10  Bruno Haible  <bruno@clisp.org>
10347
10348         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10349         * lib/printf-frexpl.c: Include <config.h>.
10350         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10351         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10352         second time.
10353         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10354         gl_LONG_DOUBLE_VS_DOUBLE.
10355         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10356         conditions.
10357
10358 2011-10-10  Bruno Haible  <bruno@clisp.org>
10359
10360         frexpl: Simplify for platforms where 'long double' == 'double'.
10361         * lib/frexpl.c: Include <config.h>.
10362         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10363         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10364         time.
10365         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10366         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10367         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10368         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10369         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10370         conditions.
10371
10372 2011-10-10  Jim Meyering  <meyering@redhat.com>
10373
10374         test-renameat: don't leave behind a temporary file
10375         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10376           ERROR: files left in build directory after distclean:
10377           ./gltests/test-renameat.too
10378           make[1]: *** [distcleancheck] Error 1
10379         Reported by Tom G. Christensen.
10380
10381 2011-10-09  Bruno Haible  <bruno@clisp.org>
10382
10383         rint: Determine RINT_LIBM correctly on AIX 7.
10384         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10385         directly, not only through a function pointer. Also accept an optional
10386         4th argument with extra code.
10387         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10388         rintf() call by gcc when optimizing.
10389
10390         mathfunc.m4: Refactor.
10391         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10392         m4 variable.
10393
10394 2011-10-09  Bruno Haible  <bruno@clisp.org>
10395
10396         rintl: Simplify for platforms where 'long double' == 'double'.
10397         * lib/rintl.c: Include <config.h>.
10398         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10399         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10400         time.
10401         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10402         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10403         * modules/rintl (Depends-on): Add rint. Update conditions.
10404
10405 2011-10-09  Bruno Haible  <bruno@clisp.org>
10406
10407         roundl: Simplify for platforms where 'long double' == 'double'.
10408         * lib/roundl.c: Include <config.h>.
10409         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10410         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10411         time.
10412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10413         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10414         * modules/roundl (Depends-on): Add round. Update conditions.
10415
10416 2011-10-09  Bruno Haible  <bruno@clisp.org>
10417
10418         truncl: Simplify for platforms where 'long double' == 'double'.
10419         * lib/truncl.c: Include <config.h>.
10420         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10421         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10422         time.
10423         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10424         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10425         * modules/truncl (Depends-on): Add trunc. Update conditions.
10426
10427 2011-10-09  Bruno Haible  <bruno@clisp.org>
10428
10429         ceill: Simplify for platforms where 'long double' == 'double'.
10430         * lib/ceill.c: Include <config.h>.
10431         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10432         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10433         time.
10434         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10435         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10436         * modules/ceill (Depends-on): Add ceil. Update conditions.
10437
10438 2011-10-09  Bruno Haible  <bruno@clisp.org>
10439
10440         floorl: Simplify for platforms where 'long double' == 'double'.
10441         * lib/floorl.c: Include <config.h>.
10442         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10443         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10444         time.
10445         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10446         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10447         * modules/floorl (Depends-on): Add floor. Update conditions.
10448
10449 2011-10-09  Bruno Haible  <bruno@clisp.org>
10450
10451         rint: Fix ordering constraints.
10452         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10453         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10454         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10455
10456 2011-10-09  Bruno Haible  <bruno@clisp.org>
10457
10458         copysignl: Simplify for platforms where 'long double' == 'double'.
10459         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10460         alternative.
10461         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10462         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10463         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10464
10465 2011-10-09  Bruno Haible  <bruno@clisp.org>
10466
10467         Tests for module 'rintl'.
10468         * modules/rintl-tests: New file.
10469         * tests/test-rintl.c: New file.
10470
10471         New module 'rintl'.
10472         * lib/math.in.h (rintl): New declaration.
10473         * lib/rintl.c: New file.
10474         * m4/rintl.m4: New file.
10475         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10476         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10477         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10478         * modules/rintl: New file.
10479         * tests/test-math-c++.cc: Check the declaration of rintl.
10480         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10481         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10482         * doc/posix-functions/rintl.texi: Mention the new module.
10483
10484 2011-10-09  Bruno Haible  <bruno@clisp.org>
10485
10486         Tests for module 'rintf'.
10487         * modules/rintf-tests: New file.
10488         * tests/test-rintf.c: New file.
10489
10490         New module 'rintf'.
10491         * lib/math.in.h (rintf): New declaration.
10492         * lib/rintf.c: New file.
10493         * m4/rintf.m4: New file.
10494         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10495         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10496         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10497         * modules/rintf: New file.
10498         * tests/test-math-c++.cc: Check the declaration of rintf.
10499         * doc/posix-functions/rintf.texi: Mention the new module.
10500
10501 2011-10-09  Bruno Haible  <bruno@clisp.org>
10502
10503         rint: Support for MSVC.
10504         * lib/math.in.h (rint): New declaration.
10505         * lib/rint.c: New file.
10506         * m4/rint.m4: New file.
10507         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10509         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10510         * modules/rint (Description): Fix.
10511         (Files): Add lib/rint.c, m4/rint.m4.
10512         (Depends-on): Add math.
10513         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10514         gl_MATH_MODULE_INDICATOR.
10515         * tests/test-math-c++.cc: Check the declaration of rint.
10516         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10517         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10518         * doc/posix-functions/rint.texi: Mention the replacement provided by
10519         the module.
10520
10521         rint tests: More tests.
10522         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10523         minus-zero.h, infinity.h, nan.h.
10524         (main): Skip the test if the current rounding mode is not standard. Add
10525         tests for negative numbers, minus zero, infinity, NaN.
10526         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10527         tests/nan.h.
10528         (Depends-on): Add isnand-nolibm.
10529
10530 2011-10-09  Bruno Haible  <bruno@clisp.org>
10531
10532         Tests for module 'copysignl'.
10533         * modules/copysignl-tests: New file.
10534         * tests/test-copysignl.c: New file.
10535
10536         New module 'copysignl'.
10537         * lib/math.in.h (copysignl): New declaration.
10538         * lib/copysignl.c: New file.
10539         * m4/copysignl.m4: New file.
10540         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10542         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10543         HAVE_COPYSIGNL.
10544         * modules/copysignl: New file.
10545         * tests/test-math-c++.cc: Check the declaration of copysignl.
10546         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10547         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10548         * doc/posix-functions/copysignl.texi: Mention the new module.
10549
10550 2011-10-09  Bruno Haible  <bruno@clisp.org>
10551
10552         Tests for module 'copysignf'.
10553         * modules/copysignf-tests: New file.
10554         * tests/test-copysignf.c: New file.
10555
10556         New module 'copysignf'.
10557         * lib/math.in.h (copysignf): New declaration.
10558         * lib/copysignf.c: New file.
10559         * m4/copysignf.m4: New file.
10560         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10562         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10563         HAVE_COPYSIGNF.
10564         * modules/copysignf: New file.
10565         * tests/test-math-c++.cc: Check the declaration of copysignf.
10566         * doc/posix-functions/copysignf.texi: Mention the new module.
10567
10568 2011-10-09  Bruno Haible  <bruno@clisp.org>
10569
10570         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10571         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10572         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10573         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10574         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10575         gl_SIGNAL_H_DEFAULTS.
10576
10577 2011-10-09  Bruno Haible  <bruno@clisp.org>
10578
10579         poll: Make macro safer.
10580         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10581         ac_cv_header_poll_h is not set.
10582
10583 2011-10-09  Bruno Haible  <bruno@clisp.org>
10584
10585         copysign: Provide replacement.
10586         * lib/math.in.h (copysign): New declaration.
10587         * lib/copysign.c: New file.
10588         * m4/copysign.m4: New file.
10589         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10591         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10592         HAVE_COPYSIGN.
10593         * modules/copysign (Description): Clarify.
10594         (Files): Add lib/copysign.c, m4/copysign.m4.
10595         (Depends-on): Add math, signbit.
10596         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10597         gl_MATH_MODULE_INDICATOR.
10598         * tests/test-math-c++.cc: Check the declaration of copysign.
10599         * doc/posix-functions/copysign.texi: Mention the effects of the module
10600         on Minix and MSVC.
10601
10602 2011-10-09  Bruno Haible  <bruno@clisp.org>
10603
10604         isinf: Ensure macro on AIX 5.1.
10605         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10606         macro.
10607         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10608
10609 2011-10-09  Bruno Haible  <bruno@clisp.org>
10610
10611         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10612         * modules/snprintf-posix-tests (configure.ac): Require
10613         gl_LONG_DOUBLE_VS_DOUBLE.
10614         * modules/sprintf-posix-tests (configure.ac): Likewise.
10615         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10616         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10617         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10618         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10619         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10620         tests on platforms where 'long double' is the same as 'double'.
10621         * tests/test-sprintf-posix.h (test_function): Likewise.
10622         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10623         * tests/test-vasprintf-posix.c (test_function): Likewise.
10624
10625         *printf: Fix for platforms where 'long double' == 'double'.
10626         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10627         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10628         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10629         * modules/fprintf-posix (Files): Likewise.
10630         * modules/obstack-printf-posix (Files): Likewise.
10631         * modules/snprintf-posix (Files): Likewise.
10632         * modules/sprintf-posix (Files): Likewise.
10633         * modules/vasnprintf (Files): Likewise.
10634         * modules/vasnprintf-posix (Files): Likewise.
10635         * modules/vasprintf-posix (Files): Likewise.
10636         * modules/vdprintf-posix (Files): Likewise.
10637         * modules/vfprintf-posix (Files): Likewise.
10638         * modules/vsnprintf-posix (Files): Likewise.
10639         * modules/vsprintf-posix (Files): Likewise.
10640         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10641         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10642         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10643         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10644         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10645         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10646         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10647
10648         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10649         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10650         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10651         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10652         'long double'.
10653         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10654
10655         isinf: Fix for platforms where 'long double' == 'double'.
10656         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10657         Don't blindly assume 80-bit 'long double'.
10658
10659         isfinite: Fix for platforms where 'long double' == 'double'.
10660         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10661         Don't blindly assume 80-bit 'long double'.
10662
10663         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10664         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10665         * modules/isfinite-tests (configure.ac): Require
10666         gl_LONG_DOUBLE_VS_DOUBLE.
10667         * modules/isinf-tests (configure.ac): Likewise.
10668         * modules/isnan-tests (configure.ac): Likewise.
10669         * modules/isnanl-tests (configure.ac): Likewise.
10670         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10671         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10672         tests on platforms where 'long double' is the same as 'double'.
10673         * tests/test-isinf.c (test_isinfl): Likewise.
10674         * tests/test-isnan.c (test_long_double): Likewise.
10675         * tests/test-isnanl.h (main): Likewise.
10676
10677 2011-10-08  Bruno Haible  <bruno@clisp.org>
10678
10679         Tests for module 'tanhf'.
10680         * modules/tanhf-tests: New file.
10681         * tests/test-tanhf.c: New file.
10682
10683         New module 'tanhf'.
10684         * lib/math.in.h (tanhf): New declaration.
10685         * lib/tanhf.c: New file.
10686         * m4/tanhf.m4: New file.
10687         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10689         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10690         * modules/tanhf: New file.
10691         * tests/test-math-c++.cc: Check the declaration of tanhf.
10692         * doc/posix-functions/tanhf.texi: Mention the new module.
10693
10694         tanh: Use a .m4 file.
10695         * m4/tanh.m4: New file.
10696         * modules/tanh (Files): Add it.
10697         (configure.ac): Just invoke gl_FUNC_TANH.
10698
10699 2011-10-08  Bruno Haible  <bruno@clisp.org>
10700
10701         Tests for module 'coshf'.
10702         * modules/coshf-tests: New file.
10703         * tests/test-coshf.c: New file.
10704
10705         New module 'coshf'.
10706         * lib/math.in.h (coshf): New declaration.
10707         * lib/coshf.c: New file.
10708         * m4/coshf.m4: New file.
10709         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10711         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10712         * modules/coshf: New file.
10713         * tests/test-math-c++.cc: Check the declaration of coshf.
10714         * doc/posix-functions/coshf.texi: Mention the new module.
10715
10716         cosh: Use a .m4 file.
10717         * m4/cosh.m4: New file.
10718         * modules/cosh (Files): Add it.
10719         (configure.ac): Just invoke gl_FUNC_COSH.
10720
10721 2011-10-08  Bruno Haible  <bruno@clisp.org>
10722
10723         Tests for module 'sinhf'.
10724         * modules/sinhf-tests: New file.
10725         * tests/test-sinhf.c: New file.
10726
10727         New module 'sinhf'.
10728         * lib/math.in.h (sinhf): New declaration.
10729         * lib/sinhf.c: New file.
10730         * m4/sinhf.m4: New file.
10731         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10733         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10734         * modules/sinhf: New file.
10735         * tests/test-math-c++.cc: Check the declaration of sinhf.
10736         * doc/posix-functions/sinhf.texi: Mention the new module.
10737
10738         sinh: Use a .m4 file.
10739         * m4/sinh.m4: New file.
10740         * modules/sinh (Files): Add it.
10741         (configure.ac): Just invoke gl_FUNC_SINH.
10742
10743 2011-10-08  Bruno Haible  <bruno@clisp.org>
10744
10745         Tests for module 'atan2f'.
10746         * modules/atan2f-tests: New file.
10747         * tests/test-atan2f.c: New file.
10748
10749         New module 'atan2f'.
10750         * lib/math.in.h (atan2f): New declaration.
10751         * lib/atan2f.c: New file.
10752         * m4/atan2f.m4: New file.
10753         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10754         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10755         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10756         * modules/atan2f: New file.
10757         * tests/test-math-c++.cc: Check the declaration of atan2f.
10758         * doc/posix-functions/atan2f.texi: Mention the new module.
10759
10760         atan2: Use a .m4 file.
10761         * m4/atan2.m4: New file.
10762         * modules/atan2 (Files): Add it.
10763         (configure.ac): Just invoke gl_FUNC_ATAN2.
10764
10765 2011-10-08  Bruno Haible  <bruno@clisp.org>
10766
10767         Tests for module 'atanf'.
10768         * modules/atanf-tests: New file.
10769         * tests/test-atanf.c: New file.
10770
10771         New module 'atanf'.
10772         * lib/math.in.h (atanf): New declaration.
10773         * lib/atanf.c: New file.
10774         * m4/atanf.m4: New file.
10775         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10777         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10778         * modules/atanf: New file.
10779         * tests/test-math-c++.cc: Check the declaration of atanf.
10780         * doc/posix-functions/atanf.texi: Mention the new module.
10781
10782         atan: Use a .m4 file.
10783         * m4/atan.m4: New file.
10784         * modules/atan (Files): Add it.
10785         (configure.ac): Just invoke gl_FUNC_ATAN.
10786
10787 2011-10-08  Bruno Haible  <bruno@clisp.org>
10788
10789         Tests for module 'acosf'.
10790         * modules/acosf-tests: New file.
10791         * tests/test-acosf.c: New file.
10792
10793         New module 'acosf'.
10794         * lib/math.in.h (acosf): New declaration.
10795         * lib/acosf.c: New file.
10796         * m4/acosf.m4: New file.
10797         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10798         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10799         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10800         * modules/acosf: New file.
10801         * tests/test-math-c++.cc: Check the declaration of acosf.
10802         * doc/posix-functions/acosf.texi: Mention the new module.
10803
10804         acos: Use a .m4 file.
10805         * m4/acos.m4: New file.
10806         * modules/acos (Files): Add it.
10807         (configure.ac): Just invoke gl_FUNC_ACOS.
10808
10809 2011-10-08  Bruno Haible  <bruno@clisp.org>
10810
10811         Tests for module 'asinf'.
10812         * modules/asinf-tests: New file.
10813         * tests/test-asinf.c: New file.
10814
10815         New module 'asinf'.
10816         * lib/math.in.h (asinf): New declaration.
10817         * lib/asinf.c: New file.
10818         * m4/asinf.m4: New file.
10819         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10820         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10821         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10822         * modules/asinf: New file.
10823         * tests/test-math-c++.cc: Check the declaration of asinf.
10824         * doc/posix-functions/asinf.texi: Mention the new module.
10825
10826         asin: Use a .m4 file.
10827         * m4/asin.m4: New file.
10828         * modules/asin (Files): Add it.
10829         (configure.ac): Just invoke gl_FUNC_ASIN.
10830
10831 2011-10-08  Bruno Haible  <bruno@clisp.org>
10832
10833         Tests for module 'tanf'.
10834         * modules/tanf-tests: New file.
10835         * tests/test-tanf.c: New file.
10836
10837         New module 'tanf'.
10838         * lib/math.in.h (tanf): New declaration.
10839         * lib/tanf.c: New file.
10840         * m4/tanf.m4: New file.
10841         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10843         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10844         * modules/tanf: New file.
10845         * tests/test-math-c++.cc: Check the declaration of tanf.
10846         * doc/posix-functions/tanf.texi: Mention the new module.
10847
10848         tan: Use a .m4 file.
10849         * m4/tan.m4: New file.
10850         * modules/tan (Files): Add it.
10851         (configure.ac): Just invoke gl_FUNC_TAN.
10852
10853 2011-10-08  Bruno Haible  <bruno@clisp.org>
10854
10855         Tests for module 'cosf'.
10856         * modules/cosf-tests: New file.
10857         * tests/test-cosf.c: New file.
10858
10859         New module 'cosf'.
10860         * lib/math.in.h (cosf): New declaration.
10861         * lib/cosf.c: New file.
10862         * m4/cosf.m4: New file.
10863         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10865         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10866         * modules/cosf: New file.
10867         * tests/test-math-c++.cc: Check the declaration of cosf.
10868         * doc/posix-functions/cosf.texi: Mention the new module.
10869
10870         cos: Use a .m4 file.
10871         * m4/cos.m4: New file.
10872         * modules/cos (Files): Add it.
10873         (configure.ac): Just invoke gl_FUNC_COS.
10874
10875 2011-10-08  Bruno Haible  <bruno@clisp.org>
10876
10877         Tests for module 'sinf'.
10878         * modules/sinf-tests: New file.
10879         * tests/test-sinf.c: New file.
10880
10881         New module 'sinf'.
10882         * lib/math.in.h (sinf): New declaration.
10883         * lib/sinf.c: New file.
10884         * m4/sinf.m4: New file.
10885         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10887         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10888         * modules/sinf: New file.
10889         * tests/test-math-c++.cc: Check the declaration of sinf.
10890         * doc/posix-functions/sinf.texi: Mention the new module.
10891
10892         sin: Use a .m4 file.
10893         * m4/sin.m4: New file.
10894         * modules/sin (Files): Add it.
10895         (configure.ac): Just invoke gl_FUNC_SIN.
10896
10897 2011-10-08  Bruno Haible  <bruno@clisp.org>
10898
10899         Tests for module 'powf'.
10900         * modules/powf-tests: New file.
10901         * tests/test-powf.c: New file.
10902
10903         New module 'powf'.
10904         * lib/math.in.h (powf): New declaration.
10905         * lib/powf.c: New file.
10906         * m4/powf.m4: New file.
10907         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10909         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10910         * modules/powf: New file.
10911         * tests/test-math-c++.cc: Check the declaration of powf.
10912         * doc/posix-functions/powf.texi: Mention the new module.
10913
10914         pow: Use a .m4 file.
10915         * m4/pow.m4: New file.
10916         * modules/pow (Files): Add it.
10917         (configure.ac): Just invoke gl_FUNC_POW.
10918
10919 2011-10-08  Bruno Haible  <bruno@clisp.org>
10920
10921         Tests for module 'log10f'.
10922         * modules/log10f-tests: New file.
10923         * tests/test-log10f.c: New file.
10924
10925         New module 'log10f'.
10926         * lib/math.in.h (log10f): New declaration.
10927         * lib/log10f.c: New file.
10928         * m4/log10f.m4: New file.
10929         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10931         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10932         * modules/log10f: New file.
10933         * tests/test-math-c++.cc: Check the declaration of log10f.
10934         * doc/posix-functions/log10f.texi: Mention the new module.
10935
10936         log10: Use a .m4 file.
10937         * m4/log10.m4: New file.
10938         * modules/log10 (Files): Add it.
10939         (configure.ac): Just invoke gl_FUNC_LOG10.
10940
10941 2011-10-08  Bruno Haible  <bruno@clisp.org>
10942
10943         Tests for module 'logf'.
10944         * modules/logf-tests: New file.
10945         * tests/test-logf.c: New file.
10946
10947         New module 'logf'.
10948         * lib/math.in.h (logf): New declaration.
10949         * lib/logf.c: New file.
10950         * m4/logf.m4: New file.
10951         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10953         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10954         * modules/logf: New file.
10955         * tests/test-math-c++.cc: Check the declaration of logf.
10956         * doc/posix-functions/logf.texi: Mention the new module.
10957
10958         log: Use a .m4 file.
10959         * m4/log.m4: New file.
10960         * modules/log (Files): Add it.
10961         (configure.ac): Just invoke gl_FUNC_LOG.
10962
10963 2011-10-08  Bruno Haible  <bruno@clisp.org>
10964
10965         Tests for module 'expf'.
10966         * modules/expf-tests: New file.
10967         * tests/test-expf.c: New file.
10968
10969         New module 'expf'.
10970         * lib/math.in.h (expf): New declaration.
10971         * lib/expf.c: New file.
10972         * m4/expf.m4: New file.
10973         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10975         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10976         * modules/expf: New file.
10977         * tests/test-math-c++.cc: Check the declaration of expf.
10978         * doc/posix-functions/expf.texi: Mention the new module.
10979
10980         exp: Use a .m4 file.
10981         * m4/exp.m4: New file.
10982         * modules/exp (Files): Add it.
10983         (configure.ac): Just invoke gl_FUNC_EXP.
10984
10985 2011-10-08  Bruno Haible  <bruno@clisp.org>
10986
10987         Tests for module 'sqrtf'.
10988         * modules/sqrtf-tests: New file.
10989         * tests/test-sqrtf.c: New file.
10990
10991         New module 'sqrtf'.
10992         * lib/math.in.h (sqrtf): New declaration.
10993         * lib/sqrtf.c: New file.
10994         * m4/sqrtf.m4: New file.
10995         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10996         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10997         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10998         * modules/sqrtf: New file.
10999         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11000         * doc/posix-functions/sqrtf.texi: Mention the new module.
11001
11002 2011-10-08  Bruno Haible  <bruno@clisp.org>
11003
11004         Tests: Avoid link failures w.r.t. libintl.
11005         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11006         $(LIBINTL).
11007         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11008         $(LIBINTL).
11009         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11010         against $(LIBINTL).
11011         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11012         $(LIBINTL).
11013         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11014         $(LIBINTL).
11015         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11016
11017 2011-10-08  Bruno Haible  <bruno@clisp.org>
11018
11019         pow tests: Defeat compiler optimizations.
11020         * tests/test-pow.c (main): Assign arguments to x and y before use.
11021
11022 2011-10-08  Bruno Haible  <bruno@clisp.org>
11023
11024         gnulib-tool: Improve last commit.
11025         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11026         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11027         ignore dependencies that are not among the modules list.
11028
11029 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11030
11031         gnulib-tool: don't follow dependencies to avoided modules
11032         This fixes a bug that is related to the previous one.
11033         * gnulib-tool (func_modules_transitive_closure)
11034         (func_emit_autoconf_snippets):
11035         Check whether a dependency is acceptable before using it.
11036         (--extract-dependencies): Report an error if --avoid is also used,
11037         since this combination of options is not yet supported.
11038
11039         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11040         Problem reported by Peter Dyballa in
11041         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11042         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11043         when echoing "$condition".
11044
11045 2011-10-07  Bruno Haible  <bruno@clisp.org>
11046
11047         Fix documentation about math functions on MacOS X.
11048         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11049         MacOS X 10.5.
11050         * doc/posix-functions/fdim.texi: Likewise.
11051         * doc/posix-functions/feclearexcept.texi: Likewise.
11052         * doc/posix-functions/fegetenv.texi: Likewise.
11053         * doc/posix-functions/fegetround.texi: Likewise.
11054         * doc/posix-functions/feholdexcept.texi: Likewise.
11055         * doc/posix-functions/feraiseexcept.texi: Likewise.
11056         * doc/posix-functions/fesetenv.texi: Likewise.
11057         * doc/posix-functions/fesetround.texi: Likewise.
11058         * doc/posix-functions/fetestexcept.texi: Likewise.
11059         * doc/posix-functions/feupdateenv.texi: Likewise.
11060         * doc/posix-functions/fmax.texi: Likewise.
11061         * doc/posix-functions/fmin.texi: Likewise.
11062         * doc/posix-functions/log2.texi: Likewise.
11063         * doc/posix-functions/modff.texi: Likewise.
11064         * doc/posix-functions/nan.texi: Likewise.
11065         * doc/posix-functions/nanf.texi: Likewise.
11066         * doc/posix-functions/nextafterf.texi: Likewise.
11067         * doc/posix-functions/remquo.texi: Likewise.
11068
11069 2011-10-07  Bruno Haible  <bruno@clisp.org>
11070
11071         modff: Drop assumption about library that defines modff.
11072         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11073         AC_CHECK_FUNCS.
11074         * modules/modff (Files): Add m4/mathfunc.m4.
11075
11076 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11077
11078         raise tests: Avoid a GCC warning.
11079         * tests/test-raise.c (handler): Use _Noreturn.
11080
11081 2011-10-07  Bruno Haible  <bruno@clisp.org>
11082
11083         Tests for module 'ldexpf'.
11084         * modules/ldexpf-tests: New file.
11085         * tests/test-ldexpf.c: New file.
11086
11087         New module 'ldexpf'.
11088         * lib/math.in.h (ldexpf): New declaration.
11089         * lib/ldexpf.c: New file.
11090         * m4/ldexpf.m4: New file.
11091         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11093         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11094         * modules/ldexpf: New file.
11095         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11096         * doc/posix-functions/ldexpf.texi: Mention the new module.
11097
11098 2011-10-06  Bruno Haible  <bruno@clisp.org>
11099
11100         frexpf: Work around problems on IRIX and mingw.
11101         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11103         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11104         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11105         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11106         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11107         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11108
11109 2011-10-06  Bruno Haible  <bruno@clisp.org>
11110
11111         fabsf: Drop assumption about library that defines fabsf.
11112         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11113         AC_CHECK_FUNCS.
11114         * modules/fabsf (Files): Add m4/mathfunc.m4.
11115
11116 2011-10-06  Bruno Haible  <bruno@clisp.org>
11117
11118         frexpf: Drop assumption about library that defines frexpf.
11119         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11120         'int *', 'float *', 'long double *', 'float', 'long double'.
11121         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11122         AC_CHECK_FUNCS.
11123         * modules/frexpf (Files): Add m4/mathfunc.m4.
11124
11125         Tests for module 'frexpf'.
11126         * modules/frexpf-tests: New file.
11127         * tests/test-frexpf.c: New file.
11128
11129         New module 'frexpf'.
11130         * lib/math.in.h (frexpf): New declaration.
11131         * lib/frexpf.c: New file.
11132         * m4/frexpf.m4: New file.
11133         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11135         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11136         * modules/frexpf: New file.
11137         * tests/test-math-c++.cc: Check the declaration of frexpf.
11138         * doc/posix-functions/frexpf.texi: Mention the new module.
11139
11140 2011-10-06  Bruno Haible  <bruno@clisp.org>
11141
11142         math: Sort function declarations of math.in.h.
11143         * lib/math.in.h (frexp, logb): Move declarations.
11144
11145 2011-10-05  Bruno Haible  <bruno@clisp.org>
11146
11147         Tests for module 'modff'.
11148         * modules/modff-tests: New file.
11149         * tests/test-modff.c: New file.
11150
11151         New module 'modff'.
11152         * lib/math.in.h (modff): New declaration.
11153         * lib/modff.c: New file.
11154         * m4/modff.m4: New file.
11155         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11157         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11158         * modules/modff: New file.
11159         * tests/test-math-c++.cc: Check the declaration of modff.
11160         * doc/posix-functions/modff.texi: Mention the new module.
11161
11162         modf tests: Make test sharper.
11163         * tests/test-modf.c (main): Strengthen upper bound.
11164
11165         modf: Use a .m4 file.
11166         * m4/modf.m4: New file.
11167         * modules/modf (Files): Add it.
11168         (configure.ac): Just invoke gl_FUNC_MODF.
11169
11170 2011-10-05  Bruno Haible  <bruno@clisp.org>
11171
11172         Tests for module 'fmodf'.
11173         * modules/fmodf-tests: New file.
11174         * tests/test-fmodf.c: New file.
11175
11176         New module 'fmodf'.
11177         * lib/math.in.h (fmodf): New declaration.
11178         * lib/fmodf.c: New file.
11179         * m4/fmodf.m4: New file.
11180         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11182         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11183         * modules/fmodf: New file.
11184         * tests/test-math-c++.cc: Check the declaration of fmodf.
11185         * doc/posix-functions/fmodf.texi: Mention the new module.
11186
11187         fmod: Use a .m4 file.
11188         * m4/fmod.m4: New file.
11189         * modules/fmod (Files): Add it.
11190         (configure.ac): Just invoke gl_FUNC_FMOD.
11191
11192 2011-10-05  Bruno Haible  <bruno@clisp.org>
11193
11194         Tests for module 'fabsf'.
11195         * modules/fabsf-tests: New file.
11196         * tests/test-fabsf.c: New file.
11197
11198         New module 'fabsf'.
11199         * lib/math.in.h (fabsf): New declaration.
11200         * lib/fabsf.c: New file.
11201         * m4/fabsf.m4: New file.
11202         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11204         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11205         * modules/fabsf: New file.
11206         * tests/test-math-c++.cc: Check the declaration of fabsf.
11207         * doc/posix-functions/fabsf.texi: Mention the new module.
11208
11209         fabs: Use a .m4 file.
11210         * m4/fabs.m4: New file.
11211         * modules/fabs (Files): Add it.
11212         (configure.ac): Just invoke gl_FUNC_FABS.
11213
11214 2011-10-05  Jim Meyering  <meyering@redhat.com>
11215
11216         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11217         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11218         ls -lL regression introduced in coreutils-8.12, it does so at the
11219         cost of an additional stat call in the common case.  Besides, now
11220         that the kernel change that prompted commit 95f7c57f has been reverted
11221         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11222         we have no use for commit 95f7c57f, "file-has-acl: use
11223         acl_extended_file_nofollow if available".
11224
11225 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11226
11227         file-has-acl: revert unintended change in behavior of ls -L
11228         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11229         derived from...
11230         (file_has_acl): ...code here.  Call it.
11231         This problem was introduced with 2011-07-22 commit 95f7c57f,
11232         "file-has-acl: use acl_extended_file_nofollow if available".
11233         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11234
11235 2011-10-03  Bruno Haible  <bruno@clisp.org>
11236
11237         poll: Avoid link errors on MSVC.
11238         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11239         * modules/poll (Depends-on): Add sockets.
11240         (Link): New section.
11241         * NEWS: Mention the change.
11242         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11243         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11244         $(LIB_POLL) instead of $(LIBSOCKET).
11245
11246 2011-10-03  Bruno Haible  <bruno@clisp.org>
11247
11248         sys_select tests: Fix link error on MSVC 9.
11249         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11250         with $(LIB_SELECT) instead of $(LIBSOCKET).
11251
11252 2011-10-03  Bruno Haible  <bruno@clisp.org>
11253
11254         sys_select: Fix compilation error on mingw.
11255         * lib/sys_select.in.h: On native Windows, include <io.h>.
11256
11257 2011-10-03  Bruno Haible  <bruno@clisp.org>
11258
11259         wmemset: Support for MSVC.
11260         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11261         whether wmemset() exists.
11262
11263 2011-10-03  Bruno Haible  <bruno@clisp.org>
11264
11265         wmemmove: Support for MSVC.
11266         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11267         whether wmemmove() exists.
11268
11269 2011-10-03  Bruno Haible  <bruno@clisp.org>
11270
11271         wmemcpy: Support for MSVC.
11272         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11273         whether wmemcpy() exists.
11274
11275 2011-10-03  Bruno Haible  <bruno@clisp.org>
11276
11277         wmemcmp: Support for MSVC.
11278         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11279         whether wmemcmp() exists.
11280
11281 2011-10-03  Bruno Haible  <bruno@clisp.org>
11282
11283         wmemchr: Support for MSVC.
11284         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11285         whether wmemchr() exists.
11286
11287 2011-10-03  Bruno Haible  <bruno@clisp.org>
11288
11289         glthread/*, strsignal: Support for MSVC.
11290         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11291         including <winsock.h> on MSVC 9.
11292         * lib/glthread/lock.h: Likewise.
11293         * lib/glthread/thread.h: Likewise.
11294         * lib/glthread/tls.h: Likewise.
11295         * lib/glthread/yield.h: Likewise.
11296         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11297         if HAVE_UNISTD_H is false.
11298         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11299
11300 2011-10-03  Bruno Haible  <bruno@clisp.org>
11301
11302         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11303         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11304         Set to 100000.
11305
11306 2011-10-03  Bruno Haible  <bruno@clisp.org>
11307
11308         acl: Fix specification.
11309         * lib/file-has-acl.c (file_has_acl): Fix specification.
11310
11311 2011-10-03  Bruno Haible  <bruno@clisp.org>
11312
11313         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11314         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11315         (compute_curr_prefix, shared_library_fullname,
11316         find_shared_library_fullname, get_shared_library_fullname, relocate):
11317         Use it together with PIC && INSTALLDIR.
11318         Reported by <jojelino@gmail.com>
11319         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11320
11321 2011-10-01  Jim Meyering  <meyering@redhat.com>
11322
11323         maint.mk: adjust a release-related rule not to require use of gzip
11324         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11325         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11326         projects that build only .tar.xz files.  Also fix an erroneous test.
11327
11328         test-linkat: don't leave behind a temporary file
11329         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11330         Otherwise, coreutils' "make distcheck" would fail with this:
11331           Only in /c/cu/tests/torture/coreutils/test/\
11332             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11333           make[2]: *** [my-distcheck] Error 1
11334
11335         float, math: add omitted file
11336         * lib/itold.c: Add file, required for yesterday's float change.
11337
11338 2011-10-01  Bruno Haible  <bruno@clisp.org>
11339
11340         isinf: Fix for OpenBSD/x86.
11341         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11342         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11343         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11344
11345 2011-10-01  Bruno Haible  <bruno@clisp.org>
11346
11347         isfinite: Fix syntax error in configure test.
11348         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11349
11350         isfinite: Fix typo.
11351         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11352         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11353
11354 2011-10-01  Bruno Haible  <bruno@clisp.org>
11355
11356         nonblocking tests: Fix test failure on Linux/IA-64.
11357         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11358         Set to 270000.
11359
11360 2011-10-01  Bruno Haible  <bruno@clisp.org>
11361
11362         mkfifoat tests: Fix a test failure on mingw.
11363         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11364         with error ENOSYS.
11365
11366 2011-09-30  Bruno Haible  <bruno@clisp.org>
11367
11368         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11369         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11370         'long double'. Set REPLACE_ITOLD.
11371         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11372         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11373         * lib/itold.c: New file.
11374         * modules/float (Files): Add lib/itold.c.
11375         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11376         (Makefile.am): Substitute REPLACE_ITOLD.
11377         * modules/math (Depends-on): Add float.
11378         (Makefile.am): Substitute REPLACE_ITOLD.
11379         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11380         * doc/posix-headers/math.texi: Likewise.
11381         * doc/posix-functions/logl.texi: Likewise.
11382
11383 2011-09-30  Bruno Haible  <bruno@clisp.org>
11384
11385         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11386         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11387         Set to 140000.
11388
11389 2011-09-30  Bruno Haible  <bruno@clisp.org>
11390
11391         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11392         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11393         invocation, say "right after AC_PROG_CC_STDC", not "right after
11394         AC_PROG_CC".
11395         Reported by Gary V. Vaughan <gary@gnu.org>.
11396
11397 2011-09-30  Bruno Haible  <bruno@clisp.org>
11398
11399         Centralize C99 requirement.
11400         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11401         * modules/stdarg (configure.ac-early): Invoke it instead of
11402         AC_PROG_CC_STDC.
11403         Reported by Gary V. Vaughan and Paul Eggert.
11404
11405 2011-09-29  Bruno Haible  <bruno@clisp.org>
11406
11407         float: Fix LDBL_MAX value on Linux/PowerPC.
11408         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11409         on Linux/PowerPC.
11410         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11411         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11412         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11413         platform.
11414         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11415
11416 2011-09-29  Bruno Haible  <bruno@clisp.org>
11417
11418         doc: Improve doc about gl_EARLY.
11419         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11420         AC_PROG_CC_STDC invocation.
11421         Reported by Gary V. Vaughan <gary@gnu.org>.
11422
11423 2011-09-28  Bruno Haible  <bruno@clisp.org>
11424
11425         fgetc, fputc, fread, fwrite tests: Fix link error.
11426         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11427         on non-MSVC platforms.
11428         * tests/test-fputc.c (main): Likewise.
11429         * tests/test-fread.c (main): Likewise.
11430         * tests/test-fwrite.c (main): Likewise.
11431         Reported by Jim Meyering.
11432
11433 2011-09-27  Bruno Haible  <bruno@clisp.org>
11434
11435         fputc, fwrite tests: Avoid test failure on MSVC.
11436         * tests/test-fgetc.c: Include msvc-inval.h.
11437         (main): Invoke gl_msvc_inval_ensure_handler.
11438         * tests/test-fputc.c: Include msvc-inval.h.
11439         (main): Invoke gl_msvc_inval_ensure_handler.
11440         * tests/test-fread.c: Include msvc-inval.h.
11441         (main): Invoke gl_msvc_inval_ensure_handler.
11442         * tests/test-fwrite.c: Include msvc-inval.h.
11443         (main): Invoke gl_msvc_inval_ensure_handler.
11444         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11445         * modules/fputc-tests (Depends-on): Likewise.
11446         * modules/fread-tests (Depends-on): Likewise.
11447         * modules/fwrite-tests (Depends-on): Likewise.
11448
11449 2011-09-27  Bruno Haible  <bruno@clisp.org>
11450
11451         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11452         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11453         (raise): Remove older, duplicated declaration.
11454         (_gl_raise_SIGPIPE): New declaration.
11455         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11456         (rpl_raise): Remove function.
11457         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11458         a gnulib-defined SIGPIPE here.
11459         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11460         'sigprocmask' has detected missing signal-blocking and the module
11461         'sigpipe' is enabled.
11462         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11463
11464 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11465
11466         base64-tests: avoid memory leak
11467         * tests/test-base64.c (main): Plug memory leak.
11468
11469         base32: new module
11470         * modules/base32: New module.
11471         * lib/base32.c: New file.
11472         * lib/base32.h: Likewise.
11473         * m4/base32.m4: Likewise.
11474         * modules/base32-tests: New test.
11475         * tests/test-base32.c: Likewise.
11476         * MODULES.html.sh (Misc): Mention it.
11477
11478 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11479
11480         gnulib: use more-standard license notice wording
11481         * gnulib-tool (func_emit_copyright_notice): When emitting a
11482         license notice into a file, use the standard wording as suggested
11483         by the current information for GNU maintainers, except say "file"
11484         rather than "program".  The new wording gives a license version
11485         number, which addresses an issue raised by Glenn Morris in
11486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11487         * m4/onceonly.m4: Use that same wording here, too.
11488
11489         dup2: minor simplification
11490         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11491         as lib/dup2.c no longer uses 'inline'.
11492
11493 2011-09-25  Bruno Haible  <bruno@clisp.org>
11494
11495         strings: Fix compilation error on MSVC.
11496         * lib/strings.in.h: Include <stddef.h> for size_t.
11497
11498 2011-09-25  Bruno Haible  <bruno@clisp.org>
11499
11500         fflush et al.: Document limitation on MSVC.
11501         * doc/posix-functions/fflush.texi: Document possible crash in handling
11502         mode other than DEFAULT_HANDLING.
11503         * doc/posix-functions/fgetc.texi: Likewise.
11504         * doc/posix-functions/fputc.texi: Likewise.
11505         * doc/posix-functions/fread.texi: Likewise.
11506         * doc/posix-functions/fwrite.texi: Likewise.
11507
11508 2011-09-25  Bruno Haible  <bruno@clisp.org>
11509
11510         msvc-inval: Allow three invalid parameter handling modes.
11511         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11512         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11513         macros.
11514         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11515         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11516         SANE_LIBRARY_HANDLING as a no-op.
11517         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11518         <stdlib.h>.
11519         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11520
11521 2011-09-25  Bruno Haible  <bruno@clisp.org>
11522
11523         msvc-inval: Make handler multithread-safe.
11524         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11525         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11526         declarations.
11527         (gl_msvc_inval_current): New declaration.
11528         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11529         Operate on the structure returned by gl_msvc_inval_current().
11530         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11531         Remove varaiables.
11532         (tls_index, tls_initialized): New variables.
11533         (not_per_thread): New variable.
11534         (gl_msvc_inval_current): New function.
11535         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11536         returned by gl_msvc_inval_current().
11537
11538 2011-09-25  Bruno Haible  <bruno@clisp.org>
11539
11540         msvc-inval: Install handler globally.
11541         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11542         !_MSC_VER.
11543         (gl_msvc_invalid_parameter_handler): Remove declaration.
11544         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11545         declarations.
11546         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11547         Install the handler globally, don't uninstall it.
11548         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11549         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11550         currently valid, call RaiseException instead.
11551         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11552         for !_MSC_VER.
11553
11554 2011-09-25  Bruno Haible  <bruno@clisp.org>
11555
11556         strerror_r-posix: Fix for MSVC 9.
11557         * lib/strerror_r.c (local_snprintf): New function.
11558         (snprintf): Define to local_snprintf, not to _snprintf.
11559
11560 2011-09-25  Bruno Haible  <bruno@clisp.org>
11561
11562         ftruncate: Support for MSVC 9.
11563         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11564         (chsize_nothrow): New function.
11565         (chsize): Redefine as a macro.
11566         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11567         * modules/ftruncate (Depends-on): Add msvc-inval.
11568
11569 2011-09-25  Bruno Haible  <bruno@clisp.org>
11570
11571         New module 'fstat'.
11572         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11573         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11574         * lib/fchdir.c (rpl_fstat): Remove function.
11575         * m4/fstat.m4: New file.
11576         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11578         declared.
11579         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11580         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11581         * modules/fstat: New file.
11582         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11583         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11584         is set.
11585         * doc/posix-functions/fstat.texi: Mention the new module and the
11586         problem on MSVC.
11587         * NEWS: Mention the change.
11588         * modules/acl (Depends-on): Add fstat.
11589         * modules/chdir-safer (Depends-on): Likewise.
11590         * modules/chown (Depends-on): Likewise.
11591         * modules/copy-file (Depends-on): Likewise.
11592         * modules/fchdir (Depends-on): Likewise.
11593         * modules/fdopendir (Depends-on): Likewise.
11594         * modules/fopen (Depends-on): Likewise.
11595         * modules/fts (Depends-on): Likewise.
11596         * modules/getcwd (Depends-on): Likewise.
11597         * modules/isapipe (Depends-on): Likewise.
11598         * modules/linkat (Depends-on): Likewise.
11599         * modules/lseek (Depends-on): Likewise.
11600         * modules/mkdir-p (Depends-on): Likewise.
11601         * modules/open (Depends-on): Likewise.
11602         * modules/openat (Depends-on): Likewise.
11603         * modules/read-file (Depends-on): Likewise.
11604         * modules/renameat (Depends-on): Likewise.
11605         * modules/utimens (Depends-on): Likewise.
11606
11607 2011-09-25  Bruno Haible  <bruno@clisp.org>
11608
11609         linkat: Fix compilation on MSVC 9.
11610         * lib/linkat.c: Don't include <stdint.h>.
11611
11612 2011-09-25  Bruno Haible  <bruno@clisp.org>
11613
11614         fclose: Support for MSVC 9.
11615         * lib/fclose.c: Include msvc-inval.h.
11616         (fclose_nothrow): New function.
11617         (rpl_fclose): Use it.
11618         * modules/fclose (Depends-on): Add msvc-inval.
11619         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11620
11621 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11622
11623         dup2: minor simplifications
11624         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11625         that it's a performance win.
11626         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11627         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11628
11629 2011-09-24  Jim Meyering  <meyering@redhat.com>
11630
11631         test-futimens: avoid a warning from gcc -Wshadow
11632         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11633         to avoid a shadowing warning.
11634
11635 2011-09-24  Bruno Haible  <bruno@clisp.org>
11636
11637         fdopen: Support for MSVC 9.
11638         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11639         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11640         * lib/fdopen.c: Include msvc-inval.h.
11641         (fdopen_nothrow): New function.
11642         (rpl_fdopen): Use it.
11643         * modules/fdopen (Depends-on): Add msvc-inval.
11644         * modules/fclose-tests (Depends-on): Add fdopen.
11645         * modules/fflush-tests (Depends-on): Likewise.
11646         * modules/fgetc-tests (Depends-on): Likewise.
11647         * modules/fputc-tests (Depends-on): Likewise.
11648         * modules/fread-tests (Depends-on): Likewise.
11649         * modules/freopen-tests (Depends-on): Likewise.
11650         * modules/fseeko-tests (Depends-on): Likewise.
11651         * modules/ftello-tests (Depends-on): Likewise.
11652         * modules/fwrite-tests  (Depends-on): Likewise.
11653         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11654
11655 2011-09-24  Bruno Haible  <bruno@clisp.org>
11656
11657         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11658         * modules/fgetc-tests (Depends-on): Add unistd.
11659         * modules/fputc-tests (Depends-on): Likewise.
11660         * modules/fread-tests (Depends-on): Likewise.
11661         * modules/fwrite-tests (Depends-on): Likewise.
11662
11663 2011-09-24  Bruno Haible  <bruno@clisp.org>
11664
11665         dup: Simplify autoconf test.
11666         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11667         on gl_MSVC_INVAL's result.
11668
11669 2011-09-24  Bruno Haible  <bruno@clisp.org>
11670
11671         Tests for function fwrite().
11672         * modules/fwrite-tests: New file.
11673         * tests/test-fwrite.c: New file.
11674         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11675
11676         Tests for function fread().
11677         * modules/fread-tests: New file.
11678         * tests/test-fread.c: New file.
11679         * modules/stdio-tests (Depends-on): Add fread-tests.
11680
11681         Activate fputc tests.
11682         * modules/stdio-tests (Depends-on): Add fputc-tests.
11683
11684         Enhance fgetc, fputc tests.
11685         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11686         * tests/test-fputc.c (main): Likewise.
11687
11688 2011-09-24  Bruno Haible  <bruno@clisp.org>
11689
11690         write: Support for MSVC 9.
11691         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11692         is not 1.
11693         * lib/write.c (write_nothrow): New function.
11694         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11695         not 1. Use write_nothrow.
11696         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11697         invalid parameter handler.
11698         (gl_PREREQ_WRITE): New macro.
11699         * modules/write (Depends-on): Add msvc-inval.
11700         (configure.ac): Invoke gl_PREREQ_WRITE.
11701         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11702
11703 2011-09-24  Bruno Haible  <bruno@clisp.org>
11704
11705         read: Fix last commit.
11706         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11707
11708 2011-09-24  Bruno Haible  <bruno@clisp.org>
11709
11710         dup2: Fix last commit.
11711         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11712         (rpl_dup2): Disable fcntl workaround on native Windows.
11713
11714         sigprocmask: Make code safer.
11715         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11716         section that changes macro definitions for this compilation unit.
11717
11718 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11719
11720         dup2: clarify by coalescing Windows-specific material
11721         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11722         "msvc-nothrow.h"' to the Windows-specific section, so that the
11723         Emacs source need not contain these include files.
11724         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11725         Windows-specific fixes into this function rather than just the
11726         nothrow fix, as this shortens and clarifies the code.  Always
11727         define as a function, as that's a bit cleaner than having it be
11728         sometimes a function and sometimes a macro.
11729         (rpl_dup2): Move the Windows-specific stuff out of here and into
11730         ms_windows_dup2.  Don't protect the Haiku-related fix with
11731         "#if !defined __linux__", as the same code also works around
11732         a Linux kernel bug, and it doesn't add any system calls on any
11733         platform.  Add comment about FreeBSD 6.1.
11734
11735         sigprocmask: move #include directive
11736         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11737         Windows-specific section, so that the Emacs source need not
11738         contain msvc-inval.h.
11739
11740 2011-09-23  Bruno Haible  <bruno@clisp.org>
11741
11742         read: Support for MSVC 9.
11743         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11744         is not 1.
11745         * lib/read.c (read_nothrow): New function.
11746         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11747         read_nothrow.
11748         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11749         invalid parameter handler.
11750         (gl_PREREQ_READ): New macro.
11751         * modules/read (Depends-on): Add msvc-inval.
11752         (configure.ac): Invoke gl_PREREQ_READ.
11753         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11754
11755 2011-09-23  Bruno Haible  <bruno@clisp.org>
11756
11757         close: Support for MSVC 9.
11758         * lib/close.c: Include <errno.h>, msvc-inval.h.
11759         (close_nothrow): New function.
11760         (rpl_close): Use it.
11761         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11762         invalid parameter handler.
11763         * modules/close (Depends-on): Add msvc-inval.
11764         * modules/dup2-tests (Depends-on): Add close.
11765         * modules/dup3-tests (Depends-on): Likewise.
11766         * modules/fcntl-tests (Depends-on): Likewise.
11767         * modules/spawn-pipe-tests (Depends-on): Likewise.
11768         * modules/unistd-safer-tests (Depends-on): Likewise.
11769         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11770
11771 2011-09-23  Bruno Haible  <bruno@clisp.org>
11772
11773         New module 'dup'.
11774         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11775         Allow replacement.
11776         * lib/dup.c: New file.
11777         * lib/fchdir.c (rpl_dup): Remove function.
11778         * m4/dup.m4: New file.
11779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11780         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11781         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11782         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11783         * modules/dup: New file.
11784         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11785         'dup' module is in use.
11786         * modules/fdopendir (Depends-on): Add dup.
11787         * modules/fdutimensat-tests (Depends-on): Likewise.
11788         * modules/fts (Depends-on): Likewise.
11789         * modules/futimens-tests (Depends-on): Likewise.
11790         * modules/posix_spawnp-tests (Depends-on): Likewise.
11791         * modules/unistd-safer-tests (Depends-on): Likewise.
11792         * modules/utimens-tests (Depends-on): Likewise.
11793         * doc/posix-functions/dup.texi: Mention the new module and the problem
11794         on MSVC.
11795
11796 2011-09-23  Bruno Haible  <bruno@clisp.org>
11797
11798         getdtablesize: Support for MSVC 9.
11799         * lib/getdtablesize.c: Include msvc-inval.h.
11800         (_setmaxstdio_nothrow): New function.
11801         (_setmaxstdio): Redefine it.
11802         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11803         * modules/getdtablesize (Depends-on): Add msvc-inval.
11804         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11805
11806 2011-09-23  Bruno Haible  <bruno@clisp.org>
11807
11808         signal-h: Rename from signal.
11809         * modules/signal-h: Renamed from modules/signal.
11810         * modules/pthread_sigmask (Depends-on): Update.
11811         * modules/raise (Depends-on): Likewise.
11812         * modules/sigaction (Depends-on): Likewise.
11813         * modules/sigpipe (Depends-on): Likewise.
11814         * modules/sigprocmask (Depends-on): Likewise.
11815         * modules/sys_select (Depends-on): Likewise.
11816         * modules/signal-h-tests: Renamed from modules/signal-tests.
11817         (Files, Depends-on, Makefile.am): Update.
11818         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11819         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11820         (Files, Makefile.am): Update.
11821         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11822         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11823         * modules/signal: New placeholder file.
11824         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11825         * doc/posix-headers/signal.texi: Update.
11826         * NEWS: Mention the change.
11827
11828 2011-09-23  Bruno Haible  <bruno@clisp.org>
11829
11830         sigprocmask: Avoid crashes through signal() on MSVC 9.
11831         * lib/sigprocmask.c: Include msvc-inval.h.
11832         (signal_nothrow): New function.
11833         (signal): Redefine it.
11834         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11835         * modules/sigprocmask (Depends-on): Add msvc-inval.
11836         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11837
11838 2011-09-23  Bruno Haible  <bruno@clisp.org>
11839
11840         Tests for module 'raise'.
11841         * modules/raise-tests: New file.
11842         * tests/test-raise.c: New file.
11843
11844         raise: Support for MSVC.
11845         * lib/signal.in.h (raise): New declaration.
11846         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11847         for native Windows platforms.
11848         * m4/raise.m4: New file.
11849         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11850         HAVE_RAISE, REPLACE_RAISE.
11851         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11852         REPLACE_RAISE.
11853         * modules/raise (Status, Notice): Remove fields.
11854         (Files): Add m4/raise.m4.
11855         (Depends-on): Add signal, msvc-inval.
11856         (configure.ac): Use the common idioms.
11857         (Maintainer): Add me.
11858         * tests/test-signal-c++.cc: Check the signature of raise.
11859         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11860
11861 2011-09-23  Bruno Haible  <bruno@clisp.org>
11862
11863         pipe2: Fix compilation on pre-C99 compilers.
11864         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11865
11866 2011-09-23  Bruno Haible  <bruno@clisp.org>
11867
11868         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11869         * lib/msvc-nothrow.h: New file.
11870         * lib/msvc-nothrow.c: New file.
11871         * m4/msvc-nothrow.m4: New file.
11872         * modules/msvc-nothrow: New file.
11873         * lib/dup2.c: Include msvc-nothrow.h.
11874         (rpl_dup2): No need to protect _get_osfhandle call here.
11875         * lib/accept4.c: Include msvc-nothrow.h.
11876         * lib/error.c: Likewise.
11877         * lib/fcntl.c: Likewise.
11878         * lib/lseek.c: Likewise.
11879         * lib/nonblocking.c: Likewise.
11880         * lib/poll.c: Likewise.
11881         * lib/read.c: Likewise.
11882         * lib/select.c: Likewise.
11883         * lib/sockets.h: Likewise.
11884         * lib/sockets.c: Likewise.
11885         * lib/stdio-read.c: Likewise.
11886         * lib/stdio-write.c: Likewise.
11887         * lib/write.c: Likewise.
11888         * lib/w32sock.h: Likewise.
11889         * lib/w32spawn.h: Likewise.
11890         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11891         * lib/fsync.c: Likewise.
11892         * lib/isapipe.c: Likewise.
11893         * modules/dup2 (Depends-on): Add msvc-nothrow.
11894         * modules/accept4 (Depends-on): Likewise.
11895         * modules/error (Depends-on): Likewise.
11896         * modules/fcntl (Depends-on): Likewise.
11897         * modules/lseek (Depends-on): Likewise.
11898         * modules/nonblocking (Depends-on): Likewise.
11899         * modules/poll (Depends-on): Likewise.
11900         * modules/read (Depends-on): Likewise.
11901         * modules/select (Depends-on): Likewise.
11902         * modules/sockets (Depends-on): Likewise.
11903         * modules/sigpipe (Depends-on): Likewise.
11904         * modules/write (Depends-on): Likewise.
11905         * modules/accept (Depends-on): Likewise.
11906         * modules/bind (Depends-on): Likewise.
11907         * modules/connect (Depends-on): Likewise.
11908         * modules/gethostname (Depends-on): Likewise.
11909         * modules/getpeername (Depends-on): Likewise.
11910         * modules/getsockname (Depends-on): Likewise.
11911         * modules/getsockopt (Depends-on): Likewise.
11912         * modules/ioctl (Depends-on): Likewise.
11913         * modules/listen (Depends-on): Likewise.
11914         * modules/recv (Depends-on): Likewise.
11915         * modules/recvfrom (Depends-on): Likewise.
11916         * modules/send (Depends-on): Likewise.
11917         * modules/sendto (Depends-on): Likewise.
11918         * modules/setsockopt (Depends-on): Likewise.
11919         * modules/shutdown (Depends-on): Likewise.
11920         * modules/socket (Depends-on): Likewise.
11921         * modules/execute (Depends-on): Likewise.
11922         * modules/spawn-pipe (Depends-on): Likewise.
11923         * modules/flock (Depends-on): Likewise.
11924         * modules/fsync (Depends-on): Likewise.
11925         * modules/isapipe (Depends-on): Likewise.
11926         * tests/test-cloexec.c: Include msvc-nothrow.h.
11927         * tests/test-dup-safer.c: Likewise.
11928         * tests/test-dup2.c: Likewise.
11929         * tests/test-dup3.c: Likewise.
11930         * tests/test-fcntl.c: Likewise.
11931         * tests/test-pipe.c: Likewise.
11932         * tests/test-pipe2.c: Likewise.
11933         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11934         * modules/unistd-safer-tests (Depends-on): Likewise.
11935         * modules/dup2-tests (Depends-on): Likewise.
11936         * modules/dup3-tests (Depends-on): Likewise.
11937         * modules/fcntl-tests (Depends-on): Likewise.
11938         * modules/pipe-posix-tests (Depends-on): Likewise.
11939         * modules/pipe2-tests (Depends-on): Likewise.
11940
11941 2011-09-23  Bruno Haible  <bruno@clisp.org>
11942
11943         dup2: Make code more maintainable.
11944         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11945         (rpl_dup2): Use it.
11946         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11947         * modules/dup2 (configure.ac): Invoke it.
11948         Reported by Paul Eggert.
11949
11950 2011-09-23  Bruno Haible  <bruno@clisp.org>
11951
11952         msvc-inval: Fix compilation error.
11953         * lib/msvc-inval.h: Include <excpt.h>.
11954
11955 2011-09-23  Bruno Haible  <bruno@clisp.org>
11956
11957         mkdir: Tweak for MSVC 9.
11958         * lib/sys_stat.in.h: Update comments.
11959         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11960
11961         Tests for module 'chdir'.
11962         * modules/chdir-tests: New file.
11963         * tests/test-chdir.c: New file.
11964
11965         New module 'chdir'.
11966         * modules/chdir: New file.
11967         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11968         (chdir): New declaration.
11969         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11970         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11971         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11972         * tests/test-unistd-c++.cc: Check signature of chdir.
11973         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11974         * modules/chdir-long (Depends-on): Add chdir.
11975         * modules/fchdir (Depends-on): Likewise.
11976         * modules/rename (Depends-on): Likewise.
11977         * modules/savewd (Depends-on): Likewise.
11978
11979         rmdir: Support for mingw, MSVC 9.
11980         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11981         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11982
11983         getcwd: Tweak for MSVC 9.
11984         * lib/unistd.in.h: Update comments.
11985         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11986
11987 2011-09-22  Bruno Haible  <bruno@clisp.org>
11988
11989         strerror_r-posix: Avoid a link error on MSVC.
11990         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11991         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11992
11993 2011-09-22  Bruno Haible  <bruno@clisp.org>
11994
11995         select: Avoid link errors on MSVC.
11996         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11997         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11998         * modules/pselect (Link): Likewise.
11999         * NEWS: Mention the change.
12000         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12001         test-select-stdin against $(LIB_SELECT).
12002         * modules/pselect-tests (Makefile.am): Link test-pselect against
12003         $(LIB_SELECT).
12004
12005 2011-09-22  Bruno Haible  <bruno@clisp.org>
12006
12007         select: Avoid compilation error on MSVC.
12008         * lib/select.c: Don't include <stdbool.h>.
12009
12010 2011-09-21  Bruno Haible  <bruno@clisp.org>
12011
12012         Consolidate all uses of PATH_MAX in *.m4 files.
12013         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12014         macros.
12015         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12016         and gl_PATHMAX_SNIPPET.
12017         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12018         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12019         * modules/chdir-long (Files): Add m4/pathmax.m4.
12020         * modules/getcwd (Files): Likewise.
12021
12022 2011-09-21  Bruno Haible  <bruno@clisp.org>
12023
12024         ftruncate: Un-deprecate, concentrate on Win32 support.
12025         * modules/ftruncate (Status, Notice): Remove sections.
12026         (Depends-on): Add largefile.
12027         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12028         non-mingw platforms.
12029         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12030         include <io.h>.
12031         * modules/perror-tests (Depends-on): Add ftruncate.
12032         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12033         'ftruncate' module.
12034
12035 2011-09-21  Bruno Haible  <bruno@clisp.org>
12036
12037         Add dependencies to new dirent related modules.
12038         * modules/opendir (Depends-on): Add closedir.
12039         * modules/getcwd (Depends-on): Add opendir, closedir.
12040         * modules/dirent-safer-tests (Depends-on): Likewise.
12041         * modules/fdopendir-tests (Depends-on): Likewise.
12042         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12043         * modules/renameat-tests (Depends-on): Likewise.
12044
12045 2011-09-21  Bruno Haible  <bruno@clisp.org>
12046
12047         opendir: Avoid compilation error on mingw.
12048         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12049         * modules/opendir (Depends-on): Add unistd.
12050
12051 2011-09-21  Bruno Haible  <bruno@clisp.org>
12052
12053         ftruncate tests: Avoid a test failure on mingw.
12054         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12055
12056 2011-09-21  Bruno Haible  <bruno@clisp.org>
12057
12058         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12059         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12060         native Windows.
12061
12062 2011-09-21  Bruno Haible  <bruno@clisp.org>
12063
12064         New module 'fdopen'.
12065         * lib/stdio.in.h (fdopen): New declaration.
12066         * lib/fdopen.c: New file.
12067         * m4/fdopen.m4: New file.
12068         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12069         REPLACE_FDOPEN.
12070         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12071         REPLACE_FDOPEN.
12072         * modules/fdopen: New file.
12073         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12074         * tests/test-stdio-c++.cc: Check signature of fdopen.
12075         * doc/posix-functions/fdopen.texi: Mention the new module.
12076
12077 2011-09-21  Bruno Haible  <bruno@clisp.org>
12078
12079         unlockpt tests: Avoid test failure on NetBSD 5.1.
12080         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12081         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12082
12083 2011-09-21  Bruno Haible  <bruno@clisp.org>
12084
12085         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12086         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12087         * tests/test-getlogin_r.c (main): Likewise.
12088
12089 2011-09-20  Bruno Haible  <bruno@clisp.org>
12090
12091         time tests: Don't require pid_t.
12092         * doc/posix-headers/time.texi: Revert last change.
12093         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12094         * tests/test-time.c: Comment out the check for pid_t.
12095
12096 2011-09-20  Bruno Haible  <bruno@clisp.org>
12097
12098         fsync tests: Avoid a test failure on mingw.
12099         * tests/test-fsync.c (main): Allow a failure with EIO.
12100
12101 2011-09-20  Bruno Haible  <bruno@clisp.org>
12102
12103         euidaccess: Update comments.
12104         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12105
12106 2011-09-20  Bruno Haible  <bruno@clisp.org>
12107
12108         Ensure EBADF returns for socket functions on mingw.
12109         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12110         descriptor is invalid.
12111         * lib/bind.c (rpl_bind): Likewise.
12112         * lib/connect.c (rpl_connect): Likewise.
12113         * lib/getpeername.c (rpl_getpeername): Likewise.
12114         * lib/getsockname.c (rpl_getsockname): Likewise.
12115         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12116         * lib/listen.c (rpl_listen): Likewise.
12117         * lib/recv.c (rpl_recv): Likewise.
12118         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12119         * lib/send.c (rpl_send): Likewise.
12120         * lib/sendto.c (rpl_sendto): Likewise.
12121         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12122         * lib/shutdown.c (rpl_shutdown): Likewise.
12123
12124 2011-09-20  Bruno Haible  <bruno@clisp.org>
12125
12126         select tests: EBADF tests.
12127         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12128         test_bad_fd): New functions.
12129         (test_function): Invoke also test_bad_fd.
12130
12131 2011-09-20  Bruno Haible  <bruno@clisp.org>
12132
12133         Tests for module 'posix_spawn_file_actions_addopen.
12134         * modules/posix_spawn_file_actions_addopen-tests: New file.
12135         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12136
12137         Tests for module 'posix_spawn_file_actions_adddup2'.
12138         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12139         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12140
12141         Tests for module 'posix_spawn_file_actions_addclose'.
12142         * modules/posix_spawn_file_actions_addclose-tests: New file.
12143         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12144
12145 2011-09-20  Bruno Haible  <bruno@clisp.org>
12146
12147         Tests for module 'unlockpt'.
12148         * modules/unlockpt-tests: New file.
12149         * tests/test-unlockpt.c: New file.
12150         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12151
12152         Tests for module 'grantpt'.
12153         * modules/grantpt-tests: New file.
12154         * tests/test-grantpt.c: New file.
12155         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12156
12157 2011-09-20  Bruno Haible  <bruno@clisp.org>
12158
12159         freopen tests: EBADF tests.
12160         * tests/test-freopen.c: Include errno.h, unistd.h.
12161         (main): Add tests for EBADF, commented out for the moment.
12162
12163         fclose tests: EBADF tests.
12164         * tests/test-fclose.c (main): Add tests for EBADF.
12165
12166         fflush tests: EBADF tests.
12167         * tests/test-fflush.c: Include errno.h, macros.h.
12168         (main): Add tests for EBADF.
12169
12170         ftello tests: EBADF tests.
12171         * tests/test-ftello4.sh: New file.
12172         * tests/test-ftello4.c: New file.
12173         * modules/ftello-tests (Files): Add them.
12174         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12175
12176         fseeko tests: EBADF tests.
12177         * tests/test-fseeko4.sh: New file.
12178         * tests/test-fseeko4.c: New file.
12179         * modules/fseeko-tests (Files): Add them.
12180         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12181
12182         Tests for function fputc().
12183         * modules/fputc-tests: New file.
12184         * tests/test-fputc.c: New file.
12185         * modules/stdio-tests (Depends-on): Add fputc-tests.
12186
12187         Tests for function fgetc().
12188         * modules/fgetc-tests: New file.
12189         * tests/test-fgetc.c: New file.
12190         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12191
12192         Tests for function fdopen().
12193         * modules/fdopen-tests: New file.
12194         * tests/test-fdopen.c: New file.
12195         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12196
12197         Tests for module 'vdprintf'.
12198         * modules/vdprintf-tests: New file.
12199         * tests/test-vdprintf.c: New file.
12200
12201         Tests for module 'dprintf'.
12202         * modules/dprintf-tests: New file.
12203         * tests/test-dprintf.c: New file.
12204
12205 2011-09-20  Bruno Haible  <bruno@clisp.org>
12206
12207         Tests for module 'ioctl'.
12208         * modules/ioctl-tests: New file.
12209         * tests/test-ioctl.c: New file.
12210
12211 2011-09-20  Bruno Haible  <bruno@clisp.org>
12212
12213         fcntl tests: EBADF tests.
12214         * tests/test-fcntl.c (main): Add more tests for EBADF.
12215
12216 2011-09-20  Bruno Haible  <bruno@clisp.org>
12217
12218         utimensat tests: EBADF tests.
12219         * tests/test-utimensat.c (main): Add tests for EBADF.
12220
12221         renameat tests: EBADF tests.
12222         * tests/test-renameat.c (main): Add tests for EBADF.
12223
12224         mkfifoat tests: EBADF tests.
12225         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12226
12227         readlinkat tests: EBADF tests.
12228         * tests/test-readlinkat.c (main): Add tests for EBADF.
12229
12230         symlinkat tests: EBADF tests.
12231         * tests/test-symlinkat.c (main): Add tests for EBADF.
12232
12233         linkat tests: EBADF tests.
12234         * tests/test-linkat.c (main): Add tests for EBADF.
12235
12236         Tests for module 'faccessat'.
12237         * modules/faccessat-tests: New file.
12238         * tests/test-faccessat.c: New file.
12239
12240         fdopendir tests: EBADF tests.
12241         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12242
12243         openat tests: EBADF tests.
12244         * tests/test-fchownat.c (main): Add tests for EBADF.
12245         * tests/test-fstatat.c (main): Likewise.
12246         * tests/test-mkdirat.c (main): Likewise.
12247         * tests/test-openat.c (main): Likewise.
12248         * tests/test-unlinkat.c (main): Likewise.
12249         * tests/test-fchmodat.c: New file.
12250         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12251         (Makefile.am): Also run 'test-fchmodat'.
12252
12253 2011-09-20  Bruno Haible  <bruno@clisp.org>
12254
12255         utimens, futimens, fdutimensat tests: EBADF tests.
12256         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12257
12258         Tests for function fstat().
12259         * modules/fstat-tests: New file.
12260         * tests/test-fstat.c: New file.
12261         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12262
12263 2011-09-20  Bruno Haible  <bruno@clisp.org>
12264
12265         test-ttyname_r tests: EBADF tests.
12266         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12267
12268         Tests for module 'isatty'.
12269         * modules/isatty-tests: New file.
12270         * tests/test-isatty.c: New file.
12271
12272         Tests for module 'write'.
12273         * modules/write-tests: New file.
12274         * tests/test-write.c: New file.
12275
12276         Tests for module 'read'.
12277         * modules/read-tests: New file.
12278         * tests/test-read.c: New file.
12279
12280         pwrite tests: EBADF tests.
12281         * tests/test-pwrite.c (main): Add tests for EBADF.
12282
12283         pread tests: EBADF tests.
12284         * tests/test-pread.c (main): Add tests for EBADF.
12285
12286         lseek tests: EBADF tests.
12287         * tests/test-lseek.c (main): Add more tests for EBADF.
12288
12289         Tests for module 'ftruncate'.
12290         * modules/ftruncate-tests: New file.
12291         * tests/test-ftruncate.sh: New file.
12292         * tests/test-ftruncate.c: New file.
12293
12294         fsync tests: EBADF tests.
12295         * tests/test-fsync.c (main): Add more tests for EBADF.
12296
12297         fdatasync tests: EBADF tests.
12298         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12299
12300         Tests for module 'fchown'.
12301         * modules/fchown-tests: New file.
12302         * tests/test-fchown.c: New file.
12303
12304         Tests for module 'fchmod'.
12305         * modules/fchmod-tests: New file.
12306         * tests/test-fchmod.c: New file.
12307
12308         fchdir tests: EBADF tests.
12309         * tests/test-fchdir.c (main): Add more tests for EBADF.
12310
12311         dup2 tests: EBADF tests.
12312         * tests/test-dup2.c (main): Add more tests for EBADF.
12313
12314         Tests for module 'dup'.
12315         * modules/dup-tests: New file.
12316         * tests/test-dup.c: New file.
12317
12318         Tests for module 'close'.
12319         * modules/close-tests: New file.
12320         * tests/test-close.c: New file.
12321
12322 2011-09-20  Bruno Haible  <bruno@clisp.org>
12323
12324         Tests for module 'shutdown'.
12325         * modules/shutdown-tests: New file.
12326         * tests/test-shutdown.c: New file.
12327
12328         Tests for module 'setsockopt'.
12329         * modules/setsockopt-tests: New file.
12330         * tests/test-setsockopt.c: New file.
12331
12332         Tests for module 'sendto'.
12333         * modules/sendto-tests: New file.
12334         * tests/test-sendto.c: New file.
12335
12336         Tests for module 'send'.
12337         * modules/send-tests: New file.
12338         * tests/test-send.c: New file.
12339
12340         Tests for module 'recvfrom'.
12341         * modules/recvfrom-tests: New file.
12342         * tests/test-recvfrom.c: New file.
12343
12344         Tests for module 'recv'.
12345         * modules/recv-tests: New file.
12346         * tests/test-recv.c: New file.
12347
12348         Tests for module 'listen'.
12349         * modules/listen-tests: New file.
12350         * tests/test-listen.c: New file.
12351
12352         Tests for module 'getsockopt'.
12353         * modules/getsockopt-tests: New file.
12354         * tests/test-getsockopt.c: New file.
12355
12356         Tests for module 'getsockname'.
12357         * modules/getsockname-tests: New file.
12358         * tests/test-getsockname.c: New file.
12359
12360         Tests for module 'getpeername'.
12361         * modules/getpeername-tests: New file.
12362         * tests/test-getpeername.c: New file.
12363
12364         Tests for module 'connect'.
12365         * modules/connect-tests: New file.
12366         * tests/test-connect.c: New file.
12367
12368         Tests for module 'bind'.
12369         * modules/bind-tests: New file.
12370         * tests/test-bind.c: New file.
12371
12372         accept4 tests: Fix for native Windows.
12373         * tests/test-accept4.c: Include sockets.h.
12374         (main): Invoke gl_sockets_startup.
12375         * modules/accept4-tests (Depends-on): Add sockets.
12376
12377         accept tests: Fix for native Windows.
12378         * tests/test-accept.c: Include sockets.h.
12379         (main): Invoke gl_sockets_startup.
12380         * modules/accept-tests (Depends-on): Add sockets.
12381
12382 2011-09-19  Bruno Haible  <bruno@clisp.org>
12383
12384         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12385         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12386         do...while(0).
12387         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12388         Suggested by Paul Eggert.
12389
12390 2011-09-19  Bruno Haible  <bruno@clisp.org>
12391
12392         sched: Ensure pid_t is defined.
12393         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12394         not define pid_t.
12395         * lib/sched.in.h: Include <sys/types.h>.
12396         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12397         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12398
12399 2011-09-19  Bruno Haible  <bruno@clisp.org>
12400
12401         msvc-inval: Ensure the entire expansion is a single statement.
12402         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12403         of braces.
12404
12405 2011-09-19  Jim Meyering  <meyering@redhat.com>
12406
12407         tests: use printf, not echo in init.sh's warn_ function
12408         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12409         misbehave when given strings containing a backslash or starting
12410         with e.g., -n.  James Youngman suggested setting IFS.
12411
12412 2011-09-19  Eric Blake  <eblake@redhat.com>
12413
12414         futimens: enhance test
12415         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12416         closed non-negative fd.
12417
12418         date: accept 'hence' as opposite of 'ago'
12419         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12420         * tests/test-parse-datetime.c (main): Enhance test.
12421         Suggested by Jesse Wilson.
12422
12423 2011-09-19  Jim Meyering  <meyering@redhat.com>
12424
12425         getcwd: don't fail in a deep directory on a system without openat
12426         Before this change, getcwd would fail when called from a directory
12427         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12428         the non-openat implementation used "..", "../..", "../../..", etc.
12429         to access ancestor directories.  With too many, that string would
12430         be longer than PATH_MAX.
12431         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12432         using gnulib's openat replacement.
12433         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12434         we're using the replacement function.
12435
12436 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12437
12438         maint.mk: avoid warnings from perl about missing files
12439         * top/maint.mk (def_sym_regex): Ignore files listed in
12440         $(gl_other_headers_) that do not exist, say because a project
12441         does not use a corresponding module.
12442
12443 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12444
12445         stat: use pathmax.h only if needed
12446         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12447         This is better for Emacs, which does not have a mingw port and
12448         therefore can avoid the pathmax module.
12449
12450         utimens: remove dependency on dup2
12451         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12452         to work around the Linux kernel bug.
12453         * modules/utimens (Depends-on): Remove dup2.
12454
12455 2011-09-18  Bruno Haible  <bruno@clisp.org>
12456
12457         inet_ntop, inet_pton: Look for it also in libresolv.
12458         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12459         libnsl, search for it in libresolv.
12460         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12461         Needed on Solaris 7.
12462
12463 2011-09-18  Bruno Haible  <bruno@clisp.org>
12464
12465         accept, accept4 tests: Avoid link error on Solaris.
12466         * modules/accept-tests (Makefile.am): Link test-accept against
12467         $(LIBSOCKET).
12468         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12469         $(LIBSOCKET).
12470
12471         accept4: Avoid link error on Solaris.
12472         * modules/accept4 (Link): New section.
12473
12474         socket functions: Avoid link errors on Solaris.
12475         * modules/accept (Depends-on): Add socketlib.
12476         (Link): New section.
12477         * modules/bind (Depends-on): Add socketlib.
12478         (Link): New section.
12479         * modules/connect (Depends-on): Add socketlib.
12480         (Link): New section.
12481         * modules/getpeername (Depends-on): Add socketlib.
12482         (Link): New section.
12483         * modules/getsockname (Depends-on): Add socketlib.
12484         (Link): New section.
12485         * modules/getsockopt (Depends-on): Add socketlib.
12486         (Link): New section.
12487         * modules/listen (Depends-on): Add socketlib.
12488         (Link): New section.
12489         * modules/recv (Depends-on): Add socketlib.
12490         (Link): New section.
12491         * modules/recvfrom (Depends-on): Add socketlib.
12492         (Link): New section.
12493         * modules/send (Depends-on): Add socketlib.
12494         (Link): New section.
12495         * modules/sendto (Depends-on): Add socketlib.
12496         (Link): New section.
12497         * modules/setsockopt (Depends-on): Add socketlib.
12498         (Link): New section.
12499         * modules/shutdown (Depends-on): Add socketlib.
12500         (Link): New section.
12501         * modules/socket (Depends-on): Add socketlib.
12502         (Link): New section.
12503
12504 2011-09-18  Bruno Haible  <bruno@clisp.org>
12505
12506         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12507         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12508         than 5 seconds.
12509         * modules/ptsname-tests (configure.ac): Test for alarm.
12510
12511 2011-09-18  Bruno Haible  <bruno@clisp.org>
12512
12513         posix_spawn_file_actions_add*: Fix module dependencies.
12514         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12515         posix_spawn_file_actions_init.
12516         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12517         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12518
12519 2011-09-18  Bruno Haible  <bruno@clisp.org>
12520
12521         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12522         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12523         * tests/test-renameat.c (main): Likewise.
12524
12525 2011-09-18  Bruno Haible  <bruno@clisp.org>
12526
12527         Tests for module 'accept4'.
12528         * modules/accept4-tests: New file.
12529         * tests/test-accept4.c: New file.
12530
12531 2011-09-18  Bruno Haible  <bruno@clisp.org>
12532
12533         Tests for module 'accept'.
12534         * modules/accept-tests: New file.
12535         * tests/test-accept.c: New file.
12536
12537 2011-09-18  Bruno Haible  <bruno@clisp.org>
12538
12539         dup2: Support for MSVC.
12540         * lib/dup2.c: Include msvc-inval.h.
12541         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12542         _get_osfhandle calls.
12543         * modules/dup2 (Depends-on): Add msvc-inval.
12544         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12545
12546         New module 'msvc-inval'.
12547         * lib/msvc-inval.h: New file.
12548         * lib/msvc-inval.c: New file.
12549         * m4/msvc-inval.m4: New file.
12550         * modules/msvc-inval: New file.
12551
12552 2011-09-17  Bruno Haible  <bruno@clisp.org>
12553
12554         Tests for module 'pclose'.
12555         * modules/pclose-tests: New file.
12556
12557         New module 'pclose'.
12558         * lib/stdio.in.h (pclose): New declaration.
12559         * lib/pclose.c: New file.
12560         * m4/pclose.m4: New file.
12561         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12562         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12563         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12564         * modules/pclose: New file.
12565         * modules/popen-tests (Depends-on): Add pclose.
12566         * modules/popen-safer-tests (Depends-on): Likewise.
12567         * doc/posix-functions/pclose.texi: Mention the new module.
12568
12569 2011-09-17  Bruno Haible  <bruno@clisp.org>
12570
12571         popen: Support for MSVC.
12572         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12573         * lib/popen.c (popen): Provide alternate definition for native Windows.
12574         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12576         * modules/popen (Depends-on, configure.ac): Update condition.
12577         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12578         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12579         fixed.
12580
12581 2011-09-17  Bruno Haible  <bruno@clisp.org>
12582
12583         isnanl, isnand, isnanf: Work around MSVC bug.
12584         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12585
12586 2011-09-17  Bruno Haible  <bruno@clisp.org>
12587
12588         sys_socket tests: Fix recent mistake.
12589         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12590
12591 2011-09-17  Bruno Haible  <bruno@clisp.org>
12592
12593         putenv: Support for MSVC.
12594         * modules/putenv (Depends-on): Add environ.
12595         * lib/putenv.c (environ): Disable declaration.
12596         * lib/unistd.in.h: Update comment.
12597
12598 2011-09-17  Bruno Haible  <bruno@clisp.org>
12599
12600         math: Avoid macro redefinition warnings on MSVC.
12601         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12602         Undefine before redefining.
12603
12604 2011-09-17  Bruno Haible  <bruno@clisp.org>
12605
12606         doc: Mention functions which are declared as macros.
12607         * doc/posix-functions/*[fl].texi: Mention that some functions are
12608         defined as macros with arguments only.
12609
12610 2011-09-17  Bruno Haible  <bruno@clisp.org>
12611
12612         Add dependencies to new dirent related modules.
12613         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12614         * modules/fts (Depends-on): Likewise.
12615         * modules/glob (Depends-on): Likewise.
12616         * modules/savedir (Depends-on): Likewise.
12617         * modules/scandir (Depends-on): Likewise.
12618         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12619         * modules/fdopendir (Depends-on): Add opendir.
12620
12621 2011-09-17  Bruno Haible  <bruno@clisp.org>
12622
12623         inet_pton: Support for MSVC on Windows Vista or newer.
12624         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12625         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12626         HAVE_DECL_INET_PTON is defined.
12627         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12628         On platforms with <winsock2.h>, test whether inet_pton is declared in
12629         <ws2tcpip.h>. If so, arrange to replace it.
12630         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12631         REPLACE_INET_PTON.
12632         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12633         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12634         (Depends-on, configure.ac): Update condition.
12635         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12636
12637 2011-09-17  Bruno Haible  <bruno@clisp.org>
12638
12639         inet_ntop: Support for MSVC on Windows Vista or newer.
12640         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12641         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12642         HAVE_DECL_INET_NTOP is defined.
12643         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12644         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12645         <ws2tcpip.h>. If so, arrange to replace it.
12646         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12647         REPLACE_INET_NTOP.
12648         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12649         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12650         (Depends-on, configure.ac): Update condition.
12651         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12652
12653 2011-09-16  Eric Blake  <eblake@redhat.com>
12654
12655         test-fsync: yet another enhancement
12656         * tests/test-fsync.c (main): Also test behavior on read-only text
12657         file.
12658
12659 2011-09-16  Bruno Haible  <bruno@clisp.org>
12660
12661         Enhance fsync, fdatasync tests.
12662         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12663         * tests/test-fdatasync.c (main): Likewise.
12664
12665 2011-09-16  Bruno Haible  <bruno@clisp.org>
12666
12667         Support for MSVC compiler: Ensure mode_t gets defined.
12668         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12669         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12670         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12671         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12672         * tests/test-fcntl-h.c: Check that mode_t is defined.
12673         * tests/test-sys_stat.c: Likewise.
12674         * tests/test-sys_types.c: Likewise.
12675         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12676         * doc/posix-headers/sys_stat.texi: Likewise.
12677         * doc/posix-headers/sys_types.texi: Likewise.
12678
12679 2011-09-16  Bruno Haible  <bruno@clisp.org>
12680
12681         sys_stat: Support for MSVC.
12682         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12683         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12684         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12685         MSVC.
12686
12687 2011-09-16  Bruno Haible  <bruno@clisp.org>
12688
12689         Support for MSVC compiler: Ensure off_t gets defined.
12690         * lib/unistd.in.h: Include <sys/types.h>.
12691         * tests/test-fcntl-h.c: Check that off_t is defined.
12692         * tests/test-sys_stat.c: Likewise.
12693         * tests/test-sys_types.c: Likewise.
12694
12695 2011-09-16  Eric Blake  <eblake@redhat.com>
12696
12697         fdatasync: port to Solaris
12698         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12699         * modules/fdatasync (Link): Document it.
12700         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12701
12702         fdatasync: port to MacOS X 10.7
12703         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12704         declared.
12705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12706         * modules/unistd (Makefile.am): Substitute it.
12707         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12708         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12709
12710         fdatasync: minor improvements
12711         * modules/fdatasync (Depends-on): Add condition for fsync.
12712         * lib/fdatasync.c (fdatasync): Add comment.
12713         * tests/test-unistd-c++.cc: Test fdatasync.
12714
12715         unistd: update refs to newer POSIX
12716         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12717         Suggested by Bruno Haible.
12718
12719         fdatasync: new module
12720         * modules/fsync (Description): Document difference to fdatasync.
12721         * modules/fdatasync: New module.
12722         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12723         * lib/fdatasync.c (fdatasync): Likewise.
12724         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12725         defaults.
12726         * modules/unistd (Makefile.am): Set witnesses.
12727         * lib/unistd.in.h (fdatasync): Declare.
12728         * MODULES.html.sh: Document it.
12729         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12730         * modules/fdatasync-tests: New test.
12731         * tests/test-fdatasync.c: Likewise.
12732
12733 2011-09-16  Eric Blake  <eblake@redhat.com>
12734
12735         test-fsync: enhance tests
12736         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12737         * tests/test-fsync.c (main): Enhance test.
12738
12739 2011-09-15  Bruno Haible  <bruno@clisp.org>
12740
12741         Support for MSVC compiler: Ensure ssize_t gets defined.
12742         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12743         * doc/posix-headers/stdio.texi: Likewise.
12744         * modules/stdio (Depends-on): Add ssize_t.
12745         * modules/sys_socket (Depends-on): Likewise.
12746         * modules/sys_types (Depends-on): Likewise.
12747         * modules/sys_uio (Depends-on): Likewise.
12748         * modules/unistd (Depends-on): Likewise.
12749         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12750         * tests/test-sys_types.c: Check that ssize_t is defined.
12751
12752 2011-09-14  Bruno Haible  <bruno@clisp.org>
12753
12754         Avoid using #, the m4 comment starter character, near brackets.
12755         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12756         delimiter character in sed expressions.
12757         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12758         Suggested by Eric Blake.
12759
12760         Properly quote AC_CHECK_DECLS' 4th argument.
12761         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12762         argument.
12763         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12764         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12765         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12766         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12767         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12768         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12770         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12771         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12772         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12773         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12774         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12775         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12776         * m4/isinf.m4 (gl_ISINF): Likewise.
12777         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12778         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12779         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12780         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12781         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12782         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12783         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12784         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12785         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12786         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12787         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12788         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12790         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12792         Reported by Eric Blake.
12793
12794         Properly quote AC_CHECK_DECL's 4th argument.
12795         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12796         argument.
12797         * m4/argp.m4 (gl_ARGP): Likewise.
12798         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12799         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12800         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12801         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12802         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12803         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12804         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12805         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12806         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12807         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12808         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12809         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12810         Reported by Eric Blake.
12811
12812 2011-09-14  Eric Blake  <eblake@redhat.com>
12813
12814         opendir: avoid compile warning
12815         * lib/opendir.c (includes): Always include errno.h.
12816         Reported by Tatsuro MATSUOKA.
12817
12818 2011-09-14  Jim Meyering  <meyering@redhat.com>
12819
12820         maint.mk: sc_tight_scope: propagate failure from sub-make
12821         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12822         Reported by Martin von Gagern.
12823
12824 2011-09-13  Bruno Haible  <bruno@clisp.org>
12825
12826         tempname: Support for MSVC.
12827         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12828         MSVC.
12829         * modules/tempname (Depends-on): Add fcntl-h.
12830
12831 2011-09-13  Bruno Haible  <bruno@clisp.org>
12832
12833         sys_time: Support for MSVC.
12834         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12835         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12836         include <winsock2.h>.
12837         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12838         function declarations that collide with POSIX.
12839         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12840         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12841
12842 2011-09-13  Bruno Haible  <bruno@clisp.org>
12843
12844         stat: Support for MSVC.
12845         * lib/stat.c: Include pathmax.h.
12846         * modules/stat (Depends-on): Add pathmax.
12847
12848         pathmax: Support for native Windows.
12849         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12850
12851 2011-09-12  Bruno Haible  <bruno@clisp.org>
12852
12853         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12854         * lib/dirent.in.h (struct dirent): New type.
12855         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12856         DT_WHT): New macros.
12857         (DIR): New type.
12858         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12859         (readdir, rewinddir): New declarations.
12860         * lib/dirent-private.h: New file.
12861         * lib/opendir.c: New file.
12862         * lib/readdir.c: New file.
12863         * lib/rewinddir.c: New file.
12864         * lib/closedir.c: New file.
12865         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12866         * m4/opendir.m4: New file.
12867         * m4/readdir.m4: New file.
12868         * m4/rewinddir.m4: New file.
12869         * m4/closedir.m4: New file.
12870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12871         REPLACE_CLOSEDIR here.
12872         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12873         readdir, rewinddir are declared.
12874         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12875         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12876         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12877         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12878         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12879         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12880         * modules/opendir: New file.
12881         * modules/readdir: New file.
12882         * modules/rewinddir: New file.
12883         * modules/closedir: New file.
12884         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12885         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12886         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12887         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12888         * NEWS: Mention the 'fchdir' change.
12889
12890 2011-09-11  Bruno Haible  <bruno@clisp.org>
12891
12892         asm-underscore.m4: Support for MSVC.
12893         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12894         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12895
12896 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12897
12898         Doc about crypt functions.
12899         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12900         needing for _GNU_SOURCE to get crypt.
12901         * doc/posix-functions/encrypt.texi: Likewise.
12902         * doc/posix-functions/setkey.texi: Likewise.
12903
12904 2011-09-11  Bruno Haible  <bruno@clisp.org>
12905
12906         doc: Update regarding MSVC 9.
12907         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12908         tested".
12909         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12910         * doc/posix-headers/*.texi: Likewise.
12911         * doc/pastposix-functions/*.texi: Likewise.
12912         * doc/glibc-functions/*.texi: Likewise.
12913         * doc/glibc-headers/*.texi: Likewise.
12914
12915 2011-09-11  Bruno Haible  <bruno@clisp.org>
12916
12917         unistd et al.: Don't assume <unistd.h> exists.
12918         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12919         does not exist.
12920         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12921         exist. But include <stdlib.h>.
12922         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12923         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12924         symlink() does not exist.
12925         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12926         include <io.h> instead.
12927         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12928         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12929         include <direct.h> instead.
12930         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12931         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12932         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12933         <io.h> instead.
12934         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12935         correctly if the system does not have hard links.
12936         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12937         <direct.h> instead.
12938         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12939         it when looking for function declarations.
12940         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12941         <direct.h> and <io.h> instead.
12942         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12943
12944 2011-09-11  Bruno Haible  <bruno@clisp.org>
12945
12946         strcase: Support for MSVC.
12947         * modules/strcase (Status, Notice): Remove obsoletion mark.
12948         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12949         * doc/posix-functions/strncasecmp.texi: Likewise.
12950
12951         strings: Don't assume <strings.h> exists.
12952         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12953         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12954         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12955         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12956
12957 2011-09-11  Bruno Haible  <bruno@clisp.org>
12958
12959         dirent: Don't assume <dirent.h> exists.
12960         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12961         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12962         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12963         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12964
12965 2011-09-11  Bruno Haible  <bruno@clisp.org>
12966
12967         Fix wint_t on MSVC.
12968         * lib/wchar.in.h (wint_t): On MSVC, override it.
12969         * lib/wctype.in.h (wint_t): Likewise.
12970         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12971         MSVC.
12972         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12973         * doc/posix-headers/wctype.texi: Likewise.
12974
12975 2011-09-11  Bruno Haible  <bruno@clisp.org>
12976
12977         sys_types: Fix typo.
12978         * lib/sys_types.in.h: Fix typo in comment.
12979         Reported by Paul Eggert.
12980
12981         Support for MSVC compiler: Ensure size_t gets defined.
12982         * modules/strings (Depends-on): Add 'sys_types'.
12983         * modules/sys_uio (Depends-on): Likewise.
12984         * lib/sys_uio.in.h: Update comment.
12985
12986         C++ tests for module 'sys_types'.
12987         * modules/sys_types-c++-tests: New file.
12988         * tests/test-sys_types-c++.cc: New file.
12989
12990         Tests for module 'sys_types'.
12991         * modules/sys_types-tests: New file.
12992         * tests/test-sys_types.c: New file.
12993
12994         New module 'sys_types'.
12995         * lib/sys_types.in.h: New file.
12996         * m4/sys_types_h.m4: New file.
12997         * modules/sys_types: New file.
12998         * doc/posix-headers/sys_types.texi: Mention the new module and the
12999         size_t problem on MSVC 9.
13000
13001 2011-09-11  Bruno Haible  <bruno@clisp.org>
13002
13003         Support for MSVC compiler: Avoid division by a literal 0.
13004         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13005         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13006         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13007         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13008         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13009         * tests/infinity.h: New file.
13010         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13011         on MSVC.
13012         * tests/test-ceilf1.c: Include infinity.h.
13013         (main): Use Infinityf.
13014         * tests/test-ceil1.c: Include infinity.h.
13015         (main): Use Infinityd.
13016         * tests/test-ceill.c: Include infinity.h.
13017         (main): Use Infinityl.
13018         * tests/test-dprintf-posix.c: Include infinity.h.
13019         (test_function): Use Infinityd.
13020         * tests/test-floorf1.c: Include infinity.h.
13021         (main): Use Infinityf.
13022         * tests/test-floor1.c: Include infinity.h.
13023         (main): Use Infinityd.
13024         * tests/test-floorl.c: Include infinity.h.
13025         (main): Use Infinityl.
13026         * tests/test-fprintf-posix.c: Include infinity.h.
13027         (test_function): Use Infinityd.
13028         * tests/test-frexp.c: Include infinity.h.
13029         (main): Use Infinityd.
13030         * tests/test-frexpl.c: Include infinity.h.
13031         (main): Use Infinityl.
13032         * tests/test-isfinite.c: Include infinity.h.
13033         (test_isfinitef): Use Infinityf.
13034         (test_isfinited): Use Infinityd.
13035         (test_isfinitel): Use Infinityl.
13036         * tests/test-isinf.c: Include infinity.h.
13037         (test_isinff): Use Infinityf.
13038         (test_isinfd): Use Infinityd.
13039         (test_isinfl): Use Infinityl.
13040         * tests/test-isnan.c: Include infinity.h.
13041         (test_float): Use Infinityf.
13042         (test_double): Use Infinityd.
13043         (test_long_double): Use Infinityl.
13044         * tests/test-isnanf.h: Include infinity.h.
13045         (main): Use Infinityf.
13046         * tests/test-isnand.h: Include infinity.h.
13047         (main): Use Infinityd.
13048         * tests/test-isnanl.h: Include infinity.h.
13049         (main): Use Infinityl.
13050         * tests/test-ldexpl.c: Include infinity.h.
13051         (main): Use Infinityl.
13052         * tests/test-printf-posix.h: Include infinity.h.
13053         (test_function): Use Infinityd.
13054         * tests/test-roundf1.c: Include infinity.h.
13055         (main): Use Infinityf.
13056         * tests/test-round1.c: Include infinity.h.
13057         (main): Use Infinityd.
13058         * tests/test-roundl.c: Include infinity.h.
13059         (main): Use Infinityl.
13060         * tests/test-signbit.c: Include infinity.h.
13061         (test_signbitf): Use Infinityf.
13062         (test_signbitd): Use Infinityd.
13063         (test_signbitl): Use Infinityl.
13064         * tests/test-snprintf-posix.h: Include infinity.h.
13065         (test_function): Use Infinityd, Infinityl.
13066         * tests/test-sprintf-posix.h: Include infinity.h.
13067         (test_function): Use Infinityd, Infinityl.
13068         * tests/test-truncf1.c: Include infinity.h.
13069         (main): Use Infinityf.
13070         * tests/test-trunc1.c: Include infinity.h.
13071         (main): Use Infinityd.
13072         * tests/test-truncl.c: Include infinity.h.
13073         (main): Use Infinityl.
13074         * tests/test-vasnprintf-posix.c: Include infinity.h.
13075         (test_function): Use Infinityd, Infinityl.
13076         * tests/test-vasprintf-posix.c: Include infinity.h.
13077         (test_function): Use Infinityd, Infinityl.
13078         * modules/ceilf-tests (Files): Add tests/infinity.h.
13079         * modules/ceil-tests (Files): Likewise.
13080         * modules/ceill-tests (Files): Likewise.
13081         * modules/dprintf-posix-tests (Files): Likewise.
13082         * modules/floorf-tests (Files): Likewise.
13083         * modules/floor-tests (Files): Likewise.
13084         * modules/floorl-tests (Files): Likewise.
13085         * modules/fprintf-posix-tests (Files): Likewise.
13086         * modules/frexp-tests (Files): Likewise.
13087         * modules/frexp-nolibm-tests (Files): Likewise.
13088         * modules/frexpl-tests (Files): Likewise.
13089         * modules/frexpl-nolibm-tests (Files): Likewise.
13090         * modules/isfinite-tests (Files): Likewise.
13091         * modules/isinf-tests (Files): Likewise.
13092         * modules/isnan-tests (Files): Likewise.
13093         * modules/isnanf-tests (Files): Likewise.
13094         * modules/isnanf-nolibm-tests (Files): Likewise.
13095         * modules/isnand-tests (Files): Likewise.
13096         * modules/isnand-nolibm-tests (Files): Likewise.
13097         * modules/isnanl-tests (Files): Likewise.
13098         * modules/isnanl-nolibm-tests (Files): Likewise.
13099         * modules/ldexpl-tests (Files): Likewise.
13100         * modules/printf-posix-tests (Files): Likewise.
13101         * modules/roundf-tests (Files): Likewise.
13102         * modules/round-tests (Files): Likewise.
13103         * modules/roundl-tests (Files): Likewise.
13104         * modules/signbit-tests (Files): Likewise.
13105         * modules/snprintf-posix-tests (Files): Likewise.
13106         * modules/sprintf-posix-tests (Files): Likewise.
13107         * modules/truncf-tests (Files): Likewise.
13108         * modules/trunc-tests (Files): Likewise.
13109         * modules/truncl-tests (Files): Likewise.
13110         * modules/vasnprintf-posix-tests (Files): Likewise.
13111         * modules/vasprintf-posix-tests (Files): Likewise.
13112         * modules/vdprintf-posix-tests (Files): Likewise.
13113         * modules/vfprintf-posix-tests (Files): Likewise.
13114         * modules/vprintf-posix-tests (Files): Likewise.
13115         * modules/vsnprintf-posix-tests (Files): Likewise.
13116         * modules/vsprintf-posix-tests (Files): Likewise.
13117         * modules/xprintf-posix-tests (Files): Likewise.
13118
13119 2011-09-11  Bruno Haible  <bruno@clisp.org>
13120
13121         Ensure pid_t gets defined.
13122         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13123         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13124         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13125         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13126         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13127         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13128         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13129         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13130         * tests/test-fcntl-h.c: Check that pid_t is defined.
13131         * tests/test-sched.c: Likewise.
13132         * tests/test-termios.c: Likewise.
13133         * tests/test-time.c: Likewise.
13134         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13135         * doc/posix-headers/signal.texi: Likewise.
13136         * doc/posix-headers/sys_types.texi: Likewise.
13137         * doc/posix-headers/time.texi: Likewise.
13138
13139 2011-09-11  Bruno Haible  <bruno@clisp.org>
13140
13141         acl: Fix compilation on Solaris 10 (older version).
13142         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13143         of ACE_EVERYONE.
13144         * lib/set-mode-acl.c (qset_acl): Likewise.
13145         Reported by Christian Jullien <eligis@orange.fr>.
13146
13147 2011-09-10  Bruno Haible  <bruno@clisp.org>
13148
13149         iconv, unsetenv: Add support for MSVC compiler.
13150         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13151         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13152
13153 2011-09-10  Bruno Haible  <bruno@clisp.org>
13154
13155         *printf: Add support for MSVC compiler.
13156         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13157         handles the exception caused by the %n directive. When cross-compiling,
13158         guess no on native Windows.
13159         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13160         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13161         emulate it through vsnprintf.
13162         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13163         * doc/posix-functions/dprintf.texi: Update documentation regarding
13164         MSVC 9.
13165         * doc/posix-functions/fprintf.texi: Likewise.
13166         * doc/posix-functions/printf.texi: Likewise.
13167         * doc/posix-functions/snprintf.texi: Likewise.
13168         * doc/posix-functions/sprintf.texi: Likewise.
13169         * doc/posix-functions/swprintf.texi: Likewise.
13170         * doc/posix-functions/vdprintf.texi: Likewise.
13171         * doc/posix-functions/vfprintf.texi: Likewise.
13172         * doc/posix-functions/vprintf.texi: Likewise.
13173         * doc/posix-functions/vsnprintf.texi: Likewise.
13174         * doc/posix-functions/vsprintf.texi: Likewise.
13175         * doc/glibc-functions/asprintf.texi: Likewise.
13176         * doc/glibc-functions/obstack_printf.texi: Likewise.
13177         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13178         * doc/glibc-functions/vasprintf.texi: Likewise.
13179
13180 2011-09-10  Bruno Haible  <bruno@clisp.org>
13181
13182         nocrash: Add support for native Windows.
13183         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13184
13185 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13186             Bruno Haible  <bruno@clisp.org>
13187
13188         absolute-header, include-next: Add support for MSVC compiler.
13189         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13190         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13191         directory separator in #line directives.
13192         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13193         recognize also backslash as directory separator in #line directives.
13194
13195 2011-09-08  Jim Meyering  <meyering@redhat.com>
13196
13197         maint.mk: mark the post-release commit log with "maint: " prefix
13198         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13199         one-line commit-log summary.
13200
13201 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13202             Bruno Haible  <bruno@clisp.org>
13203
13204         Doc about crypt functions.
13205         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13206         systems.
13207         * doc/posix-functions/encrypt.texi: Likewise.
13208         * doc/posix-functions/setkey.texi: Likewise.
13209
13210 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13211
13212         * lib/gc.h: Fix copyright header.
13213
13214 2011-09-07  Bruno Haible  <bruno@clisp.org>
13215
13216         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13217         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13218         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13219
13220 2011-09-07  Bruno Haible  <bruno@clisp.org>
13221
13222         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13223         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13224         * lib/freopen.c: Likewise.
13225         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13226         * lib/lstat.c: Likewise.
13227         * lib/stat.c: Likewise.
13228         * lib/open.c: Use different syntax for include of <fcntl.h>.
13229         * lib/openat.c: Include fcntl.h again, explicitly.
13230
13231 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13232
13233         parse-datetime: document the newly accepted format
13234         * doc/parse-datetime.texi (Combined date and time of day items):
13235         New section.
13236
13237 2011-09-06  Bruno Haible  <bruno@clisp.org>
13238
13239         acl: Fix a test failure on newer Solaris 10 with ZFS.
13240         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13241         ENOSYS as no ACL.
13242         Reported by Jim Meyering.
13243
13244 2011-09-06  Bruno Haible  <bruno@clisp.org>
13245
13246         acl: Update for AIX >= 5.3 with NFS.
13247         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13248         ENOSYS as no ACL.
13249
13250         acl: Fix a test failure on AIX >= 5.3 with NFS.
13251         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13252         as no ACL.
13253
13254 2011-09-06  Bruno Haible  <bruno@clisp.org>
13255
13256         acl: Fix a test failure on IRIX 6.5 with NFS.
13257         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13258         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13259         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13260         * lib/copy-acl.c (qcopy_acl): Likewise.
13261
13262 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13263
13264         openat: port to AIX 7.1 with large files
13265         AIX 7.1 does a "#define openat open64at" if large files are in use,
13266         so we can't simply #undef openat.  Use the orig_openat trick (similar
13267         to orig_open in lib/open.c) to work around the problem.  Problem
13268         reported by Kevin Brott for GNU tar, in the thread containing
13269         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13270         * lib/openat.c (__need_system_fcntl_h): Define first.
13271         Include <fcntl.h> and <sys/types.h> before undefining.
13272         (orig_openat) [HAVE_OPENAT]: New inline function.
13273         (openat) [HAVE_OPENAT]: Do not undef.
13274         (rpl_openat): Use orig_openat, not openat.
13275
13276 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13277             Bruno Haible  <bruno@clisp.org>
13278
13279         acl: Avoid errors on NonStop Kernel.
13280         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13281         ENOTSUP errors.
13282
13283 2011-09-05  Bruno Haible  <bruno@clisp.org>
13284
13285         acl: Clean up Solaris code.
13286         * lib/acl-internal.h: Remove no-op #if.
13287         * lib/file-has-acl.c: Likewise.
13288         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13289         * lib/copy-acl.c (qcopy_acl): Likewise.
13290
13291 2011-09-05  Bruno Haible  <bruno@clisp.org>
13292
13293         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13294         binaries built on the original Solaris 10.
13295         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13296         trivial.
13297
13298 2011-09-05  Bruno Haible  <bruno@clisp.org>
13299
13300         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13301         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13302         10.
13303         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13304         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13305         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13306         instead of acl_get, facl_get, acl_set, facl_set.
13307
13308 2011-09-05  Bruno Haible  <bruno@clisp.org>
13309
13310         copy-file: Try unit tests on more file systems.
13311         * tests/test-copy-file-1.sh: New file.
13312         * tests/test-copy-file-2.sh: New file.
13313         * modules/copy-file-tests (Files): Add them.
13314         (Makefile.am): Add them to TESTS.
13315
13316         acl: Try unit tests on more file systems.
13317         * tests/test-file-has-acl-1.sh: New file.
13318         * tests/test-file-has-acl-2.sh: New file.
13319         * tests/test-set-mode-acl-1.sh: New file.
13320         * tests/test-set-mode-acl-2.sh: New file.
13321         * tests/test-copy-acl-1.sh: New file.
13322         * tests/test-copy-acl-2.sh: New file.
13323         * modules/acl-tests (Files): Add them.
13324         (Makefile.am): Add them to TESTS.
13325
13326 2011-09-04  Bruno Haible  <bruno@clisp.org>
13327
13328         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13329         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13330         10.
13331         (OLD_ALLOW, OLD_DENY): New macros.
13332         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13333         ACE_ACCESS_ALLOWED_ACE_TYPE.
13334         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13335         ACE_ACCESS_DENIED_ACE_TYPE.
13336         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13337         (NEW_ACE_EXECUTE): Fix value.
13338         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13339         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13340         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13341         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13342         NEW_ACE_SYNCHRONIZE): New macros.
13343         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13344         instead of acl_fromtext, acl_set, facl_set.
13345         Fixes a coreutils/tests/cp/perm failure.
13346
13347 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13348
13349         openat: test for fstatat (..., 0) bug
13350         Further testing with tar suggests that fstatat (..., 0)
13351         does not work in general, on AIX 7.1; see
13352         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13353         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13354         replacement fstatat (which is what older AIX releases were using
13355         anyway).
13356         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13357         use is now changed to orig_fstatat.  This was probably the right
13358         thing to do anyway.
13359         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13360         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13361         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13362         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13363         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13364         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13365         if the bug is found.
13366
13367         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13368         This tests for another fstatat bug on AIX 7.1:
13369         fstatat (AT_FDCWD, ..., 0) does not work.  See
13370         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13371         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13372         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13373         (rpl_fstatat): Adjust so that it works around either (or both)
13374         bugs if present.
13375         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13376
13377 2011-09-03  Karl Berry  <karl@gnu.org>
13378
13379         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13380         in index entries.
13381
13382 2011-09-02  Bruno Haible  <bruno@clisp.org>
13383
13384         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13385         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13386         values of AR, ARFLAGS, RANLIB.
13387         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13388
13389 2011-09-02  Bruno Haible  <bruno@clisp.org>
13390
13391         Find 'ar' program that fits with --host argument.
13392         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13393
13394 2011-09-02  Bruno Haible  <bruno@clisp.org>
13395
13396         tests: init.sh: Support any non-GNU diff.
13397         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13398         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13399         Solaris 8.
13400
13401 2011-09-02  Bruno Haible  <bruno@clisp.org>
13402
13403         tests: init.sh: work also with any non-GNU diff that supports -u
13404         * tests/init.sh: Relax check for diff -u support.
13405         Rather than checking for GNU diff via --version, simply check
13406         for support for -u itself.  Useful at least on OpenBSD 4.9,
13407         AIX 7.1, IRIX 6.5, and Solaris 10.
13408
13409 2011-09-01  Bruno Haible  <bruno@clisp.org>
13410
13411         strtoimax, strtoumax: Document problem on HP-UX 11.
13412         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13413         * doc/posix-functions/strtoumax.texi: Likewise.
13414
13415 2011-09-01  Bruno Haible  <bruno@clisp.org>
13416
13417         strtoumax: Avoid link error on OSF/1 with DTK cc.
13418         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13419         defined as a function.
13420         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13421         strtoumax is defined, not whether it is declared.
13422
13423 2011-09-01  Bruno Haible  <bruno@clisp.org>
13424
13425         strtoimax: Avoid link error on OSF/1 with DTK cc.
13426         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13427         defined as a function.
13428         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13429         strtoimax is defined, not whether it is declared.
13430
13431 2011-09-01  Bruno Haible  <bruno@clisp.org>
13432
13433         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13434         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13435         as a function.
13436         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13437         whether it is declared.
13438
13439 2011-09-01  Bruno Haible  <bruno@clisp.org>
13440
13441         imaxabs: Avoid link error on OSF/1 with DTK cc.
13442         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13443         as a function.
13444         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13445         whether it is declared.
13446
13447 2011-09-01  Bruno Haible  <bruno@clisp.org>
13448
13449         Tests for module 'strtoumax'.
13450         * modules/strtoumax-tests: New file.
13451         * tests/test-strtoumax.c: New file.
13452
13453         Tests for module 'strtoimax'.
13454         * modules/strtoimax-tests: New file.
13455         * tests/test-strtoimax.c: New file.
13456
13457         Tests for module 'imaxdiv'.
13458         * modules/imaxdiv-tests: New file.
13459         * tests/test-imaxdiv.c: New file.
13460
13461         Tests for module 'imaxabs'.
13462         * modules/imaxabs-tests: New file.
13463         * tests/test-imaxabs.c: New file.
13464
13465 2011-09-01  Bruno Haible  <bruno@clisp.org>
13466
13467         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13468         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13469         pthread_create.
13470
13471 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13472
13473         openat: work around AIX 7.1 fstatat issue
13474         This should fix the problem that was not properly fixed
13475         in the previous change, dated 2011-08-30.
13476         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13477         __need_system_stat_h defined.
13478         (orig_fstatat) [HAVE_FSTATAT]: New function.
13479         (rpl_fstatat): Go back to the old way of doing things,
13480         except call orig_fstatat instead of fstatat.
13481         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13482         Remove unnecessary check whether fstatat fills in st_size etc.
13483
13484 2011-09-01  Bruno Haible  <bruno@clisp.org>
13485
13486         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13487         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13488         just include the system's header.
13489
13490 2011-08-31  Jim Meyering  <meyering@redhat.com>
13491
13492         tests: avoid spurious assertion failure in test-float.c on ppc64
13493         * tests/test-float.c (test_long_double): Comment out an assertion,
13494         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13495         with gcc-4.4.4.
13496
13497         maint: indent with spaces, not TABs
13498         I need to get in the habit of running gnulib's "make check".
13499         Both of these would have been caught.
13500         * m4/largefile.m4: Indent with spaces, not TABs.
13501         * lib/parse-datetime.y (iso_8601_time): Likewise.
13502         Spotted by Pádraig Brady.
13503
13504         test-parse-datetime.c: accommodate a relatively strict gcc warning
13505         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13506         to avoid a warning from gcc's -Werror=missing-declarations.
13507         Insert a few spaces-before-funcall-parenthesis.
13508
13509 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13510
13511         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13512         The parser now accepts ISO 8601 date-time strings with "T" as the
13513         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13514         with a space between the date and time strings.  Now it also parses
13515         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13516         variants like "2004-02-29T16:21:42.333-07:00"
13517         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13518         of day representation using the 'T' separator character.
13519         * doc/parse-datetime.texi (General date syntax): replace use of
13520         deprecated --iso-8601 option with --rfc-3339 in example of date
13521         command output formats that can be parsed.
13522         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13523         lib/parse-datetime.y.
13524         (gmt_offset): New function.
13525         (main): Add additional test cases to validate ISO8601 extended
13526         date and time of day parsing.
13527
13528 2011-08-31  Bruno Haible  <bruno@clisp.org>
13529
13530         freopen: Documentation.
13531         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13532         name.
13533         Reported by Claudio Bley <claudio.bley@gmail.com>.
13534
13535 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13536
13537         freopen: Don't crash if the filename argument is NULL.
13538         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13539         NULL.
13540
13541 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13542
13543         openat: work around AIX 7.1 fstatat bug
13544         Problem reported by Kevin Brott for GNU tar, in the thread containing
13545         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13546         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13547         FSTATAT_ST_SIZE_ETC_BROKEN.
13548         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13549         rpl_fstatat.
13550         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13551         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13552         AC_CHECK_FUNCS_ONCE for fstatat.
13553         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13554         fchmodat, mkdirat, openat and unlinkat.
13555
13556 2011-08-30  Bruno Haible  <bruno@clisp.org>
13557
13558         Avoid endless recursions if config.h includes some header files.
13559         * lib/fopen.c (__need_FILE): Define already before including config.h.
13560         * lib/freopen.c (__need_FILE): Likewise.
13561         * lib/open.c (__need_system_fcntl_h): Likewise.
13562         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13563         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13564         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13565
13566 2011-08-25  Karl Berry  <karl@gnu.org>
13567
13568         * config/srclist.txt (ylwrap): new try.
13569         * build-aux/ylwrap: new file.
13570
13571 2011-08-23  Bruno Haible  <bruno@clisp.org>
13572
13573         tmpdir: Use a good default directory on native Windows.
13574         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13575         (P_tmpdir): Default to _P_tmpdir on native Windows.
13576         (path_search): On native Windows, try the value returned by GetTempPath
13577         before trying P_tmpdir.
13578         * modules/tmpdir (Depends-on): Add pathmax.
13579         Suggested by John Darrington <john@darrington.wattle.id.au>.
13580
13581 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13582
13583         doc: fix typo in README-release
13584         * top/README-release: Capitalize first word of a sentence.
13585
13586 2011-08-19  Jim Meyering  <meyering@redhat.com>
13587
13588         fts: do not exhaust memory when processing million-entry directories
13589         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13590         directory would require about 256*N bytes of memory.  Thus, it was
13591         easy to construct a directory too large to be processed by any of
13592         those tools.  With this change, fts' maximum memory utilization is
13593         now limited to around 30MB.
13594         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13595         (fts_read): When we've processed the final entry (i.e., when
13596         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13597         using the parent entry to read any remaining entries.  Dispatch
13598         depending on what fts_build returns:
13599         - NULL+stop, aka failure: stop
13600         - NULL otherwise: move up in the dir hierarchy
13601         - non-NULL: handle this new entry
13602         (fts_build): Declare and use new local, continue_readdir.
13603         Prepare to be called from fts_read, when the entries
13604         from a partially-read directory have just been exhausted.
13605         In that case, we'll skip the opendir and instead use the parent's
13606         fts_dirp and derive dir_fd from that.
13607         Finally, in the readdir loop, if we read max_entries entries,
13608         exit the loop ensuring *not* to call closedir.  This is required
13609         so that fts_dirp can be reused on a subsequent call.
13610         Prompted by Ben England's report of memory exhaustion in find
13611         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13612
13613         maint: fts: move decl of `dp' down into while loop; split a long line
13614         * lib/fts.c (fts_build): No semantic change.
13615
13616         fts: add/use new struct member, fts_dirp
13617         We are about to use this to manage any directory with
13618         too many entries to read all of them into memory at once.
13619         To do that, we'll need to save the DIR* pointer in each
13620         affected FTSENT struct.
13621         * lib/fts_.h: Include <dirent.h>.
13622         (struct FTSENT) [fts_dirp]: New member.
13623         * lib/fts.c (closedir_and_clear): Define.
13624         Use it in place of closedir so that we are sure to
13625         clear the new fts_dirp member when done with it.
13626         (fts_alloc): Initialize the new member.
13627         (fts_lfree): Free, if needed.
13628
13629         maint: fts: give __opendir2 a new parameter and rename
13630         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13631         than surreptitiously using sole caller's "dir_fd".
13632         (fts_opendir): Rename from __opendir2.
13633
13634         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13635         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13636
13637         maint: fts.c: correct off-by-one indentation
13638         * lib/fts.c (fts_build): Correct indentation, change style
13639         of a couple of block comments, and bracing style.
13640
13641         maint: fts.c: move __opendir2 #define "up" out of function body
13642         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13643
13644         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13645         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13646         out for a long time and besides was useful only on BSD systems.
13647
13648 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13649
13650         regex: port to Stratus OpenVOS
13651         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13652         define to empty, rather than attempting nonportable optimizations.
13653         Problem reported by Paul Green in:
13654         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13655         and fix suggested by Eric Blake in:
13656         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13657
13658 2011-08-17  Eric Blake  <eblake@redhat.com>
13659
13660         getcwd: fix test failures on mingw
13661         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13662         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13663         test if long directory cannot be created, and allow mingw errno.
13664
13665         getcwd-lgpl: fix m4 to match relaxed test for BSD
13666         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13667         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13668         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13669         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13670         signature problem.
13671
13672         getcwd: fix compilation on mingw64
13673         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13674         getcwd.
13675         Reported by Marc-André Lureau.
13676
13677         pipe2: silence compiler warning
13678         * lib/pipe2.c (pipe2): Hide label if it is not used.
13679
13680 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13681
13682         relocatable-prog: fix link error
13683         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13684         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13685         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13686         into modules/relocatable-lib without noticing that
13687         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13688         also needs to build relocatable.c.
13689
13690 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13691
13692         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13694         shell code: it contained a 'break' that was not in a loop.
13695         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13696         via a shell-language loop; this may have been true in old Autoconf
13697         versions, but it's not true in Autoconf 2.68.  I found this bug
13698         when testing coreutils git on Solaris 8, whose shell complains
13699         about the syntax error.
13700
13701 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13702
13703         * lib/base64.c: Fix comment to reference RFC 4648.
13704         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13705         <gvtulder@gmail.com>.
13706
13707 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13708
13709         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13710
13711         po/Makefile.in.in: fix make -q problem
13712         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13713         rule, since there's no file named 'check-macro-version' and its
13714         use as a file breaks make -q.
13715         (all): Don't depend on check-macro-version.
13716         (CHECK_MACRO_VERSION): New macro.
13717         (stamp-po): Use it.
13718
13719         configmake: fix make -q problem
13720         * modules/configmake (configmake.h): Update configmake.h's time stamp
13721         even if the file does not change.  Otherwise, 'make -q' fails.
13722         Problem reported by Simon Josefsson in
13723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13724
13725 2011-08-11  Jim Meyering  <meyering@redhat.com>
13726
13727         git-version-gen: correct the advice in a comment
13728         * build-aux/git-version-gen: Correct comment.
13729         Don't recommend to list .tarball-version in .gitignore.
13730
13731 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13732
13733         base64: fix off-by-one buffer size bug
13734         Problem and (trivial) fix reported by Gijs van Tulder in
13735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13736         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13737         * tests/test-base64.c (main): Catch the bug.
13738
13739 2011-08-10  Eric Blake  <eblake@redhat.com>
13740
13741         closein: correct comments
13742         * lib/closein.c (close_stdin): Improve comments.
13743
13744 2011-08-09  Bruno Haible  <bruno@clisp.org>
13745
13746         More tests for 'fseeko'.
13747         * tests/test-fseeko3.c: New file, from Eric Blake.
13748         * tests/test-fseeko3.sh: New file.
13749         * modules/fseeko-tests (Files): Add them.
13750         (TESTS): Add test-fseeko3.sh.
13751         (check_PROGRAMS): Add test-fseeko3.
13752
13753 2011-08-09  Eric Blake  <eblake@redhat.com>
13754
13755         fseeko: remove unneeded hack
13756         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13757
13758         fseeko: fix bug on glibc
13759         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13760         Reported by John W. Eaton.
13761
13762 2011-08-08  Bruno Haible  <bruno@clisp.org>
13763
13764         unictype/base: Fix interoperability with preinstalled libunistring.
13765         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13766         Reported by Simon Josefsson.
13767
13768 2011-08-08  Bruno Haible  <bruno@clisp.org>
13769
13770         iswblank: Detect declaration correctly.
13771         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13772         AC_CHECK_DECLS invocation.
13773
13774 2011-08-08  Bruno Haible  <bruno@clisp.org>
13775
13776         tcgetsid: Detect declaration correctly.
13777         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13778         AC_CHECK_DECLS invocation.
13779         Reported by Simon Josefsson.
13780
13781 2011-08-08  Eric Blake  <eblake@redhat.com>
13782
13783         largefile: fix typo that regressed large file support
13784         * modules/largefile (configure.ac-early): Fix section name.
13785
13786 2011-08-06  Karl Berry  <karl@gnu.org>
13787
13788         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13789         a separate module.
13790
13791 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13792
13793         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13794         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13795         get prototype for free.
13796
13797 2011-08-04  Bruno Haible  <bruno@clisp.org>
13798
13799         Tests for module 'pathmax'.
13800         * modules/pathmax-tests: New file.
13801         * tests/test-pathmax.c: New file.
13802
13803         canonicalize-lgpl: Support larger filenames on the Hurd.
13804         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13805         Reported by Paul Eggert.
13806
13807         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13808         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13809         * lib/chdir-long.h: Include pathmax.h.
13810         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13811         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13812         (PATH_MAX): Remove code that is done by pathmax.h.
13813         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13814         * lib/tmpfile.c: Add a comment.
13815         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13816         * modules/chdir-long (Depends-on): Add pathmax.
13817         * modules/getcwd (Depends-on): Add pathmax.
13818         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13819         is not defined.
13820         * doc/posix-headers/limits.texi: Mention the pathmax module.
13821         * NEWS: Mention the change.
13822
13823 2011-08-02  Bruno Haible  <bruno@clisp.org>
13824
13825         pthread_sigmask: Actually use results of gl_THREADLIB.
13826         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13827         gl_THREADLIB, not gl_[]THREADLIB.
13828         Reported by Eric Blake.
13829
13830 2011-08-02  Jim Meyering  <meyering@redhat.com>
13831
13832         maint.mk: relax the default _gl_TS_function_match regexp
13833         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13834         space between function name and "(" in an "extern" declaration.
13835         That would fail to match a decl with no space there: extern void foo();
13836
13837 2011-07-31  Iain Nicol  <iain@thenicols.net>
13838
13839         git-version-gen: document that EXTRA_DIST must include .version
13840         * build-aux/git-version-gen: In the how-to-use comment, document
13841         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13842         will fail when run from an unpacked distribution tarball.
13843
13844 2011-08-01  Bruno Haible  <bruno@clisp.org>
13845
13846         wctype-h: Fix last change.
13847         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13848         REPLACE_TOWLOWER to 0.
13849         Reported by Sam Steingold <sds@gnu.org>.
13850
13851 2011-07-31  Bruno Haible  <bruno@clisp.org>
13852
13853         frexpl: Update autoconf test.
13854         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13855         according to changes of 2011-06-20.
13856
13857 2011-07-31  Bruno Haible  <bruno@clisp.org>
13858
13859         sys_utsname: Add support for Minix.
13860         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13861         <sys/utsname.h>.
13862         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13863         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13864
13865 2011-07-31  Bruno Haible  <bruno@clisp.org>
13866
13867         strings: Add support for Minix.
13868         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13869         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13870         * doc/posix-headers/strings.texi: Document the Minix problem.
13871
13872 2011-07-31  Bruno Haible  <bruno@clisp.org>
13873
13874         wctype-h: Add support for Minix.
13875         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13876         REPLACE_TOWLOWER.
13877         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13878         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13879         REPLACE_ISWCNTRL.
13880
13881 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13882
13883         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13884         This is a performance improvement for 64-bit hosts: it causes the
13885         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13886
13887 2011-07-31  Bruno Haible  <bruno@clisp.org>
13888
13889         stdioext: Add support for Minix.
13890         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13891         * lib/fpurge.c (fpurge): Likewise.
13892         * lib/freadahead.c (freadahead): Likewise.
13893         * lib/freadable.c (freadable): Likewise.
13894         * lib/freading.c (freading): Likewise.
13895         * lib/freadptr.c (freadptr): Likewise.
13896         * lib/freadseek.c (freadptrinc): Likewise.
13897         * lib/fseeko.c (rpl_fseeko): Likewise.
13898         * lib/fseterr.c (fseterr): Likewise.
13899         * lib/fwritable.c (fwritable): Likewise.
13900         * lib/fwriting.c (fwriting): Likewise.
13901         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13902         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13903
13904 2011-07-31  Bruno Haible  <bruno@clisp.org>
13905
13906         errno: Port to Minix.
13907         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13908         ECONNABORTED are defined.
13909         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13910         GNULIB_defined_ECONNABORTED): New macros.
13911         * lib/strerror-override.h (strerror_override): Test also
13912         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13913         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13914         ECONNABORTED.
13915         * doc/posix-headers/errno.texi: Mention the Minix problem.
13916
13917 2011-07-31  Bruno Haible  <bruno@clisp.org>
13918
13919         Work around declaration collisions on Minix.
13920         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13921         defined, set REPLACE_MBSINIT.
13922         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13923         defined, set REPLACE_MBRTOWC.
13924         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13925         set REPLACE_MBRLEN.
13926         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13927         defined, set REPLACE_MBSRTOWCS.
13928         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13929         defined, set REPLACE_WCRTOMB.
13930         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13931         defined, set REPLACE_WCSRTOMBS.
13932
13933 2011-07-31  Bruno Haible  <bruno@clisp.org>
13934
13935         Add support for Minix with ACK compiler.
13936         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13937         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13938         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13939
13940 2011-07-31  Bruno Haible  <bruno@clisp.org>
13941
13942         Documentation about Minix.
13943         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13944         * doc/glibc-headers/*.texi: Likewise.
13945         * doc/posix-functions/*.texi: Likewise.
13946         * doc/glibc-functions/*.texi: Likewise.
13947
13948 2011-07-31  Bruno Haible  <bruno@clisp.org>
13949
13950         snippet/warn-on-use: Fix indentation.
13951         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13952
13953 2011-07-25  Jim Meyering  <meyering@redhat.com>
13954
13955         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13956         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13957         commands.
13958
13959 2011-07-27  Jim Meyering  <meyering@redhat.com>
13960
13961         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13962         * top/maint.mk (gl_extract_significant_defines_): Now that
13963         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13964         gnulib/lib/signal.in.h, and now that we recommend to
13965         define-if-undefined those two symbols in application code,
13966         we must filter them out of the "significant" list.
13967         This avoids a "make syntax-check" failure in coreutils.
13968
13969 2011-07-26  Eric Blake  <eblake@redhat.com>
13970
13971         warnings: add comments about previous patch
13972         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13973         * m4/include_next.m4: Likewise.
13974         * m4/warn-on-use.m4: Likewise.
13975         * m4/warnings.m4: Likewise, and simplify use.
13976         Suggested by Stefano Lattarini.
13977
13978         include-next, warnings: support older autoconf
13979         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13980         AS_VAR_PUSHDEF in a way that works with older autoconf.
13981         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13982         Reported by Daniel P. Berrange.
13983
13984 2011-07-25  Bruno Haible  <bruno@clisp.org>
13985
13986         fseek, ftell: Fix doc.
13987         * doc/posix-functions/fseek.texi: Reword statement about
13988         AC_SYS_LARGEFILE.
13989         * doc/posix-functions/ftell.texi: Likewise.
13990
13991 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13992             Bruno Haible  <bruno@clisp.org>
13993
13994         Add dependencies to the 'largefile' module.
13995         * modules/fopen (Depends-on): Add 'largefile'.
13996         * modules/freopen (Depends-on): Likewise.
13997         * modules/fseeko (Depends-on): Likewise.
13998         * modules/ftello (Depends-on): Likewise.
13999         * modules/glob (Depends-on): Likewise.
14000         * modules/lseek (Depends-on): Likewise.
14001         * modules/lstat (Depends-on): Likewise.
14002         * modules/mkostemp (Depends-on): Likewise.
14003         * modules/mkostemps (Depends-on): Likewise.
14004         * modules/mkstemp (Depends-on): Likewise.
14005         * modules/mkstemps (Depends-on): Likewise.
14006         * modules/open (Depends-on): Likewise.
14007         * modules/openat (Depends-on): Likewise.
14008         * modules/pread (Depends-on): Likewise.
14009         * modules/pwrite (Depends-on): Likewise.
14010         * modules/scandir (Depends-on): Likewise.
14011         * modules/stat (Depends-on): Likewise.
14012         * modules/tmpfile (Depends-on): Likewise.
14013         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14014         since the containing module now depends on the largefile module.
14015         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14016         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14017         off_t is fixed by gnulib.
14018         * doc/posix-functions/freopen.texi: Likewise.
14019         * doc/posix-functions/fseeko.texi: Likewise.
14020         * doc/posix-functions/fstatat.texi: Likewise.
14021         * doc/posix-functions/ftello.texi: Likewise.
14022         * doc/posix-functions/glob.texi: Likewise.
14023         * doc/posix-functions/lseek.texi: Likewise.
14024         * doc/posix-functions/lstat.texi: Likewise.
14025         * doc/posix-functions/mkstemp.texi: Likewise.
14026         * doc/posix-functions/open.texi: Likewise.
14027         * doc/posix-functions/openat.texi: Likewise.
14028         * doc/posix-functions/pread.texi: Likewise.
14029         * doc/posix-functions/pwrite.texi: Likewise.
14030         * doc/posix-functions/scandir.texi: Likewise.
14031         * doc/posix-functions/stat.texi: Likewise.
14032         * doc/posix-functions/tmpfile.texi: Likewise.
14033         * doc/glibc-functions/mkostemp.texi: Likewise.
14034         * doc/glibc-functions/mkostemps.texi: Likewise.
14035         * doc/glibc-functions/mkstemps.texi: Likewise.
14036
14037 2011-07-25  Bruno Haible  <bruno@clisp.org>
14038
14039         fcntl: Move AC_LIBOBJ invocation to module description.
14040         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14041         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14042
14043         fcntl: Remove call-in from fchdir.m4.
14044         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14045         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14046
14047         dup3: Remove potential call-in from fchdir.m4.
14048         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14050
14051         dup2: Move AC_LIBOBJ invocation to module description.
14052         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14053         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14054         Don't invoke AC_LIBOBJ.
14055         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14056
14057         dup2: Remove call-in from fchdir.m4.
14058         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14060
14061         fclose: Move AC_LIBOBJ invocation to module description.
14062         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14063         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14064         to 1.
14065         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14066
14067         fclose: Remove call-in from close.m4.
14068         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14069         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14070
14071         close: Move AC_LIBOBJ invocation to module description.
14072         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14073         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14074         1.
14075         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14076
14077         close: Remove call-in from fchdir.m4.
14078         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14080
14081         open: Move AC_LIBOBJ invocation to module description.
14082         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14083         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14084         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14085
14086         open: Remove call-in from fchdir.m4.
14087         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14088         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14089
14090         fchdir: Start to remove gl_REPLACE_* idiom.
14091         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14092         (gl_FUNC_FCHDIR): Invoke it.
14093
14094 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14095
14096         * lib/ftell.c (ftell): Comment out cast.
14097
14098         close: use gl_REPLACE_FCLOSE only if defined
14099         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14100         is defined.  The close module doesn't depend on the fclose module
14101         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14103         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14104
14105 2011-07-24  Jim Meyering  <meyering@redhat.com>
14106
14107         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14108         * tests/test-select.h (test_function): Declare as "static".
14109
14110 2011-07-24  Bruno Haible  <bruno@clisp.org>
14111
14112         doc: Mention the effects of AC_SYS_LARGEFILE.
14113         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14114         on this function.
14115         * doc/posix-functions/aio_error.texi: Likewise.
14116         * doc/posix-functions/aio_fsync.texi: Likewise.
14117         * doc/posix-functions/aio_read.texi: Likewise.
14118         * doc/posix-functions/aio_return.texi: Likewise.
14119         * doc/posix-functions/aio_suspend.texi: Likewise.
14120         * doc/posix-functions/aio_write.texi: Likewise.
14121         * doc/posix-functions/fgetpos.texi: Likewise.
14122         * doc/posix-functions/fopen.texi: Likewise.
14123         * doc/posix-functions/freopen.texi: Likewise.
14124         * doc/posix-functions/fsetpos.texi: Likewise.
14125         * doc/posix-functions/fstatvfs.texi: Likewise.
14126         * doc/posix-functions/ftruncate.texi: Likewise.
14127         * doc/posix-functions/ftw.texi: Likewise.
14128         * doc/posix-functions/getrlimit.texi: Likewise.
14129         * doc/posix-functions/glob.texi: Likewise.
14130         * doc/posix-functions/lio_listio.texi: Likewise.
14131         * doc/posix-functions/lockf.texi: Likewise.
14132         * doc/posix-functions/mkstemp.texi: Likewise.
14133         * doc/posix-functions/mmap.texi: Likewise.
14134         * doc/posix-functions/nftw.texi: Likewise.
14135         * doc/posix-functions/openat.texi: Likewise.
14136         * doc/posix-functions/opendir.texi: Likewise.
14137         * doc/posix-functions/posix_fadvise.texi: Likewise.
14138         * doc/posix-functions/posix_fallocate.texi: Likewise.
14139         * doc/posix-functions/pread.texi: Likewise.
14140         * doc/posix-functions/pwrite.texi: Likewise.
14141         * doc/posix-functions/readdir.texi: Likewise.
14142         * doc/posix-functions/readdir_r.texi: Likewise.
14143         * doc/posix-functions/rewinddir.texi: Likewise.
14144         * doc/posix-functions/scandir.texi: Likewise.
14145         * doc/posix-functions/seekdir.texi: Likewise.
14146         * doc/posix-functions/setrlimit.texi: Likewise.
14147         * doc/posix-functions/statvfs.texi: Likewise.
14148         * doc/posix-functions/telldir.texi: Likewise.
14149         * doc/posix-functions/tmpfile.texi: Likewise.
14150         * doc/posix-functions/truncate.texi: Likewise.
14151         * doc/glibc-functions/fallocate.texi: Likewise.
14152         * doc/glibc-functions/fstatfs.texi: Likewise.
14153         * doc/glibc-functions/fts_children.texi: Likewise.
14154         * doc/glibc-functions/fts_read.texi: Likewise.
14155         * doc/glibc-functions/getdirentries.texi: Likewise.
14156         * doc/glibc-functions/mkostemp.texi: Likewise.
14157         * doc/glibc-functions/mkostemps.texi: Likewise.
14158         * doc/glibc-functions/mkstemps.texi: Likewise.
14159         * doc/glibc-functions/preadv.texi: Likewise.
14160         * doc/glibc-functions/pwritev.texi: Likewise.
14161         * doc/glibc-functions/sendfile.texi: Likewise.
14162         * doc/glibc-functions/statfs.texi: Likewise.
14163
14164 2011-07-24  Bruno Haible  <bruno@clisp.org>
14165
14166         doc: Fix typo.
14167         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14168
14169 2011-07-24  Bruno Haible  <bruno@clisp.org>
14170
14171         doc: Mention fsusage.
14172         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14173
14174 2011-07-24  Bruno Haible  <bruno@clisp.org>
14175
14176         doc: Mention new glibc headers and functions.
14177         * doc/glibc-headers/gshadow.texi: New file.
14178         * doc/glibc-functions/endsgent.texi: New file.
14179         * doc/glibc-functions/fgetsgent.texi: New file.
14180         * doc/glibc-functions/fgetsgent_r.texi: New file.
14181         * doc/glibc-functions/getsgent.texi: New file.
14182         * doc/glibc-functions/getsgent_r.texi: New file.
14183         * doc/glibc-functions/getsgnam.texi: New file.
14184         * doc/glibc-functions/getsgnam_r.texi: New file.
14185         * doc/glibc-functions/putsgent.texi: New file.
14186         * doc/glibc-functions/setsgent.texi: New file.
14187         * doc/glibc-functions/sgetsgent.texi: New file.
14188         * doc/glibc-functions/sgetsgent_r.texi: New file.
14189         * doc/glibc-functions/malloc_info.texi: New file.
14190         * doc/glibc-functions/preadv.texi: New file.
14191         * doc/glibc-functions/pwritev.texi: New file.
14192         * doc/glibc-functions/register_printf_modifier.texi: New file.
14193         * doc/glibc-functions/register_printf_specifier.texi: New file.
14194         * doc/glibc-functions/register_printf_type.texi: New file.
14195         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14196         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14197         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14198         * doc/glibc-functions/pthread_getname_np.texi: New file.
14199         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14200         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14201         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14202         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14203         * doc/glibc-functions/pthread_setname_np.texi: New file.
14204         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14205         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14206         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14207         * doc/glibc-functions/qsort_r.texi: New file.
14208         * doc/glibc-functions/quick_exit.texi: New file.
14209         * doc/glibc-functions/syncfs.texi: New file.
14210         * doc/gnulib.texi: Include them.
14211         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14212         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14213         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14214         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14215         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14216         * doc/glibc-functions/execvpe.texi: Likewise.
14217
14218 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14219
14220         ftell: don't include <unistd.h>
14221         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14222         guaranteed to define off_t, and the ftell module depends on the
14223         stdio module.
14224
14225         ftell: do not assume wraparound signed arithmetic
14226         * lib/ftell.c: Include <limits.h>.
14227         (ftell): Don't assume wraparound signed arithmetic.
14228
14229 2011-07-24  Bruno Haible  <bruno@clisp.org>
14230
14231         close: No longer depend on module 'fclose'.
14232         * modules/close (Depends-on): Remove fclose.
14233         * NEWS: Mention the change.
14234         Suggested by Sam Steingold <sds@gnu.org>.
14235
14236 2011-07-24  Bruno Haible  <bruno@clisp.org>
14237
14238         fsusage: Enable large volume support on AIX >= 5.2.
14239         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14240         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14241         instead of STAT_STATVFS.
14242         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14243
14244         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14245         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14246         f_blocks field only on MacOS X.
14247
14248         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14249         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14250         * modules/fsusage (Depends-on): Add largefile.
14251
14252 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14253
14254         * README: Modernize discussion of signed integers.
14255         Assuming overflow wraparound is no longer safe.
14256         Mention ones' complement and signed magnitude.
14257
14258 2011-07-22  Bruno Haible  <bruno@clisp.org>
14259
14260         select tests, pselect tests: Refactor.
14261         * tests/test-select.h: New file, extracted from tests/test-select.c.
14262         (select_fn): New type.
14263         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14264         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14265         test_pipe): Add my_select argument.
14266         (test_function): Renamed from main. Add my_select argument.
14267         * tests/test-select.c: Move most code to tests/test-select.h. Include
14268         test-select.h.
14269         * modules/select-tests (Files): Add tests/test-select.h.
14270         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14271         (my_select, main): New functions.
14272         * modules/pselect-tests (Files): Add tests/test-select.h,
14273         tests/macros.h, tests/signature.h.
14274         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14275         (configure.ac): Check for <sys/wait.h>.
14276
14277 2011-07-22  Bruno Haible  <bruno@clisp.org>
14278
14279         sys_select tests: Check the signature of FD_*.
14280         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14281         signature tests from here...
14282         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14283         here.
14284         * modules/sys_select-tests (Files): Add tests/signature.h.
14285
14286 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14287
14288         largefile: new module, replacing large-inode
14289         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14290         * MODULES.html.sh: Add largefile, remove large-inode.
14291         * modules/largefile, m4/largefile.m4: New files.
14292         * modules/large-inode, m4/large-inode.m4: Remove.
14293
14294         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14295         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14296         implementations that use only 32 bits to count blocks.
14297         On typical hosts with 1024-byte blocks, this fails with file
14298         systems as small as 4 TiB.  Problem reported by Herb Wartens
14299         <http://debbugs.gnu.org/9140> and this should also fix a similar
14300         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14301
14302         large-inode: New module
14303         * MODULES.html.sh: Add it.
14304         * modules/large-inode, m4/large-inode.m4: New files.
14305
14306         extensions: Enable extensions on MacOS X 10.5 and later.
14307         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14308
14309 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14310
14311         file-has-acl: use acl_extended_file_nofollow if available
14312         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14313         (acl_extended_file): New macro.
14314         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14315         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14316
14317 2011-07-21  Bruno Haible  <bruno@clisp.org>
14318
14319         Declare system functions in a way that works with C++.
14320         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14321         declare fdopendir as extern "C".
14322         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14323         declare frexpl as extern "C".
14324         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14325         declare gai_strerror as extern "C".
14326         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14327         programs, declare gai_strerror as extern "C".
14328         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14329         declare getlogin_r as extern "C".
14330         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14331         as extern "C".
14332         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14333         declare ldexpl as extern "C".
14334         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14335         as extern "C".
14336         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14337         program, declare getmntinfo as extern "C".
14338         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14339         stpncpy as extern "C".
14340         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14341         program, declare __xpg_strerror_r as extern "C".
14342         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14343         strndup as extern "C".
14344         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14345         declare memset and bzero as extern "C".
14346         Reported by Sam Steingold <sds@gnu.org>.
14347
14348 2011-07-12  Jim Meyering  <meyering@redhat.com>
14349
14350         maint.mk: prohibit inclusion of "verify.h" without use
14351         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14352
14353 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14354
14355         timer-time: A new module to check for timer_settime()
14356         * m4/timer_time.m4: Check for the posix function.
14357         * modules/timer-time: Add the new module.
14358         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14359         Mention it.
14360
14361 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14362             Bruno Haible  <bruno@clisp.org>
14363
14364         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14365         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14366         not defined, assume POSIX threads and look for pthread_sigmask in
14367         $LIBS, without changing $CPPFLAGS.
14368
14369 2011-07-19  Bruno Haible  <bruno@clisp.org>
14370
14371         strstr: Update cross-compilation guess.
14372         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14373         CPUs, guess no, in view of glibc
14374         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14375         Suggested by Eric Blake. Reported by Reuben Thomas.
14376
14377 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14378
14379         getopt-gnu: suppress core dumps from detection code
14380         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14381         to suppress core dumps that may well occur on glibc systems.
14382         * modules/getopt-gnu: Depend on nocrash.
14383
14384 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14385
14386         pthread_sigmask: ensure usleep is declared
14387         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14388         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14389
14390 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14391
14392         doc: Document NonStop portability issues.
14393         * doc/posix-functions/sigaction.texi (sigaction):
14394         * doc/posix-headers/signal.texi (signal.h):
14395         Document NonStop.  See Joachim Schmitz in
14396         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14397
14398 2011-07-15  Bruno Haible  <bruno@clisp.org>
14399
14400         ffsl, ffsll: Avoid unportable behaviour.
14401         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14402
14403 2011-07-15  Bruno Haible  <bruno@clisp.org>
14404
14405         ffs: More tests.
14406         * tests/test-ffs.c (NBITS): New macro.
14407         (main): Add more tests.
14408         * tests/test-ffsl.c (NBITS): New macro.
14409         (main): Add more tests.
14410         * tests/test-ffsll.c (NBITS): New macro.
14411         (main): Add more tests.
14412
14413 2011-07-15  Eric Blake  <eblake@redhat.com>
14414
14415         ffsl, ffsll: new modules
14416         * modules/ffsl: New file.
14417         * modules/ffsll: Likewise.
14418         * m4/ffsl.m4: Likewise.
14419         * m4/ffsll.m4: Likewise.
14420         * lib/ffsl.c: Likewise.
14421         * lib/ffsl.h: Likewise.
14422         * lib/ffsll.c: Likewise.
14423         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14424         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14425         * modules/string (Makefile.am): Substitute witnesses.
14426         * lib/strings.in.h (ffsl, ffsll): Declare.
14427         * modules/ffsl-tests: New test file.
14428         * modules/ffsll-tests: Likewise.
14429         * tests/test-ffsl.c: Likewise.
14430         * tests/test-ffsll.c: Likewise.
14431         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14432         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14433         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14434
14435         ffs: fix m4 prerequisite
14436         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14437
14438         ffs: avoid undefined behavior
14439         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14440         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14441         Reported by Bruno Haible.
14442
14443 2011-07-12  Bruno Haible  <bruno@clisp.org>
14444
14445         pthread_sigmask: Rely on module 'threadlib'.
14446         * modules/pthread_sigmask (Depends-on): Add threadlib.
14447         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14448         is defined.
14449
14450 2011-07-12  Bruno Haible  <bruno@clisp.org>
14451
14452         regex: Depend on module 'strcase'.
14453         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14454
14455 2011-07-12  Jim Meyering  <meyering@redhat.com>
14456
14457         warn-on-use: fix typo in file name
14458         * modules/snippet/warn-on-use (Files): Correct file name:
14459         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14460
14461 2011-07-12  Bruno Haible  <bruno@clisp.org>
14462
14463         strings: Document module.
14464         * doc/posix-headers/strings.texi: Mention module 'strings'.
14465
14466 2011-07-12  Bruno Haible  <bruno@clisp.org>
14467
14468         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14469         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14470         (Files, Makefile.am): Update.
14471         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14472         * modules/stdlib (Depends-on): Update.
14473
14474 2011-07-12  Bruno Haible  <bruno@clisp.org>
14475
14476         * NEWS: Mention the changes.
14477
14478         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14479         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14480         (Files, Makefile.am): Update.
14481         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14482         * modules/arpa_inet (Depends-on): Update.
14483         * modules/ctype (Depends-on): Update.
14484         * modules/dirent (Depends-on): Update.
14485         * modules/fcntl-h (Depends-on): Update.
14486         * modules/glob (Depends-on): Update.
14487         * modules/iconv-h (Depends-on): Update.
14488         * modules/inttypes-incomplete (Depends-on): Update.
14489         * modules/langinfo (Depends-on): Update.
14490         * modules/locale (Depends-on): Update.
14491         * modules/math (Depends-on): Update.
14492         * modules/netdb (Depends-on): Update.
14493         * modules/poll-h (Depends-on): Update.
14494         * modules/pty (Depends-on): Update.
14495         * modules/search (Depends-on): Update.
14496         * modules/signal (Depends-on): Update.
14497         * modules/spawn (Depends-on): Update.
14498         * modules/stdio (Depends-on): Update.
14499         * modules/stdlib (Depends-on): Update.
14500         * modules/string (Depends-on): Update.
14501         * modules/strings (Depends-on): Update.
14502         * modules/sys_file (Depends-on): Update.
14503         * modules/sys_ioctl (Depends-on): Update.
14504         * modules/sys_select (Depends-on): Update.
14505         * modules/sys_socket (Depends-on): Update.
14506         * modules/sys_stat (Depends-on): Update.
14507         * modules/sys_time (Depends-on): Update.
14508         * modules/sys_times (Depends-on): Update.
14509         * modules/sys_utsname (Depends-on): Update.
14510         * modules/sys_wait (Depends-on): Update.
14511         * modules/termios (Depends-on): Update.
14512         * modules/time (Depends-on): Update.
14513         * modules/unistd (Depends-on): Update.
14514         * modules/wchar (Depends-on): Update.
14515         * modules/wctype-h (Depends-on): Update.
14516         * MODULES.html.sh (Support for building libraries and executables):
14517         Update.
14518
14519         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14520         * modules/snippet/unused-parameter: Renamed from
14521         modules/unused-parameter.
14522         (Files, Makefile.am): Update.
14523         * build-aux/snippet/unused-parameter.h: Renamed from
14524         build-aux/unused-parameter.h.
14525         * modules/selinux-h (Depends-on): Update.
14526         * modules/unistr/base (Depends-on): Update.
14527         * MODULES.html.sh (Core language properties): Update.
14528
14529         Rename module 'link-warning' to 'snippet/link-warning'.
14530         * modules/snippet/link-warning: Renamed from modules/link-warning.
14531         (Files, Makefile.am): Update.
14532         * build-aux/snippet/link-warning.h: Renamed from
14533         build-aux/link-warning.h.
14534         * MODULES.html.sh (Support for building libraries and executables):
14535         Update.
14536
14537         Rename module 'c++defs' to 'snippet/c++defs'.
14538         * modules/snippet/c++defs: Renamed from modules/c++defs.
14539         (Files, Makefile.am): Update.
14540         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14541         * modules/arpa_inet (Depends-on): Update.
14542         * modules/ctype (Depends-on): Update.
14543         * modules/dirent (Depends-on): Update.
14544         * modules/fcntl-h (Depends-on): Update.
14545         * modules/glob (Depends-on): Update.
14546         * modules/iconv-h (Depends-on): Update.
14547         * modules/langinfo (Depends-on): Update.
14548         * modules/locale (Depends-on): Update.
14549         * modules/math (Depends-on): Update.
14550         * modules/netdb (Depends-on): Update.
14551         * modules/poll-h (Depends-on): Update.
14552         * modules/pty (Depends-on): Update.
14553         * modules/search (Depends-on): Update.
14554         * modules/signal (Depends-on): Update.
14555         * modules/spawn (Depends-on): Update.
14556         * modules/stdio (Depends-on): Update.
14557         * modules/stdlib (Depends-on): Update.
14558         * modules/string (Depends-on): Update.
14559         * modules/strings (Depends-on): Update.
14560         * modules/sys_ioctl (Depends-on): Update.
14561         * modules/sys_select (Depends-on): Update.
14562         * modules/sys_socket (Depends-on): Update.
14563         * modules/sys_stat (Depends-on): Update.
14564         * modules/sys_time (Depends-on): Update.
14565         * modules/sys_wait (Depends-on): Update.
14566         * modules/termios (Depends-on): Update.
14567         * modules/time (Depends-on): Update.
14568         * modules/unistd (Depends-on): Update.
14569         * modules/wchar (Depends-on): Update.
14570         * modules/wctype-h (Depends-on): Update.
14571
14572         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14573         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14574         (Files, Makefile.am): Update.
14575         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14576         * modules/argv-iter (Depends-on): Update.
14577         * modules/arpa_inet (Depends-on): Update.
14578         * modules/dirent (Depends-on): Update.
14579         * modules/fcntl-h (Depends-on): Update.
14580         * modules/fnmatch (Depends-on): Update.
14581         * modules/getopt-posix (Depends-on): Update.
14582         * modules/glob (Depends-on): Update.
14583         * modules/iconv-h (Depends-on): Update.
14584         * modules/inttypes-incomplete (Depends-on): Update.
14585         * modules/locale (Depends-on): Update.
14586         * modules/math (Depends-on): Update.
14587         * modules/netdb (Depends-on): Update.
14588         * modules/search (Depends-on): Update.
14589         * modules/signal (Depends-on): Update.
14590         * modules/spawn (Depends-on): Update.
14591         * modules/stdio (Depends-on): Update.
14592         * modules/stdlib (Depends-on): Update.
14593         * modules/string (Depends-on): Update.
14594         * modules/strings (Depends-on): Update.
14595         * modules/sys_socket (Depends-on): Update.
14596         * modules/sys_stat (Depends-on): Update.
14597         * modules/sys_time (Depends-on): Update.
14598         * modules/sys_times (Depends-on): Update.
14599         * modules/sys_utsname (Depends-on): Update.
14600         * modules/time (Depends-on): Update.
14601         * modules/unistd (Depends-on): Update.
14602         * modules/wchar (Depends-on): Update.
14603         * MODULES.html.sh (Support for building libraries and executables):
14604         Update.
14605
14606 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14607
14608         Improvements on _Noreturn and related modules.
14609
14610         modules/_Exit-tests: test _Noreturn too
14611         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14612         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14613         (main): Use them.
14614
14615         stdnoreturn, stdnoreturn-tests: remove modules
14616         They're not needed here and a bit premature for use elsewhere.  See
14617         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14618         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14619         * tests/test-stdnoreturn.c: Remove files.
14620         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14621         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14622         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14623         and using noreturn.
14624         * modules/openat, modules/sigpipe-die, modules/xalloc:
14625         * modules/xmemdup0, modules/xstrtol:
14626         Remove dependency on stdnoreturn.
14627
14628         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14629         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14630         Reparenthesize to avoid GCC warning.
14631         Support Microsoft's syntax.
14632         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14633
14634         _Noreturn-tests: remove module
14635         * modules/_Noreturn-tests: Remove.
14636         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14637         * tests/test-_Noreturn.c: Remove.
14638         * tests/test-stdnoreturn.c: Merge from the old
14639         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14640
14641 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14642
14643         _Noreturn, stdnoreturn, and related modules.
14644
14645         * top/maint.mk: Adjust to new noreturn support.
14646         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14647         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14648
14649         xalloc: use stdnoreturn.h
14650         * lib/xalloc.h: Include <stdnoreturn.h>.
14651         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14652         * modules/xalloc (Depends-on): Add stdnoreturn.
14653
14654         xstrtol: use stdnoreturn.h
14655         * lib/xstrtol.h: Include <stdnoreturn.h>.
14656         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14657         * modules/xstrtol (Depends-on): Add stdnoreturn.
14658
14659         xmemdup0: use stdnoreturn.h
14660         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14661         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14662         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14663
14664         sigpipe-die: use stdnoreturn.h
14665         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14666         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14667         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14668
14669         openat: use stdnoreturn.h
14670         * lib/openat.h: Include <stdnoreturn.h>.
14671         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14672         * modules/openat (Depends-on): Add stdnoreturn.
14673
14674         * lib/openat-die.c (openat_save_fail): Modernize comment.
14675
14676         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14677
14678         * lib/glthread/thread.h: Modernize comment.
14679
14680         obstack: use _Noreturn
14681         * lib/obstack.c (__attribute__): Remove macro.
14682         (print_and_abort): Use _Noreturn.
14683
14684         c-stack: use _Noreturn
14685         * lib/c-stack.c (die, overflow_handler, segv_handler):
14686         Use _Noreturn rather than __attribute__((noreturn)).
14687
14688         argmatch-tests, exclude_tests: use _Noreturn
14689         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14690         Remove.
14691         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14692
14693         stdlib: use _Noreturn
14694         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14695         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14696         * modules/stdlib (Depends-on): Add _Noreturn.
14697         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14698
14699         stdnoreturn-tests: new module
14700         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14701
14702         stdnoreturn: new module
14703         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14704         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14705
14706         _Noreturn-tests: new module
14707         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14708
14709         _Noreturn: new module
14710         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14711         New section, mentioning it.
14712         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14713
14714         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14715
14716 2011-07-11  Eric Blake  <eblake@redhat.com>
14717
14718         ffs: new module
14719         * modules/ffs: New file.
14720         * m4/ffs.m4: Likewise.
14721         * lib/ffs.c: Likewise.
14722         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14723         * modules/strings (Makefile.am): Substitute witness.
14724         (Depends-on): Add c++defs.
14725         * lib/strings.in.h (ffs): Declare.
14726         * modules/ffs-tests: New test file.
14727         * tests/test-ffs.c: Test new module.
14728         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14729         * doc/posix-functions/ffs.texi (ffs): Likewise.
14730
14731         regex: avoid compiler warning
14732         * lib/regex.c (includes): Include <strings.h>, for use of
14733         strcasecmp in regcomp.c.
14734         Reported by Joachim Schmitz.
14735
14736 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14737
14738         stdint: respect system's intmax_t if INTMAX_MAX
14739         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14740         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14741         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14742         long but int64_t is long long, and where we will clash with the
14743         system intmax_t if we override it.  See
14744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14745         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14746         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14747         similarly for UINTMAX_C.
14748
14749 2011-07-08  Bruno Haible  <bruno@clisp.org>
14750
14751         pthread_sigmask tests: Avoid a compiler warning.
14752         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14753         non-zero.
14754
14755         sigprocmask tests: A better way to avoid a compiler warning.
14756         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14757         (main): Complain if system() returns non-zero.
14758         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14759
14760 2011-07-08  Bruno Haible  <bruno@clisp.org>
14761
14762         pthread_sigmask: Work around IRIX bug.
14763         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14764         bug.
14765         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14766         there may be unblocked pending signals.
14767         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14768
14769 2011-07-08  Bruno Haible  <bruno@clisp.org>
14770
14771         pthread_sigmask: Work around Cygwin bug.
14772         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14773         bug.
14774         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14775         the system's pthread_sigmask function.
14776         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14777
14778 2011-07-08  Bruno Haible  <bruno@clisp.org>
14779
14780         pthread_sigmask: Work around bug in single-threaded implementation.
14781         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14782         FreeBSD, HP-UX, Solaris bug.
14783         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14784         * lib/pthread_sigmask.c: Include <stddef.h>.
14785         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14786         the system's pthread_sigmask function.
14787         * modules/pthread_sigmask (configure.ac): Invoke
14788         gl_PREREQ_PTHREAD_SIGMASK.
14789         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14790         HP-UX, Solaris.
14791
14792 2011-07-08  Eric Blake  <eblake@redhat.com>
14793
14794         test-sigprocmask: avoid compiler warning
14795         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14796         * tests/test-sigprocmask.c (main): Use it to silence warning.
14797         Reported by Jim Meyering.
14798
14799         test-snprintf: avoid compiler warning
14800         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14801         * tests/test-vsnprintf.c (main): Likewise.
14802         Reported by Jim Meyering.
14803
14804 2011-07-08  Bruno Haible  <bruno@clisp.org>
14805
14806         Tests for module 'pthread_sigmask'.
14807         * modules/pthread_sigmask-tests: New file.
14808         * tests/test-pthread_sigmask1.c: New file, based on
14809         tests/test-sigprocmask.c.
14810         * tests/test-pthread_sigmask2.c: New file.
14811
14812 2011-07-08  Jim Meyering  <meyering@redhat.com>
14813
14814         test-getopt.h: avoid warning about an unused variable
14815         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14816
14817 2011-07-07  Jim Meyering  <meyering@redhat.com>
14818
14819         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14820         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14821         now that it no longer contains leading TABs.
14822         Remove unused "url=FIXME" statement.
14823
14824 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14825
14826         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14827         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14828         When gl_THREADLIB is not in use, assume that the POSIX sematics
14829         are desired.  This is better for Emacs, which uses POSIX semantics
14830         on GNUish and/or POSIXish platforms, and does not use threads at
14831         all otherwise.
14832
14833         pthread_sigmask: fix typo when testing for libraries
14834         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14835         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14836
14837 2011-07-08  Eric Blake  <eblake@redhat.com>
14838
14839         fts: introduce FTS_NOATIME
14840         * lib/fts_.h (FTS_NOATIME): New bit flag.
14841         (FTS_OPTIONMASK): Adjust.
14842         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14843         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14844
14845 2011-07-08  Bruno Haible  <bruno@clisp.org>
14846
14847         Tests for module 'thread'.
14848         * modules/thread-tests: New file.
14849         * tests/test-thread_self.c: New file.
14850         * tests/test-thread_create.cc: New file.
14851
14852 2011-07-08  Bruno Haible  <bruno@clisp.org>
14853
14854         thread: Avoid gcc warnings when using gl_thread_self().
14855         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14856         'void *'.
14857         (gl_thread_self_pointer): Update.
14858
14859 2011-07-07  Bruno Haible  <bruno@clisp.org>
14860
14861         signal-c++-tests: Check declaration of pthread_sigmask.
14862         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14863         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14864         $(LIB_PTHREAD_SIGMASK).
14865
14866 2011-07-07  Bruno Haible  <bruno@clisp.org>
14867
14868         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14869         * lib/signal.in.h (pthread_sigmask): Override if
14870         REPLACE_PTHREAD_SIGMASK is 1.
14871         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14872         REPLACE_PTHREAD_SIGMASK.
14873         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14874         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14875         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14876         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14877         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14878
14879 2011-07-07  Bruno Haible  <bruno@clisp.org>
14880
14881         pthread_sigmask: Ensure declaration in <signal.h>.
14882         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14883         include <pthread.h>.
14884         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14885         problem.
14886
14887 2011-07-07  Bruno Haible  <bruno@clisp.org>
14888
14889         pthread_sigmask: Document the module.
14890         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14891
14892 2011-07-07  Bruno Haible  <bruno@clisp.org>
14893
14894         pthread_sigmask: Follow gnulib conventions.
14895         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14896         gl_PTHREAD_SIGMASK.
14897         * modules/pthread_sigmask (configure.ac): Update.
14898
14899 2011-07-07  Bruno Haible  <bruno@clisp.org>
14900
14901         pthread_sigmask: Make declaration C++ safe.
14902         * lib/signal.in.h: In two special conditions, just do an #include_next.
14903         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14904         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14905         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14906         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14907         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14908         not REPLACE_PTHREAD_MASK.
14909         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14910         not REPLACE_PTHREAD_MASK.
14911         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14912
14913 2011-07-07  Bruno Haible  <bruno@clisp.org>
14914
14915         pthread_sigmask: Fix return value.
14916         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14917         * lib/pthread_sigmask.c: New file.
14918         * modules/pthread_sigmask (Files): Add it.
14919         (configure.ac): Invoke AC_LIBOBJ.
14920
14921 2011-07-07  Eric Blake  <eblake@redhat.com>
14922
14923         getopt: more portable argv creation
14924         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14925         const, use char arrays rather than strings.
14926         Suggested by Paul Eggert.
14927
14928 2011-07-07  Bruno Haible  <bruno@clisp.org>
14929
14930         Tests for module 'sigprocmask'.
14931         * modules/sigprocmask-tests: New file.
14932         * tests/test-sigprocmask.c: New file.
14933
14934 2011-07-07  Bruno Haible  <bruno@clisp.org>
14935
14936         float tests: Tweak.
14937         * tests/test-float.c (main): Tweak skip message.
14938
14939 2011-07-07  Eric Blake  <eblake@redhat.com>
14940
14941         getopt: avoid compiler warning during configure
14942         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14943         assigning string literals to non-const pointer.
14944
14945         getopt-gnu: avoid crash in glibc getopt
14946         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14947         * tests/test-getopt.h (test_getopt): Enhance test.
14948         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14949         * doc/posix-functions/getopt.texi (getopt): Document it.
14950         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14951         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14952         Likewise.
14953
14954 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14955
14956         getopt: handle W; without long options in getopt [BZ #12922]
14957         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14958         but no long options are defined, just return 'W'.
14959
14960 2011-07-07  Bruno Haible  <bruno@clisp.org>
14961
14962         Avoid literal tabs.
14963         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14964         variable containing a tab instead of a literal tab.
14965         Reported by Jim Meyering.
14966
14967 2011-07-07  Bruno Haible  <bruno@clisp.org>
14968
14969         Comments.
14970         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14971
14972 2011-07-06  Bruno Haible  <bruno@clisp.org>
14973
14974         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14975         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14976         <winsock2.h>.
14977         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14978         lib/sys_socket.in.h.
14979         (close, gethostname): Hide declarations from <winsock2.h>.
14980         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14981         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14982         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14983         (select): Don't override if gnulib's <sys/select.h> was already
14984         included.
14985         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14986         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14987         setsockopt, shutdown, select): Tweak indentation.
14988
14989 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14990
14991         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14992         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14993         in an application that does not use the sys_select module.
14994
14995 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14996
14997         poll: do not return 0 on timeout=-1
14998         * lib/poll.c: Loop with yield if no events occured
14999
15000 2011-07-06  Eric Blake  <eblake@redhat.com>
15001
15002         pthread_sigmask: always replace when not using pthread
15003         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15004         replacement when using some threading other than pthread.  Fix
15005         logic bug.
15006
15007 2011-07-06  Bruno Haible  <bruno@clisp.org>
15008
15009         Comments.
15010         * m4/printf.m4: Update comments about mingw.
15011
15012 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15013
15014         sys_select: define sigset_t more portably
15015         * lib/sys_select.in.h: Always include <sys/types.h>, since
15016         we now need sigset_t and mingw defines it there.
15017         Include <signal.h> before split inclusion guard, to avoid
15018         mishaps on Solaris, whose <signal.h> eventually includes us.
15019         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15020         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15021         which come from ...
15022         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15023         gl_CHECK_TYPE_SIGSET_T.
15024         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15025         does the real work.
15026         * modules/sys_select (Depends-on): Add 'signal'.
15027
15028         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15029         Suggested by Bruno Haible.
15030
15031         pselect: Use pthread_sigmask, not sigprocmask.
15032         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15033         multithreaded apps better than sigprocmask does.
15034         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15035         sigprocmask directly.
15036
15037 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15038
15039         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15040         Don't #undef,  since we don't need any underlying pselect.
15041         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15042         (Depends-on): Add select.
15043         (Link): Add $(LIBSOCKET).
15044         These changes suggested by Bruno Haible.
15045
15046         pselect: document better
15047         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15048         * doc/posix-functions/pselect.texi (pselect): Document new module.
15049
15050         pthread_sigmask: new module
15051         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15052         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15053         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15054         This is done only as a macro; I don't know how well that'll
15055         work for C++.  Move <sys/types.h> include before the include_next,
15056         to avoid mishap on Solaris.
15057         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15058         * modules/signal (Makefile.am): Substitute the check's results.
15059         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15060
15061         test-pselect: new module
15062         * modules/pselect-tests, tests/test-pselect.c: New files.
15063         * tests/test-select.c, tests/test-sys_select-c++.cc:
15064         If TEST_PSELECT is defined, test pselect instead of testing select.
15065
15066         * tests/test-sys_select.c (sigset_t): Test for it, too.
15067         Suggested by Bruno Haible.
15068
15069 2011-07-05  Eric Blake  <eblake@redhat.com>
15070
15071         snprintf: guarantee %1$d, for libintl
15072         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15073         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15074         * doc/posix-functions/snprintf.texi (snprintf): Update.
15075         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15076         * tests/test-snprintf.c (main): Enhance test.
15077         * tests/test-vsnprintf.c (main): Likewise.
15078
15079 2011-07-05  Jim Meyering  <meyering@redhat.com>
15080
15081         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15082         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15083         per Bruno's request, to accommodate this idiom (no space after "#")
15084         even when the function is inside an #if block:
15085         char *
15086         gets (char *s)
15087         #undef gets
15088         {
15089           ...
15090         }
15091
15092 2011-07-04  Jim Meyering  <meyering@redhat.com>
15093
15094         maint: indent with spaces, not TABs, and add a rule to check this
15095         * tests/test-userspec.c: Indent with spaces, not TABs.
15096         * tests/test-argp.c: Likewise.
15097         * tests/test-c-stack2.sh: Likewise.
15098         * tests/test-parse-duration.sh: Likewise
15099         * m4/strtod.m4: Likewise.
15100         * m4/alloca.m4: Likewise.
15101         * m4/pselect.m4: Likewise.
15102         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15103
15104 2011-07-03  Jim Meyering  <meyering@redhat.com>
15105
15106         maint.mk: correct omissions in prohibit_argmatch_without_use check
15107         This rule would mistakenly report that argmatch.h is included without
15108         use even when both the argmatch and invalid_arg macro were used.
15109         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15110         of argmatch and invalid_arg.
15111
15112 2011-07-03  Bruno Haible  <bruno@clisp.org>
15113
15114         Comments about EINTR.
15115         * lib/safe-read.h: Explain the purpose of this module.
15116         * lib/safe-write.h: Likewise.
15117         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15118         module.
15119         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15120         module.
15121         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15122
15123 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15124
15125         xnanosleep: Rewrite to use new dtotimespec module.
15126         It has the conversion code that used to be in xnanosleep.
15127         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15128         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15129         (TIME_T_MAX): Remove.
15130         (xnanosleep): Rewrite in terms of dtotimespec.
15131         * modules/xnanosleep (Depends-on): Add dtotimespec.
15132         Remove intprops, stdbool.
15133
15134         timespec-add, timespec-sub: new modules
15135         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15136         * lib/timespec-add.c, lib/timespec-sub.c:
15137         * modules/timespec-add, modules/timespec-sub: New files.
15138
15139         dtotimespec: new module
15140         * lib/timespec.h (dtotimespec): New decl.
15141         * lib/dtotimespec.c, modules/dtotimespec: New files.
15142
15143         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15144
15145         pselect: new module
15146         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15147         (pselect): New decls.
15148         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15149         since the standard pselect decl uses 'restrict'.
15150         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15151         HAVE_PSELECT, REPLACE_PSELECT.
15152         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15153         HAVE_PSELECT, REPLACE_PSELECT.
15154         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15155
15156         sys_select: don't depend on sys_socket
15157         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15159         This fix works on GNU and GNU-like platforms, but has not been tested
15160         on native Windows.
15161         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15162         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15163         gl_HEADER_SYS_SOCKET.
15164         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15165         gl_PREREQ_SYS_H_WINSOCK2.
15166
15167 2011-06-29  Eric Blake  <eblake@redhat.com>
15168
15169         pipe2: fix C89 compile problem
15170         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15171         Reported by Bruno Haible.
15172
15173         pipe, pipe2: don't corrupt fd on error
15174         * lib/pipe.c (pipe): Leave fd unchanged on error.
15175         * lib/pipe2.c (pipe2): Likewise.
15176         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15177         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15178
15179 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15180
15181         mmap-anon: do not use regular expressions inadvertently
15182         * m4/mmap-anon.m4: Remove trailing period from strings sought
15183         in the output.
15184
15185 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15186
15187         nanosleep: fix integer overflow problem
15188         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15189         arithmetic wraps around on overflow.
15190
15191         nanosleep: simplify carrying
15192         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15193         first call to the underyling nanosleep, not for the last one.
15194         This doesn't fix any bugs, but it simplifies the computation of
15195         the remaining delay.  Found while auditing integer overflow issues.
15196
15197         dup2: remove test for existence of fcntl
15198         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15199         "#if HAVE_FCNTL", in the configure-time test program.
15200         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15201         and therefore speeds up "configure" a bit.  Found while
15202         adding the dup2 module to Emacs.
15203
15204 2011-06-24  Eric Blake  <eblake@redhat.com>
15205
15206         maint.mk: enhance useless header checks
15207         * top/maint.mk (_sc_header_without_use): Check both include
15208         styles.
15209         (sc_prohibit_assert_without_use)
15210         (sc_prohibit_close_stream_without_use)
15211         (sc_prohibit_getopt_without_use)
15212         (sc_prohibit_quotearg_without_use)
15213         (sc_prohibit_quote_without_use)
15214         (sc_prohibit_long_options_without_use)
15215         (sc_prohibit_inttostr_without_use)
15216         (sc_prohibit_ignore_value_without_use)
15217         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15218         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15219         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15220         (sc_prohibit_hash_pjw_without_use)
15221         (sc_prohibit_safe_read_without_use)
15222         (sc_prohibit_argmatch_without_use)
15223         (sc_prohibit_canonicalize_without_use)
15224         (sc_prohibit_root_dev_ino_without_use)
15225         (sc_prohibit_openat_without_use)
15226         (sc_prohibit_c_ctype_without_use)
15227         (sc_prohibit_signal_without_use)
15228         (sc_prohibit_stdio--_without_use)
15229         (sc_prohibit_stdio-safer_without_use)
15230         (sc_prohibit_strings_without_use)
15231         (sc_prohibit_intprops_without_use)
15232         (sc_prohibit_stddef_without_use)
15233         (sc_prohibit_xfreopen_without_use): Update clients.
15234
15235 2011-06-24  Jim Meyering  <meyering@redhat.com>
15236
15237         syntax-check: keep one maint.mk rule in sync with its header
15238         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15239         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15240         I prefer to avoid temporary files here, so use <(...), but that
15241         is not supported by /bin/sh, so...
15242         (SHELL): Define to /bin/bash.
15243
15244 2011-06-24  Eric Blake  <eblake@redhat.com>
15245
15246         maint.mk: update sc_prohibit_intprops_without_use
15247         * top/maint.mk (_intprops_names): Match recent changes.
15248
15249 2011-06-24  Bruno Haible  <bruno@clisp.org>
15250
15251         strerror-override: No-op tweak.
15252         * lib/strerror-override.h (strerror_override): Reorder conditions,
15253         for consistency with lib/strerror-override.c.
15254
15255 2011-06-23  Eric Blake  <eblake@redhat.com>
15256
15257         maint.mk: test further PATH_MAX issues
15258         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15259         (sc_prohibit_path_max_allocation): ...and also test alloca.
15260         Suggested by Jim Meyering.
15261
15262 2011-06-22  Eric Blake  <eblake@redhat.com>
15263
15264         maint.mk: add syntax-check to avoid char[PATH_MAX]
15265         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15266
15267         stat: be robust to PATH_MAX definition
15268         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15269         * modules/stat (Depends-on): Add verify.
15270
15271         link: work around IRIX bug
15272         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15273         * lib/link.c (rpl_link): Work around it.
15274         * tests/test-link.h (test_link): Enhance test.
15275         * doc/posix-functions/link.texi (link): Document the bug.
15276
15277         getopt: silence clang warning
15278         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15279         dereference.
15280         Reported by Gustavo Martin Domato.
15281
15282 2011-06-22  Jim Meyering  <meyering@redhat.com>
15283
15284         bootstrap: do not insert a blank line into each .gitignore file
15285         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15286
15287 2011-06-21  Eric Blake  <eblake@redhat.com>
15288
15289         perror: test for output mismatch
15290         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15291         perror on IRIX.
15292
15293         strerror_r: fix OpenBSD behavior on out-of-range
15294         * lib/strerror_r.c (strerror_r): Always use maximal string.
15295         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15296
15297         strerror_r: fix OpenBSD behavior on 0
15298         * lib/strerror-override.c (strerror_override): Also override 0
15299         when needed.
15300         * lib/strerror-override.h (strerror_override): Likewise.
15301         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15302         earlier.
15303         * lib/strerror_r.c (strerror_r): Likewise.
15304         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15305         behavior...
15306         (gl_FUNC_STRERROR_0): ...into new macro.
15307         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15308         is overridden.
15309         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15310         * modules/strerror-override (Files): Add strerror.m4.
15311         (configure.ac): Also provide override for 0 when needed.
15312         * doc/posix-functions/strerror.texi (strerror): Document this.
15313         * doc/posix-functions/perror.texi (perror): Likewise.
15314
15315         perror: adjust array size
15316         * modules/perror (Depends-on): Add strerror-override.
15317         * lib/perror.c (perror): Use it to avoid magic number.
15318
15319         strerror-override: reduce size
15320         * lib/strerror-override.c (strerror_override): Use fewer lines.
15321
15322 2011-06-20  Bruno Haible  <bruno@clisp.org>
15323
15324         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15325         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15326
15327 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15328
15329         alloca: port to compilers that can optimize like GCC 4.6.0
15330         * lib/alloca.c (find_stack_direction): New signature, taken from
15331         Autoconf git.  This works with GCC 4.6.0.  This code should never
15332         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15333         be used with other compilers that optimize as well as GCC 4.6.0 does.
15334         (alloca): Adjust to new signature.
15335         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15336         New macro, which patches Autoconf in a similar way.
15337
15338         c-stack: stop worrying about stack direction
15339         * lib/c-stack.c (find_stack_direction): Remove.
15340         (segv_handler): Don't worry about stack direction growth, as it's
15341         too much of a pain to configure this correctly, given how compilers
15342         are optimizing-away our stack-growth detection code.  Instead, assume
15343         that any access to just before or just after the stack is OK.
15344         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15345         Don't require AC_FUNC_ALLOCA; no longer needed.
15346
15347 2011-06-20  Eric Blake  <eblake@redhat.com>
15348
15349         test-stat: don't allocate PATH_MAX bytes
15350         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15351         PATH_MAX-sized buffer.
15352         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15353         * modules/stat-tests (Depends-on): Likewise.
15354         * tests/test-fstatat.c (includes): Drop pathmax.h.
15355         * tests/test-stat.c (includes): Likewise.
15356         Reported by Bruno Haible.
15357
15358 2011-06-20  Bruno Haible  <bruno@clisp.org>
15359
15360         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15361         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15362         * lib/float.c: New file.
15363         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15364         REPLACE_FLOAT_LDBL.
15365         * modules/float (Files): Add lib/float.c.
15366         (configure.ac): Invoke AC_LIBOBJ.
15367         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15368
15369 2011-06-20  Bruno Haible  <bruno@clisp.org>
15370
15371         Tests for module 'float'.
15372         * modules/float-tests: New file.
15373         * tests/test-float.c: New file.
15374
15375 2011-06-19  Bruno Haible  <bruno@clisp.org>
15376
15377         isinf: Coding style.
15378         * lib/isinf.c: Use GNU coding style.
15379
15380 2011-06-19  Bruno Haible  <bruno@clisp.org>
15381
15382         linkat test: Avoid test failure on AIX 7.1.
15383         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15384         * tests/test-link.h (test_link): Likewise.
15385
15386 2011-06-19  Bruno Haible  <bruno@clisp.org>
15387
15388         pread test: Avoid test failure on OpenBSD 4.9.
15389         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15390
15391 2011-06-19  Bruno Haible  <bruno@clisp.org>
15392
15393         sprintf-posix: Fix test failure on AIX 7.1.
15394         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15395         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15396         on AIX.
15397         * doc/posix-functions/fprintf.texi: Likewise.
15398         * doc/posix-functions/printf.texi: Likewise.
15399         * doc/posix-functions/snprintf.texi: Likewise.
15400         * doc/posix-functions/sprintf.texi: Likewise.
15401         * doc/posix-functions/vdprintf.texi: Likewise.
15402         * doc/posix-functions/vfprintf.texi: Likewise.
15403         * doc/posix-functions/vprintf.texi: Likewise.
15404         * doc/posix-functions/vsnprintf.texi: Likewise.
15405         * doc/posix-functions/vsprintf.texi: Likewise.
15406
15407 2011-06-19  Bruno Haible  <bruno@clisp.org>
15408
15409         roundl-ieee: Fix test failure on AIX 7.1.
15410         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15411         * doc/posix-functions/roundl.texi: Mention problem with negative
15412         arguments.
15413
15414 2011-06-19  Bruno Haible  <bruno@clisp.org>
15415
15416         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15417         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15418         * doc/posix-functions/round.texi: Mention problem with negative
15419         arguments.
15420         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15421
15422 2011-06-19  Bruno Haible  <bruno@clisp.org>
15423
15424         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15425         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15426         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15427         * doc/posix-functions/roundf.texi: Mention problem with negative
15428         arguments.
15429         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15430
15431 2011-06-19  Bruno Haible  <bruno@clisp.org>
15432
15433         ceilf-ieee: Work around bug on MacOS X 10.5.
15434         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15435
15436         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15437         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15438         IEEE compliant, avoid compiler optimizations.
15439         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15440         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15441         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15442         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15443         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15444         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15445         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15446         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15447         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15448         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15449
15450 2011-06-19  Bruno Haible  <bruno@clisp.org>
15451
15452         ceilf-ieee: Work around bug on AIX 7.1.
15453         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15454         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15455
15456 2011-06-19  Bruno Haible  <bruno@clisp.org>
15457
15458         ceil-ieee: Work around bug on AIX 7.1.
15459         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15460         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15461
15462 2011-06-18  Bruno Haible  <bruno@clisp.org>
15463
15464         fsync test: Avoid test failure on MacOS X and AIX.
15465         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15466         EINVAL.
15467
15468 2011-06-18  Bruno Haible  <bruno@clisp.org>
15469
15470         openat, fdopendir tests: Fix link errors.
15471         * modules/openat-tests (Depends-on): Add progname.
15472         * modules/fdopendir-tests (Depends-on): Likewise.
15473         * tests/test-fchownat.c: Include progname.h.
15474         (main): Call set_program_name.
15475         * tests/test-fstatat.c: Include progname.h.
15476         (main): Call set_program_name.
15477         * tests/test-mkdirat.c: Include progname.h.
15478         (main): Call set_program_name.
15479         * tests/test-openat.c: Include progname.h.
15480         (main): Call set_program_name.
15481         * tests/test-unlinkat.c: Include progname.h.
15482         (main): Call set_program_name.
15483         * tests/test-fdopendir.c: Include progname.h.
15484         (main): Call set_program_name.
15485
15486 2011-06-18  Bruno Haible  <bruno@clisp.org>
15487
15488         Doc update.
15489         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15490         HP-UX.
15491         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15492
15493 2011-06-18  Bruno Haible  <bruno@clisp.org>
15494
15495         getcwd tests: Avoid compilation error on HP-UX 11.31.
15496         * modules/getcwd-tests (Depends-on): Add pathmax.
15497         * tests/test-getcwd.c: Include pathmax.h.
15498
15499 2011-06-18  Bruno Haible  <bruno@clisp.org>
15500
15501         isfinite, isinf: Fix link error on AIX 6 and 7.
15502         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15503         needed, also test the macro with a 'float' argument.
15504         * m4/isinf.m4 (gl_ISINF): Likewise.
15505
15506 2011-06-18  Bruno Haible  <bruno@clisp.org>
15507
15508         getloadavg: Don't clobber LIBS. Regression from previous commit.
15509         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15510         AC_CHECK_LIB from here...
15511         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15512         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15513         gl_func_getloadavg_done.
15514         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15515
15516 2011-06-18  Bruno Haible  <bruno@clisp.org>
15517
15518         clean-temp: Improve documentation.
15519         * lib/clean-temp.h: Explain better how to use this module.
15520         Reported by John Darrington <john@darrington.wattle.id.au>.
15521
15522 2011-06-17  Bruno Haible  <bruno@clisp.org>
15523
15524         pread, pwrite: Avoid cc warning on AIX.
15525         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15526         (pwrite): Likewise.
15527
15528 2011-06-17  Bruno Haible  <bruno@clisp.org>
15529
15530         spawn-pipe tests: Fix link error.
15531         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15533
15534 2011-06-17  Bruno Haible  <bruno@clisp.org>
15535
15536         Tests: Remove unnecessary dependency.
15537         * modules/canonicalize-tests (Depends-on): Remove progname.
15538         * modules/chown-tests (Depends-on): Likewise.
15539         * modules/dirname-tests (Depends-on): Likewise.
15540         * modules/fdopendir-tests (Depends-on): Likewise.
15541         * modules/fdutimensat-tests (Depends-on): Likewise.
15542         * modules/hash-tests (Depends-on): Likewise.
15543         * modules/lchown-tests (Depends-on): Likewise.
15544         * modules/linkat-tests (Depends-on): Likewise.
15545         * modules/renameat-tests (Depends-on): Likewise.
15546         * modules/spawn-pipe-tests (Depends-on): Likewise.
15547         * modules/utimensat-tests (Depends-on): Likewise.
15548
15549 2011-06-17  Bruno Haible  <bruno@clisp.org>
15550
15551         spawn-pipe tests: Fix link error.
15552         * tests/test-spawn-pipe-child.c: Undefine fflush.
15553
15554 2011-06-17  Bruno Haible  <bruno@clisp.org>
15555
15556         Fix tests link errors.
15557         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15558         * modules/chown-tests (Makefile.am): Don't link test-chown with
15559         LIBINTL.
15560         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15561         LIBINTL.
15562         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15563         LIBINTL.
15564         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15565         LIBINTL.
15566
15567 2011-06-16  Bruno Haible  <bruno@clisp.org>
15568
15569         crypto/gc-sha1: Fix recent regression.
15570         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15571         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15572
15573         crypto/gc-md5: Fix recent regression.
15574         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15575
15576         crypto/gc-md4: Fix recent regression.
15577         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15578         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15579
15580         crypto/gc-arctwo: Fix recent regression.
15581         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15582         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15583
15584         crypto/gc-rijndael: Fix recent regression.
15585         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15586         (configure.ac): Invoke AC_LIBOBJ here.
15587         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15588         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15589
15590         crypto/gc-hmac-sha1: Fix recent regression.
15591         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15592         (configure.ac): Invoke AC_LIBOBJ here.
15593         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15594         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15595
15596         crypto/gc-hmac-md5: Fix recent regression.
15597         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15598         (configure.ac): Invoke AC_LIBOBJ here.
15599         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15601
15602         crypto/gc-des: Fix recent regression.
15603         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15604         (configure.ac): Invoke AC_LIBOBJ here.
15605         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15606         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15607
15608         crypto/gc-arcfour: Fix recent regression.
15609         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15610         (configure.ac): Invoke AC_LIBOBJ here.
15611         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15613
15614 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15615
15616         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15617         After the 2011-05-21 change, this macro requires
15618         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15619         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15620
15621 2011-06-16  Bruno Haible  <bruno@clisp.org>
15622
15623         fprintftime: Move AC_LIBOBJ invocations to module description.
15624         * m4/fprintftime.m4: Remove file.
15625         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15626         (configure.ac): Remove gl_FPRINTFTIME call.
15627         (Makefile.am): Augment lib_SOURCES.
15628         Reported by Jim Meyering.
15629
15630 2011-06-16  Bruno Haible  <bruno@clisp.org>
15631
15632         tmpfile-safer: Finish 2011-05-23 commit.
15633         * m4/stdio-safer.m4: Really remove file.
15634         Reported by Jim Meyering.
15635
15636 2011-06-16  Bruno Haible  <bruno@clisp.org>
15637
15638         syntax-check: Fix typo.
15639         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15640         printf-posix.m4.
15641         Reported by Jim Meyering.
15642
15643 2011-06-13  Jim Meyering  <meyering@redhat.com>
15644
15645         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15646         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15647
15648 2011-05-23  Bruno Haible  <bruno@clisp.org>
15649
15650         yesno: Move AC_LIBOBJ invocations to module description.
15651         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15652         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15653
15654 2011-05-23  Bruno Haible  <bruno@clisp.org>
15655
15656         xstrtol: Move AC_LIBOBJ invocations to module description.
15657         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15658         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15659
15660 2011-05-23  Bruno Haible  <bruno@clisp.org>
15661
15662         xstrtold: Move AC_LIBOBJ invocations to module description.
15663         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15664         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15665
15666 2011-05-23  Bruno Haible  <bruno@clisp.org>
15667
15668         xstrtod: Move AC_LIBOBJ invocations to module description.
15669         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15670         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15671
15672 2011-05-23  Bruno Haible  <bruno@clisp.org>
15673
15674         xnanosleep: Move AC_LIBOBJ invocations to module description.
15675         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15676         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15677
15678 2011-05-23  Bruno Haible  <bruno@clisp.org>
15679
15680         xgetcwd: Move AC_LIBOBJ invocations to module description.
15681         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15682         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15683
15684 2011-05-23  Bruno Haible  <bruno@clisp.org>
15685
15686         xalloc: Move AC_LIBOBJ invocations to module description.
15687         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15688         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15689
15690 2011-05-23  Bruno Haible  <bruno@clisp.org>
15691
15692         write-any-file: Move AC_LIBOBJ invocations to module description.
15693         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15694         invocation.
15695         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15696
15697 2011-05-23  Bruno Haible  <bruno@clisp.org>
15698
15699         utimens: Move AC_LIBOBJ invocations to module description.
15700         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15701         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15702
15703 2011-05-23  Bruno Haible  <bruno@clisp.org>
15704
15705         utimecmp: Move AC_LIBOBJ invocations to module description.
15706         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15707         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15708
15709 2011-05-23  Bruno Haible  <bruno@clisp.org>
15710
15711         userspec: Move AC_LIBOBJ invocations to module description.
15712         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15713         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15714
15715 2011-05-23  Bruno Haible  <bruno@clisp.org>
15716
15717         unlinkdir: Move AC_LIBOBJ invocations to module description.
15718         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15719         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15720
15721 2011-05-23  Bruno Haible  <bruno@clisp.org>
15722
15723         unistd-safer: Move AC_LIBOBJ invocations to module description.
15724         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15725         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15726
15727 2011-05-23  Bruno Haible  <bruno@clisp.org>
15728
15729         tempname: Move AC_LIBOBJ invocations to module description.
15730         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15731         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15732
15733 2011-05-23  Bruno Haible  <bruno@clisp.org>
15734
15735         strftime: Move AC_LIBOBJ invocations to module description.
15736         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15737         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15738
15739 2011-05-23  Bruno Haible  <bruno@clisp.org>
15740
15741         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15742         * m4/stdlib-safer.m4: Remove file.
15743         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15744         (configure.ac): Remove gl_STDLIB_SAFER call.
15745         (Makefile.am): Augment lib_SOURCES.
15746
15747 2011-05-23  Bruno Haible  <bruno@clisp.org>
15748
15749         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15750         * m4/stdio-safer.m4: Remove file.
15751         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15752         (configure.ac): Remove gl_TMPFILE_SAFER call.
15753         (Makefile.am): Augment lib_SOURCES.
15754
15755 2011-05-23  Bruno Haible  <bruno@clisp.org>
15756
15757         popen-safer: Move AC_LIBOBJ invocations to module description.
15758         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15759         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15760         (configure.ac): Remove gl_POPEN_SAFER call.
15761         (Makefile.am): Augment lib_SOURCES.
15762
15763 2011-05-23  Bruno Haible  <bruno@clisp.org>
15764
15765         freopen-safer: Move AC_LIBOBJ invocations to module description.
15766         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15767         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15768         (configure.ac): Remove gl_FREOPEN_SAFER call.
15769         (Makefile.am): Augment lib_SOURCES.
15770
15771 2011-05-23  Bruno Haible  <bruno@clisp.org>
15772
15773         fopen-safer: Move AC_LIBOBJ invocations to module description.
15774         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15775         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15776         (configure.ac): Remove gl_FOPEN_SAFER call.
15777         (Makefile.am): Augment lib_SOURCES.
15778
15779 2011-05-23  Bruno Haible  <bruno@clisp.org>
15780
15781         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15782         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15783         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15784
15785 2011-05-23  Bruno Haible  <bruno@clisp.org>
15786
15787         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15788         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15789         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15790
15791 2011-05-23  Bruno Haible  <bruno@clisp.org>
15792
15793         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15794         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15795         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15796
15797 2011-05-23  Bruno Haible  <bruno@clisp.org>
15798
15799         settime: Move AC_LIBOBJ invocations to module description.
15800         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15801         * modules/settime (Makefile.am): Augment lib_SOURCES.
15802
15803 2011-05-23  Bruno Haible  <bruno@clisp.org>
15804
15805         savedir: Move AC_LIBOBJ invocations to module description.
15806         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15807         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15808
15809 2011-05-23  Bruno Haible  <bruno@clisp.org>
15810
15811         save-cwd: Move AC_LIBOBJ invocations to module description.
15812         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15813         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15814
15815 2011-05-23  Bruno Haible  <bruno@clisp.org>
15816
15817         same: Move AC_LIBOBJ invocations to module description.
15818         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15819         * modules/same (Makefile.am): Augment lib_SOURCES.
15820
15821 2011-05-23  Bruno Haible  <bruno@clisp.org>
15822
15823         safe-write: Move AC_LIBOBJ invocations to module description.
15824         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15825         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15826         instead of gl_SAFE_WRITE.
15827         (Makefile.am): Augment lib_SOURCES.
15828
15829 2011-05-23  Bruno Haible  <bruno@clisp.org>
15830
15831         safe-read: Move AC_LIBOBJ invocations to module description.
15832         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15833         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15834         of gl_SAFE_READ.
15835         (Makefile.am): Augment lib_SOURCES.
15836
15837 2011-05-23  Bruno Haible  <bruno@clisp.org>
15838
15839         safe-alloc: Move AC_LIBOBJ invocations to module description.
15840         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15841         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15842
15843 2011-05-23  Bruno Haible  <bruno@clisp.org>
15844
15845         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15846         * m4/rijndael.m4: Remove file.
15847         * modules/crypto/rijndael (Files): Remove it.
15848         (configure.ac): Remove gl_RIJNDAEL call.
15849         (Makefile.am): Augment lib_SOURCES.
15850
15851 2011-05-23  Bruno Haible  <bruno@clisp.org>
15852
15853         readtokens: Move AC_LIBOBJ invocations to module description.
15854         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15855         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15856
15857 2011-05-23  Bruno Haible  <bruno@clisp.org>
15858
15859         read-file: Move AC_LIBOBJ invocations to module description.
15860         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15861         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15862         of gl_FUNC_READ_FILE.
15863         (Makefile.am): Augment lib_SOURCES.
15864
15865 2011-05-23  Bruno Haible  <bruno@clisp.org>
15866
15867         quotearg: Move AC_LIBOBJ invocations to module description.
15868         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15869         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15870
15871 2011-05-23  Bruno Haible  <bruno@clisp.org>
15872
15873         quote: Move AC_LIBOBJ invocations to module description.
15874         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15875         * modules/quote (Makefile.am): Augment lib_SOURCES.
15876
15877 2011-05-23  Bruno Haible  <bruno@clisp.org>
15878
15879         posixver: Move AC_LIBOBJ invocations to module description.
15880         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15881         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15882
15883 2011-05-23  Bruno Haible  <bruno@clisp.org>
15884
15885         posixtm: Move AC_LIBOBJ invocations to module description.
15886         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15887         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15888
15889 2011-05-23  Bruno Haible  <bruno@clisp.org>
15890
15891         physmem: Move AC_LIBOBJ invocations to module description.
15892         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15893         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15894
15895 2011-05-23  Bruno Haible  <bruno@clisp.org>
15896
15897         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15898         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15899         invocation.
15900         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15901
15902 2011-05-23  Bruno Haible  <bruno@clisp.org>
15903
15904         mpsort: Move AC_LIBOBJ invocations to module description.
15905         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15906         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15907
15908 2011-05-23  Bruno Haible  <bruno@clisp.org>
15909
15910         modechange: Move AC_LIBOBJ invocations to module description.
15911         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15912         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15913
15914 2011-05-23  Bruno Haible  <bruno@clisp.org>
15915
15916         mkdir-p: Move AC_LIBOBJ invocations to module description.
15917         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15918         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15919
15920 2011-05-23  Bruno Haible  <bruno@clisp.org>
15921
15922         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15923         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15924         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15925
15926 2011-05-23  Bruno Haible  <bruno@clisp.org>
15927
15928         mgetgroups: Move AC_LIBOBJ invocations to module description.
15929         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15930         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15931
15932 2011-05-23  Bruno Haible  <bruno@clisp.org>
15933
15934         memxor: Move AC_LIBOBJ invocations to module description.
15935         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15936         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15937
15938 2011-05-23  Bruno Haible  <bruno@clisp.org>
15939
15940         memcoll: Move AC_LIBOBJ invocations to module description.
15941         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15942         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15943
15944 2011-05-23  Bruno Haible  <bruno@clisp.org>
15945
15946         memcasecmp: Move AC_LIBOBJ invocations to module description.
15947         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15948         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15949
15950 2011-05-23  Bruno Haible  <bruno@clisp.org>
15951
15952         crypto/md5: Move AC_LIBOBJ invocations to module description.
15953         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15954         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15955
15956 2011-05-23  Bruno Haible  <bruno@clisp.org>
15957
15958         crypto/md4: Move AC_LIBOBJ invocations to module description.
15959         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15960         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15961
15962 2011-05-23  Bruno Haible  <bruno@clisp.org>
15963
15964         crypto/md2: Move AC_LIBOBJ invocations to module description.
15965         * m4/md2.m4: Remove file.
15966         * modules/crypto/md2 (Files): Remove it.
15967         (configure.ac): Remove gl_MD2 call.
15968         (Makefile.am): Augment lib_SOURCES.
15969
15970 2011-05-23  Bruno Haible  <bruno@clisp.org>
15971
15972         long-options: Move AC_LIBOBJ invocations to module description.
15973         * m4/long-options.m4: Remove file.
15974         * modules/long-options (Files): Remove it.
15975         (configure.ac): Remove gl_LONG_OPTIONS call.
15976         (Makefile.am): Augment lib_SOURCES.
15977
15978 2011-05-23  Bruno Haible  <bruno@clisp.org>
15979
15980         i-ring: Move AC_LIBOBJ invocations to module description.
15981         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15982         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15983
15984 2011-05-23  Bruno Haible  <bruno@clisp.org>
15985
15986         idcache: Move AC_LIBOBJ invocations to module description.
15987         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15988         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15989
15990 2011-05-23  Bruno Haible  <bruno@clisp.org>
15991
15992         human: Move AC_LIBOBJ invocations to module description.
15993         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15994         * modules/human (Makefile.am): Augment lib_SOURCES.
15995
15996 2011-05-23  Bruno Haible  <bruno@clisp.org>
15997
15998         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15999         * m4/hmac-sha1.m4: Remove file.
16000         * modules/crypto/hmac-sha1 (Files): Remove it.
16001         (configure.ac): Remove gl_HMAC_SHA1 call.
16002         (Makefile.am): Augment lib_SOURCES.
16003
16004 2011-05-23  Bruno Haible  <bruno@clisp.org>
16005
16006         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16007         * m4/hmac-md5.m4: Remove file.
16008         * modules/crypto/hmac-md5 (Files): Remove it.
16009         (configure.ac): Remove gl_HMAC_MD5 call.
16010         (Makefile.am): Augment lib_SOURCES.
16011
16012 2011-05-23  Bruno Haible  <bruno@clisp.org>
16013
16014         hash: Move AC_LIBOBJ invocations to module description.
16015         * m4/hash.m4: Remove file.
16016         * modules/hash (Files): Remove it.
16017         (configure.ac): Remove gl_HASH call.
16018         (Makefile.am): Augment lib_SOURCES.
16019
16020 2011-05-23  Bruno Haible  <bruno@clisp.org>
16021
16022         hard-locale: Move AC_LIBOBJ invocations to module description.
16023         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16024         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16025
16026 2011-05-23  Bruno Haible  <bruno@clisp.org>
16027
16028         getugroups: Move AC_LIBOBJ invocations to module description.
16029         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16030         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16031
16032 2011-05-23  Bruno Haible  <bruno@clisp.org>
16033
16034         gettime: Move AC_LIBOBJ invocations to module description.
16035         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16036         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16037
16038 2011-05-23  Bruno Haible  <bruno@clisp.org>
16039
16040         getndelim2: Move AC_LIBOBJ invocations to module description.
16041         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16042         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16043
16044 2011-05-23  Bruno Haible  <bruno@clisp.org>
16045
16046         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16047         * m4/gc-pbkdf2-sha1.m4: Remove file.
16048         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16049         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16050         (Makefile.am): Augment lib_SOURCES.
16051
16052 2011-05-23  Bruno Haible  <bruno@clisp.org>
16053
16054         fts: Move AC_LIBOBJ invocations to module description.
16055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16056         * modules/fts (configure.ac): ... to here.
16057
16058 2011-05-23  Bruno Haible  <bruno@clisp.org>
16059
16060         file-type: Move AC_LIBOBJ invocations to module description.
16061         * m4/file-type.m4: Remove file.
16062         * modules/file-type (Files): Remove it.
16063         (configure.ac): Remove gl_FILE_TYPE call.
16064         (Makefile.am): Augment lib_SOURCES.
16065
16066 2011-05-23  Bruno Haible  <bruno@clisp.org>
16067
16068         filenamecat*: Respect rules for use of AC_LIBOBJ.
16069         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16070         Remove AC_LIBOBJ invocation.
16071         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16072         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16073
16074 2011-05-23  Bruno Haible  <bruno@clisp.org>
16075
16076         filemode: Move AC_LIBOBJ invocations to module description.
16077         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16078         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16079
16080 2011-05-23  Bruno Haible  <bruno@clisp.org>
16081
16082         openat-safer: Move AC_LIBOBJ invocations to module description.
16083         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16084         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16085
16086 2011-05-23  Bruno Haible  <bruno@clisp.org>
16087
16088         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16089         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16090         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16091
16092 2011-05-23  Bruno Haible  <bruno@clisp.org>
16093
16094         exclude: Move AC_LIBOBJ invocations to module description.
16095         * m4/exclude.m4: Remove file.
16096         * modules/exclude (Files): Remove it.
16097         (configure.ac): Remove gl_EXCLUDE call.
16098         (Makefile.am): Augment lib_SOURCES.
16099
16100 2011-05-23  Bruno Haible  <bruno@clisp.org>
16101
16102         dirname*: Respect rules for use of AC_LIBOBJ.
16103         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16104         invocations.
16105         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16106         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16107
16108 2011-05-23  Bruno Haible  <bruno@clisp.org>
16109
16110         dirent-safer: Move AC_LIBOBJ invocations to module description.
16111         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16112         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16113
16114 2011-05-23  Bruno Haible  <bruno@clisp.org>
16115
16116         crypto/des: Move AC_LIBOBJ invocations to module description.
16117         * m4/des.m4: Remove file.
16118         * modules/crypto/des (Files): Remove it.
16119         (configure.ac): Remove gl_DES call.
16120         (Makefile.am): Augment lib_SOURCES.
16121
16122 2011-05-23  Bruno Haible  <bruno@clisp.org>
16123
16124         cycle-check: Move AC_LIBOBJ invocations to module description.
16125         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16126         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16127
16128 2011-05-23  Bruno Haible  <bruno@clisp.org>
16129
16130         c-strtold: Move AC_LIBOBJ invocations to module description.
16131         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16132         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16133
16134 2011-05-23  Bruno Haible  <bruno@clisp.org>
16135
16136         c-strtod: Move AC_LIBOBJ invocations to module description.
16137         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16138         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16139
16140 2011-05-23  Bruno Haible  <bruno@clisp.org>
16141
16142         crc: Move AC_LIBOBJ invocations to module description.
16143         * m4/crc.m4: Remove file.
16144         * modules/crc (Files): Remove it.
16145         (configure.ac): Remove gl_CRC call.
16146         (Makefile.am): Augment lib_SOURCES.
16147
16148 2011-05-23  Bruno Haible  <bruno@clisp.org>
16149
16150         close-stream: Move AC_LIBOBJ invocations to module description.
16151         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16152         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16153
16154 2011-05-23  Bruno Haible  <bruno@clisp.org>
16155
16156         closeout: Move AC_LIBOBJ invocations to module description.
16157         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16158         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16159
16160 2011-05-23  Bruno Haible  <bruno@clisp.org>
16161
16162         closein: Move AC_LIBOBJ invocations to module description.
16163         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16164         * modules/closein (Makefile.am): Augment lib_SOURCES.
16165
16166 2011-05-23  Bruno Haible  <bruno@clisp.org>
16167
16168         cloexec: Move AC_LIBOBJ invocations to module description.
16169         * m4/cloexec.m4: Remove file.
16170         * modules/cloexec (Files): Remove it.
16171         (configure.ac): Remove gl_CLOEXEC call.
16172         (Makefile.am): Augment lib_SOURCES.
16173
16174 2011-05-23  Bruno Haible  <bruno@clisp.org>
16175
16176         check-version: Move AC_LIBOBJ invocations to module description.
16177         * m4/check-version.m4: Remove file.
16178         * modules/check-version (Files): Remove it.
16179         (configure.ac): Remove gl_CHECK_VERSION call.
16180         (Makefile.am): Augment lib_SOURCES.
16181
16182 2011-05-23  Bruno Haible  <bruno@clisp.org>
16183
16184         chdir-safer: Move AC_LIBOBJ invocations to module description.
16185         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16186         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16187
16188 2011-05-23  Bruno Haible  <bruno@clisp.org>
16189
16190         canonicalize: Move AC_LIBOBJ invocations to module description.
16191         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16192         AC_LIBOBJ invocation.
16193         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16194
16195 2011-05-23  Bruno Haible  <bruno@clisp.org>
16196
16197         canon-host: Move AC_LIBOBJ invocations to module description.
16198         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16199         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16200         instead of gl_CANON_HOST.
16201         (Makefile.am): Augment lib_SOURCES.
16202
16203 2011-05-23  Bruno Haible  <bruno@clisp.org>
16204
16205         backupfile: Move AC_LIBOBJ invocations to module description.
16206         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16207         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16208
16209 2011-05-23  Bruno Haible  <bruno@clisp.org>
16210
16211         argmatch: Move AC_LIBOBJ invocations to module description.
16212         * m4/argmatch.m4: Remove file.
16213         * modules/argmatch (Files): Remove it.
16214         (configure.ac): Remove gl_ARGMATCH call.
16215         (Makefile.am): Augment lib_SOURCES.
16216
16217 2011-05-23  Bruno Haible  <bruno@clisp.org>
16218
16219         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16220         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16221         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16222
16223 2011-05-23  Bruno Haible  <bruno@clisp.org>
16224
16225         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16226         * m4/arcfour.m4: Remove file.
16227         * modules/crypto/arcfour (Files): Remove it.
16228         (configure.ac): Remove gl_ARCFOUR call.
16229         (Makefile.am): Augment lib_SOURCES.
16230
16231 2011-05-22  Bruno Haible  <bruno@clisp.org>
16232
16233         write: Move AC_LIBOBJ invocations to module description.
16234         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16235         * modules/write (configure.ac): ... to here.
16236
16237 2011-05-22  Bruno Haible  <bruno@clisp.org>
16238
16239         wmemset: Move AC_LIBOBJ invocations to module description.
16240         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16241         here...
16242         * modules/wmemset (configure.ac): ... to here.
16243
16244 2011-05-22  Bruno Haible  <bruno@clisp.org>
16245
16246         wmemmove: Move AC_LIBOBJ invocations to module description.
16247         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16248         here...
16249         * modules/wmemmove (configure.ac): ... to here.
16250
16251 2011-05-22  Bruno Haible  <bruno@clisp.org>
16252
16253         wmemcpy: Move AC_LIBOBJ invocations to module description.
16254         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16255         here...
16256         * modules/wmemcpy (configure.ac): ... to here.
16257
16258 2011-05-22  Bruno Haible  <bruno@clisp.org>
16259
16260         wmemcmp: Move AC_LIBOBJ invocations to module description.
16261         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16262         here...
16263         * modules/wmemcmp (configure.ac): ... to here.
16264
16265 2011-05-22  Bruno Haible  <bruno@clisp.org>
16266
16267         wmemchr: Move AC_LIBOBJ invocations to module description.
16268         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16269         here...
16270         * modules/wmemchr (configure.ac): ... to here.
16271
16272 2011-05-22  Bruno Haible  <bruno@clisp.org>
16273
16274         wcswidth: Move AC_LIBOBJ invocations to module description.
16275         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16276         here...
16277         * modules/wcswidth (configure.ac): ... to here.
16278
16279 2011-05-22  Bruno Haible  <bruno@clisp.org>
16280
16281         wcwidth: Respect rules for use of AC_LIBOBJ.
16282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16283         invocation from here...
16284         * modules/wcwidth (configure.ac): ... to here.
16285         (Depends-on): Update conditions.
16286
16287 2011-05-22  Bruno Haible  <bruno@clisp.org>
16288
16289         wctype: Move AC_LIBOBJ invocations to module description.
16290         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16291         invocation from here...
16292         * modules/wctype (configure.ac): ... to here.
16293         (Depends-on): Update conditions.
16294
16295 2011-05-22  Bruno Haible  <bruno@clisp.org>
16296
16297         wctrans: Move AC_LIBOBJ invocations to module description.
16298         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16299         invocation from here...
16300         * modules/wctrans (configure.ac): ... to here.
16301
16302 2011-05-22  Bruno Haible  <bruno@clisp.org>
16303
16304         wctomb: Move AC_LIBOBJ invocations to module description.
16305         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16306         invocations from here...
16307         * modules/wctomb (configure.ac): ... to here.
16308
16309 2011-05-22  Bruno Haible  <bruno@clisp.org>
16310
16311         wctob: Move AC_LIBOBJ invocations to module description.
16312         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16313         gl_PREREQ_WCTOB invocations from here...
16314         * modules/wctob (configure.ac): ... to here.
16315         (Depends-on): Update conditions.
16316
16317 2011-05-22  Bruno Haible  <bruno@clisp.org>
16318
16319         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16320         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16321         here...
16322         * modules/wcsxfrm (configure.ac): ... to here.
16323
16324 2011-05-22  Bruno Haible  <bruno@clisp.org>
16325
16326         wcstok: Move AC_LIBOBJ invocations to module description.
16327         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16328         * modules/wcstok (configure.ac): ... to here.
16329
16330 2011-05-22  Bruno Haible  <bruno@clisp.org>
16331
16332         wcsstr: Move AC_LIBOBJ invocations to module description.
16333         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16334         * modules/wcsstr (configure.ac): ... to here.
16335
16336 2011-05-22  Bruno Haible  <bruno@clisp.org>
16337
16338         wcsspn: Move AC_LIBOBJ invocations to module description.
16339         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16340         * modules/wcsspn (configure.ac): ... to here.
16341
16342 2011-05-22  Bruno Haible  <bruno@clisp.org>
16343
16344         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16345         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16346         gl_PREREQ_WCSRTOMBS invocations from here...
16347         * modules/wcsrtombs (configure.ac): ... to here.
16348
16349 2011-05-22  Bruno Haible  <bruno@clisp.org>
16350
16351         wcsrchr: Move AC_LIBOBJ invocations to module description.
16352         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16353         here...
16354         * modules/wcsrchr (configure.ac): ... to here.
16355
16356 2011-05-22  Bruno Haible  <bruno@clisp.org>
16357
16358         wcspbrk: Move AC_LIBOBJ invocations to module description.
16359         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16360         here...
16361         * modules/wcspbrk (configure.ac): ... to here.
16362
16363 2011-05-22  Bruno Haible  <bruno@clisp.org>
16364
16365         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16366         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16367         gl_PREREQ_WCSNRTOMBS invocations from here...
16368         * modules/wcsnrtombs (configure.ac): ... to here.
16369
16370 2011-05-22  Bruno Haible  <bruno@clisp.org>
16371
16372         wcsnlen: Move AC_LIBOBJ invocations to module description.
16373         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16374         here...
16375         * modules/wcsnlen (configure.ac): ... to here.
16376
16377 2011-05-22  Bruno Haible  <bruno@clisp.org>
16378
16379         wcsncpy: Move AC_LIBOBJ invocations to module description.
16380         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16381         here...
16382         * modules/wcsncpy (configure.ac): ... to here.
16383
16384 2011-05-22  Bruno Haible  <bruno@clisp.org>
16385
16386         wcsncmp: Move AC_LIBOBJ invocations to module description.
16387         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16388         here...
16389         * modules/wcsncmp (configure.ac): ... to here.
16390
16391 2011-05-22  Bruno Haible  <bruno@clisp.org>
16392
16393         wcsncat: Move AC_LIBOBJ invocations to module description.
16394         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16395         here...
16396         * modules/wcsncat (configure.ac): ... to here.
16397
16398 2011-05-22  Bruno Haible  <bruno@clisp.org>
16399
16400         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16401         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16402         from here...
16403         * modules/wcsncasecmp (configure.ac): ... to here.
16404
16405 2011-05-22  Bruno Haible  <bruno@clisp.org>
16406
16407         wcslen: Move AC_LIBOBJ invocations to module description.
16408         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16409         * modules/wcslen (configure.ac): ... to here.
16410
16411 2011-05-22  Bruno Haible  <bruno@clisp.org>
16412
16413         wcsdup: Move AC_LIBOBJ invocations to module description.
16414         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16415         * modules/wcsdup (configure.ac): ... to here.
16416
16417 2011-05-22  Bruno Haible  <bruno@clisp.org>
16418
16419         wcscspn: Move AC_LIBOBJ invocations to module description.
16420         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16421         here...
16422         * modules/wcscspn (configure.ac): ... to here.
16423
16424 2011-05-22  Bruno Haible  <bruno@clisp.org>
16425
16426         wcscpy: Move AC_LIBOBJ invocations to module description.
16427         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16428         * modules/wcscpy (configure.ac): ... to here.
16429
16430 2011-05-22  Bruno Haible  <bruno@clisp.org>
16431
16432         wcscoll: Move AC_LIBOBJ invocations to module description.
16433         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16434         here...
16435         * modules/wcscoll (configure.ac): ... to here.
16436
16437 2011-05-22  Bruno Haible  <bruno@clisp.org>
16438
16439         wcscmp: Move AC_LIBOBJ invocations to module description.
16440         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16441         * modules/wcscmp (configure.ac): ... to here.
16442
16443 2011-05-22  Bruno Haible  <bruno@clisp.org>
16444
16445         wcschr: Move AC_LIBOBJ invocations to module description.
16446         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16447         * modules/wcschr (configure.ac): ... to here.
16448
16449 2011-05-22  Bruno Haible  <bruno@clisp.org>
16450
16451         wcscat: Move AC_LIBOBJ invocations to module description.
16452         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16453         * modules/wcscat (configure.ac): ... to here.
16454
16455 2011-05-22  Bruno Haible  <bruno@clisp.org>
16456
16457         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16458         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16459         here...
16460         * modules/wcscasecmp (configure.ac): ... to here.
16461
16462 2011-05-22  Bruno Haible  <bruno@clisp.org>
16463
16464         wcrtomb: Move AC_LIBOBJ invocations to module description.
16465         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16466         invocations from here...
16467         * modules/wcrtomb (configure.ac): ... to here.
16468
16469 2011-05-22  Bruno Haible  <bruno@clisp.org>
16470
16471         wcpncpy: Move AC_LIBOBJ invocations to module description.
16472         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16473         here...
16474         * modules/wcpncpy (configure.ac): ... to here.
16475
16476 2011-05-22  Bruno Haible  <bruno@clisp.org>
16477
16478         wcpcpy: Move AC_LIBOBJ invocations to module description.
16479         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16480         * modules/wcpcpy (configure.ac): ... to here.
16481
16482 2011-05-22  Bruno Haible  <bruno@clisp.org>
16483
16484         waitpid: Move AC_LIBOBJ invocations to module description.
16485         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16486         invocation from here...
16487         * modules/waitpid (configure.ac): ... to here.
16488
16489 2011-05-22  Bruno Haible  <bruno@clisp.org>
16490
16491         utimensat: Move AC_LIBOBJ invocations to module description.
16492         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16493         here...
16494         * modules/utimensat (configure.ac): ... to here.
16495
16496 2011-05-22  Bruno Haible  <bruno@clisp.org>
16497
16498         usleep: Move AC_LIBOBJ invocations to module description.
16499         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16500         here...
16501         * modules/usleep (configure.ac): ... to here.
16502
16503 2011-05-22  Bruno Haible  <bruno@clisp.org>
16504
16505         unlockpt: Move AC_LIBOBJ invocations to module description.
16506         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16507         gl_PREREQ_UNLOCKPT invocations from here...
16508         * modules/unlockpt (configure.ac): ... to here.
16509
16510 2011-05-22  Bruno Haible  <bruno@clisp.org>
16511
16512         unlink: Respect rules for use of AC_LIBOBJ.
16513         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16514         * modules/unlink (configure.ac): ... to here.
16515
16516 2011-05-22  Bruno Haible  <bruno@clisp.org>
16517
16518         uname: Move AC_LIBOBJ invocations to module description.
16519         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16520         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16521         here...
16522         * modules/uname (configure.ac): ... to here.
16523
16524 2011-05-22  Bruno Haible  <bruno@clisp.org>
16525
16526         ttyname_r: Move AC_LIBOBJ invocations to module description.
16527         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16528         gl_PREREQ_TTYNAME_R invocations from here...
16529         * modules/ttyname_r (configure.ac): ... to here.
16530
16531 2011-05-22  Bruno Haible  <bruno@clisp.org>
16532
16533         tsearch: Move AC_LIBOBJ invocations to module description.
16534         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16535         invocations from here...
16536         * modules/tsearch (configure.ac): ... to here.
16537
16538 2011-05-22  Bruno Haible  <bruno@clisp.org>
16539
16540         towctrans: Move AC_LIBOBJ invocations to module description.
16541         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16542         AC_LIBOBJ invocation from here...
16543         * modules/towctrans (configure.ac): ... to here.
16544
16545 2011-05-22  Bruno Haible  <bruno@clisp.org>
16546
16547         tmpfile: Move AC_LIBOBJ invocations to module description.
16548         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16549         invocations from here...
16550         * modules/tmpfile (configure.ac): ... to here.
16551
16552 2011-05-22  Bruno Haible  <bruno@clisp.org>
16553
16554         times: Move AC_LIBOBJ invocations to module description.
16555         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16556         * modules/times (configure.ac): ... to here.
16557
16558 2011-05-22  Bruno Haible  <bruno@clisp.org>
16559
16560         time_r: Move AC_LIBOBJ invocations to module description.
16561         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16562         invocations from here...
16563         * modules/time_r (configure.ac): ... to here.
16564
16565 2011-05-22  Bruno Haible  <bruno@clisp.org>
16566
16567         timegm: Move AC_LIBOBJ invocations to module description.
16568         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16569         invocations from here...
16570         * modules/timegm (configure.ac): ... to here.
16571
16572 2011-05-22  Bruno Haible  <bruno@clisp.org>
16573
16574         tcgetsid: Move AC_LIBOBJ invocations to module description.
16575         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16576         and gl_PREREQ_TCGETSID invocations from here...
16577         * modules/tcgetsid (configure.ac): ... to here.
16578         (Depends-on): Update conditions.
16579
16580 2011-05-22  Bruno Haible  <bruno@clisp.org>
16581
16582         symlinkat: Move AC_LIBOBJ invocations to module description.
16583         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16584         here...
16585         * modules/symlinkat (configure.ac): ... to here.
16586
16587 2011-05-22  Bruno Haible  <bruno@clisp.org>
16588
16589         symlink: Move AC_LIBOBJ invocations to module description.
16590         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16591         here...
16592         * modules/symlink (configure.ac): ... to here.
16593
16594 2011-05-22  Bruno Haible  <bruno@clisp.org>
16595
16596         strverscmp: Move AC_LIBOBJ invocations to module description.
16597         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16598         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16599         from here...
16600         * modules/strverscmp (configure.ac): ... to here.
16601
16602 2011-05-22  Bruno Haible  <bruno@clisp.org>
16603
16604         strtok_r: Move AC_LIBOBJ invocations to module description.
16605         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16606         and gl_PREREQ_STRTOK_R invocations from here...
16607         * modules/strtok_r (configure.ac): ... to here.
16608         (Depends-on): Update conditions.
16609
16610 2011-05-22  Bruno Haible  <bruno@clisp.org>
16611
16612         strtoumax: Move AC_LIBOBJ invocations to module description.
16613         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16614         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16615         from here...
16616         * modules/strtoumax (configure.ac): ... to here.
16617
16618 2011-05-22  Bruno Haible  <bruno@clisp.org>
16619
16620         strtoimax: Move AC_LIBOBJ invocations to module description.
16621         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16622         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16623         from here...
16624         * modules/strtoimax (configure.ac): ... to here.
16625
16626 2011-05-22  Bruno Haible  <bruno@clisp.org>
16627
16628         strtoull: Move AC_LIBOBJ invocations to module description.
16629         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16630         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16631         from here...
16632         * modules/strtoull (configure.ac): ... to here.
16633
16634 2011-05-22  Bruno Haible  <bruno@clisp.org>
16635
16636         strtoll: Move AC_LIBOBJ invocations to module description.
16637         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16638         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16639         here...
16640         * modules/strtoll (configure.ac): ... to here.
16641
16642 2011-05-22  Bruno Haible  <bruno@clisp.org>
16643
16644         strtoul: Move AC_LIBOBJ invocations to module description.
16645         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16646         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16647         * modules/strtoul (configure.ac): ... to here.
16648
16649 2011-05-22  Bruno Haible  <bruno@clisp.org>
16650
16651         strtol: Move AC_LIBOBJ invocations to module description.
16652         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16653         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16654         * modules/strtol (configure.ac): ... to here.
16655
16656 2011-05-22  Bruno Haible  <bruno@clisp.org>
16657
16658         strtod: Move AC_LIBOBJ invocations to module description.
16659         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16660         invocations from here...
16661         * modules/strtod (configure.ac): ... to here.
16662
16663 2011-05-22  Bruno Haible  <bruno@clisp.org>
16664
16665         strstr*: Move AC_LIBOBJ invocations to module description.
16666         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16667         invocations from here...
16668         * modules/strstr-simple (configure.ac): ... to here.
16669         * modules/strstr (configure.ac): ... and here.
16670
16671 2011-05-22  Bruno Haible  <bruno@clisp.org>
16672
16673         strsignal: Move AC_LIBOBJ invocations to module description.
16674         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16675         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16676         * modules/strsignal (configure.ac): ... to here.
16677         (Depends-on): Update conditions.
16678
16679 2011-05-22  Bruno Haible  <bruno@clisp.org>
16680
16681         strsep: Move AC_LIBOBJ invocations to module description.
16682         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16683         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16684         here...
16685         * modules/strsep (configure.ac): ... to here.
16686
16687 2011-05-22  Bruno Haible  <bruno@clisp.org>
16688
16689         strptime: Move AC_LIBOBJ invocations to module description.
16690         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16691         gl_PREREQ_STRPTIME invocations from here...
16692         * modules/strptime (configure.ac): ... to here.
16693
16694 2011-05-22  Bruno Haible  <bruno@clisp.org>
16695
16696         strpbrk: Move AC_LIBOBJ invocations to module description.
16697         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16699         here...
16700         * modules/strpbrk (configure.ac): ... to here.
16701
16702 2011-05-22  Bruno Haible  <bruno@clisp.org>
16703
16704         strnlen: Move AC_LIBOBJ invocations to module description.
16705         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16706         invocations from here...
16707         * modules/strnlen (configure.ac): ... to here.
16708
16709 2011-05-22  Bruno Haible  <bruno@clisp.org>
16710
16711         strndup: Move AC_LIBOBJ invocations to module description.
16712         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16713         invocations from here...
16714         * modules/strndup (configure.ac): ... to here.
16715         (Depends-on): Update conditions.
16716
16717 2011-05-22  Bruno Haible  <bruno@clisp.org>
16718
16719         strncat: Move AC_LIBOBJ invocations to module description.
16720         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16721         invocations from here...
16722         * modules/strncat (configure.ac): ... to here.
16723
16724 2011-05-22  Bruno Haible  <bruno@clisp.org>
16725
16726         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16727         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16728         invocations from here...
16729         * modules/strdup (configure.ac): ... to here.
16730         * modules/strdup-posix (configure.ac): ... and here.
16731
16732 2011-05-22  Bruno Haible  <bruno@clisp.org>
16733
16734         strcspn: Move AC_LIBOBJ invocations to module description.
16735         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16736         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16737         here...
16738         * modules/strcspn (configure.ac): ... to here.
16739
16740 2011-05-22  Bruno Haible  <bruno@clisp.org>
16741
16742         strchrnul: Move AC_LIBOBJ invocations to module description.
16743         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16744         gl_PREREQ_STRCHRNUL invocations from here...
16745         * modules/strchrnul (configure.ac): ... to here.
16746
16747 2011-05-22  Bruno Haible  <bruno@clisp.org>
16748
16749         strcasestr*: Move AC_LIBOBJ invocations to module description.
16750         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16751         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16752         * modules/strcasestr-simple (configure.ac): ... to here.
16753         * modules/strcasestr (configure.ac): ... and here.
16754
16755 2011-05-22  Bruno Haible  <bruno@clisp.org>
16756
16757         strcase: Move AC_LIBOBJ invocations to module description.
16758         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16759         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16760         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16761         gl_PREREQ_STRNCASECMP invocations from here...
16762         * modules/strcase (configure.ac): ... to here.
16763
16764 2011-05-22  Bruno Haible  <bruno@clisp.org>
16765
16766         stpncpy: Move AC_LIBOBJ invocations to module description.
16767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16768         here...
16769         * modules/stpncpy (configure.ac): ... to here.
16770
16771 2011-05-22  Bruno Haible  <bruno@clisp.org>
16772
16773         stpcpy: Move AC_LIBOBJ invocations to module description.
16774         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16775         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16776         here...
16777         * modules/stpcpy (configure.ac): ... to here.
16778
16779 2011-05-21  Bruno Haible  <bruno@clisp.org>
16780
16781         stat: Move AC_LIBOBJ invocations to module description.
16782         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16783         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16784         here...
16785         * modules/stat (configure.ac): ... to here.
16786
16787 2011-05-21  Bruno Haible  <bruno@clisp.org>
16788
16789         sleep: Move AC_LIBOBJ invocations to module description.
16790         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16791         * modules/sleep (configure.ac): ... to here.
16792
16793 2011-05-21  Bruno Haible  <bruno@clisp.org>
16794
16795         signbit: Move AC_LIBOBJ invocations to module description.
16796         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16797         * modules/signbit (configure.ac): ... to here.
16798
16799 2011-05-21  Bruno Haible  <bruno@clisp.org>
16800
16801         sigprocmask: Move AC_LIBOBJ invocations to module description.
16802         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16803         gl_PREREQ_SIGPROMASK invocations from here...
16804         * modules/sigprocmask (configure.ac): ... to here.
16805
16806 2011-05-21  Bruno Haible  <bruno@clisp.org>
16807
16808         sigaction: Move AC_LIBOBJ invocations to module description.
16809         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16810         gl_PREREQ_SIGACTION invocations from here...
16811         * modules/sigaction (configure.ac): ... to here.
16812
16813 2011-05-21  Bruno Haible  <bruno@clisp.org>
16814
16815         sig2str: Move AC_LIBOBJ invocations to module description.
16816         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16817         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16818         here...
16819         * modules/sig2str (configure.ac): ... to here.
16820
16821 2011-05-21  Bruno Haible  <bruno@clisp.org>
16822
16823         setlocale: Move AC_LIBOBJ invocations to module description.
16824         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16825         gl_PREREQ_SETLOCALE invocations from here...
16826         * modules/setlocale (configure.ac): ... to here.
16827
16828 2011-05-21  Bruno Haible  <bruno@clisp.org>
16829
16830         unsetenv: Move AC_LIBOBJ invocations to module description.
16831         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16832         and gl_PREREQ_UNSETENV invocations from here...
16833         * modules/unsetenv (configure.ac): ... to here.
16834         (Depends-on): Update.
16835
16836 2011-05-21  Bruno Haible  <bruno@clisp.org>
16837
16838         setenv: Move AC_LIBOBJ invocations to module description.
16839         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16840         here...
16841         * modules/setenv (configure.ac): ... to here.
16842
16843 2011-05-21  Bruno Haible  <bruno@clisp.org>
16844
16845         selinux-h: Move AC_LIBOBJ invocations to module description.
16846         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16847         AC_LIBOBJ invocation from here...
16848         * modules/selinux-h (configure.ac): ... to here.
16849
16850 2011-05-21  Bruno Haible  <bruno@clisp.org>
16851
16852         select: Respect rules for use of AC_LIBOBJ.
16853         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16854         here...
16855         * modules/select (configure.ac): ... to here.
16856
16857 2011-05-21  Bruno Haible  <bruno@clisp.org>
16858
16859         scandir: Move AC_LIBOBJ invocations to module description.
16860         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16861         invocations from here...
16862         * modules/scandir (configure.ac): ... to here.
16863
16864 2011-05-21  Bruno Haible  <bruno@clisp.org>
16865
16866         rpmatch: Move AC_LIBOBJ invocations to module description.
16867         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16868         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16869         here...
16870         * modules/rpmatch (configure.ac): ... to here.
16871
16872 2011-05-21  Bruno Haible  <bruno@clisp.org>
16873
16874         rmdir: Respect rules for use of AC_LIBOBJ.
16875         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16876         * modules/rmdir (configure.ac): ... to here.
16877
16878 2011-05-21  Bruno Haible  <bruno@clisp.org>
16879
16880         renameat: Move AC_LIBOBJ invocations to module description.
16881         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16882         here...
16883         * modules/renameat (configure.ac): ... to here.
16884
16885 2011-05-21  Bruno Haible  <bruno@clisp.org>
16886
16887         rename: Respect rules for use of AC_LIBOBJ.
16888         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16889         here...
16890         * modules/rename (configure.ac): ... to here.
16891
16892 2011-05-21  Bruno Haible  <bruno@clisp.org>
16893
16894         remove: Move AC_LIBOBJ invocations to module description.
16895         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16896         here...
16897         * modules/remove (configure.ac): ... to here.
16898
16899 2011-05-21  Bruno Haible  <bruno@clisp.org>
16900
16901         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16902         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16903         macro.
16904         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16905         * modules/relocatable-lib (configure.ac): ... to here.
16906         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16907         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16908
16909 2011-05-21  Bruno Haible  <bruno@clisp.org>
16910
16911         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16912         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16913         here...
16914         * modules/relocatable-prog (configure.ac): ... to here.
16915
16916 2011-05-21  Bruno Haible  <bruno@clisp.org>
16917
16918         regex: Move AC_LIBOBJ invocations to module description.
16919         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16920         invocations from here...
16921         * modules/regex (configure.ac): ... to here.
16922
16923 2011-05-21  Bruno Haible  <bruno@clisp.org>
16924
16925         realloc-*: Move AC_LIBOBJ invocations to module description.
16926         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16927         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16928         AC_LIBOBJ invocations from here...
16929         * modules/realloc-gnu (configure.ac): ... to here.
16930         * modules/realloc-posix (configure.ac): ... and here.
16931
16932 2011-05-21  Bruno Haible  <bruno@clisp.org>
16933
16934         readutmp: Move AC_LIBOBJ invocations to module description.
16935         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16936         * modules/readutmp (configure.ac): ... to here.
16937
16938 2011-05-21  Bruno Haible  <bruno@clisp.org>
16939
16940         readlinkat: Move AC_LIBOBJ invocations to module description.
16941         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16942         here...
16943         * modules/readlinkat (configure.ac): ... to here.
16944
16945 2011-05-21  Bruno Haible  <bruno@clisp.org>
16946
16947         readlink: Move AC_LIBOBJ invocations to module description.
16948         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16949         gl_PREREQ_READLINK invocations from here...
16950         * modules/readlink (configure.ac): ... to here.
16951
16952 2011-05-21  Bruno Haible  <bruno@clisp.org>
16953
16954         readline: Move AC_LIBOBJ invocations to module description.
16955         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16956         gl_PREREQ_READLINE invocations from here...
16957         * modules/readline (configure.ac): ... to here.
16958
16959 2011-05-21  Bruno Haible  <bruno@clisp.org>
16960
16961         read: Move AC_LIBOBJ invocations to module description.
16962         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16963         * modules/read (configure.ac): ... to here.
16964
16965 2011-05-21  Bruno Haible  <bruno@clisp.org>
16966
16967         rawmemchr: Move AC_LIBOBJ invocations to module description.
16968         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16970         from here...
16971         * modules/rawmemchr (configure.ac): ... to here.
16972
16973 2011-05-21  Bruno Haible  <bruno@clisp.org>
16974
16975         random_r: Move AC_LIBOBJ invocations to module description.
16976         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16977         gl_PREREQ_RANDOM_R invocations from here...
16978         * modules/random_r (configure.ac): ... to here.
16979
16980 2011-05-21  Bruno Haible  <bruno@clisp.org>
16981
16982         pwrite: Move AC_LIBOBJ invocations to module description.
16983         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16984         * modules/pwrite (configure.ac): ... to here.
16985
16986 2011-05-21  Bruno Haible  <bruno@clisp.org>
16987
16988         putenv: Move AC_LIBOBJ invocations to module description.
16989         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16990         * modules/putenv (configure.ac): ... to here.
16991
16992 2011-05-21  Bruno Haible  <bruno@clisp.org>
16993
16994         login_tty: Move AC_LIBOBJ invocations to module description.
16995         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16996         * modules/login_tty (configure.ac): ... to here.
16997
16998 2011-05-21  Bruno Haible  <bruno@clisp.org>
16999
17000         openpty: Move AC_LIBOBJ invocations to module description.
17001         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17002         * modules/openpty (configure.ac): ... to here.
17003
17004 2011-05-21  Bruno Haible  <bruno@clisp.org>
17005
17006         forkpty: Move AC_LIBOBJ invocations to module description.
17007         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17008         * modules/forkpty (configure.ac): ... to here.
17009
17010 2011-05-21  Bruno Haible  <bruno@clisp.org>
17011
17012         ptsname: Move AC_LIBOBJ invocations to module description.
17013         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17014         invocations from here...
17015         * modules/ptsname (configure.ac): ... to here.
17016
17017 2011-05-21  Bruno Haible  <bruno@clisp.org>
17018
17019         pread: Move AC_LIBOBJ invocations to module description.
17020         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17021         * modules/pread (configure.ac): ... to here.
17022
17023 2011-05-21  Bruno Haible  <bruno@clisp.org>
17024
17025         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17026         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17027         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17028         * modules/posix_spawn (configure.ac): ... to here.
17029         * modules/posix_spawnp (configure.ac): ... and here.
17030
17031 2011-05-21  Bruno Haible  <bruno@clisp.org>
17032
17033         popen: Move AC_LIBOBJ invocations to module description.
17034         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17035         invocations from here...
17036         * modules/popen (configure.ac): ... to here.
17037
17038 2011-05-21  Bruno Haible  <bruno@clisp.org>
17039
17040         poll: Move AC_LIBOBJ invocations to module description.
17041         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17042         invocations from here...
17043         * modules/poll (configure.ac): ... to here.
17044
17045 2011-05-21  Bruno Haible  <bruno@clisp.org>
17046
17047         pipe-posix: Move AC_LIBOBJ invocations to module description.
17048         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17049         * modules/pipe-posix (configure.ac): ... to here.
17050
17051 2011-05-21  Bruno Haible  <bruno@clisp.org>
17052
17053         openat: Respect rules for use of AC_LIBOBJ.
17054         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17055         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17056         * modules/openat (configure.ac): ... to here.
17057
17058 2011-05-21  Bruno Haible  <bruno@clisp.org>
17059
17060         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17061         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17062         invocation from here...
17063         * modules/obstack-printf (configure.ac): ... to here.
17064         * modules/obstack-printf-posix (configure.ac): ... and here.
17065
17066 2011-05-21  Bruno Haible  <bruno@clisp.org>
17067
17068         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17069         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17070         from here...
17071         * modules/nl_langinfo (configure.ac): ... to here.
17072
17073 2011-05-21  Bruno Haible  <bruno@clisp.org>
17074
17075         nanosleep: Move AC_LIBOBJ invocations to module description.
17076         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17077         gl_PREREQ_NANOSLEEP invocations from here...
17078         * modules/nanosleep (configure.ac): ... to here.
17079
17080 2011-05-21  Bruno Haible  <bruno@clisp.org>
17081
17082         mountlist: Move AC_LIBOBJ invocations to module description.
17083         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17084         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17085         * modules/mountlist (configure.ac): ... to here.
17086
17087 2011-05-21  Bruno Haible  <bruno@clisp.org>
17088
17089         mktime: Respect rules for use of AC_LIBOBJ.
17090         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17091         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17092         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17093         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17094         * modules/mktime (configure.ac): ... to here.
17095         * modules/mktime-internal (configure.ac): ... and here.
17096         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17097
17098 2011-05-21  Bruno Haible  <bruno@clisp.org>
17099
17100         mkstemps: Move AC_LIBOBJ invocations to module description.
17101         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17102         here...
17103         * modules/mkstemps (configure.ac): ... to here.
17104
17105 2011-05-21  Bruno Haible  <bruno@clisp.org>
17106
17107         mkstemp: Move AC_LIBOBJ invocations to module description.
17108         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17109         gl_PREREQ_MKSTEMP invocations from here...
17110         * modules/mkstemp (configure.ac): ... to here.
17111
17112 2011-05-21  Bruno Haible  <bruno@clisp.org>
17113
17114         mkostemps: Move AC_LIBOBJ invocations to module description.
17115         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17116         here...
17117         * modules/mkostemps (configure.ac): ... to here.
17118
17119 2011-05-21  Bruno Haible  <bruno@clisp.org>
17120
17121         mkostemp: Move AC_LIBOBJ invocations to module description.
17122         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17123         gl_PREREQ_MKOSTEMP invocations from here...
17124         * modules/mkostemp (configure.ac): ... to here.
17125
17126 2011-05-21  Bruno Haible  <bruno@clisp.org>
17127
17128         mknod: Move AC_LIBOBJ invocations to module description.
17129         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17130         * modules/mknod (configure.ac): ... to here.
17131
17132 2011-05-21  Bruno Haible  <bruno@clisp.org>
17133
17134         mkfifoat: Move AC_LIBOBJ invocations to module description.
17135         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17136         here...
17137         * modules/mkfifoat (configure.ac): ... to here.
17138
17139 2011-05-21  Bruno Haible  <bruno@clisp.org>
17140
17141         mkfifo: Respect rules for use of AC_LIBOBJ.
17142         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17143         here...
17144         * modules/mkfifo (configure.ac): ... to here.
17145
17146 2011-05-21  Bruno Haible  <bruno@clisp.org>
17147
17148         mkdtemp: Move AC_LIBOBJ invocations to module description.
17149         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17150         invocations from here...
17151         * modules/mkdtemp (configure.ac): ... to here.
17152
17153 2011-05-21  Bruno Haible  <bruno@clisp.org>
17154
17155         mkdir: Move AC_LIBOBJ invocations to module description.
17156         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17157         * modules/mkdir (configure.ac): ... to here.
17158
17159 2011-05-21  Bruno Haible  <bruno@clisp.org>
17160
17161         memset: Move AC_LIBOBJ invocations to module description.
17162         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17163         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17164         here...
17165         * modules/memset (configure.ac): ... to here.
17166
17167 2011-05-21  Bruno Haible  <bruno@clisp.org>
17168
17169         memrchr: Move AC_LIBOBJ invocations to module description.
17170         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17171         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17172         here...
17173         * modules/memrchr (configure.ac): ... to here.
17174
17175 2011-05-21  Bruno Haible  <bruno@clisp.org>
17176
17177         mempcpy: Move AC_LIBOBJ invocations to module description.
17178         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17180         here...
17181         * modules/mempcpy (configure.ac): ... to here.
17182
17183 2011-05-21  Bruno Haible  <bruno@clisp.org>
17184
17185         memmove: Move AC_LIBOBJ invocations to module description.
17186         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17187         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17188         here...
17189         * modules/memmove (configure.ac): ... to here.
17190
17191 2011-05-21  Bruno Haible  <bruno@clisp.org>
17192
17193         memmem*: Move AC_LIBOBJ invocations to module description.
17194         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17195         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17196         here...
17197         (gl_FUNC_MEMMEM): ... and here...
17198         * modules/memmem-simple (configure.ac): ... to here.
17199         * modules/memmem (configure.ac): ... and here.
17200
17201 2011-05-21  Bruno Haible  <bruno@clisp.org>
17202
17203         memcpy: Move AC_LIBOBJ invocations to module description.
17204         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17205         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17206         here...
17207         * modules/memcpy (configure.ac): ... to here.
17208
17209 2011-05-21  Bruno Haible  <bruno@clisp.org>
17210
17211         memcmp: Simplify autoconf macro.
17212         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17213         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17214         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17215
17216 2011-05-21  Bruno Haible  <bruno@clisp.org>
17217
17218         memcmp: Move AC_LIBOBJ invocations to module description.
17219         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17220         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17221         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17222         * modules/memcmp (configure.ac): ... to here.
17223         (Depends-on): Update conditions.
17224
17225 2011-05-21  Bruno Haible  <bruno@clisp.org>
17226
17227         memchr: Respect rules for use of AC_LIBOBJ.
17228         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17229         invocations from here...
17230         * modules/memchr (configure.ac): ... to here.
17231
17232 2011-05-21  Bruno Haible  <bruno@clisp.org>
17233
17234         mbtowc: Move AC_LIBOBJ invocations to module description.
17235         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17236         invocations from here...
17237         * modules/mbtowc (configure.ac): ... to here.
17238
17239 2011-05-21  Bruno Haible  <bruno@clisp.org>
17240
17241         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17242         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17243         gl_PREREQ_MBSRTOWCS invocations from here...
17244         * modules/mbsrtowcs (configure.ac): ... to here.
17245
17246 2011-05-21  Bruno Haible  <bruno@clisp.org>
17247
17248         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17249         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17250         gl_PREREQ_MBSNRTOWCS invocations from here...
17251         * modules/mbsnrtowcs (configure.ac): ... to here.
17252
17253 2011-05-21  Bruno Haible  <bruno@clisp.org>
17254
17255         mbsinit: Move AC_LIBOBJ invocations to module description.
17256         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17257         invocations from here...
17258         * modules/mbsinit (configure.ac): ... to here.
17259
17260 2011-05-21  Bruno Haible  <bruno@clisp.org>
17261
17262         mbrlen: Move AC_LIBOBJ invocations to module description.
17263         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17264         invocations from here...
17265         * modules/mbrlen (configure.ac): ... to here.
17266
17267 2011-05-21  Bruno Haible  <bruno@clisp.org>
17268
17269         mbrtowc: Respect rules for use of AC_LIBOBJ.
17270         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17271         invocations from here...
17272         * modules/mbrtowc (configure.ac): ... to here.
17273
17274 2011-05-21  Bruno Haible  <bruno@clisp.org>
17275
17276         malloc-*: Move AC_LIBOBJ invocations to module description.
17277         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17278         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17279         AC_LIBOBJ invocations from here...
17280         * modules/malloc-gnu (configure.ac): ... to here.
17281         * modules/malloc-posix (configure.ac): ... and here.
17282
17283 2011-05-21  Bruno Haible  <bruno@clisp.org>
17284
17285         lstat, openat: Respect rules for use of AC_LIBOBJ.
17286         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17287         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17288         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17289         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17290         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17291         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17292         here.
17293         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17294
17295 2011-05-21  Bruno Haible  <bruno@clisp.org>
17296
17297         lseek: Move AC_LIBOBJ invocations to module description.
17298         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17299         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17300         * modules/lseek (configure.ac): ... to here.
17301
17302 2011-05-21  Bruno Haible  <bruno@clisp.org>
17303
17304         linkat: Move AC_LIBOBJ invocations to module description.
17305         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17306         here...
17307         * modules/linkat (configure.ac): ... to here.
17308
17309 2011-05-21  Bruno Haible  <bruno@clisp.org>
17310
17311         link: Respect rules for use of AC_LIBOBJ.
17312         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17313         * modules/link (configure.ac): ... to here.
17314
17315 2011-05-21  Bruno Haible  <bruno@clisp.org>
17316
17317         lchown: Move AC_LIBOBJ invocations to module description.
17318         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17319         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17320         * modules/lchown (configure.ac): ... to here.
17321
17322 2011-05-21  Bruno Haible  <bruno@clisp.org>
17323
17324         iswctype: Move AC_LIBOBJ invocations to module description.
17325         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17326         here...
17327         * modules/iswctype (configure.ac): ... to here.
17328
17329 2011-05-21  Bruno Haible  <bruno@clisp.org>
17330
17331         iswblank: Move AC_LIBOBJ invocations to module description.
17332         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17333         here...
17334         * modules/iswblank (configure.ac): ... to here.
17335
17336 2011-05-21  Bruno Haible  <bruno@clisp.org>
17337
17338         atanl: Move AC_LIBOBJ invocations to module description.
17339         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17340         * modules/atanl (configure.ac): ... to here.
17341
17342 2011-05-21  Bruno Haible  <bruno@clisp.org>
17343
17344         acosl: Move AC_LIBOBJ invocations to module description.
17345         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17346         * modules/acosl (configure.ac): ... to here.
17347
17348 2011-05-21  Bruno Haible  <bruno@clisp.org>
17349
17350         asinl: Respect rules for use of AC_LIBOBJ.
17351         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17352         * modules/asinl (configure.ac): ... to here.
17353
17354 2011-05-21  Bruno Haible  <bruno@clisp.org>
17355
17356         tanl: Move AC_LIBOBJ invocations to module description.
17357         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17358         * modules/tanl (configure.ac): ... to here.
17359
17360 2011-05-21  Bruno Haible  <bruno@clisp.org>
17361
17362         cosl: Move AC_LIBOBJ invocations to module description.
17363         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17364         * modules/cosl (configure.ac): ... to here.
17365
17366 2011-05-21  Bruno Haible  <bruno@clisp.org>
17367
17368         sinl: Move AC_LIBOBJ invocations to module description.
17369         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17370         * modules/sinl (configure.ac): ... to here.
17371
17372 2011-05-21  Bruno Haible  <bruno@clisp.org>
17373
17374         logl: Move AC_LIBOBJ invocations to module description.
17375         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17376         * modules/logl (configure.ac): ... to here.
17377
17378 2011-05-21  Bruno Haible  <bruno@clisp.org>
17379
17380         expl: Move AC_LIBOBJ invocations to module description.
17381         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17382         * modules/expl (configure.ac): ... to here.
17383
17384 2011-05-21  Bruno Haible  <bruno@clisp.org>
17385
17386         roundl: Move AC_LIBOBJ invocations to module description.
17387         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17388         * modules/roundl (configure.ac): ... to here.
17389
17390 2011-05-21  Bruno Haible  <bruno@clisp.org>
17391
17392         round: Move AC_LIBOBJ invocations to module description.
17393         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17394         * modules/round (configure.ac): ... to here.
17395
17396 2011-05-21  Bruno Haible  <bruno@clisp.org>
17397
17398         roundf: Move AC_LIBOBJ invocations to module description.
17399         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17400         * modules/roundf (configure.ac): ... to here.
17401
17402 2011-05-21  Bruno Haible  <bruno@clisp.org>
17403
17404         truncl: Move AC_LIBOBJ invocations to module description.
17405         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17406         * modules/truncl (configure.ac): ... to here.
17407
17408 2011-05-21  Bruno Haible  <bruno@clisp.org>
17409
17410         trunc: Move AC_LIBOBJ invocations to module description.
17411         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17412         * modules/trunc (configure.ac): ... to here.
17413
17414 2011-05-21  Bruno Haible  <bruno@clisp.org>
17415
17416         truncf: Move AC_LIBOBJ invocations to module description.
17417         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17418         * modules/truncf (configure.ac): ... to here.
17419
17420 2011-05-21  Bruno Haible  <bruno@clisp.org>
17421
17422         ceill: Move AC_LIBOBJ invocations to module description.
17423         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17424         * modules/ceill (configure.ac): ... to here.
17425
17426 2011-05-21  Bruno Haible  <bruno@clisp.org>
17427
17428         ceil: Move AC_LIBOBJ invocations to module description.
17429         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17430         * modules/ceil (configure.ac): ... to here.
17431
17432 2011-05-21  Bruno Haible  <bruno@clisp.org>
17433
17434         ceilf: Move AC_LIBOBJ invocations to module description.
17435         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17436         * modules/ceilf (configure.ac): ... to here.
17437
17438 2011-05-21  Bruno Haible  <bruno@clisp.org>
17439
17440         floorl: Respect rules for use of AC_LIBOBJ.
17441         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17442         * modules/floorl (configure.ac): ... to here.
17443
17444 2011-05-21  Bruno Haible  <bruno@clisp.org>
17445
17446         floor: Respect rules for use of AC_LIBOBJ.
17447         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17448         * modules/floor (configure.ac): ... to here.
17449
17450 2011-05-21  Bruno Haible  <bruno@clisp.org>
17451
17452         floorf: Move AC_LIBOBJ invocations to module description.
17453         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17454         * modules/floorf (configure.ac): ... to here.
17455
17456 2011-05-20  Bruno Haible  <bruno@clisp.org>
17457
17458         sqrtl: Respect rules for use of AC_LIBOBJ.
17459         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17460         * modules/sqrtl (configure.ac): ... to here.
17461
17462 2011-05-20  Bruno Haible  <bruno@clisp.org>
17463
17464         ldexpl: Respect rules for use of AC_LIBOBJ.
17465         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17466         * modules/ldexpl (configure.ac): ... to here.
17467
17468 2011-05-20  Bruno Haible  <bruno@clisp.org>
17469
17470         frexpl*: Respect rules for use of AC_LIBOBJ.
17471         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17472         invocation from here...
17473         * modules/frexpl (configure.ac): ... to here.
17474         * modules/frexpl-nolibm (configure.ac): ... and here.
17475
17476 2011-05-20  Bruno Haible  <bruno@clisp.org>
17477
17478         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17479         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17480         invocation from here...
17481         * modules/frexp (configure.ac): ... to here.
17482         * modules/frexp-nolibm (configure.ac): ... and here.
17483
17484 2011-05-20  Bruno Haible  <bruno@clisp.org>
17485
17486         isnan: Respect rules for use of AC_LIBOBJ.
17487         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17488         invocations here.
17489         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17490         REPLACE_ISNAN.
17491         * modules/isnand (configure.ac): Likewise.
17492         * modules/isnanl (configure.ac): Likewise.
17493
17494 2011-05-20  Bruno Haible  <bruno@clisp.org>
17495
17496         isnanl*: Respect rules for use of AC_LIBOBJ.
17497         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17498         invocation from here...
17499         * modules/isnanl (configure.ac): ... to here.
17500         * modules/isnanl-nolibm (configure.ac): ... and here.
17501
17502 2011-05-20  Bruno Haible  <bruno@clisp.org>
17503
17504         isnand*: Move AC_LIBOBJ invocations to module description.
17505         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17506         invocation from here...
17507         * modules/isnand (configure.ac): ... to here.
17508         * modules/isnand-nolibm (configure.ac): ... and here.
17509
17510 2011-05-20  Bruno Haible  <bruno@clisp.org>
17511
17512         isnanf*: Move AC_LIBOBJ invocations to module description.
17513         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17514         invocation from here...
17515         * modules/isnanf (configure.ac): ... to here.
17516         * modules/isnanf-nolibm (configure.ac): ... and here.
17517
17518 2011-05-20  Bruno Haible  <bruno@clisp.org>
17519
17520         isnan*: Separate the AC_LIBOBJ invocations.
17521         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17522         AC_LIBOBJ invocation.
17523         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17524         here.
17525         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17526         AC_LIBOBJ invocation.
17527         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17528         here.
17529         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17530         AC_LIBOBJ invocation.
17531         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17532         here.
17533         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17534
17535 2011-05-08  Bruno Haible  <bruno@clisp.org>
17536
17537         isinf: Move AC_LIBOBJ invocations to module description.
17538         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17539         * modules/isinf (configure.ac): ... to here.
17540
17541 2011-05-08  Bruno Haible  <bruno@clisp.org>
17542
17543         isfinite: Move AC_LIBOBJ invocations to module description.
17544         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17545         * modules/isfinite (configure.ac): ... to here.
17546
17547 2011-05-08  Bruno Haible  <bruno@clisp.org>
17548
17549         isblank: Move AC_LIBOBJ invocations to module description.
17550         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17551         here...
17552         * modules/isblank (configure.ac): ... to here.
17553
17554 2011-05-08  Bruno Haible  <bruno@clisp.org>
17555
17556         isapipe: Move AC_LIBOBJ invocations to module description.
17557         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17558         gl_PREREQ_ISAPIPE invocations from here...
17559         * modules/isapipe (configure.ac): ... to here.
17560         (Depends-on): Update condition.
17561
17562 2011-05-08  Bruno Haible  <bruno@clisp.org>
17563
17564         ioctl: Move AC_LIBOBJ invocations to module description.
17565         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17566         invocations from here...
17567         * modules/ioctl (configure.ac): ... to here.
17568         (Depends-on): Update condition.
17569
17570 2011-05-08  Bruno Haible  <bruno@clisp.org>
17571
17572         imaxdiv: Move AC_LIBOBJ invocations to module description.
17573         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17574         invocations from here...
17575         * modules/imaxdiv (configure.ac): ... to here.
17576
17577 2011-05-08  Bruno Haible  <bruno@clisp.org>
17578
17579         imaxabs: Move AC_LIBOBJ invocations to module description.
17580         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17581         invocations from here...
17582         * modules/imaxabs (configure.ac): ... to here.
17583
17584 2011-05-08  Bruno Haible  <bruno@clisp.org>
17585
17586         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17587         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17588         AC_LIBOBJ invocations from here...
17589         * modules/getaddrinfo (configure.ac): ... to here.
17590         (Depends-on): Add conditions.
17591
17592 2011-05-08  Bruno Haible  <bruno@clisp.org>
17593
17594         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17595         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17596         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17597         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17598         (gl_PREREQ_INET_PTON): ... from here.
17599         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17600         gl_PREREQ_INET_PTON here.
17601         (Depends-on): Update condition.
17602
17603 2011-05-08  Bruno Haible  <bruno@clisp.org>
17604
17605         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17606         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17607         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17608         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17609         (gl_PREREQ_INET_NTOP): ... from here.
17610         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17611         gl_PREREQ_INET_NTOP here.
17612         (Depends-on): Update condition.
17613
17614 2011-05-08  Bruno Haible  <bruno@clisp.org>
17615
17616         iconv_open: Move AC_LIBOBJ invocations to module description.
17617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17618         AC_LIBOBJ invocations from here...
17619         * modules/iconv_open (configure.ac): ... to here.
17620
17621 2011-05-08  Bruno Haible  <bruno@clisp.org>
17622
17623         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17624         If module 'iconv_open' is among the main modules and module
17625         'iconv_open-utf' is among the tests dependencies, then
17626         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17627         return the special iconv_t values. Therefore iconv() and iconv_close()
17628         must support these special iconv_t values, already in lib, not only in
17629         tests.
17630         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17631         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17632         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17633         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17634         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17635         (Depends-on): Add the dependencies of iconv_open-utf.
17636         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17637         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17638         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17639
17640 2011-05-08  Bruno Haible  <bruno@clisp.org>
17641
17642         group-member: Move AC_LIBOBJ invocations to module description.
17643         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17644         gl_PREREQ_GROUP_MEMBER invocations from here...
17645         * modules/group-member (configure.ac): ... to here.
17646
17647 2011-05-08  Bruno Haible  <bruno@clisp.org>
17648
17649         grantpt: Move AC_LIBOBJ invocations to module description.
17650         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17651         invocations from here...
17652         * modules/grantpt (configure.ac): ... to here.
17653
17654 2011-05-08  Bruno Haible  <bruno@clisp.org>
17655
17656         glob: Move AC_LIBOBJ invocations to module description.
17657         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17658         from here...
17659         * modules/glob (configure.ac): ... to here.
17660
17661 2011-05-08  Bruno Haible  <bruno@clisp.org>
17662
17663         getusershell: Move AC_LIBOBJ invocations to module description.
17664         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17665         Move AC_LIBOBJ invocation from here...
17666         * modules/getusershell (configure.ac): ... to here.
17667         (Depends-on): Update condition.
17668
17669 2011-05-08  Bruno Haible  <bruno@clisp.org>
17670
17671         gettimeofday: Move AC_LIBOBJ invocations to module description.
17672         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17673         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17674         gl_PREREQ_GETTIMEOFDAY invocations from here...
17675         * modules/gettimeofday (configure.ac): ... to here.
17676
17677 2011-05-08  Bruno Haible  <bruno@clisp.org>
17678
17679         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17680         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17681         just gl_FUNC_TZSET.
17682         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17683         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17684         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17685         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17686
17687 2011-05-08  Bruno Haible  <bruno@clisp.org>
17688
17689         getsubopt: Move AC_LIBOBJ invocations to module description.
17690         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17691         gl_PREREQ_GETSUBOPT invocations from here...
17692         * modules/getsubopt (configure.ac): ... to here.
17693
17694 2011-05-08  Bruno Haible  <bruno@clisp.org>
17695
17696         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17697         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17698         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17699         * modules/getpass-gnu (configure.ac): ... to here.
17700
17701 2011-05-08  Bruno Haible  <bruno@clisp.org>
17702
17703         getpass: Move AC_LIBOBJ invocations to module description.
17704         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17705         gl_PREREQ_GETPASS invocations from here...
17706         * modules/getpass (configure.ac): ... to here.
17707
17708 2011-05-08  Bruno Haible  <bruno@clisp.org>
17709
17710         getpagesize: Move AC_LIBOBJ invocations to module description.
17711         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17712         from here...
17713         * modules/getpagesize (configure.ac): ... to here.
17714
17715 2011-05-08  Bruno Haible  <bruno@clisp.org>
17716
17717         getopt: Move AC_LIBOBJ invocations to module description.
17718         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17719         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17720         invocations from here...
17721         * modules/getopt-gnu (configure.ac): ... to here.
17722         * modules/getopt-posix (configure.ac): ... and here.
17723         (Depends-on): Update condition.
17724
17725 2011-05-08  Bruno Haible  <bruno@clisp.org>
17726
17727         getopt, argp: Respect rules for use of AC_LIBOBJ.
17728         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17729         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17730         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17731         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17732
17733 2011-05-08  Bruno Haible  <bruno@clisp.org>
17734
17735         getlogin_r: Move AC_LIBOBJ invocations to module description.
17736         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17737         gl_PREREQ_GETLOGIN_R invocations from here...
17738         * modules/getlogin_r (configure.ac): ... to here.
17739
17740 2011-05-08  Bruno Haible  <bruno@clisp.org>
17741
17742         getlogin: Move AC_LIBOBJ invocations to module description.
17743         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17744         here...
17745         * modules/getlogin (configure.ac): ... to here.
17746
17747 2011-05-08  Bruno Haible  <bruno@clisp.org>
17748
17749         getloadavg: Move AC_LIBOBJ invocations to module description.
17750         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17751         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17752         * modules/getloadavg (configure.ac): ... to here.
17753
17754 2011-05-08  Bruno Haible  <bruno@clisp.org>
17755
17756         gethrxtime: Move AC_LIBOBJ invocations to module description.
17757         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17758         LIB_GETHRXTIME from here...
17759         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17760         invocations from here...
17761         * modules/gethrxtime (configure.ac): ... to here.
17762
17763 2011-05-08  Bruno Haible  <bruno@clisp.org>
17764
17765         gethostname: Move AC_LIBOBJ invocations to module description.
17766         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17767         gl_PREREQ_GETHOSTNAME invocations from here...
17768         * modules/gethostname (configure.ac): ... to here.
17769
17770 2011-05-08  Bruno Haible  <bruno@clisp.org>
17771
17772         getgroups: Move AC_LIBOBJ invocations to module description.
17773         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17774         here...
17775         * modules/getgroups (configure.ac): ... to here.
17776
17777 2011-05-08  Bruno Haible  <bruno@clisp.org>
17778
17779         getdtablesize: Move AC_LIBOBJ invocations to module description.
17780         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17781         invocation from here...
17782         * modules/getdtablesize (configure.ac): ... to here.
17783
17784 2011-05-08  Bruno Haible  <bruno@clisp.org>
17785
17786         getdomainname: Move AC_LIBOBJ invocations to module description.
17787         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17788         gl_PREREQ_GETDOMAINNAME invocations from here...
17789         * modules/getdomainname (configure.ac): ... to here.
17790
17791 2011-05-08  Bruno Haible  <bruno@clisp.org>
17792
17793         getline: Move AC_LIBOBJ invocations to module description.
17794         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17795         invocations from here...
17796         * modules/getline (configure.ac): ... to here.
17797
17798 2011-05-08  Bruno Haible  <bruno@clisp.org>
17799
17800         getline: Simplify.
17801         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17802         It's already handled through the module dependency.
17803
17804 2011-05-08  Bruno Haible  <bruno@clisp.org>
17805
17806         getdelim: Move AC_LIBOBJ invocations to module description.
17807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17808         and gl_PREREQ_GETDELIM invocations from here...
17809         * modules/getdelim (configure.ac): ... to here.
17810         (Depends-on): Fix condition.
17811
17812 2011-05-08  Bruno Haible  <bruno@clisp.org>
17813
17814         getcwd: Move AC_LIBOBJ invocations to module description.
17815         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17816         invocations from here...
17817         * modules/getcwd (configure.ac): ... to here.
17818
17819 2011-05-08  Bruno Haible  <bruno@clisp.org>
17820
17821         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17822         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17823         here...
17824         * modules/getcwd-lgpl (configure.ac): ... to here.
17825
17826 2011-05-07  Bruno Haible  <bruno@clisp.org>
17827
17828         crypto/gc: Move AC_LIBOBJ invocations to module description.
17829         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17830         * modules/crypto/gc (configure.ac): ... to here.
17831
17832 2011-05-07  Bruno Haible  <bruno@clisp.org>
17833
17834         fwriting: Move AC_LIBOBJ invocations to module description.
17835         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17836         here...
17837         * modules/fwriting (configure.ac): ... to here.
17838
17839 2011-05-07  Bruno Haible  <bruno@clisp.org>
17840
17841         fwritable: Move AC_LIBOBJ invocations to module description.
17842         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17843         here...
17844         * modules/fwritable (configure.ac): ... to here.
17845
17846 2011-05-07  Bruno Haible  <bruno@clisp.org>
17847
17848         futimens: Move AC_LIBOBJ invocations to module description.
17849         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17850         here...
17851         * modules/futimens (configure.ac): ... to here.
17852
17853 2011-05-07  Bruno Haible  <bruno@clisp.org>
17854
17855         ftruncate: Move AC_LIBOBJ invocations to module description.
17856         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17857         gl_PREREQ_FTRUNCATE invocations from here...
17858         * modules/ftruncate (configure.ac): ... to here.
17859
17860 2011-05-07  Bruno Haible  <bruno@clisp.org>
17861
17862         fsync: Move AC_LIBOBJ invocations to module description.
17863         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17864         invocations from here...
17865         * modules/fsync (configure.ac): ... to here.
17866
17867 2011-05-07  Bruno Haible  <bruno@clisp.org>
17868
17869         fsusage: Move AC_LIBOBJ invocations to module description.
17870         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17871         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17872         * modules/fsusage (configure.ac): ... to here.
17873
17874 2011-05-07  Bruno Haible  <bruno@clisp.org>
17875
17876         freopen: Move AC_LIBOBJ invocations to module description.
17877         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17878         invocations from here...
17879         * modules/freopen (configure.ac): ... to here.
17880
17881 2011-05-07  Bruno Haible  <bruno@clisp.org>
17882
17883         free: Move AC_LIBOBJ invocations to module description.
17884         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17885         invocations from here...
17886         * modules/free (configure.ac): ... to here.
17887
17888 2011-05-07  Bruno Haible  <bruno@clisp.org>
17889
17890         freadable: Move AC_LIBOBJ invocations to module description.
17891         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17892         here...
17893         * modules/freadable (configure.ac): ... to here.
17894
17895 2011-05-07  Bruno Haible  <bruno@clisp.org>
17896
17897         fpurge: Move AC_LIBOBJ invocations to module description.
17898         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17899         invocations from here...
17900         * modules/fpurge (configure.ac): ... to here.
17901
17902 2011-05-07  Bruno Haible  <bruno@clisp.org>
17903
17904         fpending: Move AC_LIBOBJ invocations to module description.
17905         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17906         gl_FUNC_FPENDING.
17907         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17908         invocations from here...
17909         * modules/fpending (configure.ac): ... to here.
17910
17911 2011-05-07  Bruno Haible  <bruno@clisp.org>
17912
17913         fopen: Move AC_LIBOBJ invocations to module description.
17914         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17915         invocations from here...
17916         * modules/fopen (configure.ac): ... to here.
17917
17918 2011-05-07  Bruno Haible  <bruno@clisp.org>
17919
17920         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17921         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17922         gl_FUNC_FNMATCH_POSIX.
17923         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17924         invocations from here...
17925         * modules/fnmatch (configure.ac): ... to here.
17926         * modules/fnmatch-gnu (configure.ac): ... and here.
17927
17928 2011-05-07  Bruno Haible  <bruno@clisp.org>
17929
17930         flock: Move AC_LIBOBJ invocations to module description.
17931         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17932         invocations from here...
17933         * modules/flock (configure.ac): ... to here.
17934
17935 2011-05-07  Bruno Haible  <bruno@clisp.org>
17936
17937         fileblocks: Move AC_LIBOBJ invocations to module description.
17938         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17939         gl_PREREQ_FILEBLOCKS invocations from here...
17940         * modules/fileblocks (configure.ac): ... to here.
17941
17942 2011-05-06  Bruno Haible  <bruno@clisp.org>
17943
17944         fflush: Move AC_LIBOBJ invocations to module description.
17945         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17946         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17947         invocations from here...
17948         * modules/fflush (configure.ac): ... to here.
17949
17950 2011-05-06  Bruno Haible  <bruno@clisp.org>
17951
17952         fdopendir: Move AC_LIBOBJ invocations to module description.
17953         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17954         here...
17955         * modules/fdopendir (configure.ac): ... to here.
17956         (Depends-on): Improve conditions.
17957
17958 2011-05-06  Bruno Haible  <bruno@clisp.org>
17959
17960         _Exit: Move AC_LIBOBJ invocations to module description.
17961         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17962         invocations from here...
17963         * modules/_Exit (configure.ac): ... to here.
17964
17965 2011-05-21  Bruno Haible  <bruno@clisp.org>
17966
17967         euidaccess: Respect rules for use of AC_LIBOBJ.
17968         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17969         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17970         from here...
17971         * modules/euidaccess (configure.ac): ... to here.
17972
17973 2011-05-06  Bruno Haible  <bruno@clisp.org>
17974
17975         error: Move AC_LIBOBJ invocations to module description.
17976         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17977         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17978         invocations from here...
17979         * modules/error (configure.ac): ... to here.
17980
17981 2011-05-06  Bruno Haible  <bruno@clisp.org>
17982
17983         duplocale: Move AC_LIBOBJ invocations to module description.
17984         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17985         gl_PREREQ_DUPLOCALE invocations from here...
17986         * modules/duplocale (configure.ac): ... to here.
17987
17988 2011-05-05  Bruno Haible  <bruno@clisp.org>
17989
17990         dirfd: Move AC_LIBOBJ invocations to module description.
17991         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17992         gl_FUNC_DIRFD.
17993         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17994         here...
17995         * modules/dirfd (configure.ac): ... to here.
17996         (Depends-on): Fix condition.
17997
17998 2011-05-05  Bruno Haible  <bruno@clisp.org>
17999
18000         chown: Respect rules for use of AC_LIBOBJ.
18001         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18002         * modules/chown (configure.ac): ... to here.
18003
18004 2011-05-05  Bruno Haible  <bruno@clisp.org>
18005
18006         chdir-long: Move AC_LIBOBJ invocations to module description.
18007         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18008         gl_PREREQ_CHDIR_LONG invocations from here...
18009         * modules/chdir-long (configure.ac): ... to here.
18010
18011 2011-05-05  Bruno Haible  <bruno@clisp.org>
18012
18013         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18014         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18015         from here...
18016         * modules/canonicalize-lgpl (configure.ac): ... to here.
18017
18018 2011-05-05  Bruno Haible  <bruno@clisp.org>
18019
18020         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18021         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18022         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18023         REPLACE_CALLOC.
18024         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18025         * modules/calloc-gnu (configure.ac): Likewise.
18026
18027 2011-05-05  Bruno Haible  <bruno@clisp.org>
18028
18029         btowc: Move AC_LIBOBJ invocations to module description.
18030         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18031         invocations from here...
18032         * modules/btowc (configure.ac): ... to here.
18033
18034 2011-05-21  Bruno Haible  <bruno@clisp.org>
18035
18036         atexit: Move AC_LIBOBJ invocations to module description.
18037         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18038         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18039         here...
18040         * modules/atexit (configure.ac): ... to here.
18041
18042 2011-05-05  Bruno Haible  <bruno@clisp.org>
18043
18044         atoll: Move AC_LIBOBJ invocations to module description.
18045         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18046         invocations from here...
18047         * modules/atoll (configure.ac): ... to here.
18048
18049 2011-05-05  Bruno Haible  <bruno@clisp.org>
18050
18051         argz: Move AC_LIBOBJ invocations to module description.
18052         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18053         * modules/argz (configure.ac): ... to here.
18054
18055 2011-05-05  Bruno Haible  <bruno@clisp.org>
18056
18057         alphasort: Move AC_LIBOBJ invocations to module description.
18058         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18059         gl_PREREQ_ALPHASORT invocations from here...
18060         * modules/alphasort (configure.ac): ... to here.
18061
18062 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18063
18064         verify: new macro verify_expr; verify_true deprecated
18065         * NEWS: Mention this.
18066         * doc/verify.texi (Compile-time Assertions): Document this.
18067         * lib/verify.h (verify_true): Deprecate.
18068         (verify_expr): New macro.
18069         * tests/test-verify.c (function): Test verify_expr.
18070
18071 2011-06-14  Jim Meyering  <meyering@redhat.com>
18072
18073         init.sh: give more portable redirection-related advice in a comment
18074         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18075         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18076         for lots of discussion.  Stefano Lattarini suggested the solution
18077         of putting "9>&2" after the command.  Reported by Bruno Haible.
18078
18079 2011-06-13  Bruno Haible  <bruno@clisp.org>
18080
18081         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18082         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18083         'none'.
18084
18085 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18086
18087         ftoastr: use strtof only if HAVE_STRTOF
18088         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18090         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18091         * modules/ftoastr (configure.ac): Check for strtof.
18092
18093 2011-06-13  Bruno Haible  <bruno@clisp.org>
18094
18095         gnulib-tool: Addendum to 2011-06-08 commit.
18096         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18097         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18098
18099 2011-06-13  Bruno Haible  <bruno@clisp.org>
18100
18101         fseeko: Provide a non-inline replacement of fseek().
18102         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18103         * modules/fseeko (Depends-on): Add fseek.
18104         * modules/fseek (License): Change to LGPLv2+.
18105
18106 2011-06-13  Bruno Haible  <bruno@clisp.org>
18107
18108         ftello: Provide a non-inline replacement of ftell().
18109         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18110         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18111         not have ftello() (such as on mingw).
18112         * modules/ftello (Depends-on): Add ftell.
18113         * modules/ftell (License): Change to LGPLv2+.
18114
18115 2011-05-07  Bruno Haible  <bruno@clisp.org>
18116
18117         ftell: Move AC_LIBOBJ invocations to module description.
18118         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18119         * modules/ftell (configure.ac): ... to here.
18120
18121 2011-05-07  Bruno Haible  <bruno@clisp.org>
18122
18123         ftello: Respect rules for use of AC_LIBOBJ.
18124         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18125         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18126         here...
18127         * modules/ftello (configure.ac): ... to here.
18128
18129 2011-05-07  Bruno Haible  <bruno@clisp.org>
18130
18131         fseeko: Simplify.
18132         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18133         (gl_FUNC_FSEEKO): Inline it here.
18134
18135 2011-05-07  Bruno Haible  <bruno@clisp.org>
18136
18137         fseek: Move AC_LIBOBJ invocations to module description.
18138         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18139         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18140         * modules/fseek (configure.ac): ... to here.
18141
18142 2011-05-07  Bruno Haible  <bruno@clisp.org>
18143
18144         fseek: Respect rules for use of AC_LIBOBJ.
18145         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18146         here...
18147         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18148
18149 2011-05-07  Bruno Haible  <bruno@clisp.org>
18150
18151         fseeko: Respect rules for use of AC_LIBOBJ.
18152         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18153         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18154         here...
18155         * modules/fseeko (configure.ac): ... to here.
18156
18157 2011-06-13  Bruno Haible  <bruno@clisp.org>
18158
18159         gnulib-tool: Allow comments in the 'Depends-on' section.
18160         * doc/gnulib.texi (Module description): Mention comment syntax in the
18161         Depends-on section.
18162         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18163
18164 2011-06-13  Bruno Haible  <bruno@clisp.org>
18165
18166         file-set.h: guard __attibute__ use, now that it's not always defined
18167         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18168         versions that support it.  This fixes a coreutils build failure with
18169         the vendor cc on HP-UX 11.31.
18170
18171 2011-06-12  Bruno Haible  <bruno@clisp.org>
18172
18173         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18174         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18175         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18176         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18177         (acl, aclsort): New declarations.
18178         (aclv_nontrivial): New declaration.
18179         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18180         (file_has_acl): Read also the second kind of HP-UX ACLs.
18181         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18182         kind of HP-UX ACLs if the first kind fails.
18183         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18184         second kind of HP-UX ACLs.
18185         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18186         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18187         agree.
18188         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18189         hpuxjfs.
18190         Handle hpuxjfs.
18191         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18192         hpuxjfs.
18193         Handle hpuxjfs.
18194         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18195         (func_test_same_acls): Use both lsacl and getacl.
18196         Handle hpuxjfs.
18197         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18198         (func_test_same_acls): Use both lsacl and getacl.
18199         Handle hpuxjfs.
18200
18201 2011-06-12  Bruno Haible  <bruno@clisp.org>
18202
18203         acl: Complete the 2010-08-10 fix.
18204         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18205         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18206         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18207         explicitly.
18208         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18209         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18210
18211 2011-06-12  Bruno Haible  <bruno@clisp.org>
18212
18213         spawn-pipe tests: Comments.
18214         * tests/test-spawn-pipe-child.c (main): Update comment.
18215         Reported by James Youngman <jay@gnu.org>.
18216
18217 2011-06-11  James Youngman  <jay@gnu.org>
18218
18219         New module 'stat-size'.
18220         * modules/stat-size: New module.  Provides macros for accessing
18221         file size information in instances of struct stat.  Depends on the
18222         fileblocks module because it calls st_blocks.
18223         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18224         * doc/gnulib.texi: Include stat-size.texi.
18225         * doc/stat-size.texi: Documentation for this module.
18226         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18227         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18228         AC_STRUCT_ST_BLOCKS.
18229
18230 2011-06-09  Bruno Haible  <bruno@clisp.org>
18231
18232         thread: Support pthreads-win32.
18233         * lib/glthread/thread.h (gl_thread_self): Define differently on
18234         pthreads-win32.
18235         (gl_null_thread): New declaration.
18236         (gl_thread_self_pointer): New macro.
18237         * lib/glthread/thread.c (gl_null_thread): New constant.
18238         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18239         gl_thread_self.
18240         * tests/test-tls.c: Likewise.
18241         Suggested by Paul Eggert. Reported by Eric Blake.
18242
18243 2011-06-09  Bruno Haible  <bruno@clisp.org>
18244
18245         thread: Fix confusion between NULL and 0.
18246         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18247         Reported by Paul Eggert.
18248
18249 2011-06-09  Bruno Haible  <bruno@clisp.org>
18250
18251         spawn-pipe tests: Avoid test failure on HP-UX 11.
18252         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18253         is closed.
18254
18255 2011-06-09  Bruno Haible  <bruno@clisp.org>
18256
18257         acl tests: Fix compilation error on HP-UX 11.
18258         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18259
18260 2011-06-09  Bruno Haible  <bruno@clisp.org>
18261
18262         rmdir: Avoid test failure on HP-UX 10.20.
18263         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18264         EEXIST.
18265
18266 2011-06-08  Eric Blake  <eblake@redhat.com>
18267
18268         perror: fix test on mingw
18269         * modules/perror-tests (Depends-on): Add dup2.
18270
18271         strerror_r-posix: fix on MacOS
18272         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18273         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18274         logic bug.
18275         * lib/strerror_r.c (strerror_r): Fix the bug.
18276         * lib/strerror.c (strerror): Likewise.
18277         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18278         problem.
18279         * doc/posix-functions/strerror.texi (strerror): Likewise.
18280         * doc/posix-functions/perror.texi (perror): Likewise.
18281         * tests/test-strerror.c (main): Enhance test.
18282         * tests/test-strerror_r.c (main): Likewise.
18283
18284 2011-06-08  Bruno Haible  <bruno@clisp.org>
18285
18286         gnulib-tool: Better isolation between different gnulib-tool invocations.
18287         * gnulib-tool: New option --witness-c-macro.
18288         (witness_c_macro): New variable.
18289         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18290         AM_CPPFLAGS define it as a C macro.
18291         (func_emit_tests_Makefile_am): Likewise.
18292         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18293         read it from there.
18294         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18295         m4_define, not AC_DEFUN.
18296         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18297         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18298         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18299         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18300         s|...|...|, to substitute the values of the GNULIB_* module indicator
18301         variables.
18302         * modules/dirent (Makefile.am): Likewise.
18303         * modules/fcntl-h (Makefile.am): Likewise.
18304         * modules/iconv-h (Makefile.am): Likewise.
18305         * modules/langinfo (Makefile.am): Likewise.
18306         * modules/locale (Makefile.am): Likewise.
18307         * modules/math (Makefile.am): Likewise.
18308         * modules/netdb (Makefile.am): Likewise.
18309         * modules/poll-h (Makefile.am): Likewise.
18310         * modules/pty (Makefile.am): Likewise.
18311         * modules/search (Makefile.am): Likewise.
18312         * modules/signal (Makefile.am): Likewise.
18313         * modules/spawn (Makefile.am): Likewise.
18314         * modules/stdio (Makefile.am): Likewise.
18315         * modules/stdlib (Makefile.am): Likewise.
18316         * modules/string (Makefile.am): Likewise.
18317         * modules/sys_ioctl (Makefile.am): Likewise.
18318         * modules/sys_select (Makefile.am): Likewise.
18319         * modules/sys_socket (Makefile.am): Likewise.
18320         * modules/sys_stat (Makefile.am): Likewise.
18321         * modules/sys_times (Makefile.am): Likewise.
18322         * modules/sys_utsname (Makefile.am): Likewise.
18323         * modules/sys_wait (Makefile.am): Likewise.
18324         * modules/termios (Makefile.am): Likewise.
18325         * modules/time (Makefile.am): Likewise.
18326         * modules/unistd (Makefile.am): Likewise.
18327         * modules/wchar (Makefile.am): Likewise.
18328
18329 2011-06-08  Eric Blake  <eblake@redhat.com>
18330
18331         strerror: simplify replacement
18332         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18333         * modules/strerror (configure.ac): No prereqs needed here...
18334         * modules/strerror-override (configure.ac): ...but this needs it.
18335         (Files): Add file for needed prereq macro.
18336
18337 2011-06-08  Bruno Haible  <bruno@clisp.org>
18338
18339         strerror_r-posix: Tweaks.
18340         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18341         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18342         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18343         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18344         (gl_FUNC_STRERROR_R): ... to here.
18345         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18346
18347 2011-06-07  Eric Blake  <eblake@redhat.com>
18348
18349         perror: document fixed bugs
18350         * doc/posix-functions/perror.texi (perror): Document recent
18351         patches.
18352
18353 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18354
18355         stat-time: get_stat_birthtime failure is better-defined
18356         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18357         return a timestamp whose tv_sec and tv_nsec values are both -1.
18358         Previously, the spec said only that the tv_nsec value was negative.
18359         This upward-compatible change simplifies GNU tar a bit.
18360
18361 2011-06-07  Eric Blake  <eblake@redhat.com>
18362
18363         strerror_r-posix: work around cygwin 1.7.9
18364         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18365         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18366         bug without replacing strerror_r.
18367         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18368         strerror_r is buggy, but without requiring strerror_r compilation.
18369         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18370
18371         test-perror: relax test to ignore cygwin bug
18372         * tests/test-perror2.c (main): Relax test on requiring detection
18373         of stream errors, and use unbuffered stream.
18374         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18375         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18376         * doc/posix-functions/fputc.texi (fputc): Likewise.
18377         * doc/posix-functions/fputs.texi (fputs): Likewise.
18378         * doc/posix-functions/fputws.texi (fputws): Likewise.
18379         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18380         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18381         * doc/posix-functions/getopt.texi (getopt): Likewise.
18382         * doc/posix-functions/perror.texi (perror): Likewise.
18383         * doc/posix-functions/printf.texi (printf): Likewise.
18384         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18385         * doc/posix-functions/psignal.texi (psignal): Likewise.
18386         * doc/posix-functions/putc.texi (putc): Likewise.
18387         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18388         Likewise.
18389         * doc/posix-functions/putchar.texi (putchar): Likewise.
18390         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18391         Likewise.
18392         * doc/posix-functions/puts.texi (puts): Likewise.
18393         * doc/posix-functions/putwc.texi (putwc): Likewise.
18394         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18395         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18396         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18397         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18398         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18399         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18400         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18401         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18402
18403 2011-05-22  Bruno Haible  <bruno@clisp.org>
18404
18405         strerror: Move AC_LIBOBJ invocations to module description.
18406         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18407         gl_PREREQ_STRERROR invocations from here...
18408         * modules/strerror (configure.ac): ... to here.
18409
18410 2011-05-21  Bruno Haible  <bruno@clisp.org>
18411
18412         perror: Use common idiom.
18413         * modules/perror (configure.ac): Reorder statements.
18414
18415 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18416
18417         tests: fix usage message in 'mktempd_'
18418         * tests/init.sh (mktempd_): In the usage message, use literal
18419         'mktempd_', not '$ME' (which is even undefined), as the name of
18420         the subroutine.
18421
18422 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18423
18424         tests init: new function 'fatal_', for hard errors
18425         Before this patch, the only way offered by tests/init.sh to
18426         properly signal a hard error was the `framework_failure_'
18427         function.  But the error message issued by that function,
18428         as its name would suggest, refers to a set-up failure in the
18429         testsuite, while hard errors can obviously also be due to
18430         other reasons.  The best way to fix this inconsistency is to
18431         introduce a new function with a more general error message.
18432         * tests/init.sh (fatal_): New function.
18433
18434 2011-06-06  Eric Blake  <eblake@redhat.com>
18435
18436         canonicalize-lgpl: use common idiom
18437         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18438         over newer POSIX -Rf.
18439         Reported by Bruno Haible.
18440
18441         canonicalize-lgpl: work around AIX realpath bug
18442         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18443         * doc/posix-functions/realpath.texi (realpath): Document it.
18444         Reported by Bruno Haible.
18445
18446         strerror: work around FreeBSD bug
18447         * lib/strerror.c (strerror): Special case 0.
18448         Reported by Bruno Haible.
18449
18450         strerror-override: avoid bloating errno module
18451         * modules/errno (Files, configure.ac): Move replacement strings...
18452         * modules/strerror-override: ...to new module.
18453         * modules/strerror (Depends-on): Add strerror-override.
18454         * modules/strerror_r-posix (Depends-on): Likewise.
18455         * MODULES.html.sh: Document new module.
18456         Reported by Bruno Haible.
18457
18458 2011-06-06  Bruno Haible  <bruno@clisp.org>
18459
18460         spawn-pipe tests: Rename program.
18461         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18462         * tests/test-spawn-pipe-child.c: Update comment.
18463         * tests/test-spawn-pipe.sh: Update.
18464         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18465
18466         spawn-pipe tests: Link the child program only against libc.
18467         * tests/test-spawn-pipe-child.c: New file, extracted from
18468         tests/test-spawn-pipe.c.
18469         (main): Expect only one argument.
18470         (is_open): New function, copied from tests/test-pipe.c.
18471         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18472         (child_main): Remove function.
18473         (test_pipe): Pass only one argument to the child program.
18474         (main): Remove child process code. Expect the child program's name as
18475         first argument.
18476         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18477         argument.
18478         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18479         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18480         test-spawn-pipe-child against no libraries.
18481
18482 2011-06-06  Bruno Haible  <bruno@clisp.org>
18483
18484         careadlinkat: Avoid mismatch between ssize_t and int.
18485         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18486         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18487
18488 2011-06-06  Jim Meyering  <meyering@redhat.com>
18489
18490         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18491         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18492         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18493
18494 2011-06-05  Bruno Haible  <bruno@clisp.org>
18495
18496         ansi-c++-opt: Interoperability with libtool.
18497         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18498         set the variable to "no", not to ":".
18499         * NEWS: Mention the change.
18500
18501 2011-06-05  Bruno Haible  <bruno@clisp.org>
18502
18503         acl: Fix test failure on AIX 7.
18504         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18505         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18506
18507 2011-06-05  Bruno Haible  <bruno@clisp.org>
18508
18509         pipe-filter-ii: Fix test failure on AIX and IRIX.
18510         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18511         with EAGAIN, retry with a smaller buffer size.
18512
18513 2011-06-05  Bruno Haible  <bruno@clisp.org>
18514
18515         localename: Fix link dependencies.
18516         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18517         * modules/localename-tests (Makefile.am): Link test-localename with
18518         $(LIBTHREAD).
18519
18520 2011-06-05  Bruno Haible  <bruno@clisp.org>
18521
18522         error: Avoid gcc warning.
18523         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18524
18525 2011-06-05  Bruno Haible  <bruno@clisp.org>
18526
18527         unsetenv: Avoid gcc warning.
18528         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18529
18530 2011-06-05  Bruno Haible  <bruno@clisp.org>
18531
18532         setenv: Avoid gcc warning.
18533         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18534
18535 2011-06-05  Bruno Haible  <bruno@clisp.org>
18536
18537         sys_select: Ensure memset is declared also on AIX 7.
18538         * lib/sys_select.in.h: Include <string.h> also on AIX.
18539         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18540         self-contained also on AIX 7.1.
18541
18542 2011-06-04  Jim Meyering  <meyering@redhat.com>
18543
18544         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18545         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18546         function name, "error".
18547         (_gl_translatable_diag_func_re): New configurable variable.
18548
18549 2011-06-04  Bruno Haible  <bruno@clisp.org>
18550
18551         getopt: Avoid gcc warning.
18552         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18553
18554 2011-06-04  Bruno Haible  <bruno@clisp.org>
18555
18556         strerror_r: Fix comments.
18557         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18558         commit.
18559
18560 2011-06-04  Bruno Haible  <bruno@clisp.org>
18561
18562         perror: Fix compilation error.
18563         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18564         Undefine fprintf, not sprintf.
18565         * modules/perror (Depends-on): Remove intprops, verify.
18566
18567 2011-06-04  Bruno Haible  <bruno@clisp.org>
18568
18569         setlocale: Enable replacement on Cygwin 1.5.
18570         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18571         Cygwin 1.5.x.
18572         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18573         LC_CTYPE category also exists on Cygwin 1.5.x.
18574
18575 2011-06-04  Bruno Haible  <bruno@clisp.org>
18576
18577         strerror-override: Don't disable symbol renamings.
18578         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18579         * lib/strerror-override.c: Include config.h.
18580         (strerror_override): Don't undefine.
18581
18582 2011-06-03  Bruno Haible  <bruno@clisp.org>
18583
18584         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18585         * lib/localename.h: Update copyright header.
18586         * lib/localename.c: Likewise.
18587         * lib/relocatable.h: Likewise.
18588         * lib/relocatable.c: Likewise.
18589
18590 2011-06-02  Bruno Haible  <bruno@clisp.org>
18591
18592         doc: Fix a module name.
18593         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18594
18595 2011-06-02  Bruno Haible  <bruno@clisp.org>
18596
18597         pipe2: Remove dependency on 'nonblocking' module.
18598         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18599         O_NONBLOCK is defined by gnulib.
18600         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18601         is zero.
18602         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18603         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18604         defined by gnulib.
18605         (get_nonblocking_flag): New function.
18606         (main): Test O_NONBLOCK flag only if it is nonzero.
18607         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18608
18609 2011-06-03  Jim Meyering  <meyering@redhat.com>
18610
18611         maint: three new prohibit-header-without-use rules
18612         Prohibit use of cloexec.h, posixver.h, same.h without use.
18613         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18614         (sc_prohibit_posixver_without_use): Likewise.
18615         (sc_prohibit_same_without_use): Likewise.
18616
18617 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18618
18619         allocator: 'die' routine is now given requested size
18620         * lib/allocator.h (struct allocator.die): New size arg.
18621         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18622         If the actual problem is an ssize_t limitation, not a size_t or
18623         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18624
18625 2011-06-01  Eric Blake  <eblake@redhat.com>
18626
18627         strerror: drop strerror_r dependency
18628         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18629         * lib/strerror-override.c (strerror_override): ...to new file.
18630         * lib/strerror-override.h: Add prototype.
18631         * lib/strerror-impl.h: Delete.
18632         * lib/strerror.c (strerror): New implementation.
18633         * modules/errno (Files): Add new files.
18634         (configure.ac): Compile new file as appropriate.
18635         * modules/strerror (Files): Drop unused file.
18636         (Depends-on): Drop strerror_r-posix.
18637         * MODULES.html.sh: Document strerror_r-posix.
18638         Requested by Sam Steingold.
18639
18640         perror: call strerror_r directly
18641         * modules/perror (Files): Drop strerror-impl.h.
18642         * lib/perror.c (perror): Use our own stack buffer, rather than
18643         calling a wrapper that uses static storage.
18644         * doc/posix-functions/perror.texi (perror): Document a limitation
18645         of our replacement.
18646
18647         strerror_r: fix includes for FreeBSD
18648         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18649         since we use abort on some platforms.
18650         Reported by Matthias Bolte.
18651
18652 2011-05-31  Bruno Haible  <bruno@clisp.org>
18653
18654         Fix link errors in tests: openat-die uses gettext-h.
18655         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18656         against $(LIBINTL).
18657         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18658         against $(LIBINTL).
18659         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18660         $(LIBINTL).
18661         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18662         against $(LIBINTL).
18663         * modules/linkat-tests (Makefile.am): Link test-linkat against
18664         $(LIBINTL).
18665         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18666         $(LIBINTL).
18667         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18668         against $(LIBINTL).
18669         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18670         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18671         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18672         $(LIBINTL).
18673         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18674         $(LIBINTL).
18675         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18676         $(LIBINTL).
18677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18678
18679 2011-05-31  Bruno Haible  <bruno@clisp.org>
18680
18681         Fix link errors in tests: wait-process uses gettext-h.
18682         * modules/nonblocking-pipe-tests (Makefile.am): Set
18683         test_nonblocking_pipe_main_LDADD.
18684         * modules/nonblocking-socket-tests (Makefile.am): Link
18685         test-nonblocking-socket-main against $(LIBINTL).
18686         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18687
18688 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18689
18690         assert-h: work around 'verify' incompatibility
18691         * lib/verify.h: Use @...@ directives, not ifdef.
18692         * modules/assert-h (assert.h): Implement the directives.
18693         (assert.h): Substitute the symbol-prefix more consistently.
18694
18695 2011-05-29  Jim Meyering  <meyering@redhat.com>
18696
18697         trim: remove three superfluous assignments
18698         * lib/trim.c (trim2): Remove three superfluous assignments
18699         and correct brace positioning.
18700
18701 2011-05-29  Bruno Haible  <bruno@clisp.org>
18702
18703         wctype-h: Avoid namespace pollution on Solaris 2.6.
18704         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18705         identifiers.
18706         * doc/posix-headers/wctype.texi: Mention the problem.
18707         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18708
18709 2011-05-28  Jim Meyering  <meyering@redhat.com>
18710
18711         parse-datetime.y: accommodate -Wstrict-overflow
18712         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18713         placate -Wstrict-overflow.
18714
18715         trim: avoid a warning from -O2 -Wstrict-overflow
18716         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18717
18718 2011-05-29  Bruno Haible  <bruno@clisp.org>
18719
18720         gnulib-tool: Fix bug in yesterday's commit.
18721         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18722         twice.
18723
18724 2011-05-29  Bruno Haible  <bruno@clisp.org>
18725
18726         Allow multiple gnulib generated include files to be combined.
18727         * gnulib-tool (func_compute_include_guard_prefix): New function.
18728         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18729         ${gl_include_guard_prefix} references.
18730         (func_import, func_create_testdir): Invoke
18731         func_compute_include_guard_prefix.
18732         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18733         * lib/ctype.in.h: Likewise.
18734         * lib/dirent.in.h: Likewise.
18735         * lib/errno.in.h: Likewise.
18736         * lib/fcntl.in.h: Likewise.
18737         * lib/float.in.h: Likewise.
18738         * lib/getopt.in.h: Likewise.
18739         * lib/iconv.in.h: Likewise.
18740         * lib/langinfo.in.h: Likewise.
18741         * lib/locale.in.h: Likewise.
18742         * lib/math.in.h: Likewise.
18743         * lib/netdb.in.h: Likewise.
18744         * lib/netinet_in.in.h: Likewise.
18745         * lib/poll.in.h: Likewise.
18746         * lib/pthread.in.h: Likewise.
18747         * lib/pty.in.h: Likewise.
18748         * lib/sched.in.h: Likewise.
18749         * lib/se-selinux.in.h: Likewise.
18750         * lib/search.in.h: Likewise.
18751         * lib/signal.in.h: Likewise.
18752         * lib/spawn.in.h: Likewise.
18753         * lib/stdarg.in.h: Likewise.
18754         * lib/stddef.in.h: Likewise.
18755         * lib/stdint.in.h: Likewise.
18756         * lib/stdio.in.h: Likewise.
18757         * lib/stdlib.in.h: Likewise.
18758         * lib/string.in.h: Likewise.
18759         * lib/strings.in.h: Likewise.
18760         * lib/sys_file.in.h: Likewise.
18761         * lib/sys_ioctl.in.h: Likewise.
18762         * lib/sys_select.in.h: Likewise.
18763         * lib/sys_socket.in.h: Likewise.
18764         * lib/sys_stat.in.h: Likewise.
18765         * lib/sys_time.in.h: Likewise.
18766         * lib/sys_times.in.h: Likewise.
18767         * lib/sys_uio.in.h: Likewise.
18768         * lib/sys_utsname.in.h: Likewise.
18769         * lib/sys_wait.in.h: Likewise.
18770         * lib/sysexits.in.h: Likewise.
18771         * lib/termios.in.h: Likewise.
18772         * lib/time.in.h: Likewise.
18773         * lib/unistd.in.h: Likewise.
18774         * lib/wchar.in.h: Likewise.
18775         * lib/wctype.in.h: Likewise.
18776         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18777         * modules/ctype (Makefile.am): Likewise.
18778         * modules/dirent (Makefile.am): Likewise.
18779         * modules/errno (Makefile.am): Likewise.
18780         * modules/fcntl-h (Makefile.am): Likewise.
18781         * modules/float (Makefile.am): Likewise.
18782         * modules/getopt-posix (Makefile.am): Likewise.
18783         * modules/iconv-h (Makefile.am): Likewise.
18784         * modules/langinfo (Makefile.am): Likewise.
18785         * modules/locale (Makefile.am): Likewise.
18786         * modules/math (Makefile.am): Likewise.
18787         * modules/netdb (Makefile.am): Likewise.
18788         * modules/netinet_in (Makefile.am): Likewise.
18789         * modules/poll-h (Makefile.am): Likewise.
18790         * modules/pthread (Makefile.am): Likewise.
18791         * modules/pty (Makefile.am): Likewise.
18792         * modules/sched (Makefile.am): Likewise.
18793         * modules/search (Makefile.am): Likewise.
18794         * modules/selinux-h (Makefile.am): Likewise.
18795         * modules/signal (Makefile.am): Likewise.
18796         * modules/spawn (Makefile.am): Likewise.
18797         * modules/stdarg (Makefile.am): Likewise.
18798         * modules/stddef (Makefile.am): Likewise.
18799         * modules/stdint (Makefile.am): Likewise.
18800         * modules/stdio (Makefile.am): Likewise.
18801         * modules/stdlib (Makefile.am): Likewise.
18802         * modules/string (Makefile.am): Likewise.
18803         * modules/strings (Makefile.am): Likewise.
18804         * modules/sys_file (Makefile.am): Likewise.
18805         * modules/sys_ioctl (Makefile.am): Likewise.
18806         * modules/sys_select (Makefile.am): Likewise.
18807         * modules/sys_socket (Makefile.am): Likewise.
18808         * modules/sys_stat (Makefile.am): Likewise.
18809         * modules/sys_time (Makefile.am): Likewise.
18810         * modules/sys_times (Makefile.am): Likewise.
18811         * modules/sys_uio (Makefile.am): Likewise.
18812         * modules/sys_utsname (Makefile.am): Likewise.
18813         * modules/sys_wait (Makefile.am): Likewise.
18814         * modules/sysexits (Makefile.am): Likewise.
18815         * modules/termios (Makefile.am): Likewise.
18816         * modules/time (Makefile.am): Likewise.
18817         * modules/unistd (Makefile.am): Likewise.
18818         * modules/wchar (Makefile.am): Likewise.
18819         * modules/wctype-h (Makefile.am): Likewise.
18820         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18821
18822 2011-05-29  Bruno Haible  <bruno@clisp.org>
18823
18824         assert-h: Allow multiple gnulib generated replacements to coexist.
18825         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18826
18827 2011-05-29  Bruno Haible  <bruno@clisp.org>
18828
18829         argp: Allow coexistence with strerror_r-posix module.
18830         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18831         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18832         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18833         not the glibc signature.
18834
18835 2011-05-28  Bruno Haible  <bruno@clisp.org>
18836
18837         gnulib-tool: Alternative structure of testdirs, similar to --import.
18838         * gnulib-tool: New option --single-configure.
18839         (func_usage): Document it.
18840         (single_configure): New variable.
18841         (func_modules_transitive_closure_separately,
18842         func_modules_transitive_closure_separately,
18843         func_determine_use_libtests, func_modules_add_dummy_separately,
18844         func_modules_to_filelist_separately): New functions, extracted from
18845         func_import.
18846         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18847         (func_import): Use the new functions.
18848         (func_create_testdir): Set final_modules. Handle $single_configure =
18849         true case.
18850
18851 2011-05-28  Bruno Haible  <bruno@clisp.org>
18852
18853         getloadavg: Remove an unreliable safety check.
18854         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18855         getloadavg.c is in place.
18856         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18857         Reported by Sam Steingold <sds@gnu.org>.
18858
18859 2011-05-28  Bruno Haible  <bruno@clisp.org>
18860
18861         doc: Cleanup yet another file produced by texinfo.tex.
18862         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18863
18864 2011-05-28  Bruno Haible  <bruno@clisp.org>
18865
18866         Finish the conditional dependencies mechanism.
18867         * gnulib-tool: New option --no-conditional-dependencies.
18868         (func_usage): Document it. Don't mark --conditional-dependencies as
18869         experimental.
18870         (cond_dependencies): The possible values can now be true, false, empty.
18871         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18872         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18873         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18874
18875 2011-05-28  Bruno Haible  <bruno@clisp.org>
18876
18877         doc: Use a recent texinfo.tex.
18878         * doc/Makefile (tex_opts): New variable.
18879         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18880
18881 2011-05-28  Jim Meyering  <meyering@redhat.com>
18882
18883         intprops.h: adjust comment to match code change
18884         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18885         only once, it *may* have side effects.  Also fix an unrelated typo.
18886         (_GL_INT_SIGNED): Likewise.
18887
18888 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18889
18890         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18891
18892 2011-05-26  Bruno Haible  <bruno@clisp.org>
18893
18894         mbsrchr: Avoid collision with system function on Interix.
18895         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18896         Reported by Markus Duft <mduft@gentoo.org>.
18897
18898 2011-05-15  James Youngman  <jay@gnu.org>
18899
18900         getopt: for ambiguous options, enumerate the possibilities.
18901         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18902         the ambiguous options when an ambiguous prefix is given. This was
18903         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18904         glibc change was
18905         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18906
18907 2011-05-25  Eric Blake  <eblake@redhat.com>
18908
18909         getcwd: work around mingw bug
18910         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18911         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18912         Reported by Matthias Bolte.
18913
18914 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18915
18916         test-intprops: disable -Wtype-limits diagnostics
18917         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18918         diagnostics.  Otherwise, the integer overflow macros generate many
18919         diagnostics.  Reported by Jim Meyering in
18920         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18921
18922         intprops: shorten, to pacify gcc -Woverlength-strings
18923         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18924         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18925         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18926         likely to run afoul of C compiler limits for string constant lengths.
18927         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18928
18929 2011-05-24  Eric Blake  <eblake@redhat.com>
18930
18931         docs: document recently fixed glibc printf bug
18932         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18933         * doc/posix-functions/printf.texi (printf): Likewise.
18934         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18935         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18936
18937         closein-tests: convert to init.sh
18938         * modules/closein-tests (Files): Add init.sh
18939         * tests/test-closein.sh Use it.
18940
18941         yesno-tests: convert to init.sh
18942         * modules/yesno-tests (Files): Add init.sh.
18943         * tests/test-yesno.sh: Use it.
18944
18945         atexit-tests: ensure reliable exit status
18946         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18947         Reported by Bruno Haible.
18948
18949 2011-05-24  Bruno Haible  <bruno@clisp.org>
18950
18951         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18952         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18953         gl_PREREQ_STRERROR_R invocations from here...
18954         * modules/strerror_r-posix (configure.ac): ... to here.
18955
18956 2011-05-24  Eric Blake  <eblake@redhat.com>
18957
18958         strerror_r: fix missing header
18959         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18960
18961         strerror_r: fix AIX test failures
18962         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18963         ERANGE failure.
18964
18965         strerror_r: fix Solaris test failures
18966         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18967         failures.
18968         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18969
18970         strerror_r: enforce POSIX recommendations
18971         * lib/strerror_r.c (safe_copy): New helper method.
18972         (strerror_r): Guarantee a non-empty string.
18973         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18974         recent POSIX rulings and to match our strerror guarantees.
18975         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18976
18977 2011-05-24  Jim Meyering  <meyering@redhat.com>
18978
18979         test-perror2.c: avoid warning about unused variable
18980         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18981
18982 2011-05-24  Eric Blake  <eblake@redhat.com>
18983
18984         perror: avoid spurious test failure on HP-UX
18985         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18986
18987         tests: fix logic bug in init.sh
18988         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18989         shell.
18990
18991 2011-05-24  Jim Meyering  <meyering@redhat.com>
18992
18993         utimensat: do not reference an out-of-scope buffer
18994         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18995         declared in an inner scope, yet "times" would be dereferenced outside
18996         the scope in which "ts" was valid.
18997         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18998         of ts[2] "out/up", so that the use of aliased "times" (via
18999         "times = ts;") does not end up referencing an out-of-scope "ts"
19000
19001         opendir-safer.c: don't clobber errno; don't close negative FD
19002         * lib/opendir-safer.c (opendir_safer):
19003         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19004         file descriptor, and more importantly, don't clobber the
19005         offending errno value with EINVAL.  Before, upon failure
19006         of dup_safer, we would pass the negative file descriptor to
19007         fdopendir, which would clobber errno.
19008
19009 2011-05-23  Bruno Haible  <bruno@clisp.org>
19010
19011         idcache: Fix module description.
19012         * modules/idcache (Include): Set to "idcache.h".
19013
19014 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19015
19016         gnulib-tool: fix portability problem with MacOS sed
19017         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19018         before the "}".  Problem reported by Leo in
19019         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19020         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19021         sed_extract_condition1, sed_extract_condition2.
19022
19023 2011-05-23  Bruno Haible  <bruno@clisp.org>
19024
19025         hash: Simplify autoconf macro.
19026         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19027
19028 2011-05-23  Bruno Haible  <bruno@clisp.org>
19029
19030         getugroups: Fix module description.
19031         * modules/getugroups (Include): Set to "getugroups.h".
19032
19033 2011-05-23  Bruno Haible  <bruno@clisp.org>
19034
19035         linkat: Simplify autoconf macro.
19036         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19037
19038 2011-05-23  Bruno Haible  <bruno@clisp.org>
19039             Eric Blake  <eblake@redhat.com>
19040
19041         linkat, renameat: Update dependencies.
19042         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19043         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19044         symlinkat.
19045
19046 2011-05-23  Jim Meyering  <meyering@redhat.com>
19047
19048         maint.mk: more tight_scope improvements
19049         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19050         (_gl_TS_headers): Define only in if-0'd block.
19051         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19052         sometimes we must *not* use it.  Adjust uses accordingly.
19053         (sc_tight_scope): Use much simpler grep-based test to determine
19054         whether we skip this rule.
19055
19056         maint.mk: generalize/improve the tight-scope rule
19057         * top/maint.mk: Emit a warning when the test is skipped.
19058         (_gl_TS_dir): Add $(srcdir)/ prefix.
19059         (_gl_TS_function_match): Simplify, rather than trying
19060         to enumerate common types.  Otherwise, it would fail to match an
19061         "extern unsigned char const *" declaration in idutils.
19062         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19063         a way to support use of that type of macro.
19064         (_gl_TS_var_match): Simplify regexp.
19065         (_gl_TS_obj_files): New configurable variable.
19066         (_gl_TS_headers): Likewise.
19067
19068 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19069
19070         verify: fix bug when gnulib <assert.h> is also included
19071         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19072         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19073         Perhaps there's a better way, but this fixes the immediate problem.
19074         Problem reported by Bruno Haible in
19075         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19076
19077 2011-05-22  Bruno Haible  <bruno@clisp.org>
19078
19079         xgetcwd: Simplify autoconf macro.
19080         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19081
19082 2011-05-22  Bruno Haible  <bruno@clisp.org>
19083
19084         New module 'mktime-internal'.
19085         * modules/mktime-internal: New file.
19086         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19087         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19088         mktime_internal as a C macro if libc has __mktime_internal.
19089         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19090         conditions.
19091         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19092
19093 2011-05-22  Bruno Haible  <bruno@clisp.org>
19094
19095         timegm: Correct mktime replacement statements.
19096         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19097         defining mktime as a C macro. This completes a 2009-07-28 commit.
19098
19099 2011-05-22  Bruno Haible  <bruno@clisp.org>
19100
19101         timegm: Simplify autoconf macro.
19102         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19103
19104 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19105
19106         clock-time: change to LGPLv2+.
19107         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19108         BSD-like but we have no mark for that; this is good enough for now.
19109
19110 2011-05-21  Bruno Haible  <bruno@clisp.org>
19111
19112         strerror_r: Fix comments.
19113         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19114
19115 2011-05-21  Bruno Haible  <bruno@clisp.org>
19116
19117         relocatable-prog-wrapper: Fix possible link error.
19118         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19119         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19120         (gl_FUNC_SETENV): ... to here.
19121         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19122         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19123
19124 2011-05-21  Bruno Haible  <bruno@clisp.org>
19125
19126         relocatable-prog-wrapper: Assume strerror() exists.
19127         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19128         m4/strerror.m4.
19129         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19130         * lib/relocwrapper.c: Remove mention of strerror module.
19131         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19132         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19133         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19134         C macro.
19135
19136 2011-05-21  Bruno Haible  <bruno@clisp.org>
19137
19138         select: Simplify replacement idiom.
19139         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19140         Win32 platforms.
19141         * lib/sys_select.in.h (select): Simplify accordingly.
19142         * modules/select (Depends-on): Likewise.
19143
19144 2011-05-21  Bruno Haible  <bruno@clisp.org>
19145
19146         mkdir-p: Simplify autoconf macro.
19147         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19148         gl_FUNC_LCHOWN.
19149
19150 2011-05-21  Eric Blake  <eblake@redhat.com>
19151
19152         strerror_r: avoid clobbering strerror on cygwin
19153         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19154         fall back instead to sys_errlist.
19155         * modules/strerror (configure.ac): Add witness.
19156         * tests/test-strerror_r.c (main): Enhance test.
19157         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19158         * tests/test-perror2.c (main): Free memory before exit.
19159
19160 2011-05-21  Bruno Haible  <bruno@clisp.org>
19161
19162         mkdtemp: Use gnulib naming conventions.
19163         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19164         * modules/mkdtemp (configure.ac): Update.
19165
19166 2011-05-20  Eric Blake  <eblake@redhat.com>
19167
19168         strerror_r: avoid corrupting errno on Solaris
19169         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19170         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19171
19172         strerror_r: avoid compiler warning
19173         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19174
19175         strerror_r: simplify AIX code
19176         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19177
19178         test-perror: avoid spurious failure on FreeBSD
19179         * modules/perror-tests (Depends-on): Add strerror, now that
19180         strerror_r no longer pulls it in.
19181
19182 2011-05-20  Bruno Haible  <bruno@clisp.org>
19183
19184         strerror_r-posix: Remove unused dependencies.
19185         * modules/strerror_r-posix (Depends-on): Remove strerror.
19186         Reported by Eric Blake.
19187
19188 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19189
19190         intprops: remove assumption about A|B representation
19191         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19192         is a valid integer if both A and B are.  Although this is true for
19193         all known practical hosts, the C standard doesn't guarantee it,
19194         and the code need not assume it.  Also, this change may work around
19195         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19197
19198 2011-05-20  Eric Blake  <eblake@redhat.com>
19199
19200         perror: work around FreeBSD bug
19201         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19202         is broken.  Move AC_LIBOBJ...
19203         * modules/perror (configure.ac): Here.
19204         * doc/posix-functions/perror.texi (perror): Document this.
19205         * tests/test-perror2.c (main): Enhance test.
19206
19207         test-perror: check for strerror interactions
19208         * tests/macros.h (STREQ): Add macro.
19209         * modules/perror-tests (Files): Add second test.
19210         * tests/test-perror2.c (main): New file.
19211         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19212
19213         test-perror: rewrite to use init script
19214         * modules/perror-tests (Files): Add init.sh.
19215         * tests/test-perror.sh: Use temporary directory.
19216
19217 2011-05-20  Jim Meyering  <meyering@redhat.com>
19218
19219         maint: replace misused "a" with "an"
19220         * doc/intprops.texi: "a integer"
19221         * doc/regex.texi: "a explanation"
19222         * lib/alignof.h: "a object"
19223         * lib/argmatch.h: "a explanation"
19224         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19225         * lib/stdint.in.h: "a integer"
19226         * lib/userspec.c: "a owner"
19227         * doc/gnulib.texi: Fix "a idea", and reword.
19228
19229 2011-05-19  Jim Meyering  <meyering@redhat.com>
19230
19231         maint: correct misuse of "a" and "an"
19232         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19233         * lib/argp-help.c: "an docum...": s/an/a/
19234         * lib/argp-parse.c: "An vector": s/An/A/
19235         * lib/execute.c: "an native": s/an/a/
19236         * lib/spawn-pipe.c: Likewise.
19237         * lib/gc.h: "an Gc_rc": s/an/a/
19238         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19239         * lib/fts.c: "an stat.st_dev": s/an/a/
19240
19241 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19242
19243         intprops-tests: work around HP-UX 11.23 cc bug with constants
19244         * tests/test-intprops.c (VERIFY): New macro.
19245         (main): Use it, instead of verify, to work around the compiler bug; see
19246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19247
19248         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19249         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19250         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19251         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19252         (_GL_REMAINDER_OVERFLOW): Use it.
19253
19254         intprops-tests: revert unsigned part of previous change
19255         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19256         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19257         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19259
19260 2011-05-19  Bruno Haible  <bruno@clisp.org>
19261
19262         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19263         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19264         strerror_r() returned without filling the buffer.
19265         Reported by Eric Blake.
19266
19267 2011-05-19  Eric Blake  <eblake@redhat.com>
19268
19269         strerror_r: guarantee unchanged errno
19270         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19271         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19272         failure.
19273         * tests/test-strerror_r.c (main): Enhance test.
19274
19275 2011-05-19  Bruno Haible  <bruno@clisp.org>
19276
19277         strerror_r: Reorder #if blocks.
19278         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19279         for consistency with the previous commit.
19280
19281 2011-05-19  Bruno Haible  <bruno@clisp.org>
19282
19283         perror: Avoid clobbering the strerror buffer when possible.
19284         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19285         * lib/strerror.c: Include it.
19286         * modules/strerror (Files): Add lib/strerror-impl.h.
19287         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19288         (my_strerror): New function, defined through lib/strerror-impl.h.
19289         (perror): Use it instead of strerror.
19290         * modules/perror (Files): Add lib/strerror-impl.h.
19291         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19292
19293 2011-05-19  Eric Blake  <eblake@redhat.com>
19294
19295         strerror_r: fix on newer cygwin
19296         * lib/strerror_r.c (strerror_r): Cygwin now has
19297         __xpg_strerror_r, use it.
19298
19299 2011-05-19  Bruno Haible  <bruno@clisp.org>
19300
19301         strerror_r: Avoid clobbering the strerror buffer when possible.
19302         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19303         (sys_nerr, sys_errlist): New declarations.
19304         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19305         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19306         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19307
19308 2011-05-19  Bruno Haible  <bruno@clisp.org>
19309
19310         strerror_r: Fix test failure on mingw.
19311         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19312         EXTEND_STRERROR_R.
19313         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19314         macros from errno.in.h instead.
19315
19316 2011-05-19  Eric Blake  <eblake@redhat.com>
19317
19318         strerror: relax test for Solaris
19319         * tests/test-strerror.c (main): Permit Solaris behavior.
19320         * tests/test-strerror_r.c (main): Likewise.
19321
19322         strerror: enforce POSIX ruling on strerror(0)
19323         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19324         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19325         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19326         * doc/posix-functions/strerror.texi (strerror): Document it.
19327         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19328         * tests/test-strerror.c (main): Strengthen test.
19329         * tests/test-strerror_r.c (main): Likewise.
19330
19331 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19332
19333         intprop-tests: port to older and more-pedantic compilers
19334         * modules/intprops-tests (Files): Add tests/macros.h.
19335         * tests/test-intprops.c: Include macros.h.
19336         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19337         it's no longer documented to expand to an integer constant expression.
19338         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19339         argument is floating point, as it's no longer documented to expand
19340         to an integer constant expression in that case.
19341         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19342         compiler bugs reported by Bruno Haible.  See
19343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19344         (U0, U1): New constants, to work around the same bugs.  Also,
19345         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19346
19347         intprops: work around C compiler bugs
19348         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19349         bug in Sun C 5.11 2010/08/13 and other compilers; see
19350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19351
19352         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19353         * doc/intprops.texi (Integer Type Determination): Fix
19354         documentation for TYPE_IS_INTEGER: it returns an constant
19355         expression, not an integer constant expression.  Fix doc for
19356         TYPE_SIGNED: it returns an integer constant expression only if its
19357         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19358         hardly worth documented that way....)
19359
19360 2011-05-18  Bruno Haible  <bruno@clisp.org>
19361
19362         strerror_r: Avoid clobbering the strerror buffer when possible.
19363         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19364         Handle gnulib defined errno values here. When strerror() returns NULL
19365         or an empty string, return EINVAL.
19366         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19367         gnulib defined errno values here.
19368         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19369
19370 2011-05-18  Eric Blake  <eblake@redhat.com>
19371
19372         fnmatch: avoid compiler warning
19373         * lib/fnmatch_loop.c (FCT): Use correct type.
19374         Reported by Matthias Bolte.
19375
19376 2011-05-13  Jim Meyering  <meyering@redhat.com>
19377
19378         maint.mk: three new prohibit_<HDR>_without_use rules
19379         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19380         (sc_prohibit_stdio-safer_without_use): Likewise.
19381         (sc_prohibit_xfreopen_without_use): Likewise.
19382
19383 2011-05-17  Jim Meyering  <meyering@redhat.com>
19384
19385         announce-gen: fail if the NEWS delta is empty
19386         If there's nothing noteworthy in NEWS, then either you forgot
19387         or you shouldn't be releasing.
19388         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19389
19390 2011-05-17  Pádraig Brady <P@draigBrady.com>
19391
19392         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19393         reserved symbols starting with double underscore from the check.
19394
19395 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19396
19397         intprops: add doc
19398         * doc/intprops.texi: New file, documenting intprops.
19399         * doc/gnulib.texi (Particular Modules): Include it.
19400
19401         verify: add doc to gnulib manual and fix example
19402         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19403         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19404         (Compile-time Assertions): Fix example so it can't overflow.
19405
19406 2011-05-17  Jim Meyering  <meyering@redhat.com>
19407
19408         warnings.m4: don't usurp save_CPPFLAGS variable name
19409         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19410
19411         doc: fix typo
19412         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19413
19414 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19415             Bruno Haible  <bruno@clisp.org>
19416
19417         doc: Tweak recent change.
19418         * README (Portability guidelines): Tweak new text.
19419         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19420         Interix 6.1.
19421
19422 2011-05-16  Eric Blake  <eblake@redhat.com>
19423
19424         inttypes: avoid autoconf warning
19425         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19426         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19427
19428 2011-05-16  Sam Steingold <sds@gnu.org>
19429         and Eric Blake  <eblake@redhat.com>
19430
19431         vc-list-files: accept multiple directory operands
19432         * build-aux/vc-list-files: Iterate over all remaining operands.
19433
19434 2011-05-16  Bruno Haible  <bruno@clisp.org>
19435
19436         Fix confusion regarding deprecated modules.
19437         * modules/calloc (Status, Notice): Mark module as deprecated, not
19438         obsolete.
19439         * modules/fnmatch-posix (Status, Notice): Likewise.
19440         * modules/getdate (Status, Notice): Likewise.
19441         * modules/getopt (Status, Notice): Likewise.
19442         * modules/malloc (Status, Notice): Likewise.
19443         * modules/pipe (Status, Notice): Likewise.
19444         * modules/realloc (Status, Notice): Likewise.
19445         * modules/rename-dest-slash (Status, Notice): Likewise.
19446         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19447         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19448         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19449         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19450         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19451
19452 2011-05-16  Bruno Haible  <bruno@clisp.org>
19453
19454         doc: List the target platforms.
19455         * doc/gnulib-intro.texi (Target Platforms): New section.
19456         * doc/gnulib.texi (Introduction): Update menu.
19457         * README (Portability guidelines): Refer to the new section. Update
19458         statement about oldest supported environment. Remove rationale why
19459         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19460         unportable C89 function.
19461         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19462         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19463
19464 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19465
19466         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19467
19468 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19469
19470         intprops-tests: new module
19471         * modules/intprops-tests, tests/test-intprops.c: New files.
19472
19473         intprops: add safe, portable integer overflow checking
19474         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19475         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19476         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19477         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19478         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19479         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19480         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19481         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19482         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19483         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19484         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19485
19486 2011-05-12  James Youngman  <jay@gnu.org>
19487
19488         Add a test for glibc's Bugzilla bug #12378.
19489         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19490         doesn't allow the literal matching of a lone "[" (which is
19491         required by POSIX).
19492         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19493
19494 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19495
19496         Sync glibc change fixing Bugzilla bug #12378.
19497         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19498         beginning and fall back to matching as normal character if the
19499         string ends before the matching ']' is found.  This is what POSIX
19500         requires.
19501
19502 2011-05-13  Eric Blake  <eblake@redhat.com>
19503
19504         getcwd-lgpl: relax test for FreeBSD
19505         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19506         issue.
19507         * tests/test-getcwd-lgpl.c (main): Relax test.
19508         Reported by Matthias Bolte.
19509
19510 2011-05-11  Eric Blake  <eblake@redhat.com>
19511
19512         test-fflush: silence compiler warning
19513         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19514
19515 2011-05-11  Bruno Haible  <bruno@clisp.org>
19516
19517         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19518         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19519         * modules/canonicalize (Depends-on): Add 'nocrash'.
19520         * modules/canonicalize-lgpl (Depends-on): Likewise.
19521         * doc/posix-functions/realpath.texi: Update platforms list.
19522         Reported by Ryan Schmidt <ryandesign@macports.org>.
19523
19524 2011-05-11  Bruno Haible  <bruno@clisp.org>
19525
19526         group-member: Declare function in <unistd.h>.
19527         * lib/unistd.in.h (group_member): New declaration.
19528         * lib/group-member.h: Remove file.
19529         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19530         * tests/test-unistd-c++.cc: Check signature of group_member.
19531         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19532         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19533         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19534         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19535         HAVE_GROUP_MEMBER.
19536         * modules/group-member (Files): Remove lib/group-member.h.
19537         (Depends-on): Add unistd. Specify conditions.
19538         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19539         (Include): Change to <unistd.h>.
19540         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19541         HAVE_GROUP_MEMBER.
19542         * NEWS: Mention the change.
19543         * lib/euidaccess.c: Don't include group-member.h.
19544
19545 2011-05-11  Bruno Haible  <bruno@clisp.org>
19546
19547         group-member: Document module.
19548         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19549         module.
19550
19551 2011-05-11  Bruno Haible  <bruno@clisp.org>
19552
19553         fclose: Fix mistake earlier today.
19554         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19555
19556 2011-05-11  Eric Blake  <eblake@redhat.com>
19557
19558         fclose: preserve fflush errors
19559         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19560         Reported by Jim Meyering.
19561
19562         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19563         * build-aux/bootstrap (check_versions): When no specific version
19564         is required, merely check that the app produces an exit status
19565         that indicates its existence.
19566
19567         maint.mk: drop redundant check
19568         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19569         the same but better.
19570
19571 2011-05-11  Bruno Haible  <bruno@clisp.org>
19572
19573         fclose: Fix possible link error.
19574         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19575         unregister_shadow_fd. Improve comments.
19576         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19577         Eric Blake.
19578
19579 2011-05-11  Jim Meyering  <meyering@redhat.com>
19580
19581         maint.mk: improve "can not" detection and generalize rule name
19582         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19583         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19584         Use the same technique as in sc_prohibit_doubled_word, so that
19585         we recognize "can not" also when the words are separated by a newline.
19586         Suggested by Eric Blake.
19587         (perl_filename_lineno_text_): Define.  Factored out of...
19588         (prohibit_doubled_word_): ...here.  Use the new definition.
19589         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19590         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19591         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19592
19593 2011-05-10  Eric Blake  <eblake@redhat.com>
19594
19595         fclose: avoid double close race when possible
19596         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19597         all but WINDOWS_SOCKETS.
19598
19599 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19600
19601         openat: correct new comment
19602         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19603
19604 2011-05-10  Jim Meyering  <meyering@redhat.com>
19605
19606         openat: add comments
19607         * lib/openat-proc.c (openat_proc_name): Add comments,
19608         mostly from Eric Blake.
19609
19610 2011-05-09  Eric Blake  <eblake@redhat.com>
19611
19612         openat: reduce syscalls in first probe of /proc
19613         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19614         be a directory.  Simplify the probe for .. bugs.
19615         * modules/openat (Depends-on): Drop same-inode.
19616         Reported by Bastien ROUCARIES.
19617
19618 2011-05-09  Jim Meyering  <meyering@redhat.com>
19619
19620         maint.mk: change semantics/name of tight_scope variables
19621         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19622         Rename variables to align with semantics that make them more useful.
19623
19624         maint.mk: tweak new rule's name not to impinge
19625         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19626         (sc_tight_scope): Use new rule name rather than $@-0.
19627
19628         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19629         * top/maint.mk (sc_tight_scope): New rule.
19630         (sc_tight_scope-0): New rule, ifdef'd out.
19631         (_gl_TS_dir): Default.
19632         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19633         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19634
19635 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19636
19637         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19638         Haible <bruno@clisp.org>.
19639
19640 2011-05-08  Bruno Haible  <bruno@clisp.org>
19641
19642         Comments.
19643         * m4/isnanf.m4: Add comment.
19644         * m4/isnanl.m4: Likewise.
19645
19646 2011-05-08  Bruno Haible  <bruno@clisp.org>
19647
19648         glob: Remove obsolete macro.
19649         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19650
19651 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19652
19653         intprops: Sun C 5.11 supports __typeof__
19654         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19655         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19656         which is new.
19657         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19658
19659         intprops: switch to usual gnulib indenting and naming
19660         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19661         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19662
19663         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19664
19665 2011-05-08  Jim Meyering  <meyering@redhat.com>
19666
19667         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19668         * top/maint.mk (release-prep): Use make's --no-print-directory
19669         option when generating the announcement.  This eliminates the
19670         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19671         generated announcement template.
19672
19673 2011-05-08  Bruno Haible  <bruno@clisp.org>
19674
19675         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19676         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19677         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19678
19679 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19680
19681         ignore-value, verify: Omit include files from lib_SOURCES.
19682         * modules/ignore-value, modules/verify (Makefile.am):
19683         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19684         that leads Automake to duplicate use of am__objects_... variables
19685         in Makefile.in.  See
19686         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19687
19688 2011-05-07  Bruno Haible  <bruno@clisp.org>
19689
19690         fclose: Simplify autoconf macro.
19691         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19692         defined.
19693
19694 2011-05-07  Bruno Haible  <bruno@clisp.org>
19695
19696         canonicalize-lgpl: Fix autoconf macro ordering bug.
19697         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19698         gl_STDLIB_H_DEFAULTS.
19699
19700 2011-05-06  Eric Blake  <eblake@redhat.com>
19701
19702         maintainer-makefile: make sc_po_check easier to tune
19703         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19704         to probe for strings, such as an alternate location for gnulib.
19705
19706         fclose: guarantee behavior on seekable stdin
19707         * modules/fclose (Depends-on): Add fflush.
19708         * doc/posix-functions/fclose.texi (fclose): Document this.
19709         * tests/test-fclose.c (main): Make test for this unconditional.
19710
19711 2011-05-06  Bruno Haible  <bruno@clisp.org>
19712
19713         fflush, fpurge: Relicense under LGPLv2+.
19714         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19715         * modules/fpurge (License): Likewise.
19716         With permission from Eric Blake and Jim Meyering.
19717         Suggested by Eric Blake.
19718
19719 2011-05-06  Karl Berry  <karl@gnu.org>
19720
19721         * MODULES.html.sh (func_all_modules): remove exit.
19722
19723 2011-05-06  Jim Meyering  <meyering@redhat.com>
19724
19725         maint.mk: use info-gnu@ as the default only for a stable release
19726         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19727         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19728         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19729         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19730
19731 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19732
19733         assert-h: new module, which supports C1X-style static_assert
19734         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19735         * lib/verify.h: Revamp so that this can be copied into assert.h,
19736         while retaining the ability to use it standalone as before.
19737         Rename private identifiers so as not to encroach on the
19738         standard C namespace, since this is now used by assert.h.
19739         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19740         the old verify_true.
19741         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19742         the old verify_true.  Use _GL_VERIFY_TYPE.
19743         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19744         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19745         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19746         defined when this file is copied into the replacement assert.h.
19747         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19748         and _Static_assert is not built in.
19749         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19750         defined, and use the new macros mentioned above.
19751         * doc/posix-headers/assert.texi: Document this.
19752
19753 2011-05-05  Bruno Haible  <bruno@clisp.org>
19754
19755         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19756         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19757         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19758         gl_REPLACE_FCLOSE here.
19759         * modules/fflush (Depends-on): Remove fclose.
19760         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19761         combination with module 'fclose'.
19762
19763 2011-05-05  Bruno Haible  <bruno@clisp.org>
19764
19765         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19766         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19767         gl_FUNC_FFLUSH.
19768         (gl_FUNC_FFLUSH): Use it.
19769         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19770         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19771         gl_REPLACE_FSEEKO here.
19772
19773 2011-05-05  Bruno Haible  <bruno@clisp.org>
19774
19775         tzset: Relicense under LGPL.
19776         * modules/tzset (License): Change to LGPL.
19777         No agreement needed; it's a no-op.
19778
19779         strtoimax, strtoumax: Relicense under LGPL.
19780         * modules/strtoimax (License): Change to LGPL.
19781         * modules/strtoumax (License): Likewise.
19782         With permission from Jim Meyering, Paul Eggert:
19783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19785
19786         getgroups: Relicense under LGPL.
19787         * modules/getgroups (License): Change to LGPL.
19788         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19789         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19791         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19792
19793         nanosleep: Relicense under LGPL.
19794         * modules/nanosleep (License): Change to LGPL.
19795         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19796         Haible:
19797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19801
19802         futimens: Relicense under LGPL.
19803         * modules/futimens (License): Change to LGPL.
19804         With permission from Eric Blake:
19805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19806
19807         fflush: Relicense under LGPL.
19808         * modules/fflush (License): Change to LGPL.
19809         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19813
19814         tmpfile: Relicense under LGPL.
19815         * modules/tmpfile (License): Change to LGPL.
19816         With permission from Ben Pfaff:
19817         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19818
19819         isfinite: Relicense under LGPL.
19820         * modules/isfinite (License): Change to LGPL.
19821         With permission from Ben Pfaff, Bruno Haible:
19822         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19823         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19824
19825         acosl..tanl: Relicense under LGPL.
19826         * modules/acosl (License): Change to LGPL.
19827         * modules/asinl (License): Likewise.
19828         * modules/atanl (License): Likewise.
19829         * modules/cosl (License): Likewise.
19830         * modules/expl (License): Likewise.
19831         * modules/logl (License): Likewise.
19832         * modules/sinl (License): Likewise.
19833         * modules/sqrtl (License): Likewise.
19834         * modules/tanl (License): Likewise.
19835         Source code originally from glibc and Paolo Bonzini. Agreements:
19836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19838
19839 2011-05-05  Bruno Haible  <bruno@clisp.org>
19840
19841         signal: Define sighandler_t.
19842         * lib/signal.in.h (sighandler_t): New type.
19843         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19844         whether sighandler_t is defined.
19845         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19846         * modules/signal (Depends-on): Add extensions.
19847         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19848         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19849         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19850
19851 2011-05-05  Eric Blake  <eblake@redhat.com>
19852
19853         maint: remove useless REPLACE_*_H macros
19854         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19855         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19856         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19857         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19858         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19859         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19860         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19861         * m4/btowc.m4: Update callers.
19862         * m4/dirfd.m4: Likewise.
19863         * m4/duplocale.m4: Likewise.
19864         * m4/fchdir.m4: Likewise.
19865         * m4/fdopendir.m4: Likewise.
19866         * m4/inet_ntop.m4: Likewise.
19867         * m4/inet_pton.m4: Likewise.
19868         * m4/ioctl.m4: Likewise.
19869         * m4/mbrlen.m4: Likewise.
19870         * m4/mbrtowc.m4: Likewise.
19871         * m4/mbsinit.m4: Likewise.
19872         * m4/mbsnrtowcs.m4: Likewise.
19873         * m4/mbsrtowcs.m4: Likewise.
19874         * m4/poll.m4: Likewise.
19875         * m4/setlocale.m4: Likewise.
19876         * m4/wcrtomb.m4: Likewise.
19877         * m4/wcsnrtombs.m4: Likewise.
19878         * m4/wcsrtombs.m4: Likewise.
19879         * m4/wctob.m4: Likewise.
19880         * m4/wcwidth.m4: Likewise.
19881         * modules/posix_spawn: Likewise.
19882         * modules/posix_spawn_file_actions_addclose: Likewise.
19883         * modules/posix_spawn_file_actions_adddup2: Likewise.
19884         * modules/posix_spawn_file_actions_addopen: Likewise.
19885         * modules/posix_spawn_file_actions_destroy: Likewise.
19886         * modules/posix_spawn_file_actions_init: Likewise.
19887         * modules/posix_spawnattr_destroy: Likewise.
19888         * modules/posix_spawnattr_getflags: Likewise.
19889         * modules/posix_spawnattr_getpgroup: Likewise.
19890         * modules/posix_spawnattr_getschedparam: Likewise.
19891         * modules/posix_spawnattr_getschedpolicy: Likewise.
19892         * modules/posix_spawnattr_getsigdefault: Likewise.
19893         * modules/posix_spawnattr_getsigmask: Likewise.
19894         * modules/posix_spawnattr_init: Likewise.
19895         * modules/posix_spawnattr_setflags: Likewise.
19896         * modules/posix_spawnattr_setpgroup: Likewise.
19897         * modules/posix_spawnattr_setschedparam: Likewise.
19898         * modules/posix_spawnattr_setschedpolicy: Likewise.
19899         * modules/posix_spawnattr_setsigdefault: Likewise.
19900         * modules/posix_spawnattr_setsigmask: Likewise.
19901         * modules/posix_spawnp: Likewise.
19902
19903 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19904
19905         Add option to do-release-commit-and-tag to specify branch.
19906         * build-aux/do-release-commit-and-tag: Add --branch.
19907
19908 2011-05-03  Bruno Haible  <bruno@clisp.org>
19909
19910         Avoid unnecessary compilation units, through conditional dependencies.
19911         * modules/accept (Depends-on): Add conditions to the dependencies.
19912         * modules/acosl (Depends-on): Likewise.
19913         * modules/argz (Depends-on): Likewise.
19914         * modules/asinl (Depends-on): Likewise.
19915         * modules/atanl (Depends-on): Likewise.
19916         * modules/atoll (Depends-on): Likewise.
19917         * modules/bind (Depends-on): Likewise.
19918         * modules/btowc (Depends-on): Likewise.
19919         * modules/canonicalize-lgpl (Depends-on): Likewise.
19920         * modules/ceil (Depends-on): Likewise.
19921         * modules/ceilf (Depends-on): Likewise.
19922         * modules/ceill (Depends-on): Likewise.
19923         * modules/chdir-long (Depends-on): Likewise.
19924         * modules/chown (Depends-on): Likewise.
19925         * modules/close (Depends-on): Likewise.
19926         * modules/connect (Depends-on): Likewise.
19927         * modules/cosl (Depends-on): Likewise.
19928         * modules/dirfd (Depends-on): Likewise.
19929         * modules/dprintf (Depends-on): Likewise.
19930         * modules/dprintf-posix (Depends-on): Likewise.
19931         * modules/error (Depends-on): Likewise.
19932         * modules/euidaccess (Depends-on): Likewise.
19933         * modules/expl (Depends-on): Likewise.
19934         * modules/faccessat (Depends-on): Likewise.
19935         * modules/fchdir (Depends-on): Likewise.
19936         * modules/fclose (Depends-on): Likewise.
19937         * modules/fcntl (Depends-on): Likewise.
19938         * modules/fdopendir (Depends-on): Likewise.
19939         * modules/fflush (Depends-on): Likewise.
19940         * modules/floor (Depends-on): Likewise.
19941         * modules/floorf (Depends-on): Likewise.
19942         * modules/floorl (Depends-on): Likewise.
19943         * modules/fnmatch (Depends-on): Likewise.
19944         * modules/fopen (Depends-on): Likewise.
19945         * modules/fprintf-posix (Depends-on): Likewise.
19946         * modules/frexp (Depends-on): Likewise.
19947         * modules/frexp-nolibm (Depends-on): Likewise.
19948         * modules/frexpl (Depends-on): Likewise.
19949         * modules/frexpl-nolibm (Depends-on): Likewise.
19950         * modules/fseek (Depends-on): Likewise.
19951         * modules/fsusage (Depends-on): Likewise.
19952         * modules/ftell (Depends-on): Likewise.
19953         * modules/ftello (Depends-on): Likewise.
19954         * modules/futimens (Depends-on): Likewise.
19955         * modules/getcwd (Depends-on): Likewise.
19956         * modules/getcwd-lgpl (Depends-on): Likewise.
19957         * modules/getdelim (Depends-on): Likewise.
19958         * modules/getdomainname (Depends-on): Likewise.
19959         * modules/getgroups (Depends-on): Likewise.
19960         * modules/gethostname (Depends-on): Likewise.
19961         * modules/getline (Depends-on): Likewise.
19962         * modules/getlogin_r (Depends-on): Likewise.
19963         * modules/getopt-posix (Depends-on): Likewise.
19964         * modules/getpeername (Depends-on): Likewise.
19965         * modules/getsockname (Depends-on): Likewise.
19966         * modules/getsockopt (Depends-on): Likewise.
19967         * modules/getsubopt (Depends-on): Likewise.
19968         * modules/getusershell (Depends-on): Likewise.
19969         * modules/glob (Depends-on): Likewise.
19970         * modules/grantpt (Depends-on): Likewise.
19971         * modules/iconv_open (Depends-on): Likewise.
19972         * modules/iconv_open-utf (Depends-on): Likewise.
19973         * modules/inet_ntop (Depends-on): Likewise.
19974         * modules/inet_pton (Depends-on): Likewise.
19975         * modules/ioctl (Depends-on): Likewise.
19976         * modules/isapipe (Depends-on): Likewise.
19977         * modules/isfinite (Depends-on): Likewise.
19978         * modules/isinf (Depends-on): Likewise.
19979         * modules/lchown (Depends-on): Likewise.
19980         * modules/ldexpl (Depends-on): Likewise.
19981         * modules/link (Depends-on): Likewise.
19982         * modules/linkat (Depends-on): Likewise.
19983         * modules/listen (Depends-on): Likewise.
19984         * modules/logl (Depends-on): Likewise.
19985         * modules/lstat (Depends-on): Likewise.
19986         * modules/mbrlen (Depends-on): Likewise.
19987         * modules/mbrtowc (Depends-on): Likewise.
19988         * modules/mbsinit (Depends-on): Likewise.
19989         * modules/mbsnrtowcs (Depends-on): Likewise.
19990         * modules/mbsrtowcs (Depends-on): Likewise.
19991         * modules/mbtowc (Depends-on): Likewise.
19992         * modules/memcmp (Depends-on): Likewise.
19993         * modules/mkdir (Depends-on): Likewise.
19994         * modules/mkdtemp (Depends-on): Likewise.
19995         * modules/mkfifo (Depends-on): Likewise.
19996         * modules/mkfifoat (Depends-on): Likewise.
19997         * modules/mknod (Depends-on): Likewise.
19998         * modules/mkostemp (Depends-on): Likewise.
19999         * modules/mkostemps (Depends-on): Likewise.
20000         * modules/mkstemp (Depends-on): Likewise.
20001         * modules/mkstemps (Depends-on): Likewise.
20002         * modules/mktime (Depends-on): Likewise.
20003         * modules/nanosleep (Depends-on): Likewise.
20004         * modules/open (Depends-on): Likewise.
20005         * modules/openat (Depends-on): Likewise.
20006         * modules/perror (Depends-on): Likewise.
20007         * modules/poll (Depends-on): Likewise.
20008         * modules/popen (Depends-on): Likewise.
20009         * modules/posix_spawn (Depends-on): Likewise.
20010         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20011         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20012         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20013         * modules/posix_spawnp (Depends-on): Likewise.
20014         * modules/pread (Depends-on): Likewise.
20015         * modules/printf-posix (Depends-on): Likewise.
20016         * modules/ptsname (Depends-on): Likewise.
20017         * modules/putenv (Depends-on): Likewise.
20018         * modules/pwrite (Depends-on): Likewise.
20019         * modules/readline (Depends-on): Likewise.
20020         * modules/readlink (Depends-on): Likewise.
20021         * modules/readlinkat (Depends-on): Likewise.
20022         * modules/recv (Depends-on): Likewise.
20023         * modules/recvfrom (Depends-on): Likewise.
20024         * modules/regex (Depends-on): Likewise.
20025         * modules/remove (Depends-on): Likewise.
20026         * modules/rename (Depends-on): Likewise.
20027         * modules/renameat (Depends-on): Likewise.
20028         * modules/rmdir (Depends-on): Likewise.
20029         * modules/round (Depends-on): Likewise.
20030         * modules/roundf (Depends-on): Likewise.
20031         * modules/roundl (Depends-on): Likewise.
20032         * modules/rpmatch (Depends-on): Likewise.
20033         * modules/select (Depends-on): Likewise.
20034         * modules/send (Depends-on): Likewise.
20035         * modules/sendto (Depends-on): Likewise.
20036         * modules/setenv (Depends-on): Likewise.
20037         * modules/setlocale (Depends-on): Likewise.
20038         * modules/setsockopt (Depends-on): Likewise.
20039         * modules/shutdown (Depends-on): Likewise.
20040         * modules/sigaction (Depends-on): Likewise.
20041         * modules/signbit (Depends-on): Likewise.
20042         * modules/sigprocmask (Depends-on): Likewise.
20043         * modules/sinl (Depends-on): Likewise.
20044         * modules/sleep (Depends-on): Likewise.
20045         * modules/snprintf (Depends-on): Likewise.
20046         * modules/snprintf-posix (Depends-on): Likewise.
20047         * modules/socket (Depends-on): Likewise.
20048         * modules/sprintf-posix (Depends-on): Likewise.
20049         * modules/sqrtl (Depends-on): Likewise.
20050         * modules/stat (Depends-on): Likewise.
20051         * modules/strchrnul (Depends-on): Likewise.
20052         * modules/strdup-posix (Depends-on): Likewise.
20053         * modules/strerror (Depends-on): Likewise.
20054         * modules/strerror_r-posix (Depends-on): Likewise.
20055         * modules/strndup (Depends-on): Likewise.
20056         * modules/strnlen (Depends-on): Likewise.
20057         * modules/strptime (Depends-on): Likewise.
20058         * modules/strsep (Depends-on): Likewise.
20059         * modules/strsignal (Depends-on): Likewise.
20060         * modules/strstr-simple (Depends-on): Likewise.
20061         * modules/strtod (Depends-on): Likewise.
20062         * modules/strtoimax (Depends-on): Likewise.
20063         * modules/strtok_r (Depends-on): Likewise.
20064         * modules/strtoumax (Depends-on): Likewise.
20065         * modules/symlink (Depends-on): Likewise.
20066         * modules/symlinkat (Depends-on): Likewise.
20067         * modules/tanl (Depends-on): Likewise.
20068         * modules/tcgetsid (Depends-on): Likewise.
20069         * modules/tmpfile (Depends-on): Likewise.
20070         * modules/trunc (Depends-on): Likewise.
20071         * modules/truncf (Depends-on): Likewise.
20072         * modules/truncl (Depends-on): Likewise.
20073         * modules/uname (Depends-on): Likewise.
20074         * modules/unlink (Depends-on): Likewise.
20075         * modules/unlockpt (Depends-on): Likewise.
20076         * modules/unsetenv (Depends-on): Likewise.
20077         * modules/usleep (Depends-on): Likewise.
20078         * modules/utimensat (Depends-on): Likewise.
20079         * modules/vasprintf (Depends-on): Likewise.
20080         * modules/vdprintf (Depends-on): Likewise.
20081         * modules/vdprintf-posix (Depends-on): Likewise.
20082         * modules/vfprintf-posix (Depends-on): Likewise.
20083         * modules/vprintf-posix (Depends-on): Likewise.
20084         * modules/vsnprintf (Depends-on): Likewise.
20085         * modules/vsnprintf-posix (Depends-on): Likewise.
20086         * modules/vsprintf-posix (Depends-on): Likewise.
20087         * modules/wcrtomb (Depends-on): Likewise.
20088         * modules/wcscasecmp (Depends-on): Likewise.
20089         * modules/wcscspn (Depends-on): Likewise.
20090         * modules/wcsdup (Depends-on): Likewise.
20091         * modules/wcsncasecmp (Depends-on): Likewise.
20092         * modules/wcsnrtombs (Depends-on): Likewise.
20093         * modules/wcspbrk (Depends-on): Likewise.
20094         * modules/wcsrtombs (Depends-on): Likewise.
20095         * modules/wcsspn (Depends-on): Likewise.
20096         * modules/wcsstr (Depends-on): Likewise.
20097         * modules/wcstok (Depends-on): Likewise.
20098         * modules/wcswidth (Depends-on): Likewise.
20099         * modules/wctob (Depends-on): Likewise.
20100         * modules/wctomb (Depends-on): Likewise.
20101         * modules/wctype (Depends-on): Likewise.
20102         * modules/wcwidth (Depends-on): Likewise.
20103         * modules/write (Depends-on): Likewise.
20104
20105 2011-05-03  Bruno Haible  <bruno@clisp.org>
20106
20107         Support for conditional dependencies.
20108         * doc/gnulib.texi (Module description): Document the syntax of
20109         conditional dependencies.
20110         * gnulib-tool: New option --conditional-dependencies.
20111         (func_usage): Document it.
20112         (cond_dependencies): New variable.
20113         (func_get_automake_snippet_conditional,
20114         func_get_automake_snippet_unconditional): New functions, extracted from
20115         func_get_automake_snippet.
20116         (func_get_automake_snippet): Use them.
20117         (sed_first_32_chars): New variable.
20118         (func_module_shellfunc_name): New function.
20119         (func_module_shellvar_name): New function.
20120         (func_module_conditional_name): New function.
20121         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20122         func_cond_module_condition): New functions.
20123         (func_modules_transitive_closure): Add support for conditional
20124         dependencies.
20125         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20126         conditional automake snippet in an automake conditional.
20127         (func_emit_autoconf_snippets): Emit shell functions that contain the
20128         code for conditional modules.
20129         (func_import, func_create_testdir): Update specification.
20130
20131 2011-05-03  Eric Blake  <eblake@redhat.com>
20132
20133         test-getaddrinfo: report error information
20134         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20135
20136 2011-05-03  Jim Meyering  <meyering@redhat.com>
20137
20138         bootstrap: avoid build failure when $GZIP is set
20139         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20140         program name.  If defined at all, it is supposed to list gzip options.
20141         Reported by Alan Curry in http://debbugs.gnu.org/8609
20142
20143 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20144
20145         readme-release: new module with release instructions
20146         * modules/readme-release: New module.
20147         * top/README-release: New file, from coreutils, grep, diffutils.
20148         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20149
20150 2011-05-02  Eric Blake  <eblake@redhat.com>
20151
20152         fflush: also replace fclose when fixing fflush
20153         * modules/fflush (Depends-on): Add fclose.
20154         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20155         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20156         memstreams with no backing fd.
20157         * doc/posix-functions/fclose.texi (fclose): Document the use of
20158         fflush module to fix the bug.
20159         * tests/test-fclose.c (main): Relax test when fclose is used in
20160         isolation.
20161
20162         fclose: add some tests
20163         * modules/fclose-tests: New test module.
20164         * tests/test-fclose.c: New file.
20165         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20166
20167         fclose: reduced dependencies
20168         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20169         simpler lseek.
20170         * lib/fclose.c (rpl_fclose): Likewise.
20171         Reported by Simon Josefsson.
20172
20173         exit: drop remaining clients
20174         * modules/argmatch (Depends-on): Replace exit with stdlib.
20175         * modules/copy-file (Depends-on): Likewise.
20176         * modules/execute (Depends-on): Likewise.
20177         * modules/exitfail (Depends-on): Likewise.
20178         * modules/obstack (Depends-on): Likewise.
20179         * modules/pagealign_alloc (Depends-on): Likewise.
20180         * modules/pipe-filter-gi (Depends-on): Likewise.
20181         * modules/pipe-filter-ii (Depends-on): Likewise.
20182         * modules/savewd (Depends-on): Likewise.
20183         * modules/spawn-pipe (Depends-on): Likewise.
20184         * modules/wait-process (Depends-on): Likewise.
20185         * modules/xsetenv (Depends-on): Likewise.
20186         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20187         * modules/git-merge-changelog (Depends-on): Likewise.
20188         * modules/long-options (Depends-on): Likewise.
20189         * modules/pt_chown (Depends-on): Likewise.
20190         * modules/sysexits (Depends-on): Likewise.
20191
20192         freading: relax license from LGPLv3+ to LGPLv2+
20193         * modules/freading (License): Relax LGPL version.
20194
20195 2011-05-02  Bruno Haible  <bruno@clisp.org>
20196
20197         fchdir: Remove unused dependencies.
20198         * modules/fchdir (Depends-on): Remove include_next.
20199
20200 2011-05-02  Bruno Haible  <bruno@clisp.org>
20201
20202         gnulib-tool: Refactor.
20203         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20204         from func_emit_autoconf_snippets.
20205         (func_emit_autoconf_snippets): Use it.
20206
20207 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20208
20209         * NEWS: Document removal of 'exit'.
20210         * modules/exit: Remove file.
20211
20212 2011-05-01  Bruno Haible  <bruno@clisp.org>
20213
20214         Update DEPENDENCIES.
20215         * DEPENDENCIES (gettext): Recommend the newest release.
20216         Reported by Simon Josefsson.
20217
20218 2011-05-01  Bruno Haible  <bruno@clisp.org>
20219
20220         gnulib-tool: Reduce code duplication.
20221         * gnulib-tool (func_emit_autoconf_snippets): New function.
20222         (func_import, func_create_testdir): Use it.
20223
20224 2011-04-30  Eric Blake  <eblake@redhat.com>
20225
20226         fclose: don't fail on non-seekable input stream
20227         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20228         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20229         since fflush is allowed to fail in that case.
20230
20231 2011-04-30  Bruno Haible  <bruno@clisp.org>
20232
20233         dup3: cleanup
20234         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20235
20236 2011-04-30  Bruno Haible  <bruno@clisp.org>
20237
20238         netdb: Make it work in C++ mode.
20239         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20240         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20241         module.
20242         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20243         gl_MODULE_INDICATOR_FOR_TESTS.
20244         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20245         * modules/netdb-c++-tests: New file.
20246         * tests/test-netdb-c++.cc: New file.
20247
20248 2011-04-30  Bruno Haible  <bruno@clisp.org>
20249
20250         New modules 'vfscanf', 'vscanf'.
20251         * modules/vfscanf: New file.
20252         * modules/vscanf: New file.
20253         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20254         here.
20255         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20256         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20257
20258 2011-04-30  Bruno Haible  <bruno@clisp.org>
20259
20260         passfd: Add comments.
20261         * lib/passfd.c: Add comments about platforms.
20262
20263 2011-04-30  Bruno Haible  <bruno@clisp.org>
20264
20265         sys_uio: Make <sys/uio.h> self-contained.
20266         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20267         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20268
20269 2011-04-30  Bruno Haible  <bruno@clisp.org>
20270
20271         sys_socket: Ensure 'struct iovec' definition.
20272         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20273         <sys/socket.h>.
20274         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20275
20276 2011-04-30  Bruno Haible  <bruno@clisp.org>
20277
20278         sys_uio: Protect definition of 'struct iovec'.
20279         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20280         it as a C struct.
20281
20282 2011-04-30  Bruno Haible  <bruno@clisp.org>
20283
20284         manywarnings: fix indentation
20285         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20286
20287 2011-04-30  Pádraig Brady <P@draigBrady.com>
20288
20289         manywarnings: add -Wno-missing-field-initializers if needed.
20290         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20291         option if it's needed to allow initialization with { 0, }
20292
20293 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20294
20295         announce-gen: cosmetic improvement
20296         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20297
20298 2011-04-29  Jim Meyering  <meyering@redhat.com>
20299
20300         vc-list-files: indent with spaces, not TABs
20301         * build-aux/vc-list-files: Convert leading TABs to spaces,
20302         to match the style of most other files in gnulib.
20303
20304         announce-gen: indent with spaces, not TABs
20305         * build-aux/announce-gen: Convert all TABs to spaces, to match
20306         the style of most other files in gnulib.
20307
20308 2011-04-29  Eric Blake  <eblake@redhat.com>
20309
20310         quotearg: avoid uninitialized variable use
20311         * lib/quotearg.c (quoting_options_from_style): Initialize
20312         remaining fields, and ensure that custom styles are only used via
20313         quoting_options rather than quoting_style.
20314
20315 2011-04-29  Jim Meyering  <meyering@redhat.com>
20316
20317         maint.mk: remove unused VC-tag variable
20318         * top/maint.mk (VC-tag): Remove unused variable.
20319
20320 2011-04-29  Bruno Haible  <bruno@clisp.org>
20321
20322         netdb: fix gai_strerror replacements
20323         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20324         * modules/netdb: Substitute it.
20325
20326 2011-04-29  Jim Meyering  <meyering@redhat.com>
20327
20328         test-getcwd.c: avoid new set-but-not-used warning
20329         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20330         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20331         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20332         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20333
20334         test-hash.c: avoid a new shadowing warning
20335         * tests/test-hash.c (main): Don't shadow "dup".
20336
20337 2011-04-28  Eric Blake  <eblake@redhat.com>
20338
20339         getaddrinfo: fix gai_strerror signature
20340         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20341         and work around mingw with UNICODE defined.
20342         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20343         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20344         * modules/netdb (Makefile.am): Substitute it.
20345         * lib/netdb.in.h (gai_strerror): Declare replacement.
20346         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20347         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20348         the fix.
20349
20350         getsockopt: avoid compiler warning
20351         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20352         Reported by Matthias Bolte.
20353
20354         tests: drop unused link dependency
20355         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20356         * modules/dirent-safer-tests (Makefile.am): Likewise.
20357         * modules/fdopendir-tests (Makefile.am): Likewise.
20358         * modules/mkfifoat-tests (Makefile.am): Likewise.
20359         * modules/openat-safer-tests (Makefile.am): Likewise.
20360         * modules/openat-tests (Makefile.am): Likewise.
20361         * modules/readlinkat-tests (Makefile.am): Likewise.
20362         * modules/symlinkat-tests (Makefile.am): Likewise.
20363         * modules/linkat-tests (Makefile.am): Likewise.
20364         (Depends-on): Switch to filenamecat-lgpl.
20365         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20366         LIBINTL.
20367         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20368         * tests/test-linkat.c (main): Don't require xalloc.
20369
20370         hash, mgetgroups: drop xalloc dependency
20371         * lib/hash.c (includes): Adjust includes.
20372         * lib/mgetgroups.c (includes): Likewise.
20373         (xgetgroups): Move...
20374         * lib/xgetgroups.c: ...to new file.
20375         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20376         * modules/xgetgroups: New file, split from...
20377         * modules/mgetgroups: ...here.
20378         (Depends-on): Add xalloc-oversized.
20379         * modules/hash (Depends-on): Likewise.
20380         * modules/hash-tests (Depends-on): Drop xalloc.
20381         (test_hash_LDADD): Drop unused library.
20382         * tests/test-hash.c (main): Break xalloc dependency.
20383         (includes): Drop unused include.
20384
20385         xalloc-oversized: new module
20386         * modules/xalloc-oversized: New module.
20387         * modules/xalloc (Depends-on): Add it.
20388         * lib/xalloc.h (xalloc_oversized): Move...
20389         * lib/xalloc-oversized.h: ...into new file.
20390
20391         utimecmp: drop dependency on xmalloc
20392         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20393         due to memory pressure.
20394         * modules/utimecmp (Depends-on): Drop xalloc.
20395
20396 2011-04-27  Eric Blake  <eblake@redhat.com>
20397
20398         getcwd: fix mingw bugs
20399         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20400         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20401         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20402
20403 2011-04-27  Bruno Haible  <bruno@clisp.org>
20404
20405         mkstemps: Ensure declaration on MacOS X 10.5.
20406         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20407         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20408         MacOS X.
20409
20410 2011-04-27  Bruno Haible  <bruno@clisp.org>
20411
20412         mkstemp: More documentation.
20413         * doc/posix-functions/mkstemp.texi: Document header file problem on
20414         MacOS X.
20415
20416 2011-04-27  Bruno Haible  <bruno@clisp.org>
20417
20418         mkstemp: Tweak configure message when cross-compiling.
20419         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20420         result as a guess.
20421
20422 2011-04-27  Bruno Haible  <bruno@clisp.org>
20423
20424         clean-temp: Clarify what it does.
20425         * lib/clean-temp.h: Add more comments.
20426         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20427         module.
20428         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20429         * doc/glibc-functions/mkstemps.texi: Likewise.
20430         * doc/glibc-functions/mkostemps.texi: Likewise.
20431
20432 2011-04-27  Eric Blake  <eblake@redhat.com>
20433
20434         fchdir: avoid extra chdir and fix test
20435         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20436         getcwd-lgpl.
20437         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20438         have to be canonical.
20439         (canonicalize_file_name): Drop unused macro.
20440         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20441
20442         filenamecat-lgpl: fix licence
20443         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20444         when it was first created.
20445
20446         linkat, renameat: add missing dependency
20447         * modules/linkat (Depends-on): Require getcwd-lgpl.
20448         * modules/renameat (Depends-on): Likewise.
20449
20450         tests: reduce dependencies
20451         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20452         * tests/test-renameat.c (main): Likewise.
20453         * modules/linkat-tests (Depends-on): Relax dependency.
20454         * modules/renameat-tests (Depends-on): Likewise.
20455         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20456         dependency explicit.
20457
20458         save-cwd: reduce default dependency
20459         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20460         * lib/save-cwd.c: Update comments.
20461         * NEWS: Document the semantic change.
20462
20463         getcwd: enhance tests
20464         * tests/test-getcwd-lgpl.c: New file, taken from...
20465         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20466         repeat long path stress tests from m4 probe.
20467         * modules/getcwd-lgpl-tests: New module.
20468         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20469         * m4/getcwd-abort-bug.m4: Update comment.
20470         * m4/getcwd-path-max.m4: Likewise.
20471
20472         getcwd-lgpl: new module
20473         * modules/getcwd-lgpl: New module.
20474         * lib/getcwd-lgpl.c: New file.
20475         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20476         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20477         * modules/getcwd (configure.ac): Set C witness.
20478         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20479
20480         getcwd: tweak comments
20481         * m4/getcwd-abort-bug.m4: Fix comments.
20482         * m4/getcwd-path-max.m4: Likewise.
20483         * m4/getcwd.m4: Likewise.
20484
20485 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20486         and Eric Blake  <eblake@redhat.com>
20487
20488         mkstemp: replace if system version uses wrong permissions
20489         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20490         read/write mode bits set in file created by mkstemp.
20491         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20492
20493 2011-04-27  Eric Blake  <eblake@redhat.com>
20494
20495         passfd: avoid compiler warning
20496         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20497         Reported by Laine Stump.
20498
20499 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20500
20501         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20502         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20503
20504 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20505         and Eric Blake  <eblake@redhat.com>
20506
20507         mkstemp: mention clean-temp module
20508         * lib/mkstemp.c: Add comment.
20509         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20510
20511 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20512
20513         inttypes: also provide default values for 32-bit tests
20514         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20515         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20516
20517 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20518
20519         strtoumax: remove dependency on strtoimax
20520         This is like the strtoull change of yesterday.
20521         * modules/strtoumax (Files): Add lib/strtoimax.c.
20522         (Depends-on): Remove strtoimax and add verify.
20523
20524         inttypes-incomplete: new module
20525         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20526         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20527         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20528         of gl_INTTYPES_H.
20529         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20530         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20531         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20532         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20533         * modules/strtoumax, modules/xstrtol (Depends-on):
20534         Depend on inttypes-incomplete, not inttypes.
20535         * modules/inttypes-incomplete: New module, containing the contents
20536         of the old modules/inttypes module, except that the Files: section
20537         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20538         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20539         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20540         (Depends-on): Depend only on inttypes-incomplete.
20541         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20542
20543         inttypes: omit now-redundant strtoimax and strtoumax work
20544         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20545         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20546
20547         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20548         This supports apps that need pointers to strtoimax and strtoumax,
20549         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20550         nonexistent functions.  See
20551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20552         et seq.
20553         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20554         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20555         a macro.
20556         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20557
20558 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20559
20560         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20561
20562 2011-04-25  Bruno Haible  <bruno@clisp.org>
20563
20564         strtol, strtoul: Mark modules as obsolete.
20565         * modules/strtol (Status, Notice): New sections.
20566         * modules/strtoul (Status, Notice): New sections.
20567
20568 2011-04-25  Bruno Haible  <bruno@clisp.org>
20569
20570         strtod: Remove check for strtod, unless supporting old platforms.
20571         * modules/strtod-obsolete: New file.
20572         * m4/strtod-obsolete.m4: New file.
20573         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20574         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20575         * modules/strtod (Depends-on): Add strtod-obsolete.
20576         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20577
20578 2011-04-25  Bruno Haible  <bruno@clisp.org>
20579
20580         strcase: Make module obsolete.
20581         * modules/strcase (Status, Notice): New sections.
20582
20583 2011-04-25  Bruno Haible  <bruno@clisp.org>
20584
20585         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20586         * modules/dup2-obsolete: New file.
20587         * m4/dup2-obsolete.m4: New file.
20588         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20589         gl_FUNC_DUP2_OBSOLETE is not also defined.
20590         * modules/dup2 (Depends-on): Add dup2-obsolete.
20591         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20592
20593 2011-04-25  Bruno Haible  <bruno@clisp.org>
20594
20595         strnlen: Avoid memchr related link error on old obsolete platforms.
20596         * modules/memchr-obsolete: New file.
20597         * m4/memchr-obsolete.m4: New file.
20598         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20599         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20600         * modules/memchr (Depends-on): Add memchr-obsolete.
20601         * modules/strnlen (Depends-on): Likewise.
20602         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20603
20604 2011-04-25  Jim Meyering  <meyering@redhat.com>
20605
20606         maint.mk: makefile_at_at_check extend and clean up
20607         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20608         in addition to */Makefile.am.
20609         Exempt legitimate uses of @VAR@ notation, e.g.,
20610         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20611         Remove obsolete coreutils-specific comment.
20612         Prompted by discussion here:
20613         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20614
20615 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20616
20617         strtoul: remove dependency on strtol
20618         This is so that 'configure' need not check for strtol merely because
20619         the application needs strtoul.
20620         * modules/strtoul (Files): Add lib/strtol.c.
20621         (Depends-on): Remove strtol.
20622
20623         strtoull: remove dependency on strtoul
20624         This is like the strtoll change.
20625         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20626         (Depends-on): Remove strtoul.
20627
20628         strtoll: remove dependency on strtol
20629         This is so that 'configure' need not check for strtol merely because
20630         the application needs strtoll.
20631         * modules/strtoll (Files): Add lib/strtol.c.
20632         (Depends-on): Remove strtol.
20633
20634 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20635
20636         inttypes: Move some configure check to module 'imaxdiv'.
20637         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20638         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20639         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20640
20641 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20642
20643         inttypes: Move some configure check to module 'imaxabs'.
20644         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20645         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20646         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20647
20648 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20649
20650         inttypes: Remove configure tests that are not needed since 2009-12-31.
20651         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20652         gl_cv_header_working_inttypes_h.
20653
20654 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20655
20656         * modules/strnlen (Depends-on): Remove memchr.
20657         The strnlen implementation doesn't need the memchr module's fixes; see
20658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20659
20660         strtol: remove dependency on wchar
20661         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20662         * modules/strtol (Depends-on): Remove wchar.
20663
20664 2011-04-21  Eric Blake  <eblake@redhat.com>
20665
20666         passfd: fix test regression on Linux
20667         * modules/passfd-tests (configure.ac): Correct socketpair check.
20668
20669         passfd: speed up configure and drop unused code
20670         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20671         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20672         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20673         Instead of probing at configure for unix_scm_rights_bsd44_way,
20674         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20675         check to a struct member probe.
20676         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20677         (sendfd, recvfd): Update preprocessor checks.
20678         * modules/passfd (Files): Reflect rename, and drop unused file.
20679         (Depends-on): Drop unused dependency.
20680
20681         passfd: allow compilation on mingw
20682         * modules/sys_socket (Depends-on): Add sys_uio.
20683         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20684         iovec and a minimal struct msghdr.
20685         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20686         * tests/test-sys_socket.c (main): Enhance test.
20687         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20688         guaranteed to provide what we need.
20689         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20690         * modules/passfd-tests (Depends-on): Add sys_wait.
20691         * tests/test-passfd.c (main): Skip test on mingw, for now.
20692         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20693         partial 'struct msghdr' implementation.
20694
20695         sys_uio: new module
20696         * modules/sys_uio: New module.
20697         * modules/sys_uio-tests: Likewise.
20698         * lib/sys_uio.in.h: New file.
20699         * m4/sys_uio_h.m4: Likewise.
20700         * tests/test-sys_uio.c: Likewise.
20701         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20702         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20703
20704 2011-04-20  Jim Meyering  <meyering@redhat.com>
20705
20706         useless-if-before-free: avoid false-positive
20707         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20708         disjunct so that it too requires a terminating ";".  Without that,
20709         this script would identify as useless one statement from gcc that
20710         was not:
20711           if (aligned_ptr)
20712             free (((void **) aligned_ptr) [-1]);
20713
20714 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20715
20716         doc: update users.txt.
20717         * users.txt: Add barcode.
20718
20719 2011-04-19  Bruno Haible  <bruno@clisp.org>
20720
20721         ioctl: Remove link dependency on native Windows.
20722         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20723         (gl_close_fn, gl_ioctl_fn): New types.
20724         (struct fd_hook): Renamed from struct close_hook. Change type of
20725         private_close_fn field. Add private_ioctl_fn field.
20726         (close_hook_fn): Add parameter for primary close method.
20727         (execute_close_hooks, execute_all_close_hooks): Likewise.
20728         (ioctl_hook_fn): New type.
20729         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20730         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20731         argument.
20732         (unregister_fd_hook): Renamed from unregister_close_hook.
20733         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20734         Don't include <unistd.h>.
20735         (close): Remove undef.
20736         (anchor): Update.
20737         (execute_close_hooks): Add argument for primary close method.
20738         (execute_all_close_hooks): Likewise.
20739         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20740         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20741         argument. Allow each argument to be NULL.
20742         (unregister_fd_hook): Renamed from unregister_close_hook.
20743         * lib/close.c (rpl_close): Pass 'close' function pointer to
20744         execute_all_close_hooks.
20745         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20746         (primary_ioctl): New function.
20747         (ioctl): Don't call ioctlsocket here. Instead, call
20748         execute_all_ioctl_hooks.
20749         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20750         close method.
20751         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20752         (fd_sockets_hook): Renamed from close_sockets_hook.
20753         (gl_sockets_startup, gl_sockets_cleanup): Update.
20754         * modules/fd-hook: Renamed from modules/close-hook. Update.
20755         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20756         * modules/sockets (Depends-on): Likewise.
20757         * modules/ioctl (Depends-on): Add fd-hook.
20758         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20759         GNULIB_SOCKET.
20760
20761 2011-04-19  Bruno Haible  <bruno@clisp.org>
20762
20763         Move the support of O_NONBLOCK in open() to the 'open' module.
20764         * modules/nonblocking (Depends-on): Remove 'open'.
20765         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20766         gl_cv_have_open_O_NONBLOCK.
20767         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20768         O_NONBLOCK support.
20769         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20770
20771 2011-04-17  Bruno Haible  <bruno@clisp.org>
20772
20773         pipe2: Simplify code.
20774         * lib/pipe2.c (pipe2): Reduce code duplication.
20775
20776 2011-04-17  Bruno Haible  <bruno@clisp.org>
20777
20778         nonblocking: Add comment.
20779         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20780
20781 2011-04-17  Bruno Haible  <bruno@clisp.org>
20782
20783         nonblocking: Add tests for sockets.
20784         * tests/test-nonblocking-socket.sh: New file.
20785         * tests/test-nonblocking-socket-main.c: New file.
20786         * tests/test-nonblocking-socket-child.c: New file.
20787         * tests/test-nonblocking-socket.h: New file.
20788         * tests/socket-server.h: New file.
20789         * tests/socket-client.h: New file.
20790         * modules/nonblocking-socket-tests: New file.
20791         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20792
20793 2011-04-17  Bruno Haible  <bruno@clisp.org>
20794
20795         nonblocking: Add tests for pipes.
20796         * tests/test-nonblocking-pipe.sh: New file.
20797         * tests/test-nonblocking-pipe-main.c: New file.
20798         * tests/test-nonblocking-pipe-child.c: New file.
20799         * tests/test-nonblocking-pipe.h: New file.
20800         * tests/test-nonblocking-writer.h: New file.
20801         * tests/test-nonblocking-reader.h: New file.
20802         * tests/test-nonblocking-misc.h: New file.
20803         * modules/nonblocking-pipe-tests: New file.
20804         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20805
20806 2011-04-16  Bruno Haible  <bruno@clisp.org>
20807
20808         gettext: Clarify the needed programmer actions.
20809         * modules/gettext (Notice): New field.
20810         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20811
20812 2011-04-16  Bruno Haible  <bruno@clisp.org>
20813
20814         strchrnul: Tweak last commit.
20815         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20816         bug.
20817         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20818         as in _GL_FUNCDECL_SYS.
20819         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20820         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20821
20822 2011-04-15  Eric Blake  <eblake@redhat.com>
20823
20824         strchrnul: work around cygwin bug
20825         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20826         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20828         * modules/string (Makefile.am): Substitute it.
20829         * lib/string.in.h (strchrnul): Use it.
20830
20831 2011-04-15  Bruno Haible  <bruno@clisp.org>
20832
20833         Don't require lib/stdio-write.c when only module 'stdio' is used.
20834         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20835         invocation.
20836         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20837
20838 2011-04-14  Bruno Haible  <bruno@clisp.org>
20839
20840         Support non-blocking pipe I/O in read() on native Windows.
20841         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20842         (read): New declaration.
20843         * lib/read.c: New file.
20844         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20845         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20846         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20847         vscanf): New declarations.
20848         * lib/stdio-read.c: New file.
20849         * m4/read.m4: New file.
20850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20851         REPLACE_READ.
20852         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20853         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20854         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20855         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20856         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20857         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20858         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20859         * modules/read: New file.
20860         * modules/nonblocking (Files): Add lib/stdio-read.c.
20861         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20862         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20863         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20864         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20865         * modules/pread (Depends-on): Add read.
20866         * modules/safe-read (Depends-on): Likewise.
20867         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20868         gets, scanf, vfscanf, vscanf): Verify signatures.
20869         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20870         problem with non-blocking pipes.
20871         * doc/posix-functions/fgetc.texi: Likewise.
20872         * doc/posix-functions/fgets.texi: Likewise.
20873         * doc/posix-functions/fread.texi: Likewise.
20874         * doc/posix-functions/fscanf.texi: Likewise.
20875         * doc/posix-functions/getc.texi: Likewise.
20876         * doc/posix-functions/getchar.texi: Likewise.
20877         * doc/posix-functions/gets.texi: Likewise.
20878         * doc/posix-functions/scanf.texi: Likewise.
20879         * doc/posix-functions/vfscanf.texi: Likewise.
20880         * doc/posix-functions/vscanf.texi: Likewise.
20881
20882 2011-04-14  Bruno Haible  <bruno@clisp.org>
20883
20884         Support non-blocking pipe I/O in write() on native Windows.
20885         * lib/write.c (rpl_write): Split a write request that failed merely
20886         because the byte count was larger than the pipe buffer's size.
20887         * doc/posix-functions/write.texi: Mention the problem with large byte
20888         counts.
20889
20890 2011-04-14  Bruno Haible  <bruno@clisp.org>
20891
20892         wchar: Ensure that wchar_t gets defined on uClibc.
20893         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20894         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20895
20896 2011-04-13  Bruno Haible  <bruno@clisp.org>
20897
20898         safe-write, full-read: Avoid unnecessary compilation units.
20899         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20900         (Depends-on): Remove safe-read. Add ssize_t.
20901         * modules/full-read (Files): Add lib/full-write.c.
20902         (Depends-on): Add full-write.
20903
20904 2011-04-13  Bruno Haible  <bruno@clisp.org>
20905
20906         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20907         * modules/pwrite (Depends-on): Add 'write'.
20908
20909 2011-04-13  Bruno Haible  <bruno@clisp.org>
20910
20911         Support non-blocking pipe I/O in write() on native Windows.
20912         * lib/unistd.in.h (write): Enable replacement also if
20913         GNULIB_UNISTD_H_NONBLOCKING is 1.
20914         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20915         (rpl_write): When failing to write on a non-blocking pipe, change
20916         errno from ENOSPC to EAGAIN.
20917         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20918         putchar, puts, vfprintf, vprintf): Enable replacement also if
20919         GNULIB_STDIO_H_NONBLOCKING is 1.
20920         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20921         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20922         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20923         CALL_WITH_SIGPIPE_EMULATION.
20924         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20925         * m4/nonblocking.m4: New file.
20926         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20927         for non-blocking I/O support.
20928         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20929         GNULIB_UNISTD_H_NONBLOCKING.
20930         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20931         required for non-blocking I/O support.
20932         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20933         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20934         lib/stdio-write.c, m4/asm-underscore.m4.
20935         (Depends-on): Add stdio, unistd.
20936         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20937         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20938         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20939         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20940         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20941         problem with non-blocking pipes.
20942         * doc/posix-functions/fputc.texi: Likewise.
20943         * doc/posix-functions/fputs.texi: Likewise.
20944         * doc/posix-functions/fwrite.texi: Likewise.
20945         * doc/posix-functions/printf.texi: Likewise.
20946         * doc/posix-functions/putc.texi: Likewise.
20947         * doc/posix-functions/putchar.texi: Likewise.
20948         * doc/posix-functions/puts.texi: Likewise.
20949         * doc/posix-functions/vfprintf.texi: Likewise.
20950         * doc/posix-functions/vprintf.texi: Likewise.
20951         * doc/posix-functions/write.texi: Likewise.
20952
20953 2011-04-10  Jim Meyering  <meyering@redhat.com>
20954
20955         maint.mk: prohibit doubled words
20956         Detect them also when they're separated by a newline.
20957         There are 3 ways to customize it:
20958           - disable the test on a per file basis, as usual with rules using
20959             $(VC_LIST_EXCEPT)
20960           - replace the default doubled-word-selecting regexp (affects all files)
20961           - ignore a particular file-vs-doubled-word match
20962         I nearly used that last one to ignore the "is is" match in
20963         coreutils' NEWS file, since the text was "ls -is is ..."
20964         To do that, I would have added this line to cfg.mk:
20965           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20966         but it would have ignored any "is is" match in NEWS.
20967         Low probability, but still...
20968         Instead, I changed the text, slightly:
20969           -  ls -is is now consistent with ls -lis in ignoring values returned
20970           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20971         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20972         (prohibit_doubled_word_): Define.
20973         (sc_prohibit_doubled_word): New rule.
20974         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20975
20976 2011-04-10  Jim Meyering  <meyering@redhat.com>
20977
20978         maint: fix doubled-word typo in comment
20979         * m4/gethostname.m4: s/is is/it is/
20980         * m4/getdomainname.m4: Likewise.
20981
20982 2011-04-10  Jim Meyering  <meyering@redhat.com>
20983
20984         maint: remove doubled word: s/it it/it/
20985         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20986
20987 2011-04-10  Jim Meyering  <meyering@redhat.com>
20988
20989         maint.mk: remove useless semicolon and backslash
20990         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20991         semicolon and backslash.
20992
20993 2011-04-10  Bruno Haible  <bruno@clisp.org>
20994
20995         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20996         * modules/stdint-tests (Depends-on): Add wchar.
20997
20998 2011-04-10  Jim Meyering  <meyering@redhat.com>
20999
21000         maint: remove doubled words in comments, e.g., s/a a/a/
21001         * lib/strptime.c (day_of_the_week): s/the the/the/
21002         * tests/test-chown.h (test_chown): s/a a/a/
21003
21004         test-chown.h: correct a cast
21005         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21006         when the destination is a stat.st_gid.
21007
21008 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21009
21010         getaddrinfo: Fix test for sa_len member.
21011         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21012         include <sys/types.h> before <sys/socket.h>.
21013
21014 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21015
21016         maint: change "can not" to "cannot"
21017         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21018         boundaries.
21019
21020 2011-04-09  Jim Meyering  <meyering@redhat.com>
21021
21022         maint: change "a a" to "a"
21023         * tests/test-lchown.h (test_lchown): s/a a/a/
21024
21025         maint.mk: prohibit \<the the\>
21026         * top/maint.mk (sc_prohibit_the_the): New rule.
21027
21028         maint: fix "the the" in comment
21029         * lib/count-one-bits.h: s/the the/the/
21030
21031         maint: change "can not" to "cannot"
21032         But do not change the occurrences in maintain.texi or in
21033         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21034         * doc/gnulib-tool.texi: s/can not/cannot/
21035         * doc/posix-functions/accept.texi (accept): Likewise.
21036         * doc/posix-functions/socket.texi (socket): Likewise.
21037         * lib/mbrtowc.c: Likewise.
21038
21039         maint.mk: prohibit use of "can not"
21040         * top/maint.mk (sc_prohibit_can_not): New rule.
21041         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21042
21043 2011-04-09  Bruno Haible  <bruno@clisp.org>
21044
21045         careadlinkat: Guard against misuse of careadlinkatcwd.
21046         * lib/careadlinkat.c: Include <stdlib.h>.
21047         (careadlinkatcwd): Check that the fd argument is as expected.
21048
21049 2011-04-09  Bruno Haible  <bruno@clisp.org>
21050
21051         careadlinkat: Use common coding style.
21052         * lib/careadlinkat.c: Move gnulib includes after system includes.
21053
21054 2011-04-09  Bruno Haible  <bruno@clisp.org>
21055
21056         careadlinkat: Clarify specification.
21057         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21058         (careadlinkatcwd): Add comment.
21059         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21060
21061 2011-04-09  Bruno Haible  <bruno@clisp.org>
21062
21063         areadlinkat: Avoid link error on many platforms.
21064         * modules/areadlinkat (Depends-on): Add areadlink.
21065
21066 2011-04-09  Bruno Haible  <bruno@clisp.org>
21067
21068         allocator, careadlinkat: Fix double-inclusion guard.
21069         * lib/allocator.h: Fix double-inclusion guard.
21070         * lib/careadlinkat.h: Likewise.
21071
21072 2011-04-09  Bruno Haible  <bruno@clisp.org>
21073
21074         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21075         * lib/relocwrapper.c: Update dependencies hierarchy.
21076         * build-aux/install-reloc: Update list of files to be compiled.
21077         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21078         lib/allocator.[hc].
21079
21080 2011-04-08  Eric Blake  <eblake@redhat.com>
21081
21082         strftime: silence gnulib-tool warning
21083         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21084
21085 2011-04-08  Bruno Haible  <bruno@clisp.org>
21086
21087         verify: Fix syntax error with GCC 4.6 in C++ mode.
21088         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21089         (HAVE_STATIC_ASSERT): New macro.
21090         (verify_true, verify): Use 'static_assert' if it is supported and
21091         '_Static_assert' is not supported.
21092
21093 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21094
21095         allocator: New module.
21096         * modules/allocator, lib/allocator.c: New files.
21097         * lib/allocator.h (stdlib_allocator): New decl.
21098         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21099         Remove.  Do not include <stdlib.h>.
21100         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21101         * modules/careadlinkat (Files): Remove lib/allocator.h.
21102         (Depends-on): Add allocator.
21103
21104         stdlib: let modules use system malloc, realloc
21105         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21106         if !_GL_USE_STDLIB_ALLOC.
21107         (malloc, realloc): Limit this change to a smaller scope.
21108
21109         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21110         (malloc, realloc): Don't #undef; no longer needed.
21111         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21112         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21113         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21114         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21115         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21116         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21117         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21118         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21119
21120         careadlinkat: rename members to avoid problem
21121         * lib/allocator.h (struct allocator): Rename members from
21122         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21123         and realloc are #define'd.  Reported by Eric Blake in
21124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21125         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21126
21127 2011-04-08  Eric Blake  <eblake@redhat.com>
21128
21129         nonblocking: reduce dependency
21130         * tests/test-nonblocking.c: Only test sockets when in use.
21131         * modules/nonblocking-tests (Depends-on): Drop socket.
21132         (Makefile.am): Link even if sockets are not present.
21133         * modules/pipe2-tests (Makefile.am): Likewise.
21134         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21135
21136         pipe2: fix O_NONBLOCK support on mingw
21137         * modules/pipe2 (Depends-on): Add nonblocking.
21138         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21139         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21140         * tests/test-nonblocking.c (main): Likewise.
21141         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21142
21143         fcntl-h: fix O_ACCMODE on cygwin
21144         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21145         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21146
21147         pipe-filter: drop O_NONBLOCK workarounds
21148         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21149         * modules/pipe-filter-ii (Depends-on): Likewise.
21150         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21151
21152         nonblocking: provide O_NONBLOCK for mingw
21153         * modules/nonblocking (Depends-on): Add open.
21154         (configure.ac): Set new witness macro.
21155         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21156         * modules/fcntl-h (Makefile.am): Substitute it.
21157         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21158         nonblocking module is in use.
21159         * lib/nonblocking.c: Adjust portability test.
21160         * lib/open.c (open): Don't let native open see gnulib flag.
21161         * tests/test-fcntl-h.c (main): Enhance test.
21162         * tests/test-open.h (test_open): Likewise.
21163         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21164
21165         careadlinkat: fix compilation error on mingw
21166         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21167         within struct allocator.
21168
21169 2011-04-06  Eric Blake  <eblake@redhat.com>
21170
21171         binary-io: relicense under LGPLv2+
21172         * modules/binary-io (License): Relax to LGPLv2+.
21173         Requested for libvirt, and required by pipe2.
21174
21175 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21176
21177         verify: use _Static_assert if available
21178         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21179         (verify_true, verify): Use it if available.  This generates better
21180         diagnostics with GCC 4.6.0 and later.
21181
21182 2011-04-05  Bruno Haible  <bruno@clisp.org>
21183
21184         Remove leftover generated .h files after config.status changed.
21185
21186         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21187         GL_GENERATE_ALLOCA_H.
21188         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21189         GL_GENERATE_ALLOCA_H evaluates to false.
21190
21191         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21192         GL_GENERATE_ARGZ_H.
21193         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21194         evaluates to false.
21195
21196         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21197         GL_GENERATE_BYTESWAP_H.
21198         * modules/byteswap (Makefile.am): Remove byteswap.h if
21199         GL_GENERATE_BYTESWAP_H evaluates to false.
21200
21201         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21202         GL_GENERATE_ERRNO_H.
21203         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21204         evaluates to false.
21205
21206         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21207         GL_GENERATE_FLOAT_H.
21208         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21209         evaluates to false.
21210
21211         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21212         GL_GENERATE_FNMATCH_H.
21213         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21214         GL_GENERATE_FNMATCH_H evaluates to false.
21215
21216         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21217         GL_GENERATE_GLOB_H.
21218         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21219         evaluates to false.
21220
21221         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21222         automake conditional GL_GENERATE_ICONV_H.
21223         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21224         evaluates to false.
21225
21226         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21227         GL_GENERATE_NETINET_IN_H.
21228         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21229         GL_GENERATE_NETINET_IN_H evaluates to false.
21230
21231         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21232         conditional GL_GENERATE_PTHREAD_H.
21233         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21234         * modules/pthread (Makefile.am): Remove pthread.h if
21235         GL_GENERATE_PTHREAD_H evaluates to false.
21236
21237         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21238         GL_GENERATE_SCHED_H.
21239         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21240         evaluates to false.
21241
21242         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21243         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21244         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21245         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21246
21247         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21248         GL_GENERATE_STDARG_H.
21249         * modules/stdarg (Makefile.am): Remove stdarg.h if
21250         GL_GENERATE_STDARG_H evaluates to false.
21251
21252         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21253         GL_GENERATE_STDBOOL_H.
21254         * modules/stdbool (Makefile.am): Remove stdbool.h if
21255         GL_GENERATE_STDBOOL_H evaluates to false.
21256
21257         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21258         conditional GL_GENERATE_STDDEF_H.
21259         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21260         * modules/stddef (Makefile.am): Remove stddef.h if
21261         GL_GENERATE_STDDEF_H evaluates to false.
21262
21263         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21264         GL_GENERATE_STDINT_H.
21265         * modules/stdint (Makefile.am): Remove stdint.h if
21266         GL_GENERATE_STDINT_H evaluates to false.
21267
21268         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21269         GL_GENERATE_SYSEXITS_H.
21270         * modules/sysexits (Makefile.am): Remove sysexits.h if
21271         GL_GENERATE_SYSEXITS_H evaluates to false.
21272
21273         Reported by Karl Berry and Ralf Wildenhues.
21274
21275 2011-04-05  Bruno Haible  <bruno@clisp.org>
21276
21277         Ensure to rebuild generated .h files when config.status has changed.
21278         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21279         config.status.
21280         * modules/ctype (Makefile.am): Likewise.
21281         * modules/dirent (Makefile.am): Likewise.
21282         * modules/errno (Makefile.am): Likewise.
21283         * modules/fcntl-h (Makefile.am): Likewise.
21284         * modules/float (Makefile.am): Likewise.
21285         * modules/getopt-posix (Makefile.am): Likewise.
21286         * modules/glob (Makefile.am): Likewise.
21287         * modules/iconv-h (Makefile.am): Likewise.
21288         * modules/inttypes (Makefile.am): Likewise.
21289         * modules/langinfo (Makefile.am): Likewise.
21290         * modules/locale (Makefile.am): Likewise.
21291         * modules/math (Makefile.am): Likewise.
21292         * modules/netdb (Makefile.am): Likewise.
21293         * modules/netinet_in (Makefile.am): Likewise.
21294         * modules/poll-h (Makefile.am): Likewise.
21295         * modules/pthread (Makefile.am): Likewise.
21296         * modules/pty (Makefile.am): Likewise.
21297         * modules/sched (Makefile.am): Likewise.
21298         * modules/search (Makefile.am): Likewise.
21299         * modules/selinux-h (Makefile.am): Likewise.
21300         * modules/signal (Makefile.am): Likewise.
21301         * modules/spawn (Makefile.am): Likewise.
21302         * modules/stdarg (Makefile.am): Likewise.
21303         * modules/stdbool (Makefile.am): Likewise.
21304         * modules/stddef (Makefile.am): Likewise.
21305         * modules/stdint (Makefile.am): Likewise.
21306         * modules/stdio (Makefile.am): Likewise.
21307         * modules/stdlib (Makefile.am): Likewise.
21308         * modules/string (Makefile.am): Likewise.
21309         * modules/strings (Makefile.am): Likewise.
21310         * modules/sys_file (Makefile.am): Likewise.
21311         * modules/sys_ioctl (Makefile.am): Likewise.
21312         * modules/sys_select (Makefile.am): Likewise.
21313         * modules/sys_socket (Makefile.am): Likewise.
21314         * modules/sys_stat (Makefile.am): Likewise.
21315         * modules/sys_time (Makefile.am): Likewise.
21316         * modules/sys_times (Makefile.am): Likewise.
21317         * modules/sys_utsname (Makefile.am): Likewise.
21318         * modules/sys_wait (Makefile.am): Likewise.
21319         * modules/sysexits (Makefile.am): Likewise.
21320         * modules/termios (Makefile.am): Likewise.
21321         * modules/time (Makefile.am): Likewise.
21322         * modules/unistd (Makefile.am): Likewise.
21323         * modules/wchar (Makefile.am): Likewise.
21324         * modules/wctype-h (Makefile.am): Likewise.
21325         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21326
21327 2011-04-05  Bruno Haible  <bruno@clisp.org>
21328
21329         pipe2: Relicense under LGPLv2+.
21330         * modules/pipe2 (License): Change to LGPLv2+.
21331         Requested by Eric Blake, for libvirt.
21332
21333 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21334
21335         bootstrap: compute gnulib_extra_files after updating build_aux
21336         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21337         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21338
21339 2011-04-05  Eric Blake  <eblake@redhat.com>
21340
21341         bootstrap: preserve git whitelist item sorting
21342         * build-aux/bootstrap (sort_patterns): New function.
21343         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21344
21345 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21346
21347         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21348         sc_space_tab check.
21349
21350 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21351
21352         areadlink, areadlinkat: rewrite in terms of careadlinkat
21353         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21354         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21355         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21356         (malloc, realloc): Remove #undefs.
21357         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21358         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21359         readlink, ssize_t, stdint, unistd.
21360         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21361         areadlink, stdint.
21362
21363         careadlinkat: new module
21364         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21365         * modules/careadlinkat: New files, written by me with
21366         a review and feedback from Ben Pfaff in
21367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21368
21369 2011-04-01  Bruno Haible  <bruno@clisp.org>
21370
21371         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21372         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21373         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21374         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21375         Reported by Bruce Korb <bruce.korb@gmail.com>.
21376
21377 2011-04-01  Bruno Haible  <bruno@clisp.org>
21378
21379         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21380         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21381         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21382         * modules/wcpcpy (Depends-on): Add extensions.
21383         * modules/wcpncpy (Depends-on): Likewise.
21384         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21385         systems.
21386         * doc/posix-functions/wcpncpy.texi: Likewise.
21387         * doc/posix-functions/wcwidth.texi: Likewise.
21388
21389 2011-03-31  Eric Blake  <eblake@redhat.com>
21390
21391         nonblocking: fix mingw test failures
21392         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21393         non-blocking flag on regular file.
21394         (get_nonblocking_flag): Set errno on invalid fd.
21395         * tests/test-nonblocking.c (main): Avoid test failure on
21396         directories if fchdir is not active.
21397         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21398
21399 2011-03-31  Bruno Haible  <bruno@clisp.org>
21400
21401         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21402         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21403         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21404         Reported by Simon Josefsson <simon@josefsson.org>.
21405
21406 2011-03-31  Bruno Haible  <bruno@clisp.org>
21407         and Eric Blake  <eblake@redhat.com>
21408
21409         nonblocking: new module
21410         * modules/nonblocking: New module.
21411         * modules/nonblocking-tests: Likewise.
21412         * lib/nonblocking.h: New file.
21413         * lib/nonblocking.c: Likewise.
21414         * tests/test-nonblocking.c: New test.
21415         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21416
21417 2011-03-30  Bruno Haible  <bruno@clisp.org>
21418
21419         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21420         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21421         instead of 'printf' format for GCC >= 4.4.
21422         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21423         (fprintf, printf, vfprintf, vprintf): Declare with
21424         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21425         the system's vfprintf() function.
21426         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21427
21428 2011-03-30  Eric Blake  <eblake@redhat.com>
21429
21430         passfd: fix scoping bug
21431         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21432         before sendmsg/recvmsg.
21433
21434         passfd: standardize coding conventions
21435         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21436         can be learned at compile time.
21437         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21438         ifdefs.
21439         (sendfd, recvfd): Follow gnulib code conventions.
21440
21441         passfd: fix incorrect sendmsg arguments
21442         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21443         incorrect msg_controllen value.
21444         * modules/passfd-tests (Depends-on): Check for alarm.
21445         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21446         Reported by Bastien ROUCARIES.
21447
21448 2011-03-30  Bruno Haible  <bruno@clisp.org>
21449
21450         c-strcasestr: Relicense under LGPLv2+.
21451         * modules/c-strcasestr (License): Change to LGPLv2+.
21452         Requested by Eric Blake, for libvirt.
21453
21454 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21455
21456         * users.txt: Add libidn2.  Fix libtasn1 link.
21457
21458 2011-03-30  Jim Meyering  <meyering@redhat.com>
21459
21460         tests: readlink* ("",... fails with EINVAL on newer kernels
21461         readlink and readlinkat have typically failed with ENOENT for
21462         the invalid, empty file name,  "".  However, with the advent
21463         of linux-2.6.39, they fail with EINVAL.
21464         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21465         when operating on the empty file name.
21466         * tests/test-readlink.h (test_readlink): Likewise.
21467
21468 2011-03-29  Bruno Haible  <bruno@clisp.org>
21469
21470         Relicense some modules under LGPLv2+, for libidn2.
21471         * modules/array-mergesort (License): Change to LGPLv2+.
21472         * modules/c-strcaseeq (License): Likewise.
21473         * modules/striconveh (License): Likewise.
21474         * modules/striconveha (License): Likewise.
21475         * modules/uniconv/base (License): Likewise.
21476         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21477         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21478         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21479         * modules/unictype/base (License): Likewise.
21480         * modules/unictype/bidiclass-of (License): Likewise.
21481         * modules/unictype/category-M (License): Likewise.
21482         * modules/unictype/category-none (License): Likewise.
21483         * modules/unictype/category-of (License): Likewise.
21484         * modules/unictype/category-test (License): Likewise.
21485         * modules/unictype/category-test-withtable (License): Likewise.
21486         * modules/unictype/combining-class (License): Likewise.
21487         * modules/unictype/joiningtype-of (License): Likewise.
21488         * modules/unictype/scripts (License): Likewise.
21489         * modules/uninorm/base (License): Likewise.
21490         * modules/uninorm/canonical-decomposition (License): Likewise.
21491         * modules/uninorm/composition (License): Likewise.
21492         * modules/uninorm/decompose-internal (License): Likewise.
21493         * modules/uninorm/decomposition-table (License): Likewise.
21494         * modules/uninorm/nfc (License): Likewise.
21495         * modules/uninorm/nfd (License): Likewise.
21496         * modules/uninorm/u32-normalize (License): Likewise.
21497         * modules/unistr/base (License): Likewise.
21498         * modules/unistr/u32-cpy (License): Likewise.
21499         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21500         * modules/unistr/u32-to-u8 (License): Likewise.
21501         * modules/unistr/u32-uctomb (License): Likewise.
21502         * modules/unistr/u8-check (License): Likewise.
21503         * modules/unistr/u8-mblen (License): Likewise.
21504         * modules/unistr/u8-mbtouc (License): Likewise.
21505         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21506         * modules/unistr/u8-mbtoucr (License): Likewise.
21507         * modules/unistr/u8-prev (License): Likewise.
21508         * modules/unistr/u8-strlen (License): Likewise.
21509         * modules/unistr/u8-to-u32 (License): Likewise.
21510         * modules/unistr/u8-uctomb (License): Likewise.
21511         * modules/unitypes (License): Likewise.
21512         Requested by Simon Josefsson.
21513
21514 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21515
21516         lib-symbol-visibility: Add a notice.
21517         * modules/lib-symbol-visibility (Notice): New field.
21518
21519 2011-03-29  Bruno Haible  <bruno@clisp.org>
21520
21521         getaddrinfo: Doc fix.
21522         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21523         section "fixed in Gnulib".
21524
21525 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21526
21527         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21528         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21529
21530 2011-03-26  Bruno Haible  <bruno@clisp.org>
21531
21532         unictype/property-byname: Reduce the number of load-time relocations.
21533         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21534         (UC_PROPERTY_INDEX_*): New enumeration values.
21535         (uc_property_byname): Convert an index from the lookup table to an
21536         uc_property_t.
21537         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21538         values.
21539
21540 2011-03-26  Bruno Haible  <bruno@clisp.org>
21541
21542         unictype/property-byname: Allow omitted word separators and aliases.
21543         * lib/unictype/pr_byname.gperf: Add property names without word
21544         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21545         for 'space'.
21546
21547 2011-03-26  Bruno Haible  <bruno@clisp.org>
21548
21549         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21550         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21551         also hyphens to space.
21552         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21553         without spaces.
21554         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21555
21556 2011-03-26  Bruno Haible  <bruno@clisp.org>
21557
21558         unictype/joiningtype-byname: Recognize long names as well.
21559         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21560         a long name.
21561         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21562         unictype/joiningtype_byname.h.
21563         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21564         * lib/unictype/joiningtype_byname.gperf: New file.
21565         * modules/unictype/joiningtype-byname (Files): Add
21566         lib/unictype/joiningtype_byname.gperf.
21567         (Depends-on): Add gperf.
21568         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21569         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21570         long names.
21571
21572         Tests for module 'unictype/joiningtype-longname'.
21573         * modules/unictype/joiningtype-longname-tests: New file.
21574         * tests/unictype/test-joiningtype_longname.c: New file.
21575
21576         New module 'unictype/joiningtype-longname'.
21577         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21578         * lib/unictype/joiningtype_longname.c: New file.
21579         * modules/unictype/joiningtype-longname: New file.
21580         * modules/unictype/joiningtype-all (Depends-on): Add
21581         unictype/joiningtype-longname.
21582
21583 2011-03-26  Bruno Haible  <bruno@clisp.org>
21584
21585         unictype/bidiclass-byname: Recognize long names as well.
21586         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21587         name.
21588         * lib/unictype/bidi_byname.c: Include <string.h>,
21589         unictype/bidi_byname.h.
21590         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21591         * lib/unictype/bidi_byname.gperf: New file.
21592         * modules/unictype/bidiclass-byname (Files): Add
21593         lib/unictype/bidi_byname.gperf.
21594         (Depends-on): Add gperf.
21595         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21596         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21597         long names.
21598
21599         Tests for module 'unictype/bidiclass-longname'.
21600         * modules/unictype/bidiclass-longname-tests: New file.
21601         * tests/unictype/test-bidi_longname.c: New file.
21602
21603         New module 'unictype/bidiclass-longname'.
21604         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21605         * lib/unictype/bidi_longname.c: New file.
21606         * modules/unictype/bidiclass-longname: New file.
21607         * modules/unictype/bidiclass-all (Depends-on): Add
21608         unictype/bidiclass-longname.
21609
21610 2011-03-26  Bruno Haible  <bruno@clisp.org>
21611
21612         unictype/bidi*: Rename modules.
21613         * modules/unictype/bidiclass-all: Renamed from
21614         modules/unictype/bidicategory-all.
21615         * modules/unictype/bidiclass-name: Renamed from
21616         modules/unictype/bidiclass-name.
21617         (Description): Update.
21618         * modules/unictype/bidiclass-name-tests: Renamed from
21619         modules/unictype/bidicategory-name-tests.
21620         * modules/unictype/bidiclass-byname: Renamed from
21621         modules/unictype/bidicategory-byname.
21622         (Description): Update.
21623         * modules/unictype/bidiclass-byname-tests: Renamed from
21624         modules/unictype/bidicategory-byname-tests.
21625         * modules/unictype/bidiclass-of: Renamed from
21626         modules/unictype/bidicategory-of.
21627         (Description): Update.
21628         * modules/unictype/bidiclass-of-tests: Renamed from
21629         modules/unictype/bidicategory-of-tests.
21630         * modules/unictype/bidiclass-test: Renamed from
21631         modules/unictype/bidicategory-test.
21632         (Description): Update.
21633         * modules/unictype/bidiclass-test-tests: Renamed from
21634         modules/unictype/bidicategory-test-tests.
21635         * modules/unictype/bidicategory-all: New file, a simple redirection.
21636         * modules/unictype/bidicategory-name: Likewise.
21637         * modules/unictype/bidicategory-byname: Likewise.
21638         * modules/unictype/bidicategory-of: Likewise.
21639         * modules/unictype/bidicategory-test: Likewise.
21640         * modules/unictype/property-bidi-* (Dependencies): Update.
21641         * lib/unictype/bidi_*.c: Update comment.
21642
21643 2011-03-26  Bruno Haible  <bruno@clisp.org>
21644
21645         unictype/bidi*: Rename functions, part 2.
21646         * modules/unictype/bidicategory-name (configure.ac): Update required
21647         libunistring version.
21648         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21649
21650 2011-03-25  Bruno Haible  <bruno@clisp.org>
21651
21652         New module 'unictype/combining-class-all'.
21653         * modules/unictype/combining-class-all: New file.
21654
21655         Tests for module 'unictype/combining-class-byname'.
21656         * modules/unictype/combining-class-byname-tests: New file.
21657         * tests/unictype/test-combiningclass_byname.c: New file.
21658
21659         New module 'unictype/combining-class-byname'.
21660         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21661         * lib/unictype/combiningclass_byname.c: New file.
21662         * lib/unictype/combiningclass_byname.gperf: New file.
21663         * modules/unictype/combining-class-byname: New file.
21664
21665         Tests for module 'unictype/combining-class-longname'.
21666         * modules/unictype/combining-class-longname-tests: New file.
21667         * tests/unictype/test-combiningclass_longname.c: New file.
21668
21669         New module 'unictype/combining-class-longname'.
21670         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21671         * lib/unictype/combiningclass_longname.c: New file.
21672         * modules/unictype/combining-class-longname: New file.
21673
21674         Tests for module 'unictype/combining-class-name'.
21675         * modules/unictype/combining-class-name-tests: New file.
21676         * tests/unictype/test-combiningclass_name.c: New file.
21677
21678         New module 'unictype/combining-class-name'.
21679         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21680         * lib/unictype/combiningclass_name.c: New file.
21681         * modules/unictype/combining-class-name: New file.
21682
21683 2011-03-25  Bruno Haible  <bruno@clisp.org>
21684
21685         unictype/combining-class: Rename source files.
21686         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21687         of unictype/combining.h.
21688         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21689         Update.
21690         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21691         * modules/unictype/combining-class (Description): Fix.
21692         (Files, Makefile.am): Update.
21693         * tests/unictype/test-combiningclass.c: Renamed from
21694         tests/unictype/test-combining.c.
21695         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21696
21697 2011-03-25  Bruno Haible  <bruno@clisp.org>
21698
21699         unictype: Update list of canonical combining classes.
21700         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21701
21702 2011-03-25  Bruno Haible  <bruno@clisp.org>
21703
21704         unictype/category-byname: Recognize long names as well.
21705         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21706         a long name.
21707         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21708         unictype/categ_byname.h.
21709         (UC_CATEGORY_INDEX_*): New enumeration values.
21710         (uc_general_category_byname): Use uc_general_category_lookup and
21711         convert from index to value.
21712         * lib/unictype/categ_byname.gperf: New file.
21713         * modules/unictype/category-byname (Files): Add
21714         lib/unictype/categ_byname.gperf.
21715         (Depends-on): Add gperf.
21716         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21717         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21718         long names.
21719
21720         Tests for module 'unictype/category-longname'.
21721         * modules/unictype/category-longname-tests: New file.
21722         * tests/unictype/test-categ_longname.c: New file.
21723
21724         New module 'unictype/category-longname'.
21725         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21726         * lib/unictype/categ_longname.c: New file.
21727         * modules/unictype/category-longname: New file.
21728         * modules/unictype/category-all (Depends-on): Add it.
21729
21730 2011-03-25  Bruno Haible  <bruno@clisp.org>
21731
21732         Tests for module 'unictype/category-LC'.
21733         * modules/unictype/category-LC-tests: New file.
21734         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21735
21736         New module 'unictype/category-LC'.
21737         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21738         (UC_CATEGORY_LC): New declaration.
21739         (UC_CASED_LETTER): New macro.
21740         * lib/gen-uni-tables.c (is_category_LC): New function.
21741         (output_categories): Also handle category LC.
21742         (UC_CATEGORY_MASK_LC): New enumeration value.
21743         (general_category_byname): Also handle category LC.
21744         * lib/unictype/categ_LC.c: New file.
21745         * lib/unictype/categ_LC.h: New file, automatically generated.
21746         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21747         category LC.
21748         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21749         * modules/unictype/category-LC: New file.
21750         * modules/unictype/category-byname (Depends-on): Add
21751         unictype/category-LC.
21752         * modules/unictype/category-all (Depends-on): Likewise.
21753
21754 2011-03-25  Eric Blake  <eblake@redhat.com>
21755
21756         xmalloc: revert yesterday's regression
21757         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21758         realloc's underlying behavior (allowing allocation of zero-size
21759         objects, especially if malloc-gnu is also in use).
21760
21761 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21762
21763         maint.mk: add missing version to VC-tag
21764         * top/maint.mk: git tag was missing actual tag name; add it.
21765
21766         valgrind: do leak checking, and exit with code 1 on error (not 0)
21767         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21768         to VALGRIND.
21769
21770 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21771
21772         posix-modules: say what it does.
21773         * posix-modules: Add a line to the --help output saying what it does.
21774
21775 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21776
21777         xmalloc: Do not leak if underlying realloc is C99 compatible.
21778         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21779         This avoids a leak on C99-based systems.  See
21780         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21781
21782 2011-03-24  Eric Blake  <eblake@redhat.com>
21783
21784         realloc: document portability problem
21785         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21786         passing 0 size to realloc.
21787
21788 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21789
21790         doc: update users.txt
21791         * users.txt: Add cvsps, tmpwatch
21792
21793 2011-03-23  Matt Rice  <ratmice@gmail.com>
21794
21795         doc: update users.txt
21796         * users.txt: Add gdb.
21797
21798 2011-03-23  Jim Meyering  <meyering@redhat.com>
21799
21800         doc: update users.txt
21801         Looking through matches up to the following URL (there are still
21802         several more pages), I found several projects that use gnulib:
21803         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21804         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21805         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21806
21807 2011-03-22  Bruno Haible  <bruno@clisp.org>
21808
21809         unictype/bidi*: Rename functions.
21810         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21811         uc_bidi_class, uc_is_bidi_class): New declarations.
21812         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21813         uc_bidi_category_byname.
21814         (uc_bidi_category_byname): New function.
21815         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21816         u_bidi_category_name.
21817         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21818         (uc_bidi_category_name): New function.
21819         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21820         uc_bidi_category.
21821         (uc_bidi_category): New function.
21822         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21823         uc_is_bidi_category. Invoke uc_bidi_class.
21824         (uc_is_bidi_category): New function.
21825         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21826         instead of uc_bidi_category_byname.
21827         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21828         instead of uc_bidi_category_name.
21829         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21830         uc_bidi_category.
21831         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21832         instead of uc_is_bidi_category.
21833
21834 2011-03-21  Bruno Haible  <bruno@clisp.org>
21835
21836         New module 'unictype/joininggroup-all'.
21837         * modules/unictype/joininggroup-all: New file.
21838
21839         Tests for module 'unictype/joininggroup-of'.
21840         * modules/unictype/joininggroup-of-tests: New file.
21841         * tests/unictype/test-joininggroup_of.c: New file.
21842         * tests/unictype/test-joininggroup_of.h: New file, automatically
21843         generated by gen-uni-tables.
21844
21845         New module 'unictype/joininggroup-of'.
21846         * modules/unictype/joininggroup-of: New file.
21847         * lib/unictype/joininggroup_of.c: New file.
21848         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21849         gen-uni-tables.
21850
21851         Tests for module 'unictype/joininggroup-byname'.
21852         * modules/unictype/joininggroup-byname-tests: New file.
21853         * tests/unictype/test-joininggroup_byname.c: New file.
21854
21855         New module 'unictype/joininggroup-byname'.
21856         * modules/unictype/joininggroup-byname: New file.
21857         * lib/unictype/joininggroup_byname.c: New file.
21858         * lib/unictype/joininggroup_byname.gperf: New file.
21859
21860         Tests for module 'unictype/joininggroup-name'.
21861         * modules/unictype/joininggroup-name-tests: New file.
21862         * tests/unictype/test-joininggroup_name.c: New file.
21863
21864         New module 'unictype/joininggroup-name'.
21865         * modules/unictype/joininggroup-name: New file.
21866         * lib/unictype/joininggroup_name.c: New file.
21867         * lib/unictype/joininggroup_name.h: New file.
21868
21869         New module 'unictype/joiningtype-all'.
21870         * modules/unictype/joiningtype-all: New file.
21871
21872         Tests for module 'unictype/joiningtype-of'.
21873         * modules/unictype/joiningtype-of-tests: New file.
21874         * tests/unictype/test-joiningtype_of.c: New file.
21875         * tests/unictype/test-joiningtype_of.h: New file, automatically
21876         generated by gen-uni-tables.
21877
21878         New module 'unictype/joiningtype-of'.
21879         * modules/unictype/joiningtype-of: New file.
21880         * lib/unictype/joiningtype_of.c: New file.
21881         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21882         gen-uni-tables.
21883
21884         Tests for module 'unictype/joiningtype-byname'.
21885         * modules/unictype/joiningtype-byname-tests: New file.
21886         * tests/unictype/test-joiningtype_byname.c: New file.
21887
21888         New module 'unictype/joiningtype-byname'.
21889         * modules/unictype/joiningtype-byname: New file.
21890         * lib/unictype/joiningtype_byname.c: New file.
21891
21892         Tests for module 'unictype/joiningtype-name'.
21893         * modules/unictype/joiningtype-name-tests: New file.
21894         * tests/unictype/test-joiningtype_name.c: New file.
21895
21896         New module 'unictype/joiningtype-name'.
21897         * modules/unictype/joiningtype-name: New file.
21898         * lib/unictype/joiningtype_name.c: New file.
21899
21900         unictype: Add support for Arabic shaping properties.
21901         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21902         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21903         declarations.
21904         (UC_JOINING_GROUP_*): New enumeration values.
21905         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21906         declarations.
21907         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21908         (unicode_joining_type): New variable.
21909         (UC_JOINING_GROUP_*): New enumeration values.
21910         (unicode_joining_group): New variable.
21911         (fill_arabicshaping, joining_type_as_c_identifier,
21912         output_joining_type_test, output_joining_type,
21913         joining_group_as_c_identifier, output_joining_group_test,
21914         output_joining_group): New functions.
21915         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21916         fill_arabicshaping and output_joining_type_test, output_joining_type,
21917         output_joining_group_test, output_joining_group.
21918         Reported by Simon Josefsson.
21919
21920 2011-03-21  Jim Meyering  <meyering@redhat.com>
21921
21922         strftime: fix a bug in yesterday's change
21923         * lib/strftime.c (add): Accommodate width's initial value of -1.
21924         Otherwise, nstrftime would copy uninitialized data into
21925         the result buffer.
21926
21927 2011-03-21  Jim Meyering  <meyering@redhat.com>
21928
21929         tests: add strftime-tests module
21930         * tests/test-strftime.c: New file.
21931         * modules/strftime-tests: New module.
21932
21933 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21934
21935         strftime: don't assume a byte count fits in 'int'
21936         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21937         found this problem by static analysis, using gcc -Wstrict-overflow
21938         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21939         on an integer overflow having undefined behavior, but it turns out
21940         that the argument is a size, which might not fit in 'int' anyway,
21941
21942 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21943
21944         stdio: don't require ignore_value around fwrite
21945
21946         This patch works around libc bug 11959
21947         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21948         Without this patch, applications must often write
21949         ignore_value (fwrite (...)) even though the ignore_value is
21950         not helpful here.  It's common to write many objects, using
21951         fwrite/printf/etc., and then use ferror to detect output error.
21952
21953         I considered making this patch optional, but decided against it,
21954         because libc is obviously being inconsistent here: there is no
21955         reason libc should insist that user code must inspect fwrite
21956         return's value without also insisting that it inspect printf's,
21957         putchar's, etc.  If user code wants to have a strict style where
21958         all these functions' values are checked (so that ferror need not
21959         be checked), we could add support for that style in a new gnulib
21960         module, but in the meantime it's better to be consistent and to
21961         support common usage.
21962
21963         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21964         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21965         that we are compiling in checking mode, and if not C++, and
21966         if not already wrapping fwrite for some other reason.
21967         (fwrite): #define to rpl_fwrite if the latter is defined.
21968
21969 2011-03-20  Bruno Haible  <bruno@clisp.org>
21970
21971         verror: Fix compilation error introduced on 2011-02-13.
21972         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21973         instead of __attribute__.
21974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21975
21976 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21977             Bruno Haible  <bruno@clisp.org>
21978
21979         socklen: do not depend on sys_socket
21980         While trying to modify Emacs to use gnulib's socklen module,
21981         I discovered a circular dependency: socklen depends on sys_socket
21982         and vice versa.  Emacs can use socklen, but it does not need
21983         sys_socket because it has its own substitute for sys/socket.h.
21984         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21985         gl_TYPE_SOCKLEN_T.
21986         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21987         gl_PREREQ_SYS_H_SOCKET.
21988         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21989         gl_PREREQ_SYS_H_SOCKET.
21990         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21991         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21992         * modules/socklen (Depends-on): Do not depend on sys_socket.
21993         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21994
21995 2011-03-20  Jim Meyering  <meyering@redhat.com>
21996
21997         maint.mk: sort file names *after* new transformation
21998         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21999         prefix would have led to an unwarranted failure in GNU parted.
22000         Sort after that transformation.
22001
22002 2011-03-19  Jim Meyering  <meyering@redhat.com>
22003
22004         maint.mk: fix po-file syntax-check rule
22005         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22006         Patch by Bruno Haible.
22007
22008 2011-03-19  Bruno Haible  <bruno@clisp.org>
22009
22010         socklen: Update comment.
22011         * m4/socklen.m4: Update comment about platforms.
22012
22013 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22014             Bruno Haible  <bruno@clisp.org>
22015
22016         inet_ntop, inet_pton: Simplify.
22017         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22018         documented to provide socklen_t and we already depend on sys_socket.
22019         * modules/inet_pton (Depends-on): Likewise.
22020         * lib/arpa_inet.in.h: Adjust comment.
22021
22022 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22023             Bruno Haible  <bruno@clisp.org>
22024
22025         netdb: Simplify.
22026         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22027         documented to provide socklen_t and we already depend on sys_socket.
22028         * lib/netdb.in.h: Adjust comment.
22029
22030 2011-03-19  Bruno Haible  <bruno@clisp.org>
22031
22032         sys_socket, netdb: Document problem with socklen_t.
22033         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22034         platforms.
22035         * doc/posix-headers/netdb.texi: Likewise.
22036
22037 2011-03-18  Eric Blake  <eblake@redhat.com>
22038
22039         maint.mk: let po check work in VPATH build
22040         * top/maint.mk (po_file): Allow cfg.mk override.
22041         (sc_po_check): Allow VPATH use.
22042         Reported by Jiri Denemark.
22043
22044 2011-03-16  Jim Meyering  <meyering@redhat.com>
22045
22046         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22047         Before, you would have had to create one .x-sc_ file per rule in order
22048         to exempt offending files.  Now, you may instead use a Make variable --
22049         usually defined in cfg.mk -- whose name identifies the affected rule.
22050         * top/maint.mk (_sc_excl): Define.
22051         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22052         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22053
22054 2011-03-13  Bruno Haible  <bruno@clisp.org>
22055
22056         ignore-value tests: Avoid warnings.
22057         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22058         empty for gcc < 3.4.
22059
22060 2011-03-13  Bruno Haible  <bruno@clisp.org>
22061
22062         passfd: Fix link error on Solaris.
22063         * modules/passfd (Description): Correct.
22064         (Depends-on): Add socketlib.
22065         (Link): New section.
22066         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22067
22068 2011-03-13  Bruno Haible  <bruno@clisp.org>
22069
22070         passfd: Fix link error on AIX 5.2.
22071         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22072
22073 2011-03-13  Bruno Haible  <bruno@clisp.org>
22074
22075         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22076         * lib/sys_socket.in.h: Include <stddef.h>.
22077         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22078         CMSG_FIRSTHDR. Remove unused variable.
22079
22080 2011-03-13  Bruno Haible  <bruno@clisp.org>
22081
22082         passfd: Fix compilation error on OpenBSD.
22083         * lib/passfd.c: Include <sys/uio.h>.
22084
22085 2011-03-13  Bruno Haible  <bruno@clisp.org>
22086
22087         passfd test: Fix warnings.
22088         * tests/test-passfd.c: Include <sys/wait.h>.
22089         (main): Fix typo.
22090
22091 2011-03-13  Bruno Haible  <bruno@clisp.org>
22092
22093         passfd module, part 4, tweaks.
22094         * tests/test-passfd.c: Reorder includes.
22095         (main): Fix perror and printf calls.
22096
22097 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22098
22099         passfd module, part 4.
22100         * modules/passfd-tests: New file.
22101         * tests/test-passfd.c: New file.
22102
22103 2011-03-13  Jim Meyering  <meyering@redhat.com>
22104
22105         Makefile: rely on GNU make; derive syntax-check rule names
22106         Rather than requiring that each sc_ rule be listed as a dependent
22107         of "check", use features of GNU make to derive the list.
22108         * Makefile (syntax-check-rules): Define.
22109         (check): Depend on the new variable, not the hard-coded list.
22110
22111 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22112             Bruno Haible  <bruno@clisp.org>
22113
22114         passfd module, part 3.
22115         * lib/passfd.h (recvfd): Add a flags argument.
22116         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22117         (recvfd): Add a flags argument.
22118         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22119         exists.
22120         * modules/passfd (Depends-on): Add cloexec.
22121         Suggested by Eric Blake.
22122
22123 2011-03-13  Bruno Haible  <bruno@clisp.org>
22124
22125         passfd module, part 2, tweaks.
22126         * modules/passfd (Files): Reorder.
22127         (Depends-on): Remove errno.
22128         (Include): Remove <sys/socket.h>, <sys/un.h>.
22129         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22130         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22131         specification header. Include <sys/socket.h> always. Don't include
22132         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22133         (sendfd): Clarify that it sets errno when it fails.
22134         (recvfd): Fix specification.
22135
22136 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22137
22138         passfd module, part 2.
22139         * modules/passfd: New file.
22140         * lib/passfd.h: New file.
22141         * lib/passfd.c: New file.
22142
22143 2011-03-12  Bruno Haible  <bruno@clisp.org>
22144
22145         wcswidth, mbswidth: Avoid integer overflow.
22146         * lib/wcswidth.c: Include <limits.h>.
22147         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22148         * lib/mbswidth.c: Include <limits.h>.
22149         (mbsnwidth): Avoid 'int' overflow.
22150         Reported by Jim Meyering.
22151
22152 2011-03-12  Bruno Haible  <bruno@clisp.org>
22153
22154         futimens, utimensat: Avoid endless recursion on Solaris 10.
22155         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22156         Solaris.
22157         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22158         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22159
22160 2011-03-11  Jim Meyering  <meyering@redhat.com>
22161
22162         maint.mk: relax a regexp to accommodate other formatting styles
22163         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22164         between "ngettext" and the following "(".
22165
22166 2011-03-11  Pádraig Brady <P@draigBrady.com>
22167
22168         maint.mk: suppress a false positive warning
22169         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22170         diagnostics are marked with ngettext.
22171
22172 2011-03-10  Eric Blake  <eblake@redhat.com>
22173
22174         wchar: add explicit dependencies, for Tru64
22175         * modules/mbmemcasecoll (Depends-on): Add wchar.
22176         * modules/mbtowc (Depends-on): Likewise.
22177         * modules/vasnprintf (Depends-on): Likewise.
22178         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22179         * modules/wctomb (Depends-on): Likewise.
22180         Reported by Peter O'Gorman.
22181
22182 2011-03-08  Bruno Haible  <bruno@clisp.org>
22183
22184         passfd module, part 1, tweaks.
22185         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22186         Improve indentation. Improve AC_MSG_CHECKING messages.
22187         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22188         gl_SOCKET_FAMILIES.
22189
22190 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22191
22192         passfd module, part 1.
22193         * m4/afunix.m4: New file.
22194         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22195         sockets.
22196
22197 2011-03-08  Bruno Haible  <bruno@clisp.org>
22198
22199         regex-quote: New API.
22200         * lib/regex-quote.h: Include <stdbool.h>.
22201         (struct regex_quote_spec): New type.
22202         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22203         New declarations.
22204         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22205         'const struct regex_quote_spec *' argument.
22206         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22207         (pcre_special): New constant.
22208         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22209         New functions.
22210         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22211         'const struct regex_quote_spec *' argument.
22212         * modules/regex-quote (Depends-on): Add stdbool.
22213         * tests/test-regex-quote.c (check): Update for new API. Add test for
22214         anchored results.
22215         * NEWS: Mention the API change.
22216         Reported by Reuben Thomas and Eric Blake.
22217
22218 2011-03-06  Bruno Haible  <bruno@clisp.org>
22219
22220         regex-quote: Fix creation of POSIX extended regular expressions.
22221         * lib/regex-quote.c (ere_special): Add grouping and alternation
22222         operators.
22223
22224 2011-03-05  Bruno Haible  <bruno@clisp.org>
22225
22226         doc: Improve doc regarding autopoint vs. gnulib.
22227         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22228         disable autopoint while running autoreconf.
22229         Suggested by Ralf Wildenhues.
22230
22231 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22232
22233         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22234         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22235
22236 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22237
22238         parse-duration: remove xalloc.h dependency
22239         * lib/parse-duration.c (parse_period): handle NULL return from
22240         strdup instead of calling xstrdup().
22241         * modules/parse-duration: remove "xalloc" dependency
22242
22243 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22244
22245         bootstrap: honor m4_base when running aclocal
22246         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22247
22248 2011-03-02  Jim Meyering  <meyering@redhat.com>
22249
22250         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22251         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22252         on request from Matt Booth.
22253
22254 2011-03-01  Eric Blake  <eblake@redhat.com>
22255
22256         test-link: work on Hurd
22257         * tests/test-link.h (test_link): Hurd rejects linking directories
22258         with EISDIR instead of the POSIX-mandated EPERM.
22259
22260 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22261
22262         stdio: simplify by moving files to printf-posix, sigpipe
22263         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22264         since this symbol is needed only if printf is replaced.
22265         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22266         Require gl_ASM_SYMBOL_PREFIX.
22267         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22268         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22269         (Depends-on): Add 'raise'.
22270         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22271         * modules/stdio (Files): Remove lib/stdio-write.c,
22272         m4/asm-underscore.m4.
22273         (Depends-on): Remove 'raise'.
22274
22275         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22276         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22277         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22278         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22279
22280 2011-02-28  Bruno Haible  <bruno@clisp.org>
22281
22282         localcharset: Assume ANSI C behaviour of free().
22283         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22284         calling free().
22285         Suggested by Simon Josefsson <simon@josefsson.org>.
22286
22287 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22288             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22289             Bruno Haible  <bruno@clisp.org>  (tiny change)
22290
22291         On Cygwin, use /proc file system instead of win32 API.
22292         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22293         Win32 file names.
22294         (DllMain): Simplify by removing Cygwin specific code.
22295         (find_shared_library_fullname): Use Linux specific implementation also
22296         for Cygwin.
22297         (get_shared_library_fullname): Update accordingly.
22298         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22299         Win32 file names.
22300         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22301         Cygwin specific code.
22302
22303 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22304             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22305
22306         Fix OpenMP flag detection for various Fortran compilers.
22307         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22308         OpenMP-conditional compilation construct, to force compile
22309         failure with missing OpenMP flag.
22310         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22311
22312 2011-02-25  Eric Blake  <eblake@redhat.com>
22313
22314         strstr: expand test coverage
22315         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22316         compilation.
22317         * tests/test-memmem.c (main): Duplicate tests.
22318         * tests/test-strcasestr.c (main): Likewise.
22319         * tests/test-c-strcasestr.c (main): Likewise.
22320
22321 2011-02-25  Jim Meyering  <meyering@redhat.com>
22322
22323         maint.mk: detect missing-NL-at-EOF, too
22324         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22325         it also detects when a file lacks a newline at EOF.
22326         (require_exactly_one_NL_at_EOF_): Renamed from
22327         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22328         since people may well have .x-sc_... file names tied to the
22329         existing name.  Suggested by Eric Blake.
22330
22331 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22332
22333         dirname: move m4/dos.m4 functionality into lib/dosname.h
22334
22335         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22336         extracts symbols from it, puts them into config.h; but it's much
22337         easier to use the symbols directly.  filename.h already does this,
22338         but it disagrees with dos.m4 in some respects.  This patch
22339         introduces a different include file dosname.h that packages up
22340         dos.m4, and then later we can work on merging filename.h and
22341         dosname.h.  Applications that need only the easy-to-configure
22342         symbols should consider including dosname.h rather than dirname.h.
22343         * NEWS: Mention incompatible changes.
22344         * m4/dos.m4: Remove.
22345         * lib/dosname.h, modules/dosname: New files.
22346         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22347         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22348         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22349         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22350         Include dosname.h, not dirname.h.
22351         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22352         Include dosname.h, for definitions of symbols like ISSLASH
22353         that used to be in config.h.
22354         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22355         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22356         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22357         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22358         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22359         * modules/rmdir (Files): Likewise.
22360         * modules/stat (Files): Likewise.
22361         * modules/unlink (Files): Likewise.
22362         * modules/dirname-lgpl (Depends-on): Add dosname.
22363         * modules/lstat (Depends-on): Likewise.
22364         * modules/openat (Depends-on): Likewise.
22365         * modules/rmdir (Depends-on): Likewise.
22366         * modules/savewd (Depends-on): Likewise.
22367         * modules/stat (Depends-on): Likewise.
22368         * modules/unlink (Depends-on): Likewise.
22369         * modules/openat (Depends-on): Remove dirname-lgpl.
22370         * modules/savewd (Depends-on): Likewise.
22371         * tests/test-dirname.c: Do not use removed symbols like
22372         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22373         the remaining symbols, e.g., ISSLASH ('\\').
22374
22375 2011-02-25  Eric Blake  <eblake@redhat.com>
22376
22377         strstr: revert patches that introduced bug and pessimization
22378         * lib/str-two-way.h: Add another reference.
22379         (two_way_short_needle, two_way_long_needle): Revert changes from
22380         2011-02-24; they pessimize search speed.
22381         (critical_factorization): Partially revert changes from
22382         2010-06-22; they violate the requirement that the left half of the
22383         needle be smaller than the period of the needle.
22384
22385 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22386
22387         filenamecat: remove unnecessary dependency on dirname-lgpl
22388         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22389         is no direct dependency, just an indirect one via filenamecat-lgpl.
22390
22391         remove: remove unnecessary use of m4/dos.m4
22392         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22393         * modules/remove (FILES): Remove m4/dos.m4.
22394
22395         * lib/openat-proc.c: Don't include dirname.h; not needed.
22396
22397         backupfile: remove unnecessary use of m4/dos.m4
22398         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22399         of its symbols are used by the backupfile code.  backupfile.c does
22400         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22401         for the rare case of programs that want all their backup file
22402         names to live within 8+3 limits, and dos.m4 doesn't address that.
22403         * modules/backupfile (Files): Remove m4/dos.m4.
22404
22405 2011-02-24  Jim Meyering  <meyering@redhat.com>
22406
22407         strstr: fix a bug whereby strstr would mistakenly return NULL
22408         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22409         in period calculation.
22410         (two_way_long_needle): Likewise.
22411         The original problem was reported by Mike Stump in
22412         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22413         Ralf Wildenhues provided the short needle and haystack.
22414         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22415         Add a more involved test to trigger the bug in two_way_long_needle.
22416
22417 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22418
22419         gnulib-tool: remove use of bold display in help screen
22420         * gnulib-tool (func_usage): Do not use bold display anymore in the
22421         help screen.  That was just meant to be a temporary emphasis for a
22422         backward-incompatible change.
22423
22424 2011-02-23  Bruno Haible  <bruno@clisp.org>
22425
22426         Fix misindentation of preprocessor directives.
22427         * lib/argp-namefrob.h: Reindent preprocessor directives.
22428         * lib/getopt_int.h (struct _getopt_data): Likewise.
22429         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22430         * lib/vasnprintf.c (decode_long_double): Likewise.
22431         * tests/test-argmatch.c: Insert blank lines, for clarity.
22432         * tests/test-exclude.c: Likewise.
22433
22434 2011-02-22  Bruno Haible  <bruno@clisp.org>
22435
22436         ioctl: Fix for MacOS X in 64-bit mode.
22437         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22438         value.
22439         Suggested by Eric Blake.
22440         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22441
22442 2011-02-22  Jim Meyering  <meyering@redhat.com>
22443
22444         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22445         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22446         in lib/.
22447
22448 2011-02-22  Eric Blake  <eblake@redhat.com>
22449
22450         maint: avoid any CDPATH issue
22451         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22452
22453         maint: adjust cpp indentation for my modules, as well
22454         * Makefile (sc_cpp_indent_check): Add my name.
22455         * lib/fbufmode.c: Filter through cppi.
22456         * lib/fpurge.c: Likewise.
22457         * lib/freadable.c: Likewise.
22458         * lib/freading.c: Likewise.
22459         * lib/fwritable.c: Likewise.
22460         * lib/fwriting.c: Likewise.
22461         * lib/sigaction.c: Likewise.
22462
22463 2011-02-22  Jim Meyering  <meyering@redhat.com>
22464
22465         maint: adjust cpp indentation to reflect nesting depth
22466         I.e., in a block of code that begins with an unnested "#if",
22467         put one space between the "#" in column 1 and following token.
22468         For example,
22469         -#include <sys/vfs.h>
22470         +# include <sys/vfs.h>
22471         Do this only in .c files that are part of a module I maintain.
22472         * lib/linkat.c: Filter through cppi.
22473         * lib/nanosleep.c: Likewise.
22474         * lib/openat.c: Likewise.
22475         * lib/openat-die.c: Likewise.
22476         * lib/dup3.c: Likewise.
22477         * lib/fchownat.c: Likewise.
22478         * lib/flock.c: Likewise.
22479         * lib/fsync.c: Likewise.
22480         * lib/fts.c: Likewise.
22481         * lib/getpass.c: Likewise.
22482         * lib/gettimeofday.c: Likewise.
22483         * lib/userspec.c: Likewise.
22484         * Makefile (sc_cpp_indent_check): New rule, to check this.
22485
22486 2011-02-22  Bruno Haible  <bruno@clisp.org>
22487
22488         New module 'wctomb'.
22489         * lib/stdlib.in.h (wctomb): New declaration.
22490         * lib/wctomb.c: New file.
22491         * lib/wctomb-impl.h: New file.
22492         * m4/wctomb.m4: New file.
22493         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22494         REPLACE_WCTOMB.
22495         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22496         REPLACE_WCTOMB.
22497         * modules/wctomb: New file.
22498         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22499         * doc/posix-functions/wctomb.texi: Mention the new module.
22500         * modules/wctob (Depends-on): Add wctomb.
22501
22502 2011-02-22  Bruno Haible  <bruno@clisp.org>
22503
22504         New module 'mbtowc'.
22505         * lib/stdlib.in.h (mbtowc): New declaration.
22506         * lib/mbtowc.c: New file.
22507         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22508         * m4/mbtowc.m4: New file.
22509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22510         REPLACE_MBTOWC.
22511         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22512         REPLACE_MBTOWC.
22513         * modules/mbtowc: New file.
22514         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22515         * doc/posix-functions/mbtowc.texi: Mention the new module.
22516         * modules/btowc (Depends-on): Add mbtowc.
22517
22518 2011-02-22  Bruno Haible  <bruno@clisp.org>
22519
22520         wcrtomb: Add more tests for native Windows platforms.
22521         * tests/test-wcrtomb-w32-1.sh: New file.
22522         * tests/test-wcrtomb-w32-2.sh: New file.
22523         * tests/test-wcrtomb-w32-3.sh: New file.
22524         * tests/test-wcrtomb-w32-4.sh: New file.
22525         * tests/test-wcrtomb-w32-5.sh: New file.
22526         * tests/test-wcrtomb-w32.c: New file.
22527         * modules/wcrtomb-tests (Files): Add them.
22528         (Makefile.am): Arrange to run these tests.
22529         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22530         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22531
22532 2011-02-20  Bruno Haible  <bruno@clisp.org>
22533
22534         wcrtomb: Enhance test.
22535         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22536
22537 2011-02-20  Bruno Haible  <bruno@clisp.org>
22538
22539         mbrtowc: Tiny optimization.
22540         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22541
22542 2011-02-20  Jim Meyering  <meyering@redhat.com>
22543
22544         test-exclude.c: remove unmatched #endif
22545         * tests/test-exclude.c: Remove stray #endif, left over from
22546         the change of a week ago.
22547
22548 2011-02-19  Jim Meyering  <meyering@redhat.com>
22549
22550         git-version-gen: skip "-dirty" check when appropriate
22551         * build-aux/git-version-gen: Don't run any git commands when the
22552         version string comes from .tarball-version.  Prior to this, we
22553         would run git update-index --refresh even from a just-unpacked
22554         tarball directory, and that could affect a .git/ directory in a
22555         parent of the build directory.  Reported by Mike Frysinger.
22556
22557 2011-02-19  Bruno Haible  <bruno@clisp.org>
22558
22559         unictype/property-byname: Reduce the size of the 'data' segment.
22560         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22561
22562 2011-02-19  Bruno Haible  <bruno@clisp.org>
22563
22564         unictype/scripts: Reduce the size of the 'data' segment.
22565         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22566         '%pic'.
22567         * lib/unictype/scripts_byname.gperf: Regenerated.
22568
22569 2011-02-19  Bruno Haible  <bruno@clisp.org>
22570
22571         stdint: Update documentation.
22572         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22573
22574 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22575
22576         stdint: omit redundant check for wchar.h
22577         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22578         always tests whether wchar.h exists, so remove the now-redundant test.
22579
22580 2011-02-18  Bruno Haible  <bruno@clisp.org>
22581
22582         stdint: Cut dependency to module 'wchar'.
22583         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22584         include the necessary prerequisites.
22585         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22586         * modules/stdint (Depends-on): Remove wchar.
22587         (Makefile.am): Substitute HAVE_WCHAR_H.
22588         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22589
22590 2011-02-18  Eric Blake  <eblake@redhat.com>
22591
22592         longlong: skip, rather than fail, on cross-compilation
22593         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22594         when cross-compiling; regression from 2011-02-16.
22595
22596 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22597
22598         * NEWS: Mention 2011-02-08 change to stdlib.
22599
22600 2011-02-17  Bruno Haible  <bruno@clisp.org>
22601
22602         getloadavg: Add comments about platforms.
22603         * m4/getloadavg.m4: Add comment.
22604         * lib/getloadavg.c: Likewise.
22605
22606 2011-02-17  Bruno Haible  <bruno@clisp.org>
22607
22608         getloadavg: Fix link error on Solaris 2.6.
22609         * modules/getloadavg (Link): New section.
22610         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22611         linking test-getloadavg.
22612         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22613         getloadavg.
22614
22615 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22616
22617         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22618         It was 'int', but this doesn't match the IRIX 6.5 manual.
22619         Suggested by Bruno Haible in
22620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22621
22622 2011-02-17  Bruno Haible  <bruno@clisp.org>
22623
22624         havelib: Fix comments.
22625         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22626         change.
22627
22628 2011-02-17  Bruno Haible  <bruno@clisp.org>
22629
22630         havelib: Update config.rpath.
22631         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22632
22633 2011-02-17  Bruno Haible  <bruno@clisp.org>
22634
22635         getloadavg test: Add some plausibility checks.
22636         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22637         is improbable.
22638
22639 2011-02-16  Eric Blake  <eblake@redhat.com>
22640
22641         maintainer-makefile: make syntax-check a no-op from tarballs
22642         * top/maint.mk (no-vc-detected): New rule.
22643         (local-checks-available): Use it to avoid hanging if someone tries
22644         'make syntax-check' from a tarball.  Also append to any non-syntax
22645         checks already defined in cfg.mk.
22646
22647 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22648
22649         longlong: tune, particularly for common case of c99
22650
22651         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22652         or running anything if c99, or if unsigned long long int does not
22653         work.  In either case, we know the answer without further tests.
22654         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22655         it at most once, and use its results for both long long int and
22656         unsigned long long int.  This is more likely to be efficient in
22657         the common case where the program wants to check for both long
22658         long int and unsigned long long int.
22659         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22660         since the answer is already known.
22661
22662 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22663
22664         getloadavg: set errno
22665         * lib/getloadavg.c: Set errno when returning -1.  If no other
22666         error number looks appropriate, set it to ENOSYS if the getloadavg
22667         looks like it can't possibly ever work, ENOTSUP otherwise.
22668         Suggested by Bruno Haible in
22669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22670
22671         getloadavg: trim unused parts and speed up 'configure'
22672         * NEWS: Document this.
22673         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22674         always compiled if getloadavg is absent.
22675         Move test code to ...
22676         * tests/test-getloadavg.c: New file, containing previous
22677         contents of test from lib/getloadavg.c.  It also contains
22678         suggestions by Bruno Haible in
22679         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22680         * modules/getloadavg-tests: New file.
22681         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22682         Do tests in the same order as they're needed for getloadavg.c.
22683         Omit setgid-related tests that generate symbols KMEM_GROUP,
22684         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22685         Do only the tests that are needed to see whether the system has
22686         getloadavg, moving the other tests into ...
22687         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22688         NLIST_NAME_UNION; nobody should be using it.  Do not define
22689         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22690         relevant, as the user of this module shouldn't care how getloadavg
22691         is implemented.
22692
22693         getloadavg: omit unused var
22694         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22695
22696 2011-02-15  Jim Meyering  <meyering@redhat.com>
22697
22698         doc: update users.txt
22699         * users.txt: Update iwhd's URL.
22700
22701 2011-02-13  Bruno Haible  <bruno@clisp.org>
22702
22703         Consistent macro naming for macros that use GCC __attribute__.
22704         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22705         _ATTRIBUTE_NONNULL_.
22706         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22707         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22708         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22709         ATTRIBUTE_DEPRECATED.
22710         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22711         ATTRIBUTE_NORETURN.
22712         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22713         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22714         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22715         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22716         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22717         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22718         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22719         ATTRIBUTE_SENTINEL.
22720         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22721         ATTRIBUTE_RETURN_CHECK.
22722         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22723         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22724         ATTRIBUTE_NORETURN.
22725         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22726         Reported by Paul Eggert.
22727
22728 2011-02-13  Bruno Haible  <bruno@clisp.org>
22729
22730         Don't interfere with a program's definition of __attribute__.
22731         * lib/argp.h (__attribute__): Remove definition.
22732         (_GL_ATTRIBUTE_FORMAT): New macro.
22733         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22734         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22735         (_GL_ATTRIBUTE_FORMAT): New macro.
22736         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22737         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22738         GCC 3 or newer.
22739         * lib/error.h (__attribute__): Remove definition.
22740         (_GL_ATTRIBUTE_FORMAT): New macro.
22741         (error, error_at_line): Use it.
22742         * lib/hash.h (__attribute__): Remove definition.
22743         (ATTRIBUTE_WUR): Update definition. Define always.
22744         * lib/openat.h (__attribute__): Remove definition.
22745         (ATTRIBUTE_NORETURN): Update definition. Define always.
22746         * lib/sigpipe-die.h (__attribute__): Remove definition.
22747         (ATTRIBUTE_NORETURN): Update definition. Define always.
22748         * lib/vasnprintf.h (__attribute__): Remove definition.
22749         (_GL_ATTRIBUTE_FORMAT): New macro.
22750         (asnprintf, vasnprintf): Use it.
22751         * lib/xalloc.h (__attribute__): Remove definition.
22752         (ATTRIBUTE_NORETURN): Update definition. Define always.
22753         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22754         * lib/xmemdup0.h (__attribute__): Remove definition.
22755         (ATTRIBUTE_NORETURN): Update definition. Define always.
22756         * lib/xprintf.h (__attribute__): Remove definition.
22757         (_GL_ATTRIBUTE_FORMAT): New macro.
22758         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22759         * lib/xstrtol.h (__attribute__): Remove definition.
22760         (ATTRIBUTE_NORETURN): Update definition. Define always.
22761         * lib/xvasprintf.h (__attribute__): Remove definition.
22762         (_GL_ATTRIBUTE_FORMAT): New macro.
22763         (xasprintf, xvasprintf): Use it.
22764         * tests/test-argmatch.c (__attribute__): Remove definition.
22765         (ATTRIBUTE_NORETURN): Update definition. Define always.
22766         * tests/test-exclude.c (__attribute__): Remove definition.
22767         (ATTRIBUTE_NORETURN): Update definition. Define always.
22768         Reported by Paul Eggert.
22769
22770 2011-02-13  Bruno Haible  <bruno@clisp.org>
22771
22772         mbrtowc: Add more tests for native Windows platforms.
22773         * tests/test-mbrtowc-w32-1.sh: New file.
22774         * tests/test-mbrtowc-w32-2.sh: New file.
22775         * tests/test-mbrtowc-w32-3.sh: New file.
22776         * tests/test-mbrtowc-w32-4.sh: New file.
22777         * tests/test-mbrtowc-w32-5.sh: New file.
22778         * tests/test-mbrtowc-w32.c: New file.
22779         * modules/mbrtowc-tests (Files): Add them.
22780         (Makefile.am): Arrange to run these tests.
22781         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22782         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22783
22784 2011-02-13  Bruno Haible  <bruno@clisp.org>
22785
22786         mbrtowc: Work around native Windows bug.
22787         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22788         guess when no suitable locale for testing was found.
22789         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22790
22791 2011-02-13  Bruno Haible  <bruno@clisp.org>
22792
22793         mbsinit: Work around mingw bug.
22794         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22795         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22796         Windows.
22797         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22798
22799 2011-02-13  Bruno Haible  <bruno@clisp.org>
22800
22801         mbsinit: Don't crash for a NULL argument.
22802         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22803         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22804
22805 2011-02-13  Bruno Haible  <bruno@clisp.org>
22806
22807         Don't interfere with a program's definition of __attribute__.
22808         * lib/stdio.in.h (__attribute__): Remove definition.
22809         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22810         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22811         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22812         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22813         * lib/string.in.h (__attribute__): Remove definition.
22814         Reported by Paul Eggert.
22815
22816 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22817
22818         stdlib: don't get in the way of non-GCC __attribute__
22819         See thread starting at
22820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22821         Revert previous stdlib change, installing the following instead:
22822         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22823         to get in the way of a non-GCC compiler that supports __attribute__.
22824         (_GL_ATTRIBUTE_RETURN): New macro.
22825         (_Exit): Use it instead of __attribute__.
22826
22827 2011-02-12  Bruno Haible  <bruno@clisp.org>
22828
22829         quotearg test: Avoid test failure on mingw.
22830         * tests/test-quotearg.sh: Convert the locale identifier from native
22831         Windows syntax to Unix syntax.
22832
22833 2011-02-12  Bruno Haible  <bruno@clisp.org>
22834
22835         setlocale: Prefer gnulib's override over libintl's override.
22836         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22837         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22838         GNULIB_defined_setlocale is set.
22839
22840 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22841
22842         stdlib: support non-GCC __attribute__
22843
22844         Fix a serious and tricky problem encountered when attempting to
22845         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22846         5.5, but it crashed due to memory corruption on Solaris 10 with
22847         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22848         bits that are otherwise zero.  This tagging is optional inside
22849         Emacs but is preferred and is used when __attribute__ ((__aligned
22850         (8))) works, as it does with both recent-enough GCC and with Sun C
22851         5.11.  However, Sun C 5.11 is not GCC and does not #define
22852         __GNUC__ and __GNUC_MINOR__.
22853
22854         When I added the getloadavg module to Emacs, it brought in
22855         stdlib.in.h, which contained this fragment:
22856
22857            #ifndef __attribute__
22858            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22859            #  define __attribute__(Spec)   /* empty */
22860            # endif
22861            #endif
22862
22863         When files that include <stdlib.h> were compiled with Sun C 5.11,
22864         the above code disabled __attribute__ ((__aligned (8))), which
22865         caused variables to not be properly aligned, which eventually led
22866         to the pointer corruption mentioned above.  (This was a bit hard
22867         to diagnose, unfortunately.)
22868
22869         Several "#define __attribute__(X) /* empty */" code snippets need
22870         to be eradicated from Gnulib to work with non-GCC compilers that
22871         support __attribute__.  The Autoconf way to do this is to test for
22872         each kind of attribute that we want support for, and selectively
22873         enable that in source code.
22874
22875         Fix this problem just for stdlib.h, by adding a test for the
22876         __noreturn__ attribute, and change stdlib.in.h to use that test
22877         when needed.  This technique can be easily generalized to the
22878         other *.in.h files and attributes, and a similar technique can be
22879         used for *.h and *.c files.  This patch is enough to solve the
22880         problem for Emacs + getloadavg, and I thought I'd publish it for
22881         feedback before undertaking further, similar fixes in other
22882         modules.
22883
22884         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22885         because it's not needed for stdlib.h.  It merely substitutes the
22886         value directly into stdlib.h.  We may well need to #define it, or
22887         similar symbols, for other modules, but it's nice to also have an
22888         option to not #define it for applications like Emacs that do not
22889         need it.
22890
22891         * lib/stdlib.in.h (__attribute__): Do not #define.
22892         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22893         be defined only if the _Exit module is also used.
22894         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22896         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22897         platforms.
22898         * modules/_Exit (Files): Add m4/attribute.m4.
22899         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22900         * m4/attribute.m4: New file.
22901
22902 2011-02-12  Bruno Haible  <bruno@clisp.org>
22903
22904         wcsrtombs: Work around bug on native Windows.
22905         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22906         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22907         instead of len.
22908         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22909
22910 2011-02-12  Bruno Haible  <bruno@clisp.org>
22911
22912         mbsrtowcs: Work around bug on native Windows.
22913         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22914         against mingw bug.
22915         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22916
22917 2011-02-12  Bruno Haible  <bruno@clisp.org>
22918
22919         Avoid setlocale bugs in tests.
22920         * modules/btowc (Dependencies): Add setlocale.
22921         * modules/c-strcase (Dependencies): Likewise.
22922         * modules/mbmemcasecmp (Dependencies): Likewise.
22923         * modules/mbmemcasecoll (Dependencies): Likewise.
22924         * modules/mbrtowc (Dependencies): Likewise.
22925         * modules/mbscasecmp (Dependencies): Likewise.
22926         * modules/mbscasestr (Dependencies): Likewise.
22927         * modules/mbschr (Dependencies): Likewise.
22928         * modules/mbscspn (Dependencies): Likewise.
22929         * modules/mbsinit (Dependencies): Likewise.
22930         * modules/mbsncasecmp (Dependencies): Likewise.
22931         * modules/mbsnrtowcs (Dependencies): Likewise.
22932         * modules/mbspbrk (Dependencies): Likewise.
22933         * modules/mbspcasecmp (Dependencies): Likewise.
22934         * modules/mbsrchr (Dependencies): Likewise.
22935         * modules/mbsrtowcs (Dependencies): Likewise.
22936         * modules/mbsspn (Dependencies): Likewise.
22937         * modules/mbsstr (Dependencies): Likewise.
22938         * modules/nl_langinfo (Dependencies): Likewise.
22939         * modules/quotearg (Dependencies): Likewise.
22940         * modules/unicase/locale-language (Dependencies): Likewise.
22941         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22942         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22943         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22944         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22945         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22946         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22947         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22948         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22949         * modules/vasnprintf-posix (Dependencies): Likewise.
22950         * modules/wcrtomb (Dependencies): Likewise.
22951         * modules/wcsnrtombs (Dependencies): Likewise.
22952         * modules/wcsrtombs (Dependencies): Likewise.
22953
22954 2011-02-12  Bruno Haible  <bruno@clisp.org>
22955
22956         setlocale: Workaround native Windows bug.
22957         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22958         succeeds but sets LC_CTYPE to "C", report a failure.
22959         * tests/test-setlocale2.sh: New file.
22960         * tests/test-setlocale2.c: New file.
22961         * modules/setlocale-tests (Files): Add the new files.
22962         (Makefile.am): Enable test-setlocale2.sh test.
22963         * doc/posix-functions/setlocale.texi: Mention workaround.
22964
22965 2011-02-11  Bruno Haible  <bruno@clisp.org>
22966
22967         Tests for module 'setlocale'.
22968         * modules/setlocale-tests: New file.
22969         * tests/test-setlocale1.sh: New file.
22970         * tests/test-setlocale1.c: New file.
22971
22972         New module 'setlocale'.
22973         * lib/locale.in.h (setlocale): New declaration.
22974         * lib/setlocale.c: New file, based on
22975         gettext/gettext-runtime/intl/setlocale.c.
22976         * m4/setlocale.m4: New file.
22977         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22978         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22979         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22980         REPLACE_SETLOCALE.
22981         * modules/setlocale: New file.
22982         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22983         * doc/posix-functions/setlocale.texi: Mention the new module.
22984
22985 2011-02-11  Bruno Haible  <bruno@clisp.org>
22986
22987         Prepare for locale dependent tests on mingw.
22988         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22989         because it has the wrong locale encoding.
22990         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22991         French_France.1252 instead of "fr".
22992         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22993         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22994         because it has the wrong locale encoding.
22995         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22996         native Windows, try Turkish_Turkey.65001.
22997         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22998         Chinese_China.54936.
22999
23000         Prepare for locale dependent tests on mingw.
23001         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23002         differently.
23003         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23004         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23005         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23006         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23007
23008 2011-02-11  Eric Blake  <eblake@redhat.com>
23009
23010         strptime: avoid compiler warnings
23011         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23012         compiler warnings about dead code.
23013         Reported by Daniel P. Berrange.
23014
23015 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23016
23017         doc: update users.txt
23018         * users.txt: Add rcs.
23019
23020 2011-02-10  John W. Eaton  <jwe@gnu.org>
23021
23022         doc: update users.txt
23023         * users.txt: Add octave.
23024
23025 2011-02-10  Jim Meyering  <meyering@redhat.com>
23026
23027         doc: update users.txt
23028         * users.txt: Add iwhd.
23029
23030 2011-02-09  Bruno Haible  <bruno@clisp.org>
23031
23032         gnulib-tool: Make copyright notice adjustment more robust.
23033         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23034         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23035         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23036         License".
23037         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23038
23039 2011-02-06  Bruno Haible  <bruno@clisp.org>
23040
23041         New module 'towctrans'.
23042         * modules/towctrans: New file.
23043         * lib/wctype.in.h (towctrans): New declaration.
23044         * lib/towctrans.c: New file.
23045         * lib/towctrans-impl.h: New file.
23046         * m4/towctrans.m4: New file.
23047         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23048         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23049         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23050         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23051         * doc/posix-functions/towctrans.texi: Mention the new module.
23052
23053 2011-02-06  Bruno Haible  <bruno@clisp.org>
23054
23055         New module 'wctrans'.
23056         * modules/wctrans: New file.
23057         * lib/wctype.in.h (wctrans): New declaration.
23058         * lib/wctrans.c: New file.
23059         * lib/wctrans-impl.h: New file.
23060         * m4/wctrans.m4: New file.
23061         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23062         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23063         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23064         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23065         * doc/posix-functions/wctrans.texi: Mention the new module.
23066
23067 2011-02-06  Bruno Haible  <bruno@clisp.org>
23068
23069         New module 'iswctype'.
23070         * modules/iswctype: New file.
23071         * lib/wctype.in.h (iswctype): New declaration.
23072         * lib/iswctype.c: New file.
23073         * lib/iswctype-impl.h: New file.
23074         * m4/iswctype.m4: New file.
23075         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23076         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23077         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23078         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23079         * doc/posix-functions/iswctype.texi: Mention the new module and the
23080         HP-UX 11.00 problem.
23081
23082 2011-02-06  Bruno Haible  <bruno@clisp.org>
23083
23084         New module 'wctype'.
23085         * modules/wctype: Change to represent the wctype() substitute.
23086         * lib/wctype.in.h (wctype): New declaration.
23087         * lib/wctype.c: New file.
23088         * lib/wctype-impl.h: New file.
23089         * m4/wctype.m4: New file.
23090         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23091         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23092         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23093         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23094         * doc/posix-functions/wctype.texi: Mention the new module and the
23095         HP-UX 11.00 problem.
23096
23097 2011-02-06  Bruno Haible  <bruno@clisp.org>
23098
23099         wctype-h: Ensure wctype_t and wctrans_t are defined.
23100         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23101         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23102         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23103         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23104         HAVE_WCTRANS_T.
23105         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23106
23107 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23108
23109         flock: fix license typo
23110
23111         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23112         omitted.
23113
23114 2011-02-08  Bruno Haible  <bruno@clisp.org>
23115
23116         Split large sed scripts, for HP-UX sed.
23117         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23118         to avoid HP-UX limit of 99 commands, in the near future.
23119         * modules/stdlib (Makefile.am): Likewise.
23120         * modules/unistd (Makefile.am): Likewise.
23121         * modules/wchar (Makefile.am): Likewise.
23122         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23123         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23124         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23125
23126 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23127             Bruno Haible  <bruno@clisp.org>
23128
23129         stdlib: improve random_r modularization
23130         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23131         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23132         you also need the random_r module to get this material right.
23133         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23134         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23135         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23136
23137 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23138
23139         stdlib: don't depend on stdint
23140         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23141         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23142         be independent of whether stdint.h is needed.
23143         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23144         here, instead of ...
23145         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23146         struct random_data should be using the random_r module, not just
23147         the stdlib module (which wouldn't make sense: what package needs
23148         just struct random_data without also needing random_r?).
23149         * modules/stdlib (Depends-on): Remove stdint.
23150
23151         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23152         See the thread rooted at
23153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23154         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23155         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23156         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23157         __VMS)); previously it was always included (via fcntl--.h).
23158         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23159         hand; this is good enough for load averages.  Also, do not use
23160         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23161         flags directly if available and don't bother otherwise.  (Packages
23162         that need the extra reliability should use the modules that define
23163         these flags on older platforms that lack them.)
23164         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23165         fcntl-safer.
23166
23167 2011-02-08  Jim Meyering  <meyering@redhat.com>
23168
23169         di-set.h, ino-map.h: add multiple-inclusion guard
23170         Technically, the guard is required only for ino-map.h, due to its
23171         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23172         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23173         * lib/ino-map.h: Likewise.
23174
23175 2011-02-06  Bruno Haible  <bruno@clisp.org>
23176
23177         iswblank: Ensure declaration on glibc systems.
23178         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23179         * modules/iswblank (Dependencies): Add 'extensions'.
23180         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23181
23182 2011-02-06  Bruno Haible  <bruno@clisp.org>
23183
23184         New module 'iswblank'.
23185         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23186         * modules/iswblank: New file.
23187         * modules/wctype-h (Files): Remove lib/iswblank.c.
23188         (Makefile.am): Substitute GNULIB_ISWBLANK.
23189         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23190         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23191         (gl_WCTYPE_H_DEFAULTS): New macro.
23192         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23193         * modules/iswblank-tests: New file.
23194         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23195         * tests/test-wctype-h.c (main): Remove iswblank tests.
23196         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23197         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23198         of 'wctype-h'.
23199         * NEWS: Mention the change.
23200         * modules/mbchar (Depends-on): Add iswblank.
23201
23202 2011-02-08  Bruno Haible  <bruno@clisp.org>
23203
23204         di-set tests: Refactor.
23205         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23206         unnecessary includes.
23207         (ASSERT): Remove macro.
23208         (main): Make C90 compliant by avoiding variable declaration after
23209         statement.
23210         * modules/di-set-tests (Files): Add tests/macros.h.
23211
23212 2011-02-08  Bruno Haible  <bruno@clisp.org>
23213
23214         ino-map tests: Refactor.
23215         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23216         unnecessary includes.
23217         (ASSERT): Remove macro.
23218         (main): Make C90 compliant by avoiding variable declaration after
23219         statement.
23220         * modules/ino-map-tests (Files): Add tests/macros.h.
23221
23222 2011-02-08  Jim Meyering  <meyering@redhat.com>
23223
23224         di-set: add "const" to a cast
23225         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23226         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23227
23228 2011-02-06  Bruno Haible  <bruno@clisp.org>
23229
23230         Rename module 'wctype' to 'wctype-h'.
23231         * modules/wctype-h: Renamed from modules/wctype.
23232         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23233         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23234         (Files, Depends-on, Makefile.am): Update.
23235         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23236         (Files, Makefile.am): Update.
23237         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23238         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23239         * doc/posix-headers/wctype.texi: Update.
23240         * doc/posix-functions/iswalnum.texi: Update.
23241         * doc/posix-functions/iswalpha.texi: Update.
23242         * doc/posix-functions/iswblank.texi: Update.
23243         * doc/posix-functions/iswcntrl.texi: Update.
23244         * doc/posix-functions/iswdigit.texi: Update.
23245         * doc/posix-functions/iswgraph.texi: Update.
23246         * doc/posix-functions/iswlower.texi: Update.
23247         * doc/posix-functions/iswprint.texi: Update.
23248         * doc/posix-functions/iswpunct.texi: Update.
23249         * doc/posix-functions/iswspace.texi: Update.
23250         * doc/posix-functions/iswupper.texi: Update.
23251         * doc/posix-functions/iswxdigit.texi: Update.
23252         * doc/posix-functions/towlower.texi: Update.
23253         * doc/posix-functions/towupper.texi: Update.
23254         * NEWS: Mention the change.
23255         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23256         * modules/mbchar (Dependencies): Likewise.
23257         * modules/mbswidth (Dependencies): Likewise.
23258         * modules/quotearg (Dependencies): Likewise.
23259         * modules/regex (Dependencies): Likewise.
23260         * modules/wcscasecmp (Dependencies): Likewise.
23261         * modules/wcsncasecmp (Dependencies): Likewise.
23262         * modules/wcwidth (Dependencies): Likewise.
23263
23264 2011-02-06  Bruno Haible  <bruno@clisp.org>
23265
23266         New module 'wcswidth'.
23267         * modules/wcswidth: New file.
23268         * lib/wchar.in.h (wcswidth): New declaration.
23269         * lib/wcswidth.c: New file.
23270         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23271         * m4/wcswidth.m4: New file.
23272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23274         REPLACE_WCSWIDTH.
23275         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23276         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23277         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23278         * doc/posix-functions/wcswidth.texi: Mention the new module.
23279
23280 2011-02-06  Bruno Haible  <bruno@clisp.org>
23281
23282         New module 'wcstok'.
23283         * modules/wcstok: New file.
23284         * lib/wchar.in.h (wcstok): New declaration.
23285         * lib/wcstok.c: New file.
23286         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23287         * m4/wcstok.m4: New file.
23288         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23289         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23291         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23292         * doc/posix-functions/wcstok.texi: Mention the new module.
23293
23294 2011-02-06  Bruno Haible  <bruno@clisp.org>
23295
23296         New module 'wcsstr'.
23297         * modules/wcsstr: New file.
23298         * lib/wchar.in.h (wcsstr): New declaration.
23299         * lib/wcsstr.c: New file.
23300         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23301         * m4/wcsstr.m4: New file.
23302         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23303         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23304         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23305         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23306         * doc/posix-functions/wcsstr.texi: Mention the new module.
23307
23308 2011-02-06  Bruno Haible  <bruno@clisp.org>
23309
23310         New module 'wcspbrk'.
23311         * modules/wcspbrk: New file.
23312         * lib/wchar.in.h (wcspbrk): New declaration.
23313         * lib/wcspbrk.c: New file.
23314         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23315         * m4/wcspbrk.m4: New file.
23316         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23317         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23318         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23319         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23320         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23321
23322 2011-02-06  Bruno Haible  <bruno@clisp.org>
23323
23324         New module 'wcsspn'.
23325         * modules/wcsspn: New file.
23326         * lib/wchar.in.h (wcsspn): New declaration.
23327         * lib/wcsspn.c: New file.
23328         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23329         * m4/wcsspn.m4: New file.
23330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23332         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23333         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23334         * doc/posix-functions/wcsspn.texi: Mention the new module.
23335
23336 2011-02-06  Bruno Haible  <bruno@clisp.org>
23337
23338         New module 'wcscspn'.
23339         * modules/wcscspn: New file.
23340         * lib/wchar.in.h (wcscspn): New declaration.
23341         * lib/wcscspn.c: New file.
23342         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23343         * m4/wcscspn.m4: New file.
23344         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23345         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23346         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23347         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23348         * doc/posix-functions/wcscspn.texi: Mention the new module.
23349
23350 2011-02-06  Bruno Haible  <bruno@clisp.org>
23351
23352         New module 'wcsrchr'.
23353         * modules/wcsrchr: New file.
23354         * lib/wchar.in.h (wcsrchr): New declaration.
23355         * lib/wcsrchr.c: New file.
23356         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23357         * m4/wcsrchr.m4: New file.
23358         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23359         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23360         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23361         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23362         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23363
23364 2011-02-06  Bruno Haible  <bruno@clisp.org>
23365
23366         New module 'wcschr'.
23367         * modules/wcschr: New file.
23368         * lib/wchar.in.h (wcschr): New declaration.
23369         * lib/wcschr.c: New file.
23370         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23371         * m4/wcschr.m4: New file.
23372         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23373         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23375         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23376         * doc/posix-functions/wcschr.texi: Mention the new module.
23377
23378 2011-02-06  Bruno Haible  <bruno@clisp.org>
23379
23380         New module 'wcsdup'.
23381         * modules/wcsdup: New file.
23382         * lib/wchar.in.h (wcsdup): New declaration.
23383         * lib/wcsdup.c: New file.
23384         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23385         * m4/wcsdup.m4: New file.
23386         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23387         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23388         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23389         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23390         * doc/posix-functions/wcsdup.texi: Mention the new module.
23391
23392 2011-02-06  Bruno Haible  <bruno@clisp.org>
23393
23394         New module 'wcsxfrm'.
23395         * modules/wcsxfrm: New file.
23396         * lib/wchar.in.h (wcsxfrm): New declaration.
23397         * lib/wcsxfrm.c: New file.
23398         * lib/wcsxfrm-impl.h: New file.
23399         * m4/wcsxfrm.m4: New file.
23400         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23401         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23402         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23403         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23404         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23405
23406 2011-02-06  Bruno Haible  <bruno@clisp.org>
23407
23408         New module 'wcscoll'.
23409         * modules/wcscoll: New file.
23410         * lib/wchar.in.h (wcscoll): New declaration.
23411         * lib/wcscoll.c: New file.
23412         * lib/wcscoll-impl.h: New file.
23413         * m4/wcscoll.m4: New file.
23414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23416         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23417         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23418         * doc/posix-functions/wcscoll.texi: Mention the new module.
23419
23420 2011-02-06  Bruno Haible  <bruno@clisp.org>
23421
23422         New module 'wcsncasecmp'.
23423         * modules/wcsncasecmp: New file.
23424         * lib/wchar.in.h (wcsncasecmp): New declaration.
23425         * lib/wcsncasecmp.c: New file.
23426         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23427         * m4/wcsncasecmp.m4: New file.
23428         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23429         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23431         HAVE_WCSNCASECMP.
23432         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23433         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23434
23435 2011-02-06  Bruno Haible  <bruno@clisp.org>
23436
23437         New module 'wcscasecmp'.
23438         * modules/wcscasecmp: New file.
23439         * lib/wchar.in.h (wcscasecmp): New declaration.
23440         * lib/wcscasecmp.c: New file.
23441         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23442         * m4/wcscasecmp.m4: New file.
23443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23446         HAVE_WCSCASECMP.
23447         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23448         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23449
23450 2011-02-05  Bruno Haible  <bruno@clisp.org>
23451
23452         New module 'wcsncmp'.
23453         * modules/wcsncmp: New file.
23454         * lib/wchar.in.h (wcsncmp): New declaration.
23455         * lib/wcsncmp.c: New file.
23456         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23457         * m4/wcsncmp.m4: New file.
23458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23461         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23462         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23463
23464 2011-02-05  Bruno Haible  <bruno@clisp.org>
23465
23466         New module 'wcscmp'.
23467         * modules/wcscmp: New file.
23468         * lib/wchar.in.h (wcscmp): New declaration.
23469         * lib/wcscmp.c: New file.
23470         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23471         * m4/wcscmp.m4: New file.
23472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23475         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23476         * doc/posix-functions/wcscmp.texi: Mention the new module.
23477
23478 2011-02-05  Bruno Haible  <bruno@clisp.org>
23479
23480         New module 'wcsncat'.
23481         * modules/wcsncat: New file.
23482         * lib/wchar.in.h (wcsncat): New declaration.
23483         * lib/wcsncat.c: New file.
23484         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23485         * m4/wcsncat.m4: New file.
23486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23489         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23490         * doc/posix-functions/wcsncat.texi: Mention the new module.
23491
23492 2011-02-05  Bruno Haible  <bruno@clisp.org>
23493
23494         New module 'wcscat'.
23495         * modules/wcscat: New file.
23496         * lib/wchar.in.h (wcscat): New declaration.
23497         * lib/wcscat.c: New file.
23498         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23499         * m4/wcscat.m4: New file.
23500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23503         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23504         * doc/posix-functions/wcscat.texi: Mention the new module.
23505
23506 2011-02-05  Bruno Haible  <bruno@clisp.org>
23507
23508         New module 'wcpncpy'.
23509         * modules/wcpncpy: New file.
23510         * lib/wchar.in.h (wcpncpy): New declaration.
23511         * lib/wcpncpy.c: New file.
23512         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23513         * m4/wcpncpy.m4: New file.
23514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23516         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23517         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23518         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23519
23520 2011-02-05  Bruno Haible  <bruno@clisp.org>
23521
23522         New module 'wcsncpy'.
23523         * modules/wcsncpy: New file.
23524         * lib/wchar.in.h (wcsncpy): New declaration.
23525         * lib/wcsncpy.c: New file.
23526         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23527         * m4/wcsncpy.m4: New file.
23528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23531         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23532         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23533
23534 2011-02-05  Bruno Haible  <bruno@clisp.org>
23535
23536         New module 'wcpcpy'.
23537         * modules/wcpcpy: New file.
23538         * lib/wchar.in.h (wcpcpy): New declaration.
23539         * lib/wcpcpy.c: New file.
23540         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23541         * m4/wcpcpy.m4: New file.
23542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23544         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23545         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23546         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23547
23548 2011-02-05  Bruno Haible  <bruno@clisp.org>
23549
23550         New module 'wcscpy'.
23551         * modules/wcscpy: New file.
23552         * lib/wchar.in.h (wcscpy): New declaration.
23553         * lib/wcscpy.c: New file.
23554         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23555         * m4/wcscpy.m4: New file.
23556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23559         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23560         * doc/posix-functions/wcscpy.texi: Mention the new module.
23561
23562 2011-02-05  Bruno Haible  <bruno@clisp.org>
23563
23564         New module 'wcsnlen'.
23565         * modules/wcsnlen: New file.
23566         * lib/wchar.in.h (wcsnlen): New declaration.
23567         * lib/wcsnlen.c: New file.
23568         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23569         * m4/wcsnlen.m4: New file.
23570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23573         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23574         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23575
23576 2011-02-05  Bruno Haible  <bruno@clisp.org>
23577
23578         New module 'wcslen'.
23579         * modules/wcslen: New file.
23580         * lib/wchar.in.h (wcslen): New declaration.
23581         * lib/wcslen.c: New file.
23582         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23583         * m4/wcslen.m4: New file.
23584         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23585         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23586         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23587         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23588         * doc/posix-functions/wcslen.texi: Mention the new module.
23589
23590 2011-02-05  Bruno Haible  <bruno@clisp.org>
23591
23592         New module 'wmemset'.
23593         * modules/wmemset: New file.
23594         * lib/wchar.in.h (wmemset): New declaration.
23595         * lib/wmemset.c: New file.
23596         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23597         * m4/wmemset.m4: New file.
23598         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23599         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23600         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23601         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23602         * doc/posix-functions/wmemset.texi: Mention the new module.
23603
23604 2011-02-05  Bruno Haible  <bruno@clisp.org>
23605
23606         New module 'wmemmove'.
23607         * modules/wmemmove: New file.
23608         * lib/wchar.in.h (wmemmove): New declaration.
23609         * lib/wmemmove.c: New file.
23610         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23611         * m4/wmemmove.m4: New file.
23612         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23613         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23614         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23615         HAVE_WMEMMOVE.
23616         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23617         * doc/posix-functions/wmemmove.texi: Mention the new module.
23618
23619 2011-02-05  Bruno Haible  <bruno@clisp.org>
23620
23621         New module 'wmemcpy'.
23622         * modules/wmemcpy: New file.
23623         * lib/wchar.in.h (wmemcpy): New declaration.
23624         * lib/wmemcpy.c: New file.
23625         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23626         * m4/wmemcpy.m4: New file.
23627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23629         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23630         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23631         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23632
23633 2011-02-05  Bruno Haible  <bruno@clisp.org>
23634
23635         New module 'wmemcmp'.
23636         * modules/wmemcmp: New file.
23637         * lib/wchar.in.h (wmemcmp): New declaration.
23638         * lib/wmemcmp.c: New file.
23639         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23640         * m4/wmemcmp.m4: New file.
23641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23643         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23644         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23645         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23646
23647 2011-02-07  Jim Meyering  <meyering@redhat.com>
23648
23649         di-set, ino-map: new modules, from coreutils
23650         * lib/di-set.c: New file.
23651         * lib/di-set.h: Likewise.
23652         * lib/ino-map.c: Likewise.
23653         * lib/ino-map.h: Likewise.
23654         * modules/di-set: Likewise.
23655         * modules/di-set-tests: Likewise.
23656         * modules/ino-map: Likewise.
23657         * modules/ino-map-tests: Likewise.
23658         * tests/test-di-set.c: Likewise.
23659         * tests/test-ino-map.c: Likewise.
23660
23661 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23662
23663         getloadavg: merge minor changes from Emacs
23664
23665         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23666         (getloadavg): Use memset, not bzero.
23667
23668         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23669         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23670         clash (bug#86).
23671
23672 2010-11-14  Bruno Haible  <bruno@clisp.org>
23673
23674         Allow multiple gnulib generated replacements to coexist.
23675         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23676         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23677         * lib/langinfo.in.h (nl_item): Likewise.
23678         * lib/math.in.h (_NaN, NAN): Likewise.
23679         * lib/netdb.in.h (struct addrinfo): Likewise.
23680         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23681         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23682         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23683         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23684         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23685         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23686         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23687         pthread_mutexattr_init, pthread_mutexattr_settype,
23688         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23689         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23690         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23691         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23692         * lib/sched.in.h (struct sched_param): Likewise.
23693         * lib/se-selinux.in.h (security_class_t, security_context_t,
23694         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23695         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23696         lsetfilecon, fsetfilecon, security_check_context,
23697         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23698         Likewise.
23699         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23700         Likewise.
23701         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23702         _gl_function_taking_int_returning_void_t, union sigval,
23703         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23704         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23705         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23706         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23707         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23708         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23709         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23710         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23711         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23712         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23713         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23714         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23715         socklen_t, rpl_fd_isset): Likewise.
23716         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23717         * lib/sys_time.in.h (struct timeval): Likewise.
23718         * lib/sys_times.in.h (struct tms): Likewise.
23719         * lib/sys_utsname.in.h (struct utsname):
23720         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23721         * lib/unistd.in.h (getpagesize): Likewise.
23722         * lib/wchar.in.h (mbstate_t): Likewise.
23723         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23724         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23725         towlower, towupper): Likewise.
23726         Reported by Sam Steingold <sds@gnu.org>.
23727
23728 2011-02-05  Eric Blake  <eblake@redhat.com>
23729
23730         unsetenv: work around Haiku issues
23731         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23732         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23733
23734 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23735
23736         libposix: avoid calling error() within libposix
23737         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23738         is defined.
23739
23740 2011-02-05  Eric Blake  <eblake@redhat.com>
23741
23742         strerror_r-posix: port to cygwin
23743         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23744         implementation.
23745         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23746         * tests/test-strerror_r.c (main): Fix test.
23747         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23748         issue.
23749
23750 2011-02-05  Bruno Haible  <bruno@clisp.org>
23751
23752         New module 'wmemchr'.
23753         * modules/wmemchr: New file.
23754         * lib/wchar.in.h (wmemchr): New declaration.
23755         * lib/wmemchr.c: New file.
23756         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23757         * m4/wmemchr.m4: New file.
23758         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23759         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23760         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23761         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23762         * doc/posix-functions/wmemchr.texi: Mention the new module.
23763
23764 2011-02-04  Eric Blake  <eblake@redhat.com>
23765
23766         fdopendir: detect FreeBSD bug
23767         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23768         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23769
23770 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23771
23772         stdbool: do not define HAVE_STDBOOL_H
23773         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23774         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23775         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23776         imported from the latest Autoconf git.  It was motivated by Emacs,
23777         which uses gnulib but does not need HAVE_STDBOOL_H.
23778
23779 2011-02-04  Bruno Haible  <bruno@clisp.org>
23780
23781         wcsnrtombs: Prepare for new module wwcsnrtombs.
23782         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23783         * lib/wcsnrtombs.c: Include it.
23784         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23785
23786         wcsrtombs: Prepare for new module wwcsrtombs.
23787         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23788         * lib/wcsrtombs.c: Include it.
23789         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23790
23791         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23792         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23793         * lib/mbsnrtowcs.c: Include it.
23794         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23795
23796         mbsrtowcs: Prepare for new module mbsrtowwcs.
23797         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23798         * lib/mbsrtowcs.c: Include it.
23799         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23800
23801 2011-02-04  Bruno Haible  <bruno@clisp.org>
23802
23803         vasnprintf: Reduce use of malloc for small format strings.
23804         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23805         (arguments): Add room for the first 7 arguments.
23806         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23807         (char_directives, u8_directives, u16_directives, u32_directives): Add
23808         room for the first 7 directives.
23809         * lib/printf-parse.c: Include <string.h>.
23810         (PRINTF_PARSE): Change memory handling code so that it uses the first
23811         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23812         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23813         Reported by Pádraig Brady <P@draigbrady.com>.
23814
23815 2011-01-31  Eric Blake  <eblake@redhat.com>
23816
23817         dup2: work around Haiku bug
23818         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23819         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23820         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23821         * tests/test-dup2.c (main): Enhance test.
23822
23823 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23824
23825         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23826         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23827         declared by eglibc 2.11.2.
23828         * lib/stdio.in.h: Likewise.
23829
23830 2011-01-31  Eric Blake  <eblake@redhat.com>
23831
23832         ignore-value: add missing test dependency
23833         * tests/test-ignore-value.c: Revert previous change; stdio.h
23834         provides off_t.
23835         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23836
23837 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23838
23839         mktime: clarify long_int width checking
23840         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23841         the top level, to make it clearer that the assumption about
23842         long_int width is being checked.  See
23843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23844
23845 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23846
23847         ignore-value: Fix self-test.
23848         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23849
23850 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23851
23852         TYPE_MAXIMUM: avoid theoretically undefined behavior
23853         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23854         negative number, which the C Standard says has undefined behavior.
23855         In practice this is not a problem, but might as well do it by the book.
23856         Reported by Rich Felker and Eric Blake; see
23857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23858         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23859         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23861         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23862         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23863         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23864
23865         mktime: #undef mktime before #defining it
23866         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23867
23868         mktime: systematically normalize tm_isdst comparisons
23869         * lib/mktime.c (isdst_differ): New function.
23870         (__mktime_internal): Use it systematically for all isdst comparisons.
23871         This completes the fix for libc BZ #6723, and removes the need for
23872         normalizing tm_isdst.  See
23873         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23874         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23875
23876         mktime: fix some integer overflow issues and sidestep the rest
23877
23878         This was prompted by a bug report by Benjamin Lindner for MinGW
23879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23880         His bug is due to signed integer overflow (0 - INT_MIN), and I
23881         I scanned through mktime.c looking for other integer overflow
23882         problems, fixing all the bugs I found.
23883
23884         Although the C Standard says the resulting code is still not safe
23885         in the presence of integer overflow, in practice it should be good
23886         enough for all real-world two's-complement implementations, except
23887         for debugging environments that deliberately trap on integer
23888         overflow (e.g., gcc -ftrapv).
23889
23890         * lib/mktime.c (WRAPV): New macro.
23891         (SHR): Also check that long_int and time_t shift right in the
23892         usual way, before using the fast-but-unportable method.
23893         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23894         used.  The code already assumed two's complement, so there's
23895         no need to test for alternatives.  All uses removed.
23896         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23897         the C standard.  Problem reported by Rich Felker in
23898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23899         (twos_complement_arithmetic): Also check long_int and time_t.
23900         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23901         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23902         (__mktime_internal): Avoid integer overflow with unary subtraction
23903         in two instances where -1 - X is an adequate replacement for -X,
23904         since the calculations are approximate.
23905
23906 2011-01-29  Eric Blake  <eblake@redhat.com>
23907
23908         mktime: avoid infinite loop
23909         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23910         type; behavior is still undefined but portable to all known targets.
23911         Reported by Rich Felker.
23912
23913 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23914
23915         rename, unlink, same-inode: Relicense.
23916         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23917         * modules/unlink (License): Likewise.
23918         * modules/same-inode (License): Likewise.
23919
23920 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23921
23922         mktime: avoid problems on NetBSD 5 / i386
23923         * lib/mktime.c (long_int): New type.  This works around a problem
23924         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23925         but time_t is 64 bits, and where I expect the existing code is
23926         wrong in some cases.
23927         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23928         (ydhms_diff): Bring back the compile-time check for wide-enough
23929         year and yday.
23930
23931         mktime: fix misspelling in comment
23932         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23933         This merges all recent glibc changes of importance.
23934
23935 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23936
23937         move-if-change: cope with concurrent mv of identical file.
23938         * build-aux/move-if-change (CMPPROG): Accept environment
23939         variable as an override for `cmp'.
23940         (usage): Document CMPPROG.
23941         Adjust comparison to drop stdout.  Cope with failure of mv if
23942         the target file exists and is identical to the source, for
23943         parallel builds.
23944         Report from H.J. Lu against binutils in PR binutils/12283.
23945
23946 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23947
23948         * users.txt: Mention sharutils.
23949
23950 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23951
23952         * users.txt: Mention OATH Toolkit.
23953
23954 2011-01-27  Bruno Haible  <bruno@clisp.org>
23955
23956         Prepare for supporting FreeBSD 10.
23957         * build-aux/config.libpath: Remove handling of freebsd1*.
23958
23959 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23960
23961         Prepare for supporting FreeBSD 10.
23962         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23963         match FreeBSD 10.0.
23964
23965 2011-01-27  Bruno Haible  <bruno@clisp.org>
23966
23967         vma-iter, get-rusage-as: Add OpenBSD support.
23968         * modules/vma-iter (configure.ac): Test for mquery.
23969         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23970         * lib/vma-iter.c: Include <sys/mman.h>.
23971         (vma_iterate): Add an implementation based on mquery().
23972         * lib/resource-ext.h (get_rusage_as): Update comments.
23973         * lib/get-rusage-as.c: Likewise.
23974         * lib/get-rusage-data.c: Likewise.
23975
23976 2011-01-26  Karl Berry  <karl@gnu.org>
23977
23978         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23979         variables to make it easier to override the makeinfo program used.
23980
23981 2011-01-26  Eric Blake  <eblake@redhat.com>
23982
23983         fcntl: work around Haiku F_DUPFD bugs
23984         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23985         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23986         cloexec bit on duplication.
23987         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23988
23989 2011-01-26  Bruno Haible  <bruno@clisp.org>
23990
23991         Enable memory leak tests on AIX.
23992         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23993         * tests/test-fprintf-posix3.c (main): Likewise.
23994
23995 2011-01-26  Bruno Haible  <bruno@clisp.org>
23996
23997         Tests for module 'get-rusage-data'.
23998         * modules/get-rusage-data-tests: New file.
23999         * tests/test-get-rusage-data.c: New file.
24000
24001         New module 'get-rusage-data'.
24002         * lib/resource-ext.h (get_rusage_data): New declaration.
24003         * lib/get-rusage-data.c: New file.
24004         * modules/get-rusage-data: New file.
24005
24006 2011-01-25  Bruno Haible  <bruno@clisp.org>
24007
24008         get-rusage-as: Allow for easier testing.
24009         * lib/resource-ext.h (get_rusage_as): Add comment.
24010         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24011         (main): New function for interactive testing.
24012
24013 2011-01-25  Bruno Haible  <bruno@clisp.org>
24014
24015         vma-iter: Treat Haiku like BeOS.
24016         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24017         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24018
24019 2011-01-25  Eric Blake  <eblake@redhat.com>
24020
24021         c-stack: fix regression on cygwin when libsigsegv is present
24022         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24023
24024 2011-01-24  Bruno Haible  <bruno@clisp.org>
24025
24026         vma-iter: Avoid empty intervals.
24027         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24028         on an empty interval.
24029
24030 2011-01-24  Jim Meyering  <meyering@redhat.com>
24031
24032         u64: remove unnecessary #include
24033         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24034
24035 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24036
24037         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24038         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24039
24040 2011-01-23  Bruno Haible  <bruno@clisp.org>
24041
24042         New module 'vma-iter'.
24043         * lib/vma-iter.h: New file.
24044         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24045         * modules/vma-iter: New file.
24046         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24047         for get_rusage_as_via_iterator.
24048         (vma_iterate_callback): New function.
24049         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24050         * modules/get-rusage-as (Depends-on): Add vma-iter.
24051
24052 2011-01-23  Bruno Haible  <bruno@clisp.org>
24053
24054         uninorm: Tweak includes.
24055         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24056         Reported by Jim Meyering.
24057
24058 2011-01-23  Bruno Haible  <bruno@clisp.org>
24059
24060         get-rusage-as: Improve on NetBSD.
24061         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24062         /proc, like on FreeBSD.
24063
24064 2011-01-23  Jim Meyering  <meyering@redhat.com>
24065
24066         xreadlink.h: remove unnecessary #include
24067         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24068
24069         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24070         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24071
24072 2011-01-23  Bruno Haible  <bruno@clisp.org>
24073
24074         get-rusage-as: Fix bug.
24075         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24076         original limit when aborting the first loop.
24077
24078 2011-01-23  Bruno Haible  <bruno@clisp.org>
24079
24080         wctype: Ensure valid C syntax.
24081         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24082         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24083
24084 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24085
24086         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24087         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24088         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24089         as they are needed only for configure's test case.
24090         This removes two unnecessary symbols from config.h.
24091
24092         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24093         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24095         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24096         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24097         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24098         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24099         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24100         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24101         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24102         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24103         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24104         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24105         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24106         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24107         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24108         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24109         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24110
24111 2011-01-21  Eric Blake  <eblake@redhat.com>
24112
24113         maintainer-makefile: work with older git for submodule check
24114         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24115         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24116         Reported by Matthias Bolte.
24117
24118         bootstrap: minor portability fixes
24119         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24120         (usage): Omit leading capital and trailing . on help phrases, per
24121         GNU Coding Standards.
24122         (check_versions, top level): Prefix messages with script name.
24123
24124 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24125
24126         bootstrap: support --no-git option
24127         * build-aux/bootstrap: Add --no-git option, to be used when
24128         --gnulib-srcdir points to the exact desired checkout.
24129
24130 2011-01-21  Eric Blake  <eblake@redhat.com>
24131
24132         strerror_r-posix: work with glibc 2.13
24133         * lib/strerror_r.c (strerror_r): Fix return type.
24134
24135 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24136             Bruno Haible  <bruno@clisp.org>
24137
24138         uN_strstr: New unit tests.
24139         * modules/unistr/u8-strstr-tests: New file.
24140         * modules/unistr/u16-strstr-tests: New file.
24141         * modules/unistr/u32-strstr-tests: New file.
24142         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24143         * tests/unistr/test-u8-strstr.c: New file.
24144         * tests/unistr/test-u16-strstr.c: New file.
24145         * tests/unistr/test-u32-strstr.c: New file.
24146
24147 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24148             Bruno Haible  <bruno@clisp.org>
24149
24150         Make uN_strstr functions O(n) worst-case.
24151         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24152         16-bit and 32-bit unit cases, use the unibyte algorithm from
24153         lib/mbsstr.c.
24154         * lib/unistr/u8-strstr.c: Include <string.h>.
24155         (UNIT_IS_UINT8_T): New macro.
24156         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24157         (U_STRLEN, U_STRNLEN): New macros.
24158         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24159         (U_STRLEN, U_STRNLEN): New macros.
24160         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24161         (configure.ac): Update required libunistring version.
24162         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24163         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24164         malloca.
24165         (configure.ac): Update required libunistring version.
24166         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24167         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24168         malloca.
24169         (configure.ac): Update required libunistring version.
24170
24171 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24172             Bruno Haible  <bruno@clisp.org>
24173
24174         Prepare for faster uN_strstr functions.
24175         * lib/str-kmp.h: Support definable UNITs.
24176         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24177         needle_len argument.
24178         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24179         * lib/mbscasestr.c (mbscasestr): Likewise.
24180
24181 2011-01-21  Pádraig Brady <P@draigBrady.com>
24182
24183         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24184         * tests/test-malloca.c (main): Unset the environment variable
24185         to greatly speed up the test.
24186         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24187         * modules/malloca-tests: Depend on unsetenv.
24188
24189 2011-01-21  Pádraig Brady <P@draigBrady.com>
24190
24191         ignore-value: remove stdint dependency
24192         * lib/ignore-value.h: Remove <stdint.h>
24193         * modules/ignore-value: Remove stdint dependency.
24194
24195 2011-01-21  Jim Meyering  <meyering@redhat.com>
24196
24197         maint.mk: adjust variable name to be consistent with other gl_ vars
24198         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24199         to be lower case.
24200
24201 2011-01-20  Jim Meyering  <meyering@redhat.com>
24202
24203         maint.mk: make "check" depend on public-submodule-commit by default
24204         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24205
24206 2011-01-20  Bruno Haible  <bruno@clisp.org>
24207
24208         mbfile, mbiter: Complete change from 2008-12-21.
24209         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24210         * m4/mbiter.m4 (gl_MBITER): Likewise.
24211
24212 2011-01-20  Jim Meyering  <meyering@redhat.com>
24213
24214         init.sh: insert space between each function name and "()"
24215         * tests/init.sh: Make it a little easier to see that a function's
24216         name is "warn_", and not "warn" when looking at the first part of
24217         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24218
24219 2011-01-20  Jim Meyering  <meyering@redhat.com>
24220
24221         mountlist: clean up code formatting
24222         * lib/mountlist.c (read_file_system_list): Split a long line,
24223         correct bracing style, use NULL in place of "(struct statfs *)0",
24224         don't parenthesize return value, add spaces around "=" and after
24225         ";-in-for-stmt".
24226
24227 2011-01-14  Markus Duft <mduft@gentoo.org>
24228
24229         mountlist: add support for Interix
24230         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24231         Apply statvfs to all entries of /dev/fs.
24232         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24233         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24234
24235 2011-01-20  Jim Meyering  <meyering@redhat.com>
24236
24237         maint.mk: improve the public-submodule-commit rule
24238         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24239         to suppress printing of its commands... unless V=1.
24240         Add git submodule's --quiet option to suppress printing of e.g.,
24241         "Entering gnulib" output.
24242         "cd" into $(srcdir) before running git submodule.
24243
24244 2011-01-20  Bruno Haible  <bruno@clisp.org>
24245
24246         include_next: Fix bug introduced on 2011-01-18.
24247         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24248         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24249         ac_cv_header_... variable if the second argument is not 'check'.
24250         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24251         gl_NEXT_HEADERS_INTERNAL.
24252
24253 2011-01-20  Bruno Haible  <bruno@clisp.org>
24254
24255         Allow the user to avoid the GNULIB_TEST_* macros.
24256         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24257         Suggested by Paul Eggert.
24258
24259 2011-01-14  Jim Meyering  <meyering@redhat.com>
24260
24261         bootstrap: avoid failure when there is no .gitmodules file
24262         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24263         has been assigned to, even when its value is the empty string.
24264         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24265         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24266         Reported by John W. Eaton <jwe@gnu.org>.
24267
24268 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24269
24270         assume <ctype.h>, ..., <time.h> exist
24271         For years gnulib has been assuming the existence of the headers
24272         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24273         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24274         them, since they don't appear to be needed.
24275         * README (Portability guidelines): Document this.
24276         * lib/flock.c: Assume <fcntl.h> exists.
24277         * lib/regex_internal.h: Assume <locale.h> exists.
24278         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24279         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24280         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24281         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24282         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24283         * m4/regex.m4 (gl_REGEX): Likewise.
24284         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24285         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24286         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24287         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24288         * tests/test-argp.c: Likewise.
24289         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24290
24291         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24292         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24293         AA_APPLE_UNIVERSAL_BUILD.  See
24294         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24295         * NEWS: Document this.
24296
24297 2011-01-19  Eric Blake  <eblake@redhat.com>
24298
24299         c-stack: assume stack overflow if SA_SIGINFO unsupported
24300         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24301         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24302         sigaction will work.
24303         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24304         behavior match Linux.
24305         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24306
24307         stdbool-tests: accommodate Haiku
24308         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24309
24310         binary-io: fix O_TEXT on Haiku
24311         * modules/binary-io (Depends-on): Add fcntl-h.
24312         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24313         than blindly undefining O_TEXT.
24314         Reported by Scott McCreary.
24315
24316 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24317
24318         include_next: do not check for standard headers like stddef.h
24319
24320         I found this problem when modifying Emacs to use gnulib.
24321         I noticed that it added HAVE_STDDEF_H to config.h, even though
24322         gnulib always assumes <stddef.h> exists as per README and this
24323         symbol is unnecessary.
24324         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24325         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24326         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24327         faster for headers like stddef.h that are known to exist.
24328         (gl_CHECK_NEXT_HEADERS): Use it.
24329         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24330         rather than gl_CHECK_NEXT_HEADERS.
24331         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24332         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24333
24334 2011-01-18  Eric Blake  <eblake@redhat.com>
24335
24336         ansi-c++-opt: skip C++ dependency style if C++ is unused
24337         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24338         tests when we know C++ compilation is not desired.
24339         Reported by Scott McCreary.
24340
24341 2011-01-18  Bruno Haible  <bruno@clisp.org>
24342
24343         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24344         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24345         (main): Perform test also when getrlimit and setrlimit don't exist or
24346         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24347         limiting the address space size using setrlimit, compare the address
24348         space size before and after the the test.
24349         * tests/test-dprintf-posix2.c: Likewise.
24350         * tests/test-fprintf-posix3.sh: Update skip messages.
24351         * tests/test-dprintf-posix2.sh: Likewise.
24352         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24353         * modules/dprintf-posix-tests (Depends-on): Likewise.
24354         Reported by Bruce Korb <bkorb@gnu.org> and
24355         Gary V. Vaughan <gary@gnu.org>.
24356
24357 2011-01-18  Bruno Haible  <bruno@clisp.org>
24358
24359         get-rusage-as: Improvement for Cygwin.
24360         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24361         areas that are merely reserved.
24362
24363 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24364
24365         strftime: remove dependencies on multibyte modules
24366
24367         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24368         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24369         only if __osf__ is defined, and I suspect OSF doesn't need these
24370         other modules.  If my guess is wrong, we'll need to come up with a
24371         variant of strftime that doesn't need the multibyte modules.
24372
24373         I discovered this problem when attempting modify Emacs to use the
24374         strftime module.  With the previous gnulib, this caused Emacs to
24375         need 31 new files, ranging from lib/config.charset to
24376         m4/wint_t.m4.  This was overkill and I expect would be offputting
24377         to the Emacs maintainers.  After this change, only 6 new files are
24378         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24379         stdbool.m4, and tm_gmtoff.m4.
24380
24381         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24382         Suggested by Bruno Haible in
24383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24384         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24385         and do not check for wchar.h.
24386         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24387         (Depends-on): Remove mbrlen, mbsinit, wchar.
24388
24389 2011-01-18  Bruno Haible  <bruno@clisp.org>
24390
24391         Tests for module 'get-rusage-as'.
24392         * modules/get-rusage-as-tests: New file.
24393         * tests/test-get-rusage-as.c: New file.
24394
24395         New module 'get-rusage-as'.
24396         * modules/get-rusage-as: New file.
24397         * lib/resource-ext.h: New file.
24398         * lib/get-rusage-as.c: New file.
24399
24400 2011-01-17  Eric Blake  <eblake@redhat.com>
24401
24402         sigaction: relax license from LGPLv3+ to LGPLv2+
24403         * modules/sigaction (License): Relax to LGPLv2+.
24404
24405 2011-01-14  Bruno Haible  <bruno@clisp.org>
24406
24407         filemode: Make function declarations usable in C++ mode.
24408         * lib/filemode.h: Enclose function declarations in extern "C" block.
24409         Reported by John W. Eaton <jwe@gnu.org>.
24410
24411 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24412
24413         save-cwd: no longer include "xgetcwd.h"
24414         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24415         This avoids a compilation failure in projects that use save-cwd
24416         without also using the xgetcwd module.
24417
24418 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24419
24420         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24421         This is so that a program like Emacs, which needs only dtoastr,
24422         does not have to bother with distributing and compiling ftoastr
24423         and ldtoastr.
24424         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24425         * modules/dtoastr, modules/ldtoastr: New files.
24426         * modules/ftoastr: Now works just for 'float'.
24427         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24428         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24429         dtoastr.c, ldtoastr.c.
24430
24431 2011-01-11  Jim Meyering  <meyering@redhat.com>
24432
24433         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24434         There is no need to work around the lack of the fchdir function,
24435         since gnulib can now provide a replacement when required.
24436         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24437         * modules/save-cwd (Depends-on): Add fchdir.
24438
24439 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24440
24441         openat, save-cwd: avoid xmalloc
24442
24443         This removes a direct (but undocumented) dependency of openat on
24444         xalloc, along with an indirect dependency via save-cwd.  It also
24445         removes a dependency of save-cwd on xgetcwd, and thereby
24446         indirectly on xalloc.  This change causes the openat substitute
24447         to fall back on save_cwd when memory is tight, and for save_cwd to
24448         fail instead of dying when memory is tight, but that's good enough.
24449         Problem and initial idea for fix reported by Bastien Roucaries in
24450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24451
24452         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24453         xalloc.h (for xmalloc).
24454         (openat_proc_name): Use malloc, not xmalloc.
24455         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24456         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24457
24458         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24459         This avoids heap allocation for file names whose lengths are in
24460         the range 512..1023, with the upper bound increasing to at most
24461         4031 depending on the platform's PATH_MAX.  (We do not want
24462         pathmax.h here as it might supply a non-constant PATH_MAX.)
24463         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24464         Perhaps they should be moved to malloca.h?
24465         (OPENAT_BUFFER_SIZE): Use them.
24466
24467 2011-01-10  Bruno Haible  <bruno@clisp.org>
24468
24469         doc: Update users.txt.
24470         * users.txt: Add recutils.
24471
24472 2011-01-09  Karl Berry  <karl@gnu.org>
24473
24474         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24475
24476         * doc/configmake.texi: New file.
24477         * doc/gnulib.texi: Include it.
24478         * modules/configmake: Move documentation from here.
24479
24480 2011-01-09  Bruno Haible  <bruno@clisp.org>
24481
24482         Update to Unicode 6.0.0.
24483         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24484         (get_lbp): Update for Unicode 6.0.0.
24485         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24486         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24487         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24488         U+11001, U+11038..U+11046. Remove U+06DE.
24489         (uc_width): Fix bounds of planes.
24490         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24491         lib/uniwidth/width.c.
24492         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24493         trailing whitespace removed.
24494         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24495         without comments, but with the original copyright notice.
24496         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24497         * lib/unicase/ignorable.h: Likewise.
24498         * lib/unicase/tocasefold.h: Likewise.
24499         * lib/unicase/tolower.h: Likewise.
24500         * lib/unicase/totitle.h: Likewise.
24501         * lib/unicase/toupper.h: Likewise.
24502         * lib/unictype/bidi_of.h: Likewise.
24503         * lib/unictype/blocks.h: Likewise.
24504         * lib/unictype/categ_C.h: Likewise.
24505         * lib/unictype/categ_Cn.h: Likewise.
24506         * lib/unictype/categ_L.h: Likewise.
24507         * lib/unictype/categ_Ll.h: Likewise.
24508         * lib/unictype/categ_Lm.h: Likewise.
24509         * lib/unictype/categ_Lo.h: Likewise.
24510         * lib/unictype/categ_Lu.h: Likewise.
24511         * lib/unictype/categ_M.h: Likewise.
24512         * lib/unictype/categ_Mc.h: Likewise.
24513         * lib/unictype/categ_Me.h: Likewise.
24514         * lib/unictype/categ_Mn.h: Likewise.
24515         * lib/unictype/categ_N.h: Likewise.
24516         * lib/unictype/categ_Nd.h: Likewise.
24517         * lib/unictype/categ_No.h: Likewise.
24518         * lib/unictype/categ_P.h: Likewise.
24519         * lib/unictype/categ_Po.h: Likewise.
24520         * lib/unictype/categ_S.h: Likewise.
24521         * lib/unictype/categ_Sc.h: Likewise.
24522         * lib/unictype/categ_Sk.h: Likewise.
24523         * lib/unictype/categ_Sm.h: Likewise.
24524         * lib/unictype/categ_So.h: Likewise.
24525         * lib/unictype/categ_of.h: Likewise.
24526         * lib/unictype/combining.h: Likewise.
24527         * lib/unictype/ctype_alnum.h: Likewise.
24528         * lib/unictype/ctype_alpha.h: Likewise.
24529         * lib/unictype/ctype_graph.h: Likewise.
24530         * lib/unictype/ctype_lower.h: Likewise.
24531         * lib/unictype/ctype_print.h: Likewise.
24532         * lib/unictype/ctype_punct.h: Likewise.
24533         * lib/unictype/ctype_upper.h: Likewise.
24534         * lib/unictype/decdigit.h: Likewise.
24535         * lib/unictype/digit.h: Likewise.
24536         * lib/unictype/numeric.h: Likewise.
24537         * lib/unictype/pr_alphabetic.h: Likewise.
24538         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24539         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24540         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24541         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24542         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24543         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24544         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24545         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24546         * lib/unictype/pr_case_ignorable.h: Likewise.
24547         * lib/unictype/pr_cased.h: Likewise.
24548         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24549         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24550         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24551         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24552         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24553         * lib/unictype/pr_combining.h: Likewise.
24554         * lib/unictype/pr_composite.h: Likewise.
24555         * lib/unictype/pr_currency_symbol.h: Likewise.
24556         * lib/unictype/pr_decimal_digit.h: Likewise.
24557         * lib/unictype/pr_deprecated.h: Likewise.
24558         * lib/unictype/pr_format_control.h: Likewise.
24559         * lib/unictype/pr_grapheme_base.h: Likewise.
24560         * lib/unictype/pr_grapheme_extend.h: Likewise.
24561         * lib/unictype/pr_grapheme_link.h: Likewise.
24562         * lib/unictype/pr_id_continue.h: Likewise.
24563         * lib/unictype/pr_id_start.h: Likewise.
24564         * lib/unictype/pr_ideographic.h: Likewise.
24565         * lib/unictype/pr_lowercase.h: Likewise.
24566         * lib/unictype/pr_math.h: Likewise.
24567         * lib/unictype/pr_numeric.h: Likewise.
24568         * lib/unictype/pr_other_alphabetic.h: Likewise.
24569         * lib/unictype/pr_other_id_continue.h: Likewise.
24570         * lib/unictype/pr_other_math.h: Likewise.
24571         * lib/unictype/pr_punctuation.h: Likewise.
24572         * lib/unictype/pr_sentence_terminal.h: Likewise.
24573         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24574         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24575         * lib/unictype/pr_unified_ideograph.h: Likewise.
24576         * lib/unictype/pr_uppercase.h: Likewise.
24577         * lib/unictype/pr_xid_continue.h: Likewise.
24578         * lib/unictype/pr_xid_start.h: Likewise.
24579         * lib/unictype/scripts.h: Likewise.
24580         * lib/unictype/scripts_byname.gperf: Likewise.
24581         * lib/unictype/sy_java_ident.h: Likewise.
24582         * lib/unigbrk/gbrkprop.h: Likewise.
24583         * lib/unilbrk/lbrkprop1.h: Likewise.
24584         * lib/unilbrk/lbrkprop2.h: Likewise.
24585         * lib/uninorm/decomposition-table2.h: Likewise.
24586         * lib/uniwbrk/wbrkprop.h: Likewise.
24587         * tests/unicase/test-cased.c: Likewise.
24588         * tests/unicase/test-ignorable.c: Likewise.
24589         * tests/unicase/test-uc_tolower.c: Likewise.
24590         * tests/unicase/test-uc_totitle.c: Likewise.
24591         * tests/unicase/test-uc_toupper.c: Likewise.
24592         * tests/unictype/test-categ_C.c: Likewise.
24593         * tests/unictype/test-categ_Cn.c: Likewise.
24594         * tests/unictype/test-categ_L.c: Likewise.
24595         * tests/unictype/test-categ_Ll.c: Likewise.
24596         * tests/unictype/test-categ_Lm.c: Likewise.
24597         * tests/unictype/test-categ_Lo.c: Likewise.
24598         * tests/unictype/test-categ_Lu.c: Likewise.
24599         * tests/unictype/test-categ_M.c: Likewise.
24600         * tests/unictype/test-categ_Mc.c: Likewise.
24601         * tests/unictype/test-categ_Me.c: Likewise.
24602         * tests/unictype/test-categ_Mn.c: Likewise.
24603         * tests/unictype/test-categ_N.c: Likewise.
24604         * tests/unictype/test-categ_Nd.c: Likewise.
24605         * tests/unictype/test-categ_No.c: Likewise.
24606         * tests/unictype/test-categ_P.c: Likewise.
24607         * tests/unictype/test-categ_Po.c: Likewise.
24608         * tests/unictype/test-categ_S.c: Likewise.
24609         * tests/unictype/test-categ_Sc.c: Likewise.
24610         * tests/unictype/test-categ_Sk.c: Likewise.
24611         * tests/unictype/test-categ_Sm.c: Likewise.
24612         * tests/unictype/test-categ_So.c: Likewise.
24613         * tests/unictype/test-ctype_alnum.c: Likewise.
24614         * tests/unictype/test-ctype_alpha.c: Likewise.
24615         * tests/unictype/test-ctype_graph.c: Likewise.
24616         * tests/unictype/test-ctype_lower.c: Likewise.
24617         * tests/unictype/test-ctype_print.c: Likewise.
24618         * tests/unictype/test-ctype_punct.c: Likewise.
24619         * tests/unictype/test-ctype_upper.c: Likewise.
24620         * tests/unictype/test-decdigit.h: Likewise.
24621         * tests/unictype/test-digit.h: Likewise.
24622         * tests/unictype/test-numeric.h: Likewise.
24623         * tests/unictype/test-pr_alphabetic.c: Likewise.
24624         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24625         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24626         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24627         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24628         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24629         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24630         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24631         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24632         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24633         * tests/unictype/test-pr_cased.c: Likewise.
24634         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24635         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24636         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24637         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24638         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24639         * tests/unictype/test-pr_combining.c: Likewise.
24640         * tests/unictype/test-pr_composite.c: Likewise.
24641         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24642         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24643         * tests/unictype/test-pr_deprecated.c: Likewise.
24644         * tests/unictype/test-pr_format_control.c: Likewise.
24645         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24646         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24647         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24648         * tests/unictype/test-pr_id_continue.c: Likewise.
24649         * tests/unictype/test-pr_id_start.c: Likewise.
24650         * tests/unictype/test-pr_ideographic.c: Likewise.
24651         * tests/unictype/test-pr_lowercase.c: Likewise.
24652         * tests/unictype/test-pr_math.c: Likewise.
24653         * tests/unictype/test-pr_numeric.c: Likewise.
24654         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24655         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24656         * tests/unictype/test-pr_other_math.c: Likewise.
24657         * tests/unictype/test-pr_punctuation.c: Likewise.
24658         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24659         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24660         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24661         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24662         * tests/unictype/test-pr_uppercase.c: Likewise.
24663         * tests/unictype/test-pr_xid_continue.c: Likewise.
24664         * tests/unictype/test-pr_xid_start.c: Likewise.
24665         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24666         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24667         changes.
24668         * lib/unictype/categ_Cc.h: Likewise.
24669         * lib/unictype/categ_Cf.h: Likewise.
24670         * lib/unictype/categ_Co.h: Likewise.
24671         * lib/unictype/categ_Cs.h: Likewise.
24672         * lib/unictype/categ_Lt.h: Likewise.
24673         * lib/unictype/categ_Nl.h: Likewise.
24674         * lib/unictype/categ_Pc.h: Likewise.
24675         * lib/unictype/categ_Pd.h: Likewise.
24676         * lib/unictype/categ_Pe.h: Likewise.
24677         * lib/unictype/categ_Pf.h: Likewise.
24678         * lib/unictype/categ_Pi.h: Likewise.
24679         * lib/unictype/categ_Ps.h: Likewise.
24680         * lib/unictype/categ_Z.h: Likewise.
24681         * lib/unictype/categ_Zl.h: Likewise.
24682         * lib/unictype/categ_Zp.h: Likewise.
24683         * lib/unictype/categ_Zs.h: Likewise.
24684         * lib/unictype/ctype_blank.h: Likewise.
24685         * lib/unictype/ctype_cntrl.h: Likewise.
24686         * lib/unictype/ctype_digit.h: Likewise.
24687         * lib/unictype/ctype_space.h: Likewise.
24688         * lib/unictype/ctype_xdigit.h: Likewise.
24689         * lib/unictype/mirror.h: Likewise.
24690         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24691         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24692         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24693         * lib/unictype/pr_bidi_control.h: Likewise.
24694         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24695         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24696         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24697         * lib/unictype/pr_bidi_pdf.h: Likewise.
24698         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24699         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24700         * lib/unictype/pr_dash.h: Likewise.
24701         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24702         * lib/unictype/pr_diacritic.h: Likewise.
24703         * lib/unictype/pr_extender.h: Likewise.
24704         * lib/unictype/pr_hex_digit.h: Likewise.
24705         * lib/unictype/pr_hyphen.h: Likewise.
24706         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24707         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24708         * lib/unictype/pr_ignorable_control.h: Likewise.
24709         * lib/unictype/pr_iso_control.h: Likewise.
24710         * lib/unictype/pr_join_control.h: Likewise.
24711         * lib/unictype/pr_left_of_pair.h: Likewise.
24712         * lib/unictype/pr_line_separator.h: Likewise.
24713         * lib/unictype/pr_logical_order_exception.h: Likewise.
24714         * lib/unictype/pr_non_break.h: Likewise.
24715         * lib/unictype/pr_not_a_character.h: Likewise.
24716         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24717         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24718         * lib/unictype/pr_other_id_start.h: Likewise.
24719         * lib/unictype/pr_other_lowercase.h: Likewise.
24720         * lib/unictype/pr_other_uppercase.h: Likewise.
24721         * lib/unictype/pr_paired_punctuation.h: Likewise.
24722         * lib/unictype/pr_paragraph_separator.h: Likewise.
24723         * lib/unictype/pr_pattern_syntax.h: Likewise.
24724         * lib/unictype/pr_pattern_white_space.h: Likewise.
24725         * lib/unictype/pr_private_use.h: Likewise.
24726         * lib/unictype/pr_quotation_mark.h: Likewise.
24727         * lib/unictype/pr_radical.h: Likewise.
24728         * lib/unictype/pr_soft_dotted.h: Likewise.
24729         * lib/unictype/pr_space.h: Likewise.
24730         * lib/unictype/pr_titlecase.h: Likewise.
24731         * lib/unictype/pr_variation_selector.h: Likewise.
24732         * lib/unictype/pr_white_space.h: Likewise.
24733         * lib/unictype/pr_zero_width.h: Likewise.
24734         * lib/unictype/sy_c_ident.h: Likewise.
24735         * lib/unictype/sy_c_whitespace.h: Likewise.
24736         * lib/unictype/sy_java_whitespace.h: Likewise.
24737         * lib/uninorm/composition-table.gperf: Likewise.
24738         * lib/uninorm/decomposition-table1.h: Likewise.
24739         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24740         LB8.
24741         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24742         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24743         * modules/unictype/*: Bump version number of expected libunistring
24744         version.
24745
24746 2011-01-09  Bruno Haible  <bruno@clisp.org>
24747
24748         Update to Unicode 5.2.0.
24749         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24750         trailing whitespace removed.
24751
24752 2011-01-09  Bruno Haible  <bruno@clisp.org>
24753
24754         New Unicode character properties, from Unicode 5.2.0.
24755         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24756         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24757         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24758         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24759         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24760         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24761         uc_is_property_cased, uc_is_property_case_ignorable,
24762         uc_is_property_changes_when_lowercased,
24763         uc_is_property_changes_when_uppercased,
24764         uc_is_property_changes_when_titlecased,
24765         uc_is_property_changes_when_casefolded,
24766         uc_is_property_changes_when_casemapped): New declarations.
24767         * lib/unictype/pr_byname.gperf: Add the new properties.
24768         * modules/unictype/property-byname (Depends-on): Depend on the new
24769         properties modules.
24770         * modules/unictype/property-all (Depends-on): Likewise.
24771         * MODULES.html.sh (Unicode string functions): Add
24772         unictype/property-case-ignorable, unictype/property-cased,
24773         unictype/property-changes-when-casefolded,
24774         unictype/property-changes-when-casemapped,
24775         unictype/property-changes-when-lowercased,
24776         unictype/property-changes-when-titlecased,
24777         unictype/property-changes-when-uppercased.
24778
24779         New module 'unictype/property-changes-when-casemapped'.
24780         * modules/unictype/property-changes-when-casemapped: New file.
24781         * lib/unictype/pr_changes_when_casemapped.c: New file.
24782         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24783         generated by gen-uni-tables.
24784         * modules/unictype/property-changes-when-casemapped-tests: New file.
24785         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24786         automatically generated by gen-uni-tables.
24787
24788         New module 'unictype/property-changes-when-casefolded'.
24789         * modules/unictype/property-changes-when-casefolded: New file.
24790         * lib/unictype/pr_changes_when_casefolded.c: New file.
24791         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24792         generated by gen-uni-tables.
24793         * modules/unictype/property-changes-when-casefolded-tests: New file.
24794         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24795         automatically generated by gen-uni-tables.
24796
24797         New module 'unictype/property-changes-when-titlecased'.
24798         * modules/unictype/property-changes-when-titlecased: New file.
24799         * lib/unictype/pr_changes_when_titlecased.c: New file.
24800         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24801         generated by gen-uni-tables.
24802         * modules/unictype/property-changes-when-titlecased-tests: New file.
24803         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24804         automatically generated by gen-uni-tables.
24805
24806         New module 'unictype/property-changes-when-uppercased'.
24807         * modules/unictype/property-changes-when-uppercased: New file.
24808         * lib/unictype/pr_changes_when_uppercased.c: New file.
24809         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24810         generated by gen-uni-tables.
24811         * modules/unictype/property-changes-when-uppercased-tests: New file.
24812         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24813         automatically generated by gen-uni-tables.
24814
24815         New module 'unictype/property-changes-when-lowercased'.
24816         * modules/unictype/property-changes-when-lowercased: New file.
24817         * lib/unictype/pr_changes_when_lowercased.c: New file.
24818         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24819         generated by gen-uni-tables.
24820         * modules/unictype/property-changes-when-lowercased-tests: New file.
24821         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24822         automatically generated by gen-uni-tables.
24823
24824         New module 'unictype/property-case-ignorable'.
24825         * modules/unictype/property-case-ignorable: New file.
24826         * lib/unictype/pr_case_ignorable.c: New file.
24827         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24828         by gen-uni-tables.
24829         * modules/unictype/property-case-ignorable-tests: New file.
24830         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24831         generated by gen-uni-tables.
24832
24833         New module 'unictype/property-cased'.
24834         * modules/unictype/property-cased: New file.
24835         * lib/unictype/pr_cased.c: New file.
24836         * lib/unictype/pr_cased.h: New file, automatically generated by
24837         gen-uni-tables.
24838         * modules/unictype/property-cased-tests: New file.
24839         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24840         gen-uni-tables.
24841
24842 2011-01-09  Bruno Haible  <bruno@clisp.org>
24843
24844         Update to Unicode 5.2.0.
24845         * lib/gen-uni-tables.c (output_predicate, output_category,
24846         output_combclass, output_bidi_category, output_decimal_digit_test,
24847         output_decimal_digit, output_digit_test, output_digit,
24848         output_numeric_test, output_numeric, output_mirror, output_scripts,
24849         output_scripts_byname, output_blocks, output_ident_category): Fix
24850         comment header.
24851         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24852         get_wbp.
24853         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24854         items.
24855         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24856         Changes_When_Lowercased, Changes_When_Uppercased,
24857         Changes_When_Titlecased, Changes_When_Casefolded,
24858         Changes_When_Casemapped.
24859         (is_property_alphabetic, is_property_default_ignorable_code_point):
24860         Update for Unicode 5.2.0.
24861         (is_property_cased, is_property_case_ignorable,
24862         is_property_changes_when_lowercased,
24863         is_property_changes_when_uppercased,
24864         is_property_changes_when_titlecased,
24865         is_property_changes_when_casefolded,
24866         is_property_changes_when_casemapped): New functions.
24867         (output_properties): Output also the properties cased, case_ignorable,
24868         changes_when_lowercased, changes_when_uppercased,
24869         changes_when_titlecased, changes_when_casefolded,
24870         changes_when_casemapped.
24871         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24872         Unicode TR#11 revision 17 -> 19.
24873         (LBP_CP): New enumeration value.
24874         (LBP_*): Adjust values accordingly.
24875         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24876         TR#14 revision 22 -> 24.
24877         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24878         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24879         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24880         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24881         is_WBP_MIDLETTER.
24882         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24883         the code1 and code2 of each composition rule.
24884         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24885         * lib/unicase/ignorable.h: Likewise.
24886         * lib/unicase/tocasefold.h: Likewise.
24887         * lib/unicase/tolower.h: Likewise.
24888         * lib/unicase/totitle.h: Likewise.
24889         * lib/unicase/toupper.h: Likewise.
24890         * lib/unictype/bidi_of.h: Likewise.
24891         * lib/unictype/blocks.h: Likewise.
24892         * lib/unictype/categ_C.h: Likewise.
24893         * lib/unictype/categ_Cf.h: Likewise.
24894         * lib/unictype/categ_Cn.h: Likewise.
24895         * lib/unictype/categ_L.h: Likewise.
24896         * lib/unictype/categ_Ll.h: Likewise.
24897         * lib/unictype/categ_Lm.h: Likewise.
24898         * lib/unictype/categ_Lo.h: Likewise.
24899         * lib/unictype/categ_Lu.h: Likewise.
24900         * lib/unictype/categ_M.h: Likewise.
24901         * lib/unictype/categ_Mc.h: Likewise.
24902         * lib/unictype/categ_Mn.h: Likewise.
24903         * lib/unictype/categ_N.h: Likewise.
24904         * lib/unictype/categ_Nd.h: Likewise.
24905         * lib/unictype/categ_Nl.h: Likewise.
24906         * lib/unictype/categ_No.h: Likewise.
24907         * lib/unictype/categ_P.h: Likewise.
24908         * lib/unictype/categ_Pd.h: Likewise.
24909         * lib/unictype/categ_Po.h: Likewise.
24910         * lib/unictype/categ_S.h: Likewise.
24911         * lib/unictype/categ_Sc.h: Likewise.
24912         * lib/unictype/categ_So.h: Likewise.
24913         * lib/unictype/categ_of.h: Likewise.
24914         * lib/unictype/combining.h: Likewise.
24915         * lib/unictype/ctype_alnum.h: Likewise.
24916         * lib/unictype/ctype_alpha.h: Likewise.
24917         * lib/unictype/ctype_graph.h: Likewise.
24918         * lib/unictype/ctype_lower.h: Likewise.
24919         * lib/unictype/ctype_print.h: Likewise.
24920         * lib/unictype/ctype_punct.h: Likewise.
24921         * lib/unictype/ctype_upper.h: Likewise.
24922         * lib/unictype/decdigit.h: Likewise.
24923         * lib/unictype/digit.h: Likewise.
24924         * lib/unictype/numeric.h: Likewise.
24925         * lib/unictype/pr_alphabetic.h: Likewise.
24926         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24927         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24928         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24929         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24930         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24931         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24932         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24933         * lib/unictype/pr_combining.h: Likewise.
24934         * lib/unictype/pr_composite.h: Likewise.
24935         * lib/unictype/pr_currency_symbol.h: Likewise.
24936         * lib/unictype/pr_dash.h: Likewise.
24937         * lib/unictype/pr_decimal_digit.h: Likewise.
24938         * lib/unictype/pr_deprecated.h: Likewise.
24939         * lib/unictype/pr_diacritic.h: Likewise.
24940         * lib/unictype/pr_extender.h: Likewise.
24941         * lib/unictype/pr_grapheme_base.h: Likewise.
24942         * lib/unictype/pr_grapheme_extend.h: Likewise.
24943         * lib/unictype/pr_grapheme_link.h: Likewise.
24944         * lib/unictype/pr_id_continue.h: Likewise.
24945         * lib/unictype/pr_id_start.h: Likewise.
24946         * lib/unictype/pr_ideographic.h: Likewise.
24947         * lib/unictype/pr_ignorable_control.h: Likewise.
24948         * lib/unictype/pr_logical_order_exception.h: Likewise.
24949         * lib/unictype/pr_lowercase.h: Likewise.
24950         * lib/unictype/pr_numeric.h: Likewise.
24951         * lib/unictype/pr_other_alphabetic.h: Likewise.
24952         * lib/unictype/pr_punctuation.h: Likewise.
24953         * lib/unictype/pr_sentence_terminal.h: Likewise.
24954         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24955         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24956         * lib/unictype/pr_unified_ideograph.h: Likewise.
24957         * lib/unictype/pr_uppercase.h: Likewise.
24958         * lib/unictype/pr_xid_continue.h: Likewise.
24959         * lib/unictype/pr_xid_start.h: Likewise.
24960         * lib/unictype/pr_zero_width.h: Likewise.
24961         * lib/unictype/scripts.h: Likewise.
24962         * lib/unictype/scripts_byname.gperf: Likewise.
24963         * lib/unictype/sy_java_ident.h: Likewise.
24964         * lib/unigbrk/gbrkprop.h: Likewise.
24965         * lib/unilbrk/lbrkprop1.h: Likewise.
24966         * lib/unilbrk/lbrkprop2.h: Likewise.
24967         * lib/unilbrk/lbrktables.h: Likewise.
24968         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24969         LBP_CP. Implement rule LB30.
24970         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24971         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24972         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24973         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24974         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24975         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24976         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24977         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24978         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24979         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24980         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24981         bits instead of 16 bits in the code1 and code2 of each composition
24982         rule.
24983         (uc_composition): Update for Unicode 5.2.0.
24984         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24985         * lib/uninorm/decomposition-table2.h: Likewise.
24986         * lib/uniwbrk/wbrkprop.h: Likewise.
24987         * tests/unicase/test-cased.c: Likewise.
24988         * tests/unicase/test-ignorable.c: Likewise.
24989         * tests/unicase/test-uc_tolower.c: Likewise.
24990         * tests/unicase/test-uc_totitle.c: Likewise.
24991         * tests/unicase/test-uc_toupper.c: Likewise.
24992         * tests/unictype/test-categ_C.c: Likewise.
24993         * tests/unictype/test-categ_Cf.c: Likewise.
24994         * tests/unictype/test-categ_Cn.c: Likewise.
24995         * tests/unictype/test-categ_L.c: Likewise.
24996         * tests/unictype/test-categ_Ll.c: Likewise.
24997         * tests/unictype/test-categ_Lm.c: Likewise.
24998         * tests/unictype/test-categ_Lo.c: Likewise.
24999         * tests/unictype/test-categ_Lu.c: Likewise.
25000         * tests/unictype/test-categ_M.c: Likewise.
25001         * tests/unictype/test-categ_Mc.c: Likewise.
25002         * tests/unictype/test-categ_Mn.c: Likewise.
25003         * tests/unictype/test-categ_N.c: Likewise.
25004         * tests/unictype/test-categ_Nd.c: Likewise.
25005         * tests/unictype/test-categ_Nl.c: Likewise.
25006         * tests/unictype/test-categ_No.c: Likewise.
25007         * tests/unictype/test-categ_P.c: Likewise.
25008         * tests/unictype/test-categ_Pd.c: Likewise.
25009         * tests/unictype/test-categ_Po.c: Likewise.
25010         * tests/unictype/test-categ_S.c: Likewise.
25011         * tests/unictype/test-categ_Sc.c: Likewise.
25012         * tests/unictype/test-categ_So.c: Likewise.
25013         * tests/unictype/test-ctype_alnum.c: Likewise.
25014         * tests/unictype/test-ctype_alpha.c: Likewise.
25015         * tests/unictype/test-ctype_graph.c: Likewise.
25016         * tests/unictype/test-ctype_lower.c: Likewise.
25017         * tests/unictype/test-ctype_print.c: Likewise.
25018         * tests/unictype/test-ctype_punct.c: Likewise.
25019         * tests/unictype/test-ctype_upper.c: Likewise.
25020         * tests/unictype/test-decdigit.h: Likewise.
25021         * tests/unictype/test-digit.h: Likewise.
25022         * tests/unictype/test-numeric.h: Likewise.
25023         * tests/unictype/test-pr_alphabetic.c: Likewise.
25024         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25025         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25026         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25027         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25028         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25029         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25030         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25031         * tests/unictype/test-pr_combining.c: Likewise.
25032         * tests/unictype/test-pr_composite.c: Likewise.
25033         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25034         * tests/unictype/test-pr_dash.c: Likewise.
25035         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25036         * tests/unictype/test-pr_deprecated.c: Likewise.
25037         * tests/unictype/test-pr_diacritic.c: Likewise.
25038         * tests/unictype/test-pr_extender.c: Likewise.
25039         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25040         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25041         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25042         * tests/unictype/test-pr_id_continue.c: Likewise.
25043         * tests/unictype/test-pr_id_start.c: Likewise.
25044         * tests/unictype/test-pr_ideographic.c: Likewise.
25045         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25046         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25047         * tests/unictype/test-pr_lowercase.c: Likewise.
25048         * tests/unictype/test-pr_numeric.c: Likewise.
25049         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25050         * tests/unictype/test-pr_punctuation.c: Likewise.
25051         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25052         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25053         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25054         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25055         * tests/unictype/test-pr_uppercase.c: Likewise.
25056         * tests/unictype/test-pr_xid_continue.c: Likewise.
25057         * tests/unictype/test-pr_xid_start.c: Likewise.
25058         * tests/unictype/test-pr_zero_width.c: Likewise.
25059         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25060         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25061         changed behaviour: line breaking is now disallowed between a letter
25062         or '=' and '('.
25063         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25064         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25065         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25066         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25067         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25068         lib/uniwidth/width.c.
25069         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25070         without comments, but with the original copyright notice.
25071         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25072         changes.
25073         * lib/unictype/categ_Cc.h: Likewise.
25074         * lib/unictype/categ_Co.h: Likewise.
25075         * lib/unictype/categ_Cs.h: Likewise.
25076         * lib/unictype/categ_Lt.h: Likewise.
25077         * lib/unictype/categ_Me.h: Likewise.
25078         * lib/unictype/categ_Pc.h: Likewise.
25079         * lib/unictype/categ_Pe.h: Likewise.
25080         * lib/unictype/categ_Pf.h: Likewise.
25081         * lib/unictype/categ_Pi.h: Likewise.
25082         * lib/unictype/categ_Ps.h: Likewise.
25083         * lib/unictype/categ_Sk.h: Likewise.
25084         * lib/unictype/categ_Sm.h: Likewise.
25085         * lib/unictype/categ_Z.h: Likewise.
25086         * lib/unictype/categ_Zl.h: Likewise.
25087         * lib/unictype/categ_Zp.h: Likewise.
25088         * lib/unictype/categ_Zs.h: Likewise.
25089         * lib/unictype/ctype_blank.h: Likewise.
25090         * lib/unictype/ctype_cntrl.h: Likewise.
25091         * lib/unictype/ctype_digit.h: Likewise.
25092         * lib/unictype/ctype_space.h: Likewise.
25093         * lib/unictype/ctype_xdigit.h: Likewise.
25094         * lib/unictype/mirror.h: Likewise.
25095         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25096         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25097         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25098         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25099         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25100         * lib/unictype/pr_bidi_control.h: Likewise.
25101         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25102         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25103         * lib/unictype/pr_bidi_pdf.h: Likewise.
25104         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25105         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25106         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25107         * lib/unictype/pr_format_control.h: Likewise.
25108         * lib/unictype/pr_hex_digit.h: Likewise.
25109         * lib/unictype/pr_hyphen.h: Likewise.
25110         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25111         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25112         * lib/unictype/pr_iso_control.h: Likewise.
25113         * lib/unictype/pr_join_control.h: Likewise.
25114         * lib/unictype/pr_left_of_pair.h: Likewise.
25115         * lib/unictype/pr_line_separator.h: Likewise.
25116         * lib/unictype/pr_math.h: Likewise.
25117         * lib/unictype/pr_non_break.h: Likewise.
25118         * lib/unictype/pr_not_a_character.h: Likewise.
25119         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25120         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25121         * lib/unictype/pr_other_id_continue.h: Likewise.
25122         * lib/unictype/pr_other_id_start.h: Likewise.
25123         * lib/unictype/pr_other_lowercase.h: Likewise.
25124         * lib/unictype/pr_other_math.h: Likewise.
25125         * lib/unictype/pr_other_uppercase.h: Likewise.
25126         * lib/unictype/pr_paired_punctuation.h: Likewise.
25127         * lib/unictype/pr_paragraph_separator.h: Likewise.
25128         * lib/unictype/pr_pattern_syntax.h: Likewise.
25129         * lib/unictype/pr_pattern_white_space.h: Likewise.
25130         * lib/unictype/pr_private_use.h: Likewise.
25131         * lib/unictype/pr_quotation_mark.h: Likewise.
25132         * lib/unictype/pr_radical.h: Likewise.
25133         * lib/unictype/pr_soft_dotted.h: Likewise.
25134         * lib/unictype/pr_space.h: Likewise.
25135         * lib/unictype/pr_titlecase.h: Likewise.
25136         * lib/unictype/pr_variation_selector.h: Likewise.
25137         * lib/unictype/pr_white_space.h: Likewise.
25138         * lib/unictype/sy_c_ident.h: Likewise.
25139         * lib/unictype/sy_c_whitespace.h: Likewise.
25140         * lib/unictype/sy_java_whitespace.h: Likewise.
25141         * modules/uni*/*: Bump version number of expected libunistring version.
25142         Reported by Simon Josefsson.
25143
25144 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25145
25146         useless-if-before-free: fix typo in --help and make the internal,
25147         automatic version date update process work once again.
25148         --help output contained a NUL character instead of the
25149         backslash-zero that was intended.  Also, the "must lie within
25150         the first 8 lines" line is on line 9, and hence not getting
25151         automatically updated.
25152         * build-aux/useless-if-before-free: Fix the former by adding a
25153         backslash, and the latter by condensing the three lines of what-it-does
25154         to a single line, leaving one line of slack for the future.
25155
25156 2011-01-09  Bruno Haible  <bruno@clisp.org>
25157
25158         uniwidth/width: Fix width of U+1D173..U+1D17A.
25159         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25160         symbolic_width, output_width_property_test): New functions.
25161         (main): Invoke output_nonspacing_property, output_width_property_test.
25162         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25163         U+1D173..U+1D17A.
25164         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25165         1.
25166         * modules/uniwidth/*: Bump version number of expected libunistring
25167         version.
25168         * modules/unilbrk/*: Likewise.
25169
25170 2011-01-08  Bruno Haible  <bruno@clisp.org>
25171
25172         uninorm tests: Preserve copyright of Unicode data file.
25173         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25174         Mention modifications.
25175
25176 2011-01-08  Bruno Haible  <bruno@clisp.org>
25177
25178         gen-uni-tables: Prepare for Unicode 5.2.0.
25179         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25180         (debug_output_lbp, output_lbp): Update.
25181
25182 2011-01-08  Bruno Haible  <bruno@clisp.org>
25183
25184         unilbrk: Clarify gen-uni-tables.c code.
25185         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25186         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25187         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25188
25189 2011-01-07  Bruno Haible  <bruno@clisp.org>
25190
25191         strtod: Restore errno when successfully parsing Infinity or NaN.
25192         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25193         restore the original errno.
25194
25195 2011-01-07  Bruno Haible  <bruno@clisp.org>
25196
25197         remove test: Avoid failure on HP-UX 11.
25198         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25199
25200 2011-01-07  Bruno Haible  <bruno@clisp.org>
25201
25202         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25203         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25204         error code.
25205
25206 2011-01-07  Pádraig Brady <P@draigBrady.com>
25207
25208         ignore-value: fixup comments, and add Eric Blake
25209         as an author since he rewrote the macros.
25210         * lib/ignore-value.h (ignore_value):  State that
25211         we now support aggregates.  Also specify exactly
25212         when the GCC warn_unused_result feature was added.
25213
25214 2011-01-06  Eric Blake  <eblake@redhat.com>
25215
25216         ignore-value: support aggregate types
25217         * lib/ignore-value.h (ignore_value): Provide separate gcc
25218         definition.
25219         * modules/ignore-value-tests: New test module.
25220         * tests/test-ignore-value.c: New test.
25221
25222         maint.mk: improve sc_prohibit_strcmp regex
25223         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25224         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25225         definition of STRNEQ.
25226
25227         signal: work around Haiku issue with SIGBUS
25228         * lib/siglist.h: Add comment.
25229         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25230         strsignal's favoring of SIGSEGV.
25231         * tests/test-signal.c (main): Avoid test failure.
25232         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25233         Reported by Scott McCreary.
25234
25235         maint.mk: add pre-release check to ensure submodule commits are public
25236         * top/maint.mk (public-submodule-commit): New rule.
25237         (submodule-checks): New variable.
25238         (alpha beta stable): Depend on the variable.
25239
25240 2011-01-05  Pádraig Brady <P@draigBrady.com>
25241         and Jim Meyering  <meyering@redhat.com>
25242
25243         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25244         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25245         (ATTRIBUTE_DEPRECATED): Define.
25246         (_ignore_case): New function.
25247         (ignore_value): New macro, to replace the old function.
25248         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25249         * modules/ignore-value (Depends-on): Add stdint.
25250
25251 2011-01-04  Eric Blake  <eblake@redhat.com>
25252
25253         doc: regenerate INSTALL
25254         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25255         @firstparagraphindent support, now that autoconf dropped it.
25256         (INSTALL_PRELUDE): Reinstate old macro.
25257         * doc/install.texi: Resync from autoconf.
25258         * doc/INSTALL: Reflect recent autoconf update.
25259         * doc/INSTALL.ISO: Likewise.
25260         * doc/INSTALL.UTF-8: Likewise.
25261         Reported by Karl Berry.
25262
25263 2011-01-04  Bruce Korb  <address@hidden>
25264
25265         git-version-gen: avoid a sub-shell
25266         * build-aux/git-version-gen: Redirect stderr in `...` via
25267         "exec 2>...", rather than via an added sub-shell.
25268
25269 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25270
25271         git-version-gen: use (...) rather than sh -c '...'
25272         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25273         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25274
25275 2011-01-03  Jim Meyering  <meyering@redhat.com>
25276
25277         git-version-gen: convert leading TABs to spaces
25278         * build-aux/git-version-gen: Expand leading TABs.
25279
25280         git-version-gen: handle failed "git rev-list"
25281         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25282         from git and proceeding as if it had succeeded but printed no SHA1
25283         checksums, suppress the diagnostic and handle the failure.
25284         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25285
25286         git-version-gen: include command name in one more diagnostic
25287         * build-aux/git-version-gen: When the required .tarball-version file
25288         was missing or unreadable, you might see the diagnostic from "cat",
25289         but no trace of the name of the invoking script.  Now, you still see
25290         the diagnostic from cat, but also get one from "git-version-gen: ".
25291         Inspired by a patch from Bruce Korb.
25292
25293         update-copyright: adjust test to match changed code
25294         * tests/test-update-copyright.sh: Change test's expected output
25295         to match new actual output.
25296
25297 2011-01-02  Bruno Haible  <bruno@clisp.org>
25298
25299         getlogin_r: Avoid test failure on HP-UX 11.
25300         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25301         ERANGE when the second argument is zero.
25302         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25303         portability problem.
25304
25305 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25306
25307         * build-aux/update-copyright: doc Simon's changes
25308
25309 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25310
25311         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25312         environment variable.
25313
25314 2011-01-02  Bruno Haible  <bruno@clisp.org>
25315
25316         unigbrk: Avoid gcc warnings.
25317         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25318         unused variable.
25319         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25320         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25321         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25322         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25323         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25324         Change type of first argument to 'const char *'.
25325         (main): Remove unused variable.
25326         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25327         type of first argument to 'const char *'.
25328         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25329         Likewise.
25330         (main): Change type of variable 's'.
25331         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25332         to 'int'.
25333
25334 2011-01-02  Bruno Haible  <bruno@clisp.org>
25335
25336         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25337         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25338         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25339         bug.
25340         * lib/pwrite.c: Undo 2010-12-31 patch.
25341         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25342
25343 2011-01-02  Bruno Haible  <bruno@clisp.org>
25344
25345         pread: Fix test whether it works.
25346         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25347
25348 2011-01-02  Bruno Haible  <bruno@clisp.org>
25349
25350         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25351         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25352         ends in "6". Don't require a specific month name. Try also the locale
25353         names found on HP-UX 11 and Solaris 7.
25354
25355 2011-01-02  Bruno Haible  <bruno@clisp.org>
25356
25357         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25358         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25359         C linkage.
25360         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25361
25362 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25363
25364         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25365         for consistency, since the "cluster" term is not used elsewhere.
25366         * lib/unigbrk.in.h: Update name.
25367         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25368         * lib/unigbrk/u16-grapheme-next.c: Update name.
25369         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25370         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25371         * lib/unigbrk/u32-grapheme-next.c: Update name.
25372         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25373         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25374         * lib/unigbrk/u8-grapheme-next.c: Update name.
25375         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25376         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25377         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25378         Suggested by Bruno Haible.
25379
25380 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25381
25382         Remove module 'u8-grapheme-len' as too redundant with
25383         'u8-grapheme-next'.
25384         * modules/unigbrk/u8-grapheme-len: Delete file.
25385         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25386         * lib/unigbrk.in.h: Remove prototype for deleted function.
25387         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25388         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25389
25390         Remove module 'u16-grapheme-len' as too redundant with
25391         'u16-grapheme-next'.
25392         * modules/unigbrk/u16-grapheme-len: Delete file.
25393         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25394         * lib/unigbrk.in.h: Remove prototype for deleted function.
25395         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25396         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25397
25398         Remove module 'u32-grapheme-len' as too redundant with
25399         'u32-grapheme-next'.
25400         * modules/unigbrk/u32-grapheme-len: Delete file.
25401         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25402         * lib/unigbrk.in.h: Remove prototype for deleted function.
25403         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25404         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25405
25406         Suggested by Bruno Haible.
25407
25408 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25409
25410         * unigbrk.in.h: Fix typo: "ben" => "been".
25411         Reported by Bruno Haible.
25412
25413 2011-01-01  Jim Meyering  <meyering@redhat.com>
25414
25415         maint: update almost all copyright ranges to include 2011
25416         Run the new "make update-copyright" rule.
25417
25418 2011-01-01  Jim Meyering  <meyering@redhat.com>
25419
25420         maint: update-copyright: exempt doc/INSTALL*
25421         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25422         since they are generated.  Suggested by Bruno Haible.
25423
25424 2011-01-01  Jim Meyering  <meyering@redhat.com>
25425
25426         maint: refine the update-copyright rule
25427         * Makefile (update-copyright): Also exclude any file that includes
25428         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25429         code that merely generates the comment.
25430
25431 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25432
25433         New module 'u8-grapheme-len'.
25434         * modules/unigbrk/u8-grapheme-len: New file.
25435         * modules/unigbrk/u8-grapheme-len-tests: New file.
25436         * lib/unigbrk.in.h: Add prototype for new function.
25437         * lib/unigbrk/u8-grapheme-len.c: New file.
25438         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25439
25440         New module 'u16-grapheme-len'.
25441         * modules/unigbrk/u16-grapheme-len: New file.
25442         * modules/unigbrk/u16-grapheme-len-tests: New file.
25443         * lib/unigbrk.in.h: Add prototype for new function.
25444         * lib/unigbrk/u16-grapheme-len.c: New file.
25445         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25446
25447         New module 'u32-grapheme-len'.
25448         * modules/unigbrk/u32-grapheme-len: New file.
25449         * modules/unigbrk/u32-grapheme-len-tests: New file.
25450         * lib/unigbrk.in.h: Add prototype for new function.
25451         * lib/unigbrk/u32-grapheme-len.c: New file.
25452         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25453
25454         New module 'u8-grapheme-next'.
25455         * modules/unigbrk/u8-grapheme-next: New file.
25456         * modules/unigbrk/u8-grapheme-next-tests: New file.
25457         * lib/unigbrk.in.h: Add prototype for new function.
25458         * lib/unigbrk/u8-grapheme-next.c: New file.
25459         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25460
25461         New module 'u16-grapheme-next'.
25462         * modules/unigbrk/u16-grapheme-next: New file.
25463         * modules/unigbrk/u16-grapheme-next-tests: New file.
25464         * lib/unigbrk.in.h: Add prototype for new function.
25465         * lib/unigbrk/u16-grapheme-next.c: New file.
25466         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25467
25468         New module 'u32-grapheme-next'.
25469         * modules/unigbrk/u32-grapheme-next: New file.
25470         * modules/unigbrk/u32-grapheme-next-tests: New file.
25471         * lib/unigbrk.in.h: Add prototype for new function.
25472         * lib/unigbrk/u32-grapheme-next.c: New file.
25473         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25474
25475         New module 'u8-grapheme-prev'.
25476         * modules/unigbrk/u8-grapheme-prev: New file.
25477         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25478         * lib/unigbrk.in.h: Add prototype for new function.
25479         * lib/unigbrk/u8-grapheme-prev.c: New file.
25480         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25481
25482         New module 'u16-grapheme-prev'.
25483         * modules/unigbrk/u16-grapheme-prev: New file.
25484         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25485         * lib/unigbrk.in.h: Add prototype for new function.
25486         * lib/unigbrk/u16-grapheme-prev.c: New file.
25487         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25488
25489         New module 'u32-grapheme-prev'.
25490         * modules/unigbrk/u32-grapheme-prev: New file.
25491         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25492         * lib/unigbrk.in.h: Add prototype for new function.
25493         * lib/unigbrk/u32-grapheme-prev.c: New file.
25494         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25495
25496         New module 'u8-grapheme-breaks'.
25497         * modules/unigbrk/u8-grapheme-breaks: New file.
25498         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25499         * lib/unigbrk.in.h: Add prototype for new function.
25500         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25501         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25502
25503         New module 'u16-grapheme-breaks'.
25504         * modules/unigbrk/u16-grapheme-breaks: New file.
25505         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25506         * lib/unigbrk.in.h: Add prototype for new function.
25507         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25508         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25509
25510         New module 'u32-grapheme-breaks'.
25511         * modules/unigbrk/u32-grapheme-breaks: New file.
25512         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25513         * lib/unigbrk.in.h: Add prototype for new function.
25514         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25515         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25516
25517         New module 'ulc-grapheme-breaks'.
25518         * modules/unigbrk/ulc-grapheme-breaks: New file.
25519         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25520         * m4/locale-ar.m4: New file.
25521         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25522         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25523         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25524
25525 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25526
25527         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25528         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25529         modified how this file was generated before I initially submitted
25530         the module, but failed to regenerate it.  This meant that several
25531         of the level2 entries were wrong.
25532         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25533         Remove the division-by-2 that is folded into the table now that
25534         gbrkprop.h has been regenerated properly.  Now -1 entries are
25535         handled correctly.
25536
25537         New module 'unigbrk/uc-gbrk-prop-tests'.
25538         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25539         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25540         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25541         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25542
25543 2011-01-01  Bruno Haible  <bruno@clisp.org>
25544
25545         Avoid use of hexadecimal escapes.
25546         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25547         instead of hexadecimal escapes.
25548
25549 2011-01-01  Jim Meyering  <meyering@redhat.com>
25550
25551         maint: new rule to update copyright year ranges
25552         * Makefile (update-copyright): New rule.
25553
25554         maint: indent with TABs in Makefile
25555         * Makefile: Expand leading sequences of spaces to TABs
25556
25557         version-etc: update the copyright year it reports
25558         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25559
25560 2010-12-31  Bruno Haible  <bruno@clisp.org>
25561
25562         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25563         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25564         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25565         zero.
25566
25567 2010-12-31  Bruno Haible  <bruno@clisp.org>
25568
25569         pwrite: Work around HP-UX 11.11 bug.
25570         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25571         works and set REPLACE_PWRITE if not.
25572         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25573         function.
25574         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25575
25576 2010-12-31  Bruno Haible  <bruno@clisp.org>
25577
25578         pread: Work around HP-UX 11 bugs.
25579         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25580         and set REPLACE_PREAD if not.
25581         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25582
25583 2010-12-31  Eric Blake  <eblake@redhat.com>
25584
25585         nl_langinfo: fix YESEXPR on Irix 6.5
25586         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25587         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25588         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25589         it.
25590
25591 2010-12-31  Bruno Haible  <bruno@clisp.org>
25592
25593         iconv: Document HP-UX 11 bug.
25594         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25595
25596 2010-12-31  Bruno Haible  <bruno@clisp.org>
25597
25598         ldexpl: Fix link error on HP-UX 11.
25599         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25600         LDEXPL_LIBM, using $ISNANL_LIBM.
25601
25602 2010-12-31  Eric Blake  <eblake@redhat.com>
25603
25604         ftello: avoid compilation failure with SunStudio c89
25605         * lib/ftello.c (ftello): Use lseek, not llseek.
25606
25607         tests: avoid failing coreutils tests on cygwin
25608         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25609         (create_exe_shims_): Return 0 when skipping.
25610
25611 2010-12-31  Bruno Haible  <bruno@clisp.org>
25612
25613         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25614         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25615
25616 2010-12-31  Bruno Haible  <bruno@clisp.org>
25617
25618         waitpid: Fix link error in C++ mode.
25619         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25620
25621 2010-12-31  Bruno Haible  <bruno@clisp.org>
25622
25623         isnan: Use GCC built-ins when possible.
25624         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25625         __builtin_isnan.
25626         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25627         (isnan): Define using GCC built-ins for GCC >= 4.0.
25628
25629 2010-12-31  Bruno Haible  <bruno@clisp.org>
25630
25631         isnand: Fix mistake.
25632         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25633         __builtin_isnand.
25634
25635 2010-12-31  Bruno Haible  <bruno@clisp.org>
25636
25637         open: Avoid C++ error on HP-UX 11.
25638         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25639
25640 2010-12-31  Bruno Haible  <bruno@clisp.org>
25641
25642         time_r: Add missing declarations on HP-UX 11.
25643         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25644         instead of HAVE_LOCALTIME_R.
25645         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25646         HAVE_LOCALTIME_R always.
25647         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25648         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25649         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25650         HAVE_LOCALTIME_R.
25651         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25652         * doc/posix-functions/localtime_r.texi: Likewise.
25653
25654 2010-12-29  Eric Blake  <eblake@redhat.com>
25655
25656         mountlist: tweak previous commit
25657         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25658         Reported by Paul Eggert.
25659
25660         mountlist: fix local drive detection on cygwin
25661         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25662         that works for cygwin.
25663
25664 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25665
25666         ftoastr, snprintf: ftoastr + snprintf module
25667         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25668         since the snprintf module now should be good enough here.
25669         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25670         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25671         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25672         GNULIB_SNPRINTF only for the test directory, and the latter
25673         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25674         seems to suffice by itself.
25675
25676 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25677
25678         alloca: one step towards thread-safety
25679         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25680         need for a static variable.  All callers changed.  This does not
25681         make the alloca replacement thread-safe, but it's one step.
25682
25683         tests: minor indenting change
25684         * tests/init.sh: Sync from coreutils housekeeping patch
25685         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25686         to keep lines within 80 columns.
25687
25688 2010-12-28  Jim Meyering  <meyering@redhat.com>
25689
25690         regex: don't infloop on persistent failing calloc
25691         * lib/regexec.c (build_trtable): Return failure indication upon
25692         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25693         In glibc, this was fixed for version 2.13:
25694         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25695
25696 2010-12-28  Bruno Haible  <bruno@clisp.org>
25697             Paul Eggert <eggert@cs.ucla.edu>
25698
25699         linkat: Make implementation robust against system behaviour variations.
25700         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25701         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25702         way, and to -2 if it needs a generic runtime test.
25703         * lib/linkat.c (solaris_optimized_link_immediate,
25704         solaris_optimized_link_follow): New functions.
25705         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25706         (check_same_link): Use it.
25707
25708 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25709
25710         New module 'unigbrk/base'.
25711         * modules/unigbrk/base: New file.
25712         * lib/unigbrk.in.h: New file.
25713
25714         New module 'unigbrk/uc-gbrk-prop'.
25715         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25716         * modules/unigbrk/uc-gbrk-prop: New file.
25717         * lib/unigbrk/gbrkprop.h: New file.
25718         * lib/unigbrk/uc-gbrk-prop.c: New file.
25719
25720         New module 'unigbrk/uc-is-grapheme-break'.
25721         * modules/unigbrk/uc-is-grapheme-break: New file.
25722         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25723         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25724         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25725         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25726         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25727
25728         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25729
25730 2010-12-27  Bruno Haible  <bruno@clisp.org>
25731
25732         linkat test: Avoid failure on Solaris 11 2010-11.
25733         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25734
25735 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25736
25737         utimens: work around glibc rounding bug on more platforms
25738         * lib/utimens.c (fdutimens): Work around rounding bug even if
25739         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25741
25742 2010-12-27  Bruno Haible  <bruno@clisp.org>
25743
25744         select tests: Improve comments.
25745         * tests/test-select.c (do_select): Add comments.
25746
25747 2010-12-27  Bruno Haible  <bruno@clisp.org>
25748
25749         select tests: Safer way of handling timeout.
25750         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25751         at every invocation.
25752
25753 2010-12-27  Bruno Haible  <bruno@clisp.org>
25754
25755         select tests: Use 'bool' where appropriate.
25756         * tests/test-select.c (connect_to_socket): Change argument type to
25757         'bool'.
25758
25759 2010-12-27  Bruno Haible  <bruno@clisp.org>
25760
25761         select tests: Use existing modules.
25762         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25763         (configure.ac): Don't test for unistd.h.
25764         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25765         declared in <unistd.h>.
25766
25767 2010-12-27  Bruno Haible  <bruno@clisp.org>
25768
25769         mbrtowc: Work around a Solaris 7 bug.
25770         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25771         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25772         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25773         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25774         MBRTOWC_NULL_ARG1_BUG.
25775         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25776         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25777         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25778         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25779
25780 2010-12-27  Jim Meyering  <meyering@redhat.com>
25781
25782         read-file.c: tweak syntax
25783         * lib/read-file.c (fread_file): Remove space after "*" in function
25784         definitions.
25785
25786 2010-12-27  Bruno Haible  <bruno@clisp.org>
25787
25788         times test: Avoid gcc warnings on OSF/1.
25789         * tests/test-times.c (main): Cast printf arguments from clock_t to
25790         'long int'.
25791
25792 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25793
25794         utimens: work around glibc rounding bug on older Linux kernels
25795         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25796         on Linux with a glibc whose utimes might not work, then work
25797         around a longstanding glibc bug involving rounding rather than
25798         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25799         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25800
25801 2010-12-26  Bruno Haible  <bruno@clisp.org>
25802
25803         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25804         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25805         _GL_CXXALIAS_SYS.
25806         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25807
25808 2010-12-26  Bruno Haible  <bruno@clisp.org>
25809
25810         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25811         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25812         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25813         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25814         looking for the declaration.
25815         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25816         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25817         problem.
25818         * doc/posix-functions/inet_pton.texi: Likewise.
25819
25820 2010-12-26  Bruno Haible  <bruno@clisp.org>
25821
25822         arpa_inet: Use the common idioms with C++ support.
25823         * lib/arpa_inet.in.h: Include c++defs.h.
25824         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25825         support.
25826         * modules/arpa_inet (Depends-on): Add c++defs.
25827         (Makefile.am): Substitute the contents of c++defs.h.
25828         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25829         * modules/arpa_inet-c++-tests: New file.
25830         * tests/test-arpa_inet-c++.cc: New file.
25831
25832 2010-12-25  Bruno Haible  <bruno@clisp.org>
25833
25834         Fix more C++ link errors on Solaris 8.
25835         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25836         $(LIB_EACCESS).
25837         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25838         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25839         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25840         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25841         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25842
25843 2010-12-25  Bruno Haible  <bruno@clisp.org>
25844
25845         printf-posix: Fix link error when a non-GCC compiler is used.
25846         * lib/stdio.in.h (printf): When not using GCC, override printf
25847         correctly.
25848         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25849
25850 2010-12-25  Bruno Haible  <bruno@clisp.org>
25851
25852         strerror_r-posix: Update doc.
25853         * doc/posix-functions/strerror_r.texi: Update doc about the return
25854         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25855
25856 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25857
25858         utimens: simplify the logic of the previous change
25859         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25860         This should not affect whether the test succeeds or fails.
25861
25862         utimens: configure better on hosts with NFS clock skew
25863         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25864         uses the clock of the local host.  It might use the clock of the
25865         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25867
25868 2010-12-25  Bruno Haible  <bruno@clisp.org>
25869
25870         ptsname test: Avoid failure on Solaris.
25871         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25872         open a pseudo-terminal; don't use BSD-style ptys.
25873         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25874
25875 2010-12-25  Bruno Haible  <bruno@clisp.org>
25876
25877         ptsname: Avoid ERANGE failure on some systems.
25878         * lib/ptsname.c (buffer): Increase size.
25879
25880 2010-12-25  Bruno Haible  <bruno@clisp.org>
25881
25882         rename, renameat: Avoid test failures at NFS mounted locations.
25883         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25884         so that subsequent mkdir calls succeed.
25885
25886 2010-12-25  Bruno Haible  <bruno@clisp.org>
25887
25888         iswblank: Fix C++ link error on Solaris 8.
25889         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25890         _GL_FUNCDECL_SYS.
25891
25892 2010-12-25  Bruno Haible  <bruno@clisp.org>
25893
25894         unistd: Fix C++ link error on Solaris 8.
25895         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25896
25897 2010-12-25  Bruno Haible  <bruno@clisp.org>
25898
25899         readlink doc: Mention an old glibc bug.
25900         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25901
25902 2010-12-25  Bruno Haible  <bruno@clisp.org>
25903
25904         fcntl-h: Fix for use of C++ on glibc systems.
25905         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25906         also on glibc systems in C++ mode.
25907         Reported by Gary V. Vaughan <gary@gnu.org>.
25908
25909 2010-12-25  Bruno Haible  <bruno@clisp.org>
25910
25911         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25912         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25913
25914 2010-12-25  Bruno Haible  <bruno@clisp.org>
25915
25916         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25917         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25918         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25919         test whether truncl works according to ISO C 99 with IEC 60559.
25920         * m4/truncl-ieee.m4: New file.
25921         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25922         m4/signbit.m4.
25923         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25924
25925 2010-12-25  Bruno Haible  <bruno@clisp.org>
25926
25927         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25928         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25929         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25930         test whether ceill works according to ISO C 99 with IEC 60559.
25931         * m4/ceill-ieee.m4: New file.
25932         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25933         m4/signbit.m4.
25934         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25935
25936 2010-12-25  Bruno Haible  <bruno@clisp.org>
25937
25938         Ensure all prerequisites of <wchar.h> are included.
25939         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25940         before <wchar.h>.
25941         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25942         gl_MBRLEN_NUL_RETVAL): Likewise.
25943         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25944         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25945         AC_FUNC_MBRTOWC): Likewise.
25946         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25947         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25948         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25949         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25950         Likewise.
25951         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25952         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25953         (gl_WCHAR_H): Improve comments.
25954         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25955
25956 2010-12-25  Bruno Haible  <bruno@clisp.org>
25957
25958         strtok_r: Fix C syntax error in autoconf macro.
25959         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25960         characters in test program.
25961
25962 2010-12-24  Bruno Haible  <bruno@clisp.org>
25963
25964         ceil, trunc, round: Fix gcc warnings.
25965         * lib/ceil.c (MIN): Undefine before redefining.
25966         * lib/trunc.c (MIN): Likewise.
25967         * lib/round.c (MIN): Likewise.
25968         Include <math.h> first.
25969
25970 2010-12-24  Bruno Haible  <bruno@clisp.org>
25971
25972         select tests: Avoid failures on OSF/1 5.1.
25973         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25974         failure of closing the last socket; it may fail with ECONNRESET.
25975
25976 2010-12-24  Eric Blake  <eblake@redhat.com>
25977
25978         stdint: avoid HP-UX 10.20 preprocessor bug
25979         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25980         than #if.
25981         * tests/test-floor2.c (main): Likewise.
25982         Reported by Peter O'Gorman.
25983
25984         pipe: make obsoletion transition easier
25985         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25986         * modules/pipe (Files): Include revived file.
25987         (Include): Drop reference, to mirror getdate's behavior.
25988
25989 2010-12-24  Bruno Haible  <bruno@clisp.org>
25990
25991         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25992         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25993         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25994         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25995
25996 2010-12-24  Bruno Haible  <bruno@clisp.org>
25997
25998         gethostname: Ensure declaration on NonStop Kernel.
25999         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26000         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26001
26002 2010-12-24  Bruno Haible  <bruno@clisp.org>
26003
26004         sys_select: Ensure all necessary types on NonStop Kernel.
26005         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26006         include <sys/time.h>.
26007         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26008         NonStop Kernel.
26009         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26010
26011 2010-12-24  Bruno Haible  <bruno@clisp.org>
26012
26013         sys_select: Remove unneeded include.
26014         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26015         have <sys/select.h>.
26016
26017 2010-12-24  Bruno Haible  <bruno@clisp.org>
26018
26019         gethostname: Provide a fallback for HOST_NAME_MAX.
26020         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26021         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26022         instead.
26023         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26024
26025 2010-12-24  Bruno Haible  <bruno@clisp.org>
26026
26027         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26028         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26029         (SA_RESTART): Likewise.
26030         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26031
26032 2010-12-24  Bruno Haible  <bruno@clisp.org>
26033
26034         signal: Define NSIG.
26035         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26036         * tests/test-signal.c (nsig): New variable.
26037         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26038
26039 2010-12-24  Bruno Haible  <bruno@clisp.org>
26040
26041         rename, renameat: Avoid test failures on OSF/1 5.1.
26042         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26043         alternative error codes.
26044         * tests/test-renameat.c (main): Likewise.
26045
26046 2010-12-24  Bruno Haible  <bruno@clisp.org>
26047
26048         *printf: Detect large precisions bug on Solaris 10/SPARC.
26049         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26050         by Paul Eggert.
26051         * tests/test-snprintf-posix.h (test_function): Add this test code here
26052         too.
26053         * tests/test-sprintf-posix.h (test_function): Likewise.
26054         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26055         * tests/test-vasprintf-posix.c (test_function): Likewise.
26056         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26057         around by gnulib.
26058         * doc/posix-functions/printf.texi: Likewise.
26059         * doc/posix-functions/snprintf.texi: Likewise.
26060         * doc/posix-functions/sprintf.texi: Likewise.
26061         * doc/posix-functions/vfprintf.texi: Likewise.
26062         * doc/posix-functions/vprintf.texi: Likewise.
26063         * doc/posix-functions/vsnprintf.texi: Likewise.
26064         * doc/posix-functions/vsprintf.texi: Likewise.
26065         * doc/posix-functions/dprintf.texi: Undo last commit.
26066         * doc/posix-functions/vdprintf.texi: Likewise.
26067
26068 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26069
26070         tests: port test-fdutimensat.c to Solaris 8
26071         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26072         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26073         On Solaris 8, it fails with errno == ENOSYS, because there is no
26074         futimens (so it can't use the fd), and there is no lutimens (so it
26075         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26076
26077         vsnprintf: make more consistent with snprintf; doc fixes
26078
26079         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26080         the byte count return problem was promoted from the snprintf-posix
26081         to the snprintf module.
26082         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26083         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26084         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26085         * tests/test-snprintf.c (main): Check the byte count returned.
26086         * tests/test-vsnprintf.c (main): Likewise.
26087
26088 2010-12-23  Eric Blake  <eblake@redhat.com>
26089
26090         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26091         * modules/sigpipe (License): Relax license.
26092
26093 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26094
26095         doc: document Solaris printf bug with large float precisions
26096         * doc/posix-functions/dprintf.texi (dprintf):
26097         * doc/posix-functions/fprintf.texi (fprintf):
26098         * doc/posix-functions/printf.texi (printf):
26099         * doc/posix-functions/snprintf.texi (snprintf):
26100         * doc/posix-functions/sprintf.texi (sprintf):
26101         * doc/posix-functions/vdprintf.texi (vdprintf):
26102         * doc/posix-functions/vfprintf.texi (vfprintf):
26103         * doc/posix-functions/vprintf.texi (vprintf):
26104         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26105         * doc/posix-functions/vsprintf.texi (vsprintf):
26106         Mention that these functions mishandle large floating point
26107         precisions on Solaris 10.  The same bug is also present in Solaris
26108         8, and I assume earlier.  This causes "cd gnulib-tests; make
26109         check" to fail on Solaris 8 (and I assume, later) when building
26110         the latest coreutils, in test-vasprintf-posix's call to
26111         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26112         the wide flavors (e.g., wprintf) so this patch just updates the
26113         documentation for the narrow ones.
26114
26115         test-posixtm.c: add two tests
26116         * tests/test-posixtm.c: Add two tests, to highlight the
26117         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26118         around this bug; this is merely to document it.
26119
26120 2010-12-22  Bruno Haible  <bruno@clisp.org>
26121
26122         getlogin_r: Work around portability problem on OSF/1.
26123         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26124         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26125         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26126         test for a truncated result.
26127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26128         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26129         * modules/getlogin_r (Depends-on): Add memchr.
26130         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26131
26132 2010-12-22  Bruno Haible  <bruno@clisp.org>
26133
26134         ptsname: Avoid test failure on OSF/1 5.1.
26135         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26136         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26137         (same_slave): New function.
26138         (main): Use it to compare ptsname's result with the expected file name.
26139
26140 2010-12-22  Bruno Haible  <bruno@clisp.org>
26141
26142         Port extended stdio modules to HP NonStop Kernel.
26143         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26144         macros.
26145         * lib/fbufmode.c: Update comments.
26146         * lib/fflush.c: Likewise.
26147         * lib/fpurge.c: Likewise.
26148         * lib/freadable.c: Likewise.
26149         * lib/freadahead.c: Likewise.
26150         * lib/freading.c: Likewise.
26151         * lib/freadptr.c: Likewise.
26152         * lib/freadseek.c: Likewise.
26153         * lib/fseeko.c: Likewise.
26154         * lib/fseterr.c: Likewise.
26155         * lib/fwritable.c: Likewise.
26156         * lib/fwriting.c: Likewise.
26157         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26158
26159 2010-12-22  Bruno Haible  <bruno@clisp.org>
26160
26161         ttyname_r: Work around bug on OSF/1 5.1.
26162         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26163         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26164         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26165         present.
26166         * lib/ttyname_r.c (ttyname_r): Update comments.
26167
26168 2010-12-22  Bruno Haible  <bruno@clisp.org>
26169
26170         round: Implement result sign according to IEEE 754.
26171         * lib/round.c (MIN, MINUS_ZERO): New macros.
26172         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26173         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26174         * tests/test-round-ieee.c (main): Likewise.
26175         * tests/test-roundl-ieee.c (main): Likewise.
26176
26177         trunc: Implement result sign according to IEEE 754.
26178         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26179         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26180         * tests/test-trunc2.c: Include minus-zero.h.
26181         (MINUS_ZERO): New macro.
26182         (trunc_reference): Keep in sync with lib/trunc.c.
26183         * tests/test-truncf2.c: Include minus-zero.h.
26184         (MINUS_ZERO): New macro.
26185         (truncf_reference): Keep in sync with lib/trunc.c.
26186         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26187         * tests/test-trunc-ieee.c (main): Likewise.
26188         * tests/test-truncl-ieee.c (main): Likewise.
26189
26190         ceil: Implement result sign according to IEEE 754.
26191         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26192         (FUNC): Return -0.0 for -1 < x < 0.
26193         * tests/test-ceil2.c: Include minus-zero.h.
26194         (MINUS_ZERO): New macro.
26195         (ceil_reference): Keep in sync with lib/ceil.c.
26196         * tests/test-ceilf2.c: Include minus-zero.h.
26197         (MINUS_ZERO): New macro.
26198         (ceilf_reference): Keep in sync with lib/ceil.c.
26199         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26200         * tests/test-ceil-ieee.c (main): Likewise.
26201         * tests/test-ceill-ieee.c (main): Likewise.
26202
26203         floor: Implement result sign according to IEEE 754.
26204         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26205         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26206         * tests/test-floorf2.c (floorf_reference): Likewise.
26207         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26208         * tests/test-floor-ieee.c (main): Likewise.
26209         * tests/test-floorl-ieee.c (main): Likewise.
26210
26211 2010-12-22  Bruno Haible  <bruno@clisp.org>
26212
26213         getaddrinfo: Update doc.
26214         * doc/posix-functions/gai_strerror.texi: Return type is also different
26215         on AIX and HP-UX.
26216
26217 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26218
26219         getaddrinfo, inet_ntop: Update doc for Solaris.
26220         * doc/posix-functions/gai_strerror.texi: Return type is also an
26221         issue on Solaris 9 and earlier.
26222         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26223         on Solaris 10 and earlier.
26224
26225 2010-12-21  Bruno Haible  <bruno@clisp.org>
26226
26227         New module 'roundl-ieee'.
26228         * modules/roundl-ieee: New file.
26229         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26230         test whether roundl works according to ISO C 99 with IEC 60559.
26231         * m4/roundl-ieee.m4: New file.
26232         * modules/roundl-ieee-tests: New file.
26233         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26234         * tests/test-roundl.c (main): Remove signbit tests.
26235         * modules/roundl-tests (Depends-on): Remove signbit.
26236         * doc/posix-functions/roundl.texi: Mention the new module.
26237
26238 2010-12-21  Bruno Haible  <bruno@clisp.org>
26239
26240         New module 'truncl-ieee'.
26241         * modules/truncl-ieee: New file.
26242         * modules/truncl-ieee-tests: New file.
26243         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26244         * tests/test-truncl.c (main): Remove signbit tests.
26245         * modules/truncl-tests (Depends-on): Remove signbit.
26246         * doc/posix-functions/truncl.texi: Mention the new module.
26247
26248 2010-12-21  Bruno Haible  <bruno@clisp.org>
26249
26250         New module 'ceill-ieee'.
26251         * modules/ceill-ieee: New file.
26252         * modules/ceill-ieee-tests: New file.
26253         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26254         * tests/test-ceill.c (main): Remove signbit tests.
26255         * modules/ceill-tests (Depends-on): Remove signbit.
26256         * doc/posix-functions/ceill.texi: Mention the new module.
26257
26258 2010-12-21  Bruno Haible  <bruno@clisp.org>
26259
26260         New module 'floorl-ieee'.
26261         * modules/floorl-ieee: New file.
26262         * modules/floorl-ieee-tests: New file.
26263         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26264         * tests/test-floorl.c (main): Remove signbit tests.
26265         * modules/floorl-tests (Depends-on): Remove signbit.
26266         * doc/posix-functions/floorl.texi: Mention the new module.
26267
26268 2010-12-21  Bruno Haible  <bruno@clisp.org>
26269
26270         New module 'round-ieee'.
26271         * modules/round-ieee: New file.
26272         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26273         whether round works according to ISO C 99 with IEC 60559.
26274         * m4/round-ieee.m4: New file.
26275         * modules/round-ieee-tests: New file.
26276         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26277         * tests/test-round1.c (main): Remove signbit tests.
26278         * modules/round-tests (Depends-on): Remove 'signbit'.
26279         * doc/posix-functions/round.texi: Mention the new module.
26280
26281 2010-12-21  Bruno Haible  <bruno@clisp.org>
26282
26283         New module 'trunc-ieee'.
26284         * modules/trunc-ieee: New file.
26285         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26286         whether trunc works according to ISO C 99 with IEC 60559.
26287         * m4/trunc-ieee.m4: New file.
26288         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26290         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26291         * modules/trunc-ieee-tests: New file.
26292         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26293         * tests/test-trunc1.c (main): Remove signbit tests.
26294         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26295         * doc/posix-functions/trunc.texi: Mention the new module.
26296
26297 2010-12-21  Bruno Haible  <bruno@clisp.org>
26298
26299         New module 'ceil-ieee'.
26300         * modules/ceil-ieee: New file.
26301         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26302         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26303         ISO C 99 with IEC 60559.
26304         * m4/ceil-ieee.m4: New file.
26305         * modules/ceil (Files): Add lib/ceil.c.
26306         (Depends-on): Add 'float'.
26307         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26308         * lib/math.in.h (ceil): New declaration.
26309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26310         REPLACE_CEIL.
26311         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26312         * modules/ceil-ieee-tests: New file.
26313         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26314         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26315         * doc/posix-functions/ceil.texi: Mention the new module.
26316
26317 2010-12-21  Bruno Haible  <bruno@clisp.org>
26318
26319         New module 'floor-ieee'.
26320         * modules/floor-ieee: New file.
26321         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26322         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26323         ISO C 99 with IEC 60559.
26324         * m4/floor-ieee.m4: New file.
26325         * modules/floor (Files): Add lib/floor.c.
26326         (Depends-on): Add 'float'.
26327         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26328         * lib/math.in.h (floor): New declaration.
26329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26330         REPLACE_FLOOR.
26331         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26332         * modules/floor-ieee-tests: New file.
26333         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26334         * tests/test-math-c++.cc: Check the signature of 'floor'.
26335         * doc/posix-functions/floor.texi: Mention the new module.
26336
26337 2010-12-21  Bruno Haible  <bruno@clisp.org>
26338
26339         New module 'roundf-ieee'.
26340         * modules/roundf-ieee: New file.
26341         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26342         test whether roundf works according to ISO C 99 with IEC 60559.
26343         * m4/roundf-ieee.m4: New file.
26344         * modules/roundf-ieee-tests: New file.
26345         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26346         * tests/test-roundf1.c (main): Remove signbit tests.
26347         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26348         * doc/posix-functions/roundf.texi: Mention the new module.
26349
26350 2010-12-21  Bruno Haible  <bruno@clisp.org>
26351
26352         New module 'truncf-ieee'.
26353         * modules/truncf-ieee: New file.
26354         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26355         test whether truncf works according to ISO C 99 with IEC 60559.
26356         * m4/truncf-ieee.m4: New file.
26357         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26358         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26359         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26360         * modules/truncf-ieee-tests: New file.
26361         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26362         * tests/test-truncf1.c (main): Remove signbit tests.
26363         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26364         * doc/posix-functions/truncf.texi: Mention the new module.
26365
26366 2010-12-21  Bruno Haible  <bruno@clisp.org>
26367
26368         New module 'ceilf-ieee'.
26369         * modules/ceilf-ieee: New file.
26370         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26371         test whether ceilf works according to ISO C 99 with IEC 60559.
26372         * m4/ceilf-ieee.m4: New file.
26373         * modules/ceilf-ieee-tests: New file.
26374         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26375         * tests/test-ceilf1.c (main): Remove signbit tests.
26376         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26377         * doc/posix-functions/ceilf.texi: Mention the new module.
26378
26379 2010-12-21  Bruno Haible  <bruno@clisp.org>
26380
26381         New module 'floorf-ieee'.
26382         * modules/floorf-ieee: New file.
26383         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26384         test whether floorf works according to ISO C 99 with IEC 60559.
26385         * m4/floorf-ieee.m4: New file.
26386         * modules/floorf-ieee-tests: New file.
26387         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26388         * tests/test-floorf1.c (main): Remove signbit tests.
26389         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26390         * doc/posix-functions/floorf.texi: Mention the new module.
26391
26392 2010-12-21  Bruno Haible  <bruno@clisp.org>
26393
26394         Support for minus zero in autoconf macros.
26395         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26396         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26397         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26398         * tests/minus-zero.h: Update comments.
26399
26400 2010-12-21  Bruno Haible  <bruno@clisp.org>
26401
26402         Tests for module 'ceil'.
26403         * modules/ceil-tests: New file.
26404         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26405         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26406
26407 2010-12-21  Bruno Haible  <bruno@clisp.org>
26408
26409         Tests for module 'floor'.
26410         * modules/floor-tests: New file.
26411         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26412         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26413
26414 2010-12-21  Bruno Haible  <bruno@clisp.org>
26415
26416         math: Fix indentation.
26417         * lib/math.in.h (floorf): Fix indentation.
26418
26419 2010-12-21  Bruno Haible  <bruno@clisp.org>
26420
26421         Fix cross-compilation guesses on Solaris.
26422         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26423         not match "solaris2.10".
26424         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26425         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26426         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26427
26428 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26429
26430         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26431         This fixes a problem observed with the latest coreutils snapshot
26432         that caused a test to fail on Solaris 8.  src/csplit.c's call
26433         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26434         earlier, instead of returning the number of bytes that would have
26435         been generated; this causes csplit to incorrectly report memory
26436         exhaustion.
26437         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26438         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26439         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26440         comments to match.
26441         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26442         Fix typo in matching older versions of Solaris: "solaris2.10"
26443         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26444         only for guessing while cross-compiling.
26445         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26446
26447 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26448
26449         ftoastr: fix comment again
26450         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26451         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26452         Also, simplify example a bit by using flags = 0.
26453
26454 2010-12-20  Bruno Haible  <bruno@clisp.org>
26455
26456         round*, trunc*: Update documentation regarding glibc.
26457         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26458         * doc/posix-functions/round.texi: Likewise.
26459         * doc/posix-functions/roundl.texi: Likewise.
26460         * doc/posix-functions/truncf.texi: Likewise.
26461         * doc/posix-functions/trunc.texi: Likewise.
26462         * doc/posix-functions/truncl.texi: Likewise.
26463
26464 2010-12-20  Bruno Haible  <bruno@clisp.org>
26465
26466         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26467         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26468         * doc/posix-functions/round.texi: Likewise.
26469         * doc/posix-functions/roundl.texi: Likewise.
26470
26471 2010-12-20  Bruno Haible  <bruno@clisp.org>
26472
26473         ttyname_r: Add missing declaration on HP-UX 11.
26474         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26475         HAVE_TTYNAME_R.
26476         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26477         declared. Set HAVE_TTYNAME_R always.
26478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26479         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26480         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26481         HAVE_TTYNAME_R.
26482         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26483
26484 2010-12-20  Bruno Haible  <bruno@clisp.org>
26485
26486         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26487         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26488         * doc/posix-functions/getlogin_r.texi: Likewise.
26489         * tests/test-getlogin.c: Include <errno.h>.
26490         (main): Avoid test failure on HP-UX 11.11.
26491         * tests/test-getlogin_r.c (main): Likewise.
26492
26493 2010-12-20  Bruno Haible  <bruno@clisp.org>
26494
26495         getlogin_r: Add missing declaration on HP-UX 11.
26496         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26497         declared also when it exists as a function.
26498         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26499
26500 2010-12-20  Bruno Haible  <bruno@clisp.org>
26501
26502         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26503         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26504         through wcrtomb.
26505
26506 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26507
26508         ftoastr: fix comment
26509         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26510         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26511
26512 2010-12-19  Bruno Haible  <bruno@clisp.org>
26513
26514         isnan: Ensure it is a macro.
26515         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26516         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26517         Solaris.
26518
26519 2010-12-19  Bruno Haible  <bruno@clisp.org>
26520
26521         ldexpl test: Fix link error on OSF/1 5.1.
26522         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26523
26524 2010-12-19  Bruno Haible  <bruno@clisp.org>
26525
26526         wctype: Make it work in C++ mode on OSF/1 5.1.
26527         * lib/wctype.in.h (iswblank): Declare but not define here.
26528         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26529         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26530         * modules/wctype (Files): Add lib/iswblank.c.
26531
26532 2010-12-19  Bruno Haible  <bruno@clisp.org>
26533
26534         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26535         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26536         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26537
26538 2010-12-19  Bruno Haible  <bruno@clisp.org>
26539
26540         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26541         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26542         _POSIX_PII_SOCKET.
26543         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26544         * doc/posix-functions/recvfrom.texi: Likewise.
26545         * doc/posix-functions/send.texi: Likewise.
26546         * doc/posix-functions/sendto.texi: Likewise.
26547
26548 2010-12-19  Bruno Haible  <bruno@clisp.org>
26549
26550         tcgetsid: Add missing declaration on OSF/1 5.1.
26551         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26552         HAVE_TCGETSID.
26553         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26554         Don't set HAVE_TCGETSID.
26555         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26556         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26557         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26558         HAVE_TCGETSID.
26559         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26560
26561 2010-12-19  Bruno Haible  <bruno@clisp.org>
26562
26563         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26564         * lib/stdio.in.h: During the include_next statement, let recursive
26565         includes of this file include only the system header file.
26566
26567 2010-12-19  Bruno Haible  <bruno@clisp.org>
26568
26569         iconv_open: Fix regression from 2010-12-04.
26570         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26571         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26572
26573 2010-12-19  Bruno Haible  <bruno@clisp.org>
26574
26575         stdbool test: Avoid a gcc warning.
26576         * tests/test-stdbool.c (main): Fail if e1 is false.
26577         Reported by Jim Meyering.
26578
26579 2010-12-19  Jim Meyering  <meyering@redhat.com>
26580
26581         setenv: restore to working order
26582         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26583         mistakenly removed.
26584         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26585         HAVE_SETENV.
26586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26587         HAVE_SETENV.
26588
26589 2010-12-19  Bruno Haible  <bruno@clisp.org>
26590
26591         Document some different function declarations on OSF/1 5.1.
26592         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26593         * doc/posix-functions/inet_ntop.texi: Likewise.
26594         * doc/posix-functions/gethostname.texi: Likewise.
26595         * lib/unistd.in.h (gethostname): Update comment.
26596
26597 2010-12-19  Bruno Haible  <bruno@clisp.org>
26598
26599         doc: Mention vasprintf-posix module.
26600         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26601         the 'vasprintf-posix' module.
26602         * doc/glibc-functions/vasprintf.texi: Likewise.
26603
26604 2010-12-19  Bruno Haible  <bruno@clisp.org>
26605
26606         unsetenv: Add missing declaration on OSF/1 5.1.
26607         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26608         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26609         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26611         not HAVE_UNSETENV.
26612         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26613         HAVE_UNSETENV.
26614         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26615
26616 2010-12-19  Bruno Haible  <bruno@clisp.org>
26617
26618         setenv: Add missing declaration on OSF/1 5.1.
26619         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26620         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26621         declared. Don't set HAVE_SETENV.
26622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26623         not HAVE_SETENV.
26624         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26625         HAVE_SETENV.
26626         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26627
26628 2010-12-19  Bruno Haible  <bruno@clisp.org>
26629
26630         nl_langinfo tests: Avoid gcc warning.
26631         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26632
26633 2010-12-19  Bruno Haible  <bruno@clisp.org>
26634
26635         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26636         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26637         _GL_CXXALIAS_SYS.
26638
26639 2010-12-19  Bruno Haible  <bruno@clisp.org>
26640
26641         stdbool: Relax test.
26642         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26643         address to 'bool' work in static initializer, for compilers other than
26644         GCC.
26645
26646 2010-12-19  Bruno Haible  <bruno@clisp.org>
26647
26648         ftello: Add missing declaration on OSF/1 5.1.
26649         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26650         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26651         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26652         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26653         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26654
26655 2010-12-19  Bruno Haible  <bruno@clisp.org>
26656
26657         fseeko: Add missing declaration on OSF/1 5.1.
26658         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26659         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26660         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26661         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26662         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26663
26664 2010-12-19  Bruno Haible  <bruno@clisp.org>
26665
26666         fchdir: Add missing declaration on OSF/1 5.1.
26667         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26670         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26671         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26672
26673 2010-12-19  Bruno Haible  <bruno@clisp.org>
26674
26675         relocatable-prog-wrapper: Separate from relocatable-prog.
26676         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26677         uninstall-relocwrapper rule here.
26678         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26679         Reported by Ian Beckwith <ianb@erislabs.net>.
26680
26681 2010-12-19  Bruno Haible  <bruno@clisp.org>
26682
26683         unistr/u8-mbsnlen: Add missing dependency.
26684         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26685         Reported by Ian Beckwith <ianb@erislabs.net>.
26686
26687 2010-12-19  Bruno Haible  <bruno@clisp.org>
26688
26689         iconv: Make it possible again to use this module without 'iconv-h'.
26690         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26691         if it is not defined.
26692         Reported by Ian Beckwith <ianb@erislabs.net>.
26693
26694 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26695
26696         acl: port to Solaris 8 when copying from tmpfs to ufs
26697         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26698         error number.  Problem observed on Solaris 8 with latest
26699         coreutils, with "mv A B", where A is on a tmpfs file system and B
26700         is on a ufs file system.  This caused coreutils' mv/part-symlink
26701         test to fail.
26702
26703         tests: set fail=0 at start
26704         * tests/init.sh (setup_): Move fail=0 initialization here ...
26705         (mktempd_): ... from here, so that tests can rely on fail being
26706         set to 0 initially.  This fixes a problem in coreutils; see:
26707         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26708
26709 2010-12-18  Bruno Haible  <bruno@clisp.org>
26710
26711         memmem-simple: Stylistic changes.
26712         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26713         Fix preprocessor directive indentation.
26714
26715 2010-12-15  Pádraig Brady <P@draigBrady.com>
26716
26717         memmem, memmem-simple: reorganize and expand empty needle check
26718         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26719         functional checks to memmem-simple so that one has a fully functional
26720         memmem by using just this module.
26721         Restrict the performance only check to the memmem module.
26722         Also expand the empty needle check to ensure the correct
26723         pointer is returned, not just a non NULL pointer.
26724         * doc/glibc-functions/memmem.texi: Rearrange the portability
26725         documentation to correlate with the rearranged checks.
26726         Clarify exactly how the memmem and memmem-simple modules
26727         relate to each other.
26728
26729 2010-12-15  Pádraig Brady <P@draigBrady.com>
26730             Bruno Haible  <bruno@clisp.org>
26731
26732         Improve cross-compilation guesses for uClibc.
26733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26734         that uClibc does not have the glibc bug.
26735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26736         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26737
26738 2010-12-14  Eric Blake  <eblake@redhat.com>
26739
26740         configmake: provide fallbacks for oldest supported autotools
26741         * m4/configmake.m4: New file.
26742         * modules/configmake (Files): Ship it.
26743         (configure.ac): Use it to guarantee fallbacks.
26744
26745 2010-12-13  Pádraig Brady <P@draigBrady.com>
26746
26747         read-file: Improve handling of large files
26748         * lib/read-file.c (fread_file): Minimize realloc()s
26749         for regular files, and better manage sizes around SIZE_MAX.
26750
26751 2010-12-13  Eric Blake  <eblake@redhat.com>
26752
26753         cloexec, fcntl: relax license
26754         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26755         consent from all contributors.
26756         * modules/fcntl (License): Likewise.
26757
26758 2010-12-10  Bruno Haible  <bruno@clisp.org>
26759
26760         Tests for module 'pipe-posix'.
26761         * modules/pipe-posix-tests: New file.
26762         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26763
26764 2010-12-10  Bruno Haible  <bruno@clisp.org>
26765
26766         pipe-posix: Make it work in C++ mode.
26767         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26768         (pipe): Use common idiom, not a macro definition.
26769         * lib/pipe.c: New file.
26770         * m4/pipe.m4: New file.
26771         * modules/pipe-posix (Description): Enhance.
26772         (Files): Add lib/pipe.c, m4/pipe.m4.
26773         (configure.ac): Invoke gl_FUNC_PIPE.
26774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26775         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26776         * tests/test-unistd-c++.cc: Check the signature of pipe.
26777
26778 2010-12-10  Bruno Haible  <bruno@clisp.org>
26779
26780         Rename module 'pipe' to 'spawn-pipe'.
26781         * modules/spawn-pipe: New file, renamed from modules/pipe.
26782         (Files, configure.ac, Makefile.am): Update.
26783         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26784         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26785         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26786         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26787         "spawn-pipe.h" instead of "pipe.h".
26788         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26789         to gl_SPAWN_PIPE.
26790         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26791         (Files, Makefile.am): Update.
26792         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26793         Update.
26794         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26795         Include "spawn-pipe.h" instead of "pipe.h".
26796         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26797         * lib/javacomp.c: Likewise.
26798         * lib/javaversion.c: Likewise.
26799         * lib/pipe-filter-gi.c: Likewise.
26800         * lib/pipe-filter-ii.c: Likewise.
26801         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26802         * modules/javacomp (Depends-on): Likewise.
26803         * modules/javaversion (Depends-on): Likewise.
26804         * modules/pipe-filter-gi (Depends-on): Likewise.
26805         * modules/pipe-filter-ii (Depends-on): Likewise.
26806         * MODULES.html.sh (Executing programs): Update.
26807         * NEWS: Mention the change.
26808
26809 2010-12-10  Eric Blake  <eblake@redhat.com>
26810
26811         pipe-posix: new module
26812         * modules/pipe-posix: New file.
26813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26814         (gl_UNISTD_H): Check for declaration.
26815         * modules/unistd (Makefile.am): Substitute it.
26816         * lib/unistd.in.h (pipe): Provide it for mingw.
26817         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26818         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26819
26820 2010-12-07  Bruno Haible  <bruno@clisp.org>
26821
26822         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26823         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26824         u8_strcmp_gnu.
26825         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26826
26827 2010-12-06  Bruno Haible  <bruno@clisp.org>
26828
26829         Update internal documentation.
26830         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26831
26832 2010-12-04  Bruno Haible  <bruno@clisp.org>
26833
26834         Put more information about failed tests into the test return codes.
26835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26836         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26837         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26838         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26839         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26840         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26841         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26842         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26843         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26844         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26846         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26847         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26848         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26849         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26850         returns a bit mask.
26851         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26852         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26853         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26854         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26855         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26856         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26857         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26858         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26859         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26860         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26861         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26862         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26863         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26865         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26866         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26867         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26868         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26869         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26870         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26871         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26872         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26873         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26874         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26875         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26876         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26877         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26878         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26879         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26880         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26881         gl_PRINTF_PRECISION): Likewise.
26882         * m4/regex.m4 (gl_REGEX): Likewise.
26883         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26884         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26885         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26886         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26887         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26889         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26890         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26891         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26892         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26893         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26894         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26895         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26896         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26897         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26898         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26899         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26900         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26901         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26902         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26903         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26904         enumerated value.
26905         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26906
26907 2010-12-04  Bruno Haible  <bruno@clisp.org>
26908
26909         Update for Solaris 11 2010-11.
26910         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26911         Express, released in November 2010.
26912
26913 2010-12-04  Bruno Haible  <bruno@clisp.org>
26914
26915         nproc: Relax license.
26916         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26917         and Paul Eggert.
26918         Requested by Ludovic Courtès <ludo@gnu.org>.
26919
26920 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26921
26922         utimecmp: fine-grained src to nearby coarse-grained dest
26923
26924         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26925         and the source is on a file system with higher-resolution time
26926         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26927         not work, and the time stamps are close together, the algorithm to
26928         determine the exact resolution from the read-back mtime was buggy:
26929         it had a "!=" where it should have had an "==".  This bug has been
26930         in the code ever since it was introduced to gnulib.
26931         Problem reported by Dan Jacobson in
26932         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26933
26934 2010-11-30  Bruno Haible  <bruno@clisp.org>
26935
26936         strerror_r-posix: Fix autoconf test.
26937         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26938
26939 2010-11-28  Bruno Haible  <bruno@clisp.org>
26940             Paul Eggert  <eggert@cs.ucla.edu>
26941
26942         Tests for module 'getdomainname'.
26943         * modules/getdomainname-tests: New file.
26944         * tests/test-getdomainname.c: New file, based on
26945         tests/test-gethostname.c.
26946
26947 2010-11-28  Bruno Haible  <bruno@clisp.org>
26948             Paul Eggert  <eggert@cs.ucla.edu>
26949
26950         getdomainname: Use the system function when possible.
26951         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26952         (getdomainname): Replace if needed. Provide the declaration if it is
26953         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26954         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26955         (getdomainname): When the system has getdomainname, call the system
26956         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26957         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26958         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26959         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26960         the function if its second argument is of type 'int' or if it is found
26961         in libnsl.
26962         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26963         <sys/systeminfo.h> and sysinfo().
26964         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26966         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26967         HAVE_GETDOMAINNAME.
26968         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26969         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26970         * doc/glibc-functions/getdomainname.texi: Document the problems with
26971         the getdomainname declaration.
26972
26973 2010-11-28  Bruno Haible  <bruno@clisp.org>
26974
26975         sys_socket: Ensure ss_family field on AIX.
26976         * lib/sys_socket.in.h (ss_family): New macro definition.
26977         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26978         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26979         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26980         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26981         * modules/sys_socket (Makefile.am): Substitute
26982         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26983         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26984
26985 2010-11-27  Bruno Haible  <bruno@clisp.org>
26986
26987         readline: Improve configure output.
26988         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26989         "checking for readline..." result understandable.
26990
26991 2010-11-27  Bruno Haible  <bruno@clisp.org>
26992
26993         *printf-posix: Detect a bug on Solaris 10/x86.
26994         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26995         for floating-point output.
26996         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26997         directive.
26998         * tests/test-snprintf-posix.h (test_function): Likewise.
26999         * tests/test-sprintf-posix.h (test_function): Likewise.
27000         * tests/test-vasprintf-posix.c (test_function): Likewise.
27001         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27002         * doc/posix-functions/printf.texi: Likewise.
27003         * doc/posix-functions/snprintf.texi: Likewise.
27004         * doc/posix-functions/sprintf.texi: Likewise.
27005         * doc/posix-functions/vfprintf.texi: Likewise.
27006         * doc/posix-functions/vprintf.texi: Likewise.
27007         * doc/posix-functions/vsnprintf.texi: Likewise.
27008         * doc/posix-functions/vsprintf.texi: Likewise.
27009         * doc/glibc-functions/obstack_printf.texi: Likewise.
27010         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27011
27012 2010-11-27  Bruno Haible  <bruno@clisp.org>
27013
27014         Fix link error when module libunistring-optional is in use.
27015         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27016         * modules/striconveha-tests (Makefile.am): Likewise.
27017
27018 2010-11-27  Bruno Haible  <bruno@clisp.org>
27019
27020         regex: Mention link dependencies.
27021         * modules/regex (Link): New section.
27022         * modules/rpmatch (Link): Likewise.
27023         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27024
27025 2010-11-27  Bruno Haible  <bruno@clisp.org>
27026
27027         ftoastr: Fix compilation error on Solaris.
27028         * lib/ftoastr.c: Include <config.h>.
27029
27030 2010-11-27  Bruno Haible  <bruno@clisp.org>
27031
27032         getloadavg: Update documentation.
27033         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27034
27035 2010-11-27  Bruno Haible  <bruno@clisp.org>
27036
27037         sys_socket: Fix test whether the functions are declared.
27038         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27039         not <sys/select.h>.
27040
27041 2010-11-27  Bruno Haible  <bruno@clisp.org>
27042
27043         getpass: Make sure to get system declaration on some platforms.
27044         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27045         gl_USE_SYSTEM_EXTENSIONS.
27046         * modules/getpass (Depends-on): Add extensions.
27047
27048 2010-11-26  Bruno Haible  <bruno@clisp.org>
27049
27050         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27051         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27052         'iconv' module is present.
27053         (ICONV_CONST): New macro.
27054         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27055         ICONV_CONST.
27056         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27057         set ICONV_CONST.
27058         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27059         here.
27060         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27061         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27062         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27063         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27064         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27065         present.
27066
27067 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27068
27069         ftoastr: comment fix
27070         * lib/ftoastr.c: "little" -> "little or no" in comment
27071
27072 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27073
27074         stdint: port to GCC 4.3 + OSX + Octave
27075         On this platform, stdint.h is buggy and defines int64_t to long
27076         long int.  The replacement defined it to long int, causing
27077         problems with C++ style name mangling.  Instead, trust the system
27078         definition if INT64_MAX is defined, and likewise for the unsigned
27079         variant.   Problem reported by Jarno Rajahalme in
27080         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27081         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27082         and don't mess with int64_t and INT64_MAX in this case.
27083         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27084
27085 2010-11-24  Bruno Haible  <bruno@clisp.org>
27086
27087         doc: Corrections regarding MacOS X 10.4 and 10.5.
27088         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27089         MacOS X.
27090         Reported by Simon Josefsson.
27091
27092 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27093
27094         Uninstall ".bin" files installed by relocwrapper.
27095         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27096         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27097         unless it is already there.
27098
27099 2010-11-21  Bruno Haible  <bruno@clisp.org>
27100
27101         Update for NetBSD 5.0.
27102         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27103         NetBSD; the test fails on NetBSD 5.0.
27104         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27105         about NetBSD.
27106
27107 2010-11-21  Bruno Haible  <bruno@clisp.org>
27108
27109         Update for HP-UX 11.23 and HP-UX 11.31.
27110         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27111         HP-UX.
27112
27113 2010-11-21  Bruno Haible  <bruno@clisp.org>
27114
27115         Update for MacOS X 10.5.
27116         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27117         MacOS X; the test fails on MacOS X 10.5.8.
27118         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27119         about MacOS X.
27120
27121 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27122
27123         bootstrap: add bootstrap_sync option.
27124         See discussion at
27125         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27126         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27127         * build-aux/bootstrap: Accept --bootstrap-sync to update
27128         bootstrap if it is not identical to the local gnulib's
27129         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27130         enable this by default.  Accept --no-bootstrap-sync to disable
27131         it.
27132
27133 2010-11-20  Bruno Haible  <bruno@clisp.org>
27134
27135         Ensure that <features.h> is included before __GLIBC__ is tested.
27136         * lib/printf-parse.h: Include <features.h>.
27137         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27138         Reported by Mike Frysinger <vapier@gentoo.org>.
27139
27140         Ensure that <features.h> is included before __GLIBC__ is tested.
27141         * lib/wchar.in.h: Include <features.h>.
27142         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27143         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27144         Reported by Mike Frysinger <vapier@gentoo.org>.
27145
27146         Ensure that <features.h> is included before __GLIBC__ is tested.
27147         * lib/arpa_inet.in.h: Include <features.h>.
27148         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27149         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27150         Reported by Mike Frysinger <vapier@gentoo.org>.
27151
27152         Ensure that <features.h> is included before __GLIBC__ is tested.
27153         * build-aux/link-warning.h: Include <features.h>.
27154         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27155         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27156         Reported by Mike Frysinger <vapier@gentoo.org>.
27157
27158         Ensure that <features.h> is included before __GLIBC__ is tested.
27159         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27160         Reported by Mike Frysinger <vapier@gentoo.org>.
27161
27162 2010-11-20  Bruno Haible  <bruno@clisp.org>
27163
27164         memmem: Fix autoconf test.
27165         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27166
27167 2010-11-20  Bruno Haible  <bruno@clisp.org>
27168
27169         Port to uClibc.
27170         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27171         * lib/fcntl.in.h: Likewise.
27172         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27173         * lib/mbrtowc.c (mbrtowc): Likewise.
27174         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27175         * lib/strerror_r.c: Likewise.
27176         * lib/unistr/u8-strnlen.c: Likewise.
27177         * lib/vasnprintf.c (decimal_point_char): Likewise.
27178         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27179         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27180         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27181         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27182         * tests/test-sigaction.c (handler, main): Likewise.
27183         * lib/freading.h: Treat uClibc like a non-glibc platform.
27184         * lib/freading.c: Likewise.
27185         * lib/gettext.h: Likewise.
27186         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27187         Likewise.
27188         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27189         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27190         * lib/propername.c (proper_name_utf8): Likewise.
27191         * lib/spawn.in.h: Likewise.
27192         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27193         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27194         mem_cd_iconveh_internal): Likewise.
27195         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27196         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27197         strstr, strcasestr): Likewise.
27198         * lib/unicodeio.c (unicode_to_mb): Likewise.
27199         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27200         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27201         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27202         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27203         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27204         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27205         * lib/unistr/u8-stpncpy.c: Likewise.
27206         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27207         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27208         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27209         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27210         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27211         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27212         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27213         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27215         Likewise.
27216         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27217         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27218         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27219         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27220         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27221         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27222         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27223         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27224         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27225         * tests/test-striconveha.c (main): Likewise.
27226         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27227         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27228         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27229         * doc/posix-functions/getline.texi: Likewise.
27230         Reported by Mike Frysinger <vapier@gentoo.org>.
27231
27232 2010-11-20  Bruno Haible  <bruno@clisp.org>
27233
27234         nproc: Fix condition.
27235         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27236         HAVE_PTHREAD_AFFINITY_NP.
27237
27238 2010-11-20  Bruno Haible  <bruno@clisp.org>
27239
27240         Fix a comment.
27241         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27242
27243 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27244
27245         ftoastr: don't assume snprintf
27246         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27247         Implement a subset of snprintf here, by using sprintf safely.
27248         * modules/ftoastr (Depends-on): Remove snprintf.
27249
27250 2010-11-19  Jim Meyering  <meyering@redhat.com>
27251
27252         test-rename.h: fix compilation failure
27253         * tests/test-rename.h (test_rename): Add omitted "}".
27254
27255 2010-11-17  Jim Meyering  <meyering@redhat.com>
27256
27257         maint.mk: add a URL discussing the no-@acronym policy
27258         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27259
27260 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27261
27262         ftoastr: depend on snprintf, improve comments
27263         * lib/ftoastr.c: Also mention Loitsch's draft.
27264         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27265         needed in the current implementation, but it might simplify
27266         speeding up the code later.
27267         * modules/ftoastr: Depend on snprintf; this improves portability.
27268         Suggested by Bruno Haible in the same email.
27269
27270         ftoastr: port to hosts lacking strtof and strtold
27271         Problem reported by Bruno Haible in
27272         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27273         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27274         environment and strtold (and presumably strtof) are not available.
27275         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27276         (configure.ac): Require gl_C99_STRTOLD.
27277
27278 2010-11-18  Bruno Haible  <bruno@clisp.org>
27279
27280         c-strtold: Avoid link error on AIX 7.
27281         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27282         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27283         (gl_C_STRTOLD): Test whether strtold_l exists.
27284         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27285
27286 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27287
27288         intprops: new macro INT_BITS_STRLEN_BOUND
27289         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27290         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27291         not exposed.  Also, it uses a slightly tighter bound than before;
27292         though this makes no practical difference, we might as well be as
27293         tight as we easily can.
27294
27295         ftoastr: new module, for lossless conversion of floats to short strings
27296         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27297         * modules/ftoastr: New files.
27298
27299 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27300
27301         bootstrap: port to Solaris sed
27302         * build-aux/bootstrap (get_version): Port to Solaris sed.
27303         See Ralf Wildenhues's note in
27304         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27305
27306 2010-11-14  Jim Meyering  <meyering@redhat.com>
27307
27308         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27309         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27310         and move definition closer to sole use.
27311
27312 2010-11-13  Jim Meyering  <meyering@redhat.com>
27313
27314         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27315         Now we require at least autoconf-2.59, which means the work-around
27316         is no longer needed.
27317         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27318         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27319         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27320         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27321         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27322
27323 2010-11-13  Bruno Haible  <bruno@clisp.org>
27324
27325         rename, renameat: Avoid test failures at NFS mounted locations.
27326         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27327         functions.
27328         (test_rename): Use assert_nonexistent.
27329         * tests/test-rename.c: Include <dirent.h>.
27330         * tests/test-renameat.c: Likewise.
27331         Reported by Gary V. Vaughan <gary@gnu.org>.
27332
27333         rename, renameat: Document Linux bug with NFS
27334         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27335         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27336         * doc/posix-functions/renameat.texi: Likewise.
27337         Suggested by Eric Blake.
27338
27339 2010-11-13  Bruno Haible  <bruno@clisp.org>
27340
27341         rename test: Add comments.
27342         * tests/test-rename.h (test_rename): Add structure and comments.
27343
27344 2010-11-13  Eric Blake  <eblake@redhat.com>
27345
27346         maintainer-makefile: cover a few more files
27347         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27348         scripts generated within C files, for libvirt.
27349
27350 2010-11-13  Bruno Haible  <bruno@clisp.org>
27351
27352         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27353         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27354         character, return the number of bytes that belong together, not always
27355         1.
27356         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27357         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27358         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27359         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27360         number of bytes of an invalid character.
27361         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27362         (main): Invoke it.
27363         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27364         results.
27365         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27366         malformed byte sequences.
27367         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27368         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27369         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27370         Reported by Ben Pfaff and Paolo Bonzini.
27371
27372 2010-11-13  Bruno Haible  <bruno@clisp.org>
27373
27374         openat: Work around glibc bug with fchownat() and empty file names.
27375         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27376         (gl_FUNC_FCHOWNAT): Invoke it.
27377         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27378         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27379         Reported by Gary V. Vaughan <gary@gnu.org>.
27380
27381 2010-11-13  Bruno Haible  <bruno@clisp.org>
27382
27383         openat: Ensure autoconf macro ordering.
27384         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27385         gl_USE_SYSTEM_EXTENSIONS.
27386         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27387
27388 2010-11-13  Bruno Haible  <bruno@clisp.org>
27389
27390         Update comments.
27391         * lib/unistr/u8-check.c: Update file name in comments.
27392         * lib/unistr/u8-mblen.c: Likewise.
27393         * lib/unistr/u8-prev.c: Likewise.
27394         * lib/unistr/u8-strmblen.c: Likewise.
27395         * lib/unistr/u8-strmbtouc.c: Likewise.
27396
27397 2010-11-13  Jim Meyering  <meyering@redhat.com>
27398
27399         tests: avoid test failure on Solaris 10 due to lack of PATH export
27400         * tests/test-update-copyright.sh: Don't forget to export PATH.
27401
27402         init.sh: ensure that IFS is defined, just in case...
27403         * tests/init.sh (setup_): Ensure that IFS is defined,
27404         so that saving and restoring it works as expected.  This
27405         appears to be useful at least for an old version of dash
27406         from a long time ago (RH 6).  See here for details:
27407         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27408
27409         maint.mk: tighten "test a == b" check
27410         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27411         test to files that contain something like #!/bin/sh.
27412         Without this, coreutils would get two false positives in
27413         the comments of C source files.
27414
27415 2010-11-12  Eric Blake  <eblake@redhat.com>
27416
27417         bootstrap: fix typo in previous attempt
27418         * build-aux/bootstrap (buildreq): Correct the grouping.
27419         Reported by Paul Eggert.
27420
27421         maintainer-makefile: prohibit test x == x
27422         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27423         Based on a report by Matthias Bolte.
27424
27425         bootstrap: allow FreeBSD gzip
27426         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27427         which has no '.' and goes to stderr.
27428         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27429         Reported by Matthias Bolte.
27430
27431         maintainer-makefile: check for i18n setup
27432         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27433         will likely work.
27434
27435 2010-11-12  Bruno Haible  <bruno@clisp.org>
27436
27437         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27438         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27439         * lib/nanosleep.c (nanosleep): Likewise.
27440
27441 2010-11-11  Bruno Haible  <bruno@clisp.org>
27442
27443         fcntl-h: Fix for use of C++ on glibc systems.
27444         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27445         also on glibc systems in C++ mode.
27446         Reported by Gary V. Vaughan <gary@gnu.org>.
27447
27448 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27449
27450         mknod: avoid false failure with dash
27451         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27452
27453 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27454
27455         unlink: Fix "is it should" typo in diagnostic.
27456         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27457         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27458
27459 2010-11-11  Bruno Haible  <bruno@clisp.org>
27460
27461         Tests for module 'strerror_r-posix'.
27462         * modules/strerror_r-posix-tests: New file.
27463         * tests/test-strerror_r.c: New file.
27464         * tests/test-string-c++.cc: Check the signature of strerror_r.
27465
27466         New module 'strerror_r-posix'.
27467         * lib/string.in.h (strerror_r): New declaration.
27468         * lib/strerror_r.c: New file.
27469         * m4/strerror_r.m4: New file.
27470         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27471         of strerror_r.
27472         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27473         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27474         * modules/strerror_r-posix: New file.
27475         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27476         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27477         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27478         portability problems.
27479
27480 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27481
27482         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27483         line is also considered for output. Quoted function name in shell
27484         command, so temporary files for functions like MyClass::operator()
27485         are removed correctly without errors.
27486
27487 2010-11-09  Bruno Haible  <bruno@clisp.org>
27488
27489         * doc/posix-functions/strerror.texi: List more failing platforms.
27490
27491         * doc/posix-functions/strerror.texi: Add a comment.
27492
27493 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27494
27495         fdopendir: fix bug on MacOS X when low on file descriptors
27496
27497         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27498         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27499         All callers changed.
27500         (fdopendir): Invoke save_cwd at the top level, not after using
27501         multiple dup() calls to use up file descriptors.  Then retry
27502         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27503         less than the maximum number of open file descriptors, because
27504         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27505         on Mac OS X 10.6.4 for tar 1.24
27506         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27507         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27508         and for tar 1.25
27509         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27510
27511 2010-11-07  Bruno Haible  <bruno@clisp.org>
27512
27513         vasnprintf: Support I flag on glibc systems.
27514         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27515         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27516         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27517         snprintf function.
27518         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27519         glibc systems.
27520         * tests/test-vasnprintf-posix3.c: New file.
27521         * modules/vasnprintf-posix-tests (Files): Add it.
27522         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27523
27524 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27525
27526         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27527         * MODULES.html.sh: For compiler warnings, use name
27528         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27529
27530 2010-11-05  Eric Blake  <eblake@redhat.com>
27531
27532         ceil, floor: avoid spurious failure with icc
27533         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27534         [denormals-as-zero] when optimizing without -mieee-fp option.
27535         * tests/test-floorf2.c (floorf_reference): Likewise.
27536         * tests/test-ceilf1.c (dummy): New function.
27537         (main): Use it to outsmart icc's optimization.
27538         * tests/test-floorf1.c (dummy, main): Likewise.
27539
27540         tests: require working signbit
27541         * modules/ceilf-tests (Depends-on): Add signbit.
27542         * modules/ceill-tests (Depends-on): Likewise.
27543         * modules/floorf-tests (Depends-on): Likewise.
27544         * modules/floorl-tests (Depends-on): Likewise.
27545         * modules/round-tests (Depends-on): Likewise.
27546         * modules/roundf-tests (Depends-on): Likewise.
27547         * modules/roundl-tests (Depends-on): Likewise.
27548         * modules/trunc-tests (Depends-on): Likewise.
27549         * modules/truncf-tests (Depends-on): Likewise.
27550         * modules/truncl-tests (Depends-on): Likewise.
27551
27552         strtod: work around icc bug
27553         * lib/strtod.c (minus_zero): Define to working value.
27554         (strtod): Use it to avoid icc bug.
27555
27556         copysign: enhance tests
27557         * modules/copysign-tests (Files): Add minus-zero.h.
27558         * tests/test-copysign.c (main): Also test zeros.
27559
27560 2010-11-04  Eric Blake  <eblake@redhat.com>
27561
27562         ceil, floor, round, trunc: enhance tests of -0
27563         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27564         * tests/test-ceill.c (main): Likewise.
27565         * tests/test-floorf1.c (main): Likewise.
27566         * tests/test-floorl.c (main): Likewise.
27567         * tests/test-round1.c (main): Likewise.
27568         * tests/test-roundf1.c (main): Likewise.
27569         * tests/test-roundl.c (main): Likewise.
27570         * tests/test-trunc1.c (main): Likewise.
27571         * tests/test-truncf1.c (main): Likewise.
27572         * tests/test-truncl.c (main): Likewise.
27573
27574 2010-11-04  Eric Blake  <eblake@redhat.com>
27575
27576         frexp, tests: work around ICC bug with -zero
27577         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27578         works with more compilers.
27579         * tests/minus-zero.h: New file.
27580         * modules/ceilf-tests (Files): Include it.
27581         * modules/ceill-tests (Files): Likewise.
27582         * modules/floorf-tests (Files): Likewise.
27583         * modules/floorl-tests (Files): Likewise.
27584         * modules/frexp-nolibm-tests (Files): Likewise.
27585         * modules/frexp-tests (Files): Likewise.
27586         * modules/frexpl-nolibm-tests (Files): Likewise.
27587         * modules/frexpl-tests (Files): Likewise.
27588         * modules/isnan-tests (Files): Likewise.
27589         * modules/isnand-nolibm-tests (Files): Likewise.
27590         * modules/isnand-tests (Files): Likewise.
27591         * modules/isnanf-nolibm-tests (Files): Likewise.
27592         * modules/isnanf-tests (Files): Likewise.
27593         * modules/isnanl-nolibm-tests (Files): Likewise.
27594         * modules/isnanl-tests (Files): Likewise.
27595         * modules/round-tests (Files): Likewise.
27596         * modules/roundf-tests (Files): Likewise.
27597         * modules/roundl-tests (Files): Likewise.
27598         * modules/ldexpl-tests (Files): Likewise.
27599         * modules/signbit-tests (Files): Likewise.
27600         * modules/snprintf-posix-tests (Files): Likewise.
27601         * modules/sprintf-posix-tests (Files): Likewise.
27602         * modules/strtod-tests (Files): Likewise.
27603         * modules/trunc-tests (Files): Likewise.
27604         * modules/truncf-tests (Files): Likewise.
27605         * modules/truncl-tests (Files): Likewise.
27606         * modules/vsnprintf-posix-tests (Files): Likewise.
27607         * modules/vsprintf-posix-tests (Files): Likewise.
27608         * modules/vasnprintf-posix-tests (Files): Likewise.
27609         * modules/vasprintf-posix-tests (Files): Likewise.
27610         * tests/test-ceilf1.c (main): Use it.
27611         * tests/test-ceill.c (main): Likewise.
27612         * tests/test-floorf1.c (main): Likewise.
27613         * tests/test-floorl.c (main): Likewise.
27614         * tests/test-frexp.c (main): Likewise.
27615         * tests/test-frexpl.c (main): Likewise.
27616         * tests/test-isnan.c (main): Likewise.
27617         * tests/test-isnand.h (main): Likewise.
27618         * tests/test-isnanf.h (main): Likewise.
27619         * tests/test-isnanl.h (main): Likewise.
27620         * tests/test-ldexpl.c (main): Likewise.
27621         * tests/test-round.c (main): Likewise.
27622         * tests/test-roundf.c (main): Likewise.
27623         * tests/test-roundl.c (main): Likewise.
27624         * tests/test-signbit.c (test_signbitf, test_signbitd)
27625         (test_signbitl): Likewise.
27626         * tests/test-snprintf-posix.h (test_function): Likewise.
27627         * tests/test-sprintf-posix.h (test_function): Likewise.
27628         * tests/test-strtod.c (main): Likewise.
27629         * tests/test-trunc1.c (main): Likewise.
27630         * tests/test-truncf1.c (main): Likewise.
27631         * tests/test-truncl.c (main): Likewise.
27632
27633         isnanl: work around icc bug
27634         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27635
27636 2010-11-03  Eric Blake  <eblake@redhat.com>
27637
27638         tests: fix compiler warnings
27639         * tests/test-getopt.h (test_getopt): Fix condition.
27640         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27641         * tests/test-pipe2.c (main): Likewise.
27642         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27643
27644         utimens: fix broken m4 test
27645         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27646
27647 2010-10-28  Bruno Haible  <bruno@clisp.org>
27648
27649         posix_spawn*, getdtablesize: Relax license.
27650         * modules/posix_spawn (License): Change to LGPLv2+.
27651         * modules/posix_spawnp (License): Likewise.
27652         * modules/posix_spawn-internal (License): Likewise.
27653         * modules/posix_spawnattr_init (License): Likewise.
27654         * modules/posix_spawnattr_getflags (License): Likewise.
27655         * modules/posix_spawnattr_setflags (License): Likewise.
27656         * modules/posix_spawnattr_getpgroup (License): Likewise.
27657         * modules/posix_spawnattr_setpgroup (License): Likewise.
27658         * modules/posix_spawnattr_getschedparam (License): Likewise.
27659         * modules/posix_spawnattr_setschedparam (License): Likewise.
27660         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27661         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27662         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27663         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27664         * modules/posix_spawnattr_getsigmask (License): Likewise.
27665         * modules/posix_spawnattr_setsigmask (License): Likewise.
27666         * modules/posix_spawnattr_destroy (License): Likewise.
27667         * modules/posix_spawn_file_actions_init (License): Likewise.
27668         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27669         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27670         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27671         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27672         * modules/getdtablesize (License): Likewise.
27673         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27674
27675 2010-10-26  Bruno Haible  <bruno@clisp.org>
27676
27677         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27678         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27679         Cygwin and mingw.
27680         Suggested by Eric Blake.
27681
27682 2010-10-26  Bruno Haible  <bruno@clisp.org>
27683
27684         stdio: Work around compilation error due to renameat() on Solaris 10.
27685         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27686         * lib/renameat.c: Don't include <unistd.h> here.
27687         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27688         Reported by Paul Eggert and Eric Blake.
27689
27690 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27691
27692         renameat: port to Solaris 10, which declares renameat in unistd.h
27693
27694         * lib/renameat.c: Include unistd.h before stdio.h, because
27695         Solaris 10 declares renameat in unistd.h.  Problem encountered
27696         when building GNU tar 1.24 on Solaris 10.
27697
27698 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27699
27700         fdopendir: fix C89 compilation
27701         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27702         compilers.
27703
27704 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27705
27706         inttostr: simplify by removing unnecessary redundancy
27707         * lib/anytostr.c: Don't include verify.h.
27708         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27709         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27710         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27711         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27712         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27713         Likewise.
27714         * modules/inttostr (Depends-on): Remove 'verify'.
27715
27716 2010-10-23  Bruno Haible  <bruno@clisp.org>
27717
27718         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27719         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27720         Reported by Eric Blake.
27721
27722 2010-10-23  Bruno Haible  <bruno@clisp.org>
27723
27724         Tests: Fix LOCALE_JA on MirBSD 10.
27725         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27726         to an UTF-8 locale.
27727         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27728         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27729         Reported by Eric Blake.
27730
27731 2010-10-21  Bruno Haible  <bruno@clisp.org>
27732
27733         nl_langinfo test: Avoid test failure on NetBSD 5.
27734         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27735         Reported by Eric Blake.
27736
27737 2010-10-21  Eric Blake  <eblake@redhat.com>
27738
27739         c-stack: work around libsigsegv 2.8 bug
27740         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27741         overflow on at least PowerPC64.
27742
27743 2010-10-17  Bruno Haible  <bruno@clisp.org>
27744
27745         userspec: Drop redundant file.
27746         * modules/userspec (Files): Remove lib/inttostr.h.
27747
27748 2010-10-17  Bruno Haible  <bruno@clisp.org>
27749
27750         nl_langinfo tests: Silence some warnings.
27751         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27752         Reported by Jim Meyering.
27753
27754 2010-10-17  Bruno Haible  <bruno@clisp.org>
27755
27756         Make use of GCC's attribute __alloc_size__.
27757         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27758         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27759         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27760         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27761         __alloc_size__.
27762         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27763         Suggested by Jim Meyering.
27764
27765 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27766
27767         bootstrap: anchor .gitignore entries.
27768         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27769         with...
27770         (insert_vc_ignore): ... this new function, which prepends `/' to
27771         all .gitignore entries before passing them to
27772         insert_sorted_if_absent.
27773
27774 2010-10-16  Bruno Haible  <bruno@clisp.org>
27775
27776         nextafter: Fix configure check.
27777         * modules/nextafter (configure.ac): Correct expected prototype.
27778
27779 2010-10-16  Bruno Haible  <bruno@clisp.org>
27780
27781         termios: Update documentation.
27782         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27783
27784 2010-10-16  Bruno Haible  <bruno@clisp.org>
27785
27786         tests: Make them compile with TinyCC.
27787         * tests/test-strstr.c (main): Remove parentheses around array
27788         initializer.
27789
27790 2010-10-15  Eric Blake  <eblake@redhat.com>
27791
27792         ignore-value: make header idempotent
27793         * lib/ignore-value.h: Add double-inclusion guards.
27794         Reported by Stefan Berger.
27795
27796 2010-10-15  Jim Meyering  <meyering@redhat.com>
27797
27798         GNUmakefile: handle "stable" target, not "major"
27799         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27800         lists in maint.mk and announce-gen.  Without this, "make stable"
27801         would fail to ensure that $(VERSION) is up to date.
27802
27803 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27804
27805         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27806         & co.
27807
27808 2010-10-14  Bruno Haible  <bruno@clisp.org>
27809
27810         vasnprintf: Don't set errno to 0.
27811         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27812         block that sets it to 0.
27813         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27814
27815 2010-10-14  Bruno Haible  <bruno@clisp.org>
27816
27817         socketlib: Fix.
27818         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27819         gl_PREREQ_SYS_H_WINSOCK2.
27820         Reported by Ian Beckwith <ianb@erislabs.net>.
27821
27822 2010-10-13  Jim Meyering  <meyering@redhat.com>
27823
27824         test-select-stdin.c: avoid warn_unused_result warnings
27825         * tests/test-select-stdin.c: Include "macros.h".
27826         ASSERT that read and fflush succeed.
27827
27828 2010-10-13  Jim Meyering  <meyering@redhat.com>
27829
27830         git-version-gen: do require git-VC'd files in cwd
27831         * build-aux/git-version-gen: Reject a git version string
27832         if there are no commits associated with the current directory.
27833         This avoids an unlikely false-positive (unrelated dir whose parent
27834         repository also contains a tag matching v*), as pointed out
27835         by Giuseppe Scrivano in
27836         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27837
27838 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27839
27840         argv-iter: omit nonconforming declaration
27841         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27842         enum arg_iter_err declaration, which doesn't conform to C99.
27843         Solaris 10 cc warns about this.
27844
27845 2010-10-13  Eric Blake  <eblake@redhat.com>
27846
27847         termios: fix compilation on mingw
27848         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27849         (gl_TERMIOS_H): Adjust it on mingw.
27850         * modules/termios (Makefile.am): Substitute new key.
27851         * lib/termios.in.h (includes): Make include_next conditional.
27852         * doc/posix-headers/termios.texi (termios.h): Update
27853         documentation.
27854         Reported by Daniel P. Berrange.
27855
27856 2010-10-13  Jim Meyering  <meyering@redhat.com>
27857
27858         git-version-gen: don't require that .git/ be in the current dir
27859         * build-aux/git-version-gen: Adjust this script so that it works
27860         when run from any working directory beneath the top-level .git/-
27861         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27862         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27863
27864         test-select: avoid warn_unused_result warnings
27865         * tests/test-select.c: Include "macros.h".
27866         ASSERT that each call to read, write, and pipe succeeds.
27867         While not technically required, also check each "close".
27868         * modules/select-tests (Files): Add tests/macros.h.
27869
27870         test-symlinkat: remove declaration of unused local
27871         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27872
27873         test-inttostr: avoid shadowing warnings
27874         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27875         and use malloc rather than the stack for the same reason as
27876         mentioned in the comment justifying the other allocation.
27877
27878 2010-10-11  Bruno Haible  <bruno@clisp.org>
27879
27880         stdlib: Allow multiple gnulib generated replacements to coexist.
27881         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27882         Reported by Sam Steingold <sds@gnu.org>.
27883
27884 2010-10-11  Jim Meyering  <meyering@redhat.com>
27885
27886         fix a documentation typo
27887         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27888
27889 2010-10-11  Eric Blake  <eblake@redhat.com>
27890
27891         futimens: work around Solaris 11 bug
27892         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27893         * tests/test-futimens.h (test_futimens): Enhance, rather than
27894         weaken test.
27895         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27896
27897 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27898
27899         Indentation.
27900         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27901         higher-level operators more to the left.
27902
27903 2010-10-11  Jim Meyering  <meyering@redhat.com>
27904
27905         test-futimens: avoid unwarranted test failure on Solaris 5.11
27906         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27907         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27908         because it tries to dereference the NULL name argument.
27909
27910 2010-10-11  Bruno Haible  <bruno@clisp.org>
27911
27912         Indentation.
27913         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27914         indentation.
27915
27916 2010-10-11  Jim Meyering  <meyering@redhat.com>
27917
27918         spawn.in.h: make indentation consistent with parentheses
27919         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27920         Make indentation consistent with parentheses.
27921
27922 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27923
27924         Fix mismatched parens in previous commit
27925         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27926         parens.
27927
27928 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27929
27930         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27931
27932         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27933         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27934         * lib/malloca.c: Include "verify.h".
27935         (verify1): Remove, replacing with a verify call.
27936         * lib/relocwrapper.c (verify1): Likewise.
27937         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27938         Likewise.
27939         * modules/malloca (Depends-on): Add 'verify'.
27940         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27941         * modules/vasnprintf (Depends-on): Add 'verify'.
27942         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27943         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27944         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27945         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27946         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27947         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27948         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27949
27950         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27951
27952         Formerly the style was sometimes 2*X - 1, because the C standard
27953         was wrongly thought to disallow ?: in integral constant expressions.
27954         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27955         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27956         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27957         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27958         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27959         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27960         verify that time_t cannot be floating.
27961
27962 2010-10-08  Eric Blake  <eblake@redhat.com>
27963
27964         time: enforce recent POSIX ruling that time_t is integral
27965         * lib/time.in.h (__time_t_must_be_integral): Detect any
27966         problematic systems, allowing the rest of gnulib to assume POSIX.
27967
27968 2010-10-08  Jim Meyering  <meyering@redhat.com>
27969
27970         fdopendir: fix a bug on systems lacking openat and /proc support
27971         OpenBSD 4.7 is one such system.  The most noticeable effect was
27972         failure of any application making nontrivial use of fts: rm, du,
27973         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27974           ./rm: traversal failed: `a': Bad file descriptor
27975         Debugging that, you see that even though FD 6 was closed just
27976         prior to the opendir call in fd_clone_opendir, its resulting
27977         dir->dd_fd was 8, rather than the expected value of 6:
27978
27979         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27980         93                close (fd);
27981         (gdb) n
27982         94                dir = fd_clone_opendir (dupfd);
27983         (gdb) n
27984         95                saved_errno = errno;
27985         (gdb) p dir->dd_fd
27986         $11 = 8
27987
27988         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27989         The problem is that on OpenBSD, fd_clone_opendir has to resort
27990         to using the old-style save/restore CWD mechanism, due to its
27991         lack of openat/proc support, and *that* would steal the FD (6)
27992         that opendir was supposed to use.
27993
27994         The fix is to squirrel away the desired FD so that save_cwd uses a
27995         different one, and then free the dest FD right before calling opendir.
27996         That guarantees opendir will use the required file descriptor.
27997
27998         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27999
28000 2010-10-08  Bruno Haible  <bruno@clisp.org>
28001
28002         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28003         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28004
28005 2010-10-08  Bruno Haible  <bruno@clisp.org>
28006
28007         nanosleep: Make replacement POSIX compliant.
28008         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28009         is out of range.
28010         Reported by Jim Meyering.
28011
28012 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28013
28014         bootstrap: add hook for altering gnulib.mk, for Bison
28015         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28016         the Bison bootstrapping process can rewrite file names and variables
28017         in this file before later parts of 'bootstrap' use the file.
28018         Bison wants to include lib/gnulib.mk from the top-level makefile,
28019         so it needs the file names in this file to be relative to the top
28020         level, not relative to lib; plus it needs variable names to be
28021         rewritten.
28022         (slurp): Use the new function.
28023
28024         bootstrap: reformat for readability
28025         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28026
28027 2010-10-08  Eric Blake  <eblake@redhat.com>
28028
28029         docs: update cygwin progress
28030         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28031         1.7.7.
28032         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28033         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28034         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28035         * doc/posix-functions/carg.texi (carg): Likewise.
28036         * doc/posix-functions/cargf.texi (cargf): Likewise.
28037         * doc/posix-functions/casin.texi (casin): Likewise.
28038         * doc/posix-functions/casinf.texi (casinf): Likewise.
28039         * doc/posix-functions/casinh.texi (casinh): Likewise.
28040         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28041         * doc/posix-functions/catan.texi (catan): Likewise.
28042         * doc/posix-functions/catanf.texi (catanf): Likewise.
28043         * doc/posix-functions/catanh.texi (catanh): Likewise.
28044         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28045         * doc/posix-functions/ccos.texi (ccos): Likewise.
28046         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28047         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28048         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28049         * doc/posix-functions/cexp.texi (cexp): Likewise.
28050         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28051         * doc/posix-functions/cimag.texi (cimag): Likewise.
28052         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28053         * doc/posix-functions/clog.texi (clog): Likewise.
28054         * doc/posix-functions/clogf.texi (clogf): Likewise.
28055         * doc/posix-functions/conj.texi (conj): Likewise.
28056         * doc/posix-functions/conjf.texi (conjf): Likewise.
28057         * doc/posix-functions/cpow.texi (cpow): Likewise.
28058         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28059         * doc/posix-functions/cproj.texi (cproj): Likewise.
28060         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28061         * doc/posix-functions/creal.texi (creal): Likewise.
28062         * doc/posix-functions/crealf.texi (crealf): Likewise.
28063         * doc/posix-functions/csin.texi (csin): Likewise.
28064         * doc/posix-functions/csinf.texi (csinf): Likewise.
28065         * doc/posix-functions/csinh.texi (csinh): Likewise.
28066         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28067         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28068         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28069         * doc/posix-functions/ctan.texi (ctan): Likewise.
28070         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28071         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28072         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28073         * doc/posix-headers/complex.texi (complex.h): Likewise.
28074
28075 2010-10-07  Jim Meyering  <meyering@redhat.com>
28076
28077         parse-datetime: avoid compilation failure on OpenBSD 4.7
28078         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28079         This works around a compilation failure on OpenBSD 4.7:
28080         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28081
28082 2010-10-07  Eric Blake  <eblake@redhat.com>
28083
28084         docs: update cygwin progress
28085         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28086         1.7.6.
28087         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28088         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28089         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28090         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28091         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28092         Likewise.
28093         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28094         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28095         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28096         Likewise.
28097         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28098         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28099         Likewise.
28100         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28101         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28102         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28103         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28104         Likewise.
28105         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28106         Likewise.
28107         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28108
28109         docs: update parse-datetime history
28110         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28111         documentation of this function's history and alternatives.
28112
28113         cygwin: use more robust version check
28114         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28115         exclude an eventual cygwin 1.9.1.
28116         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28117         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28118         (gl_FUNC_STRCASESTR): Likewise.
28119         Reported by Bruno Haible.
28120
28121 2010-10-06  Bruno Haible  <bruno@clisp.org>
28122
28123         string, sys_select: Avoid #including large headers unless necessary.
28124         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28125         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28126         OSF/1, BeOS, Haiku.
28127         Reported by Jim Meyering.
28128
28129 2010-10-05  Eric Blake  <eblake@redhat.com>
28130
28131         memmem, strstr, strcasestr: fix bug with long periodic needle
28132         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28133         periodic needle having false positive.
28134         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28135         and cygwin 1.7.7.
28136         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28138         (gl_FUNC_STRCASESTR): Likewise.
28139         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28140         * tests/test-memmem.c (main): Expose the bug.
28141         * tests/test-strcasestr.c (main): Likewise.
28142         * tests/test-strstr.c (main): Likewise.
28143         * tests/test-c-strcasestr.c (main): Likewise.
28144         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28145         * doc/posix-functions/strstr.texi (strstr): Likewise.
28146         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28147         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28148
28149 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28150
28151         parse-datetime: do some more renaming
28152         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28153         parse_datetime, not get_date.  Mention the renaming.
28154         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28155         in comments.
28156         * m4/bison.m4: Likewise.
28157
28158 2010-10-05  Eric Blake  <eblake@redhat.com>
28159
28160         parse-datetime: better name than get_date
28161         * NEWS: Reword the deprecation notice.
28162         * modules/get_date: Rename to modules/parse-datetime.
28163         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28164         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28165         * lib/get_date.y: Rename to lib/parse-datetime.y.
28166         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28167         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28168         * doc/getdate.texi: Provide fallback wrapper.
28169         * lib/getdate.h: Move guts, and wrap...
28170         * lib/parse-datetime.h: ...new file.
28171         * lib/parse-datetime.y (get_date): Rename...
28172         (parse_datetime): ...to this.
28173         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28174         (gl_PARSE_DATETIME): ...to this.
28175         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28176         documentation.
28177         * modules/getdate (Files): Provide fallback docs and header.
28178         (Notice, Depends-on): Update references.
28179         * tests/test-parse-datetime.c: Likewise.
28180         * DEPENDENCIES: Likewise.
28181         * MODULES.html.sh (Date and time <time.h>): Likewise.
28182         * doc/parse-datetime.texi (Date input formats)
28183         (Authors of parse_datetime): Likewise.
28184         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28185         (Include): Likewise.
28186         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28187         * gnulib-tool: Likewise.
28188         * m4/bison.m4 (gl_BISON): Likewise.
28189         Suggested by Bruno Haible.
28190
28191 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28192
28193         more ports to Solaris tr, which needs [] around ranges
28194         * gnulib-tool: Solaris tr needs [] around ranges.
28195         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28196         * tests/test-pipe-filter-gi1.c (main): Likewise.
28197         * tests/test-pipe-filter-ii1.c (main): Likewise.
28198
28199 2010-10-05  Eric Blake  <eblake@redhat.com>
28200
28201         bootstrap: fix Solaris regression
28202         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28203         around ranges.
28204         Reported by Pádraig Brady.
28205
28206         bootstrap: work with pkg-config
28207         * build-aux/bootstrap (check_versions): Also transliterate - in
28208         prerequisite name.
28209         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28210         prerequisites that were already found, to avoid confusion.
28211         Reported by Justin Clift.
28212
28213         faccessat: remove unused wrappers
28214         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28215         presence of these wrappers dragged in -lgen on Solaris.
28216         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28217
28218 2010-10-05  Jim Meyering  <meyering@redhat.com>
28219
28220         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28221         * Makefile (sc_pragma_columns): New syntax-check rule.
28222
28223 2010-10-04  Bruno Haible  <bruno@clisp.org>
28224
28225         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28226         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28227         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28228         Reported by Bruce Korb and Eric Blake.
28229
28230 2010-10-04  Bruno Haible  <bruno@clisp.org>
28231
28232         threadlib: Make option --with-libpth-prefix work.
28233         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28234         use $LIBPTH, not just -lpth.
28235
28236 2010-10-04  Bruno Haible  <bruno@clisp.org>
28237
28238         Avoid line length limitation from HP NonStop system header files.
28239         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28240         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28241         * lib/ctype.in.h: Likewise.
28242         * lib/dirent.in.h: Likewise.
28243         * lib/errno.in.h: Likewise.
28244         * lib/fcntl.in.h: Likewise.
28245         * lib/float.in.h: Likewise.
28246         * lib/getopt.in.h: Likewise.
28247         * lib/iconv.in.h: Likewise.
28248         * lib/inttypes.in.h: Likewise.
28249         * lib/langinfo.in.h: Likewise.
28250         * lib/locale.in.h: Likewise.
28251         * lib/math.in.h: Likewise.
28252         * lib/netdb.in.h: Likewise.
28253         * lib/netinet_in.in.h: Likewise.
28254         * lib/poll.in.h: Likewise.
28255         * lib/pthread.in.h: Likewise.
28256         * lib/pty.in.h: Likewise.
28257         * lib/sched.in.h: Likewise.
28258         * lib/se-selinux.in.h: Likewise.
28259         * lib/search.in.h: Likewise.
28260         * lib/signal.in.h: Likewise.
28261         * lib/spawn.in.h: Likewise.
28262         * lib/stdarg.in.h: Likewise.
28263         * lib/stddef.in.h: Likewise.
28264         * lib/stdint.in.h: Likewise.
28265         * lib/stdio.in.h: Likewise.
28266         * lib/stdlib.in.h: Likewise.
28267         * lib/string.in.h: Likewise.
28268         * lib/strings.in.h: Likewise.
28269         * lib/sys_file.in.h: Likewise.
28270         * lib/sys_ioctl.in.h: Likewise.
28271         * lib/sys_select.in.h: Likewise.
28272         * lib/sys_socket.in.h: Likewise.
28273         * lib/sys_stat.in.h: Likewise.
28274         * lib/sys_time.in.h: Likewise.
28275         * lib/sys_times.in.h: Likewise.
28276         * lib/sys_utsname.in.h: Likewise.
28277         * lib/sys_wait.in.h: Likewise.
28278         * lib/sysexits.in.h: Likewise.
28279         * lib/termios.in.h: Likewise.
28280         * lib/time.in.h: Likewise.
28281         * lib/unistd.in.h: Likewise.
28282         * lib/wchar.in.h: Likewise.
28283         * lib/wctype.in.h: Likewise.
28284         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28285         * modules/ctype (Makefile.am): Likewise.
28286         * modules/dirent (Makefile.am): Likewise.
28287         * modules/errno (Makefile.am): Likewise.
28288         * modules/fcntl-h (Makefile.am): Likewise.
28289         * modules/float (Makefile.am): Likewise.
28290         * modules/getopt-posix (Makefile.am): Likewise.
28291         * modules/iconv-h (Makefile.am): Likewise.
28292         * modules/inttypes (Makefile.am): Likewise.
28293         * modules/langinfo (Makefile.am): Likewise.
28294         * modules/locale (Makefile.am): Likewise.
28295         * modules/math (Makefile.am): Likewise.
28296         * modules/netdb (Makefile.am): Likewise.
28297         * modules/netinet_in (Makefile.am): Likewise.
28298         * modules/poll-h (Makefile.am): Likewise.
28299         * modules/pthread (Makefile.am): Likewise.
28300         * modules/pty (Makefile.am): Likewise.
28301         * modules/sched (Makefile.am): Likewise.
28302         * modules/search (Makefile.am): Likewise.
28303         * modules/selinux-h (Makefile.am): Likewise.
28304         * modules/signal (Makefile.am): Likewise.
28305         * modules/spawn (Makefile.am): Likewise.
28306         * modules/stdarg (Makefile.am): Likewise.
28307         * modules/stddef (Makefile.am): Likewise.
28308         * modules/stdint (Makefile.am): Likewise.
28309         * modules/stdio (Makefile.am): Likewise.
28310         * modules/stdlib (Makefile.am): Likewise.
28311         * modules/string (Makefile.am): Likewise.
28312         * modules/strings (Makefile.am): Likewise.
28313         * modules/sys_file (Makefile.am): Likewise.
28314         * modules/sys_ioctl (Makefile.am): Likewise.
28315         * modules/sys_select (Makefile.am): Likewise.
28316         * modules/sys_socket (Makefile.am): Likewise.
28317         * modules/sys_stat (Makefile.am): Likewise.
28318         * modules/sys_time (Makefile.am): Likewise.
28319         * modules/sys_times (Makefile.am): Likewise.
28320         * modules/sys_utsname (Makefile.am): Likewise.
28321         * modules/sys_wait (Makefile.am): Likewise.
28322         * modules/sysexits (Makefile.am): Likewise.
28323         * modules/termios (Makefile.am): Likewise.
28324         * modules/time (Makefile.am): Likewise.
28325         * modules/unistd (Makefile.am): Likewise.
28326         * modules/wchar (Makefile.am): Likewise.
28327         * modules/wctype (Makefile.am): Likewise.
28328
28329 2010-10-04  Bruno Haible  <bruno@clisp.org>
28330
28331         read-file tests: Avoid a test failure on NonStop Kernel.
28332         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28333         a regular file.
28334         Reported by Joachim Schmitz <schmitz@hp.com>.
28335
28336 2010-10-03  Bruno Haible  <bruno@clisp.org>
28337
28338         gnulib-tool: Fixes for --create-testdir with --libtool.
28339         * gnulib-tool (func_get_automake_snippet): Don't augment
28340         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28341         an executable.
28342         (func_create_testdir): Handle module 'alloca' like func_import.
28343         Reported by Bruce Korb <bruce.korb@gmail.com>.
28344
28345 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28346
28347         Avoid some lines longer than 80 characters.
28348         * lib/stdint.in.h: Break long comment lines.
28349         * lib/math.in.h: Likewise.
28350         (_GL_NUM_UINT_WORDS): New macro, for readability.
28351         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28352         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28353         * lib/stdlib.in.h: Likewise.
28354         * lib/spawn.in.h: Likewise.
28355         * lib/sys_socket.in.h: Update an URL.
28356         * lib/sys_stat.in.h: Break long line.
28357
28358 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28359
28360         Improve pmccabe2html.
28361         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28362         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28363         when the sources change. Remove the line in the HTML about "Used
28364         ranges" (which implied that there might be other unused ranges),
28365         rename "Resume" to "Summary" (easier to understand for more users).
28366         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28367         styles, and some unnecessary blank lines.
28368
28369 2010-10-03  Bruno Haible  <bruno@clisp.org>
28370             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28371
28372         acl: Add support for ACLs on NonStop Kernel.
28373         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28374         Check whether the function aclsort() exists.
28375         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28376         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28377         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28378         (acl_nontrivial [HAVE_ACLSORT]: New function.
28379         (file_has_acl): Implement for NonStop Kernel.
28380         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28381         (qset_acl): Implement for NonStop Kernel.
28382         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28383         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28384         (main): Implement for NonStop Kernel.
28385         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28386         Kernel. Handle this flavor.
28387         * tests/test-set-mode-acl.sh: Likewise.
28388         * tests/test-copy-acl.sh: Likewise.
28389         * tests/test-copy-file.sh: Likewise.
28390
28391 2010-10-03  Bruno Haible  <bruno@clisp.org>
28392
28393         Info about ACLs on NonStop Kernel.
28394         * doc/acl-resources.txt: Add info about NonStop Kernel.
28395         References by Joachim Schmitz <schmitz@hp.com>.
28396
28397 2010-10-02  Bruno Haible  <bruno@clisp.org>
28398
28399         Define missing EDQUOT on NonStop Kernel.
28400         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28401         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28402         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28403         missing.
28404         * doc/posix-headers/errno.texi: Mention the NSK bug.
28405         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28406         Reported by Joachim Schmitz <schmitz@hp.com>.
28407
28408 2010-10-02  Bruno Haible  <bruno@clisp.org>
28409
28410         Update doc for POSIX:2008.
28411         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28412         Update URL of POSIX specification.
28413
28414 2010-10-02  Bruno Haible  <bruno@clisp.org>
28415
28416         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28417         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28418         from gnulib, not from Automake.
28419
28420 2010-10-02  Bruno Haible  <bruno@clisp.org>
28421
28422         New module 'system-posix'.
28423         * modules/system-posix: New file.
28424         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28425         module is present.
28426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28427         GNULIB_SYSTEM_POSIX.
28428         * modules/stdlib (Depends-on): Remove sys_wait.
28429         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28430         * doc/posix-functions/system.texi: Mention the new module.
28431         * doc/posix-headers/stdlib.texi: Likewise.
28432         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28433         define test_sys_wait_macros to a no-op.
28434         Reported by Sam Steingold <sds@gnu.org>.
28435
28436 2010-09-30  Bruno Haible  <bruno@clisp.org>
28437
28438         More renaming from 'getdate' to 'get_date'.
28439         * doc/get_date.texi: Renamed from doc/getdate.texi.
28440         * modules/get_date (Files): Update.
28441         * MODULES.html.sh (Date and time <time.h>): Update.
28442         * DEPENDENCIES: Update.
28443         * gnulib-tool: Update comment.
28444         * m4/bison.m4 (gl_BISON): Likewise.
28445         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28446
28447 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28448
28449         bootstrap: support ACLOCAL_FLAGS during aclocal
28450         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28451         can add additional -I dir for third-party .m4 files.
28452
28453 2010-09-30  Eric Blake  <eblake@redhat.com>
28454
28455         bootstrap: use glibtoolize on MacOS
28456         * build-aux/bootstrap (check_versions): Convert libtool into
28457         libtoolize.
28458         (tool search): Move libtool check earlier, and look for
28459         glibtoolize for MacOS.
28460         (gnulib_tool_options): Auto-add --libtool when appropriate.
28461         Reported by Justin Clift.
28462
28463         poll: fix typo that broke test on MacOS
28464         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28465         Reported by Justin Clift.
28466
28467         getdate: rename to get_date
28468         Note: getdate.h is not renamed, to minimize client impact.
28469         * modules/getdate: Mark obsolete.  Move old contents...
28470         * modules/get_date: ...to new module name.
28471         * modules/getdate-tests: Move...
28472         * modules/get_date-tests: ...here.
28473         * m4/getdate.m4: Move...
28474         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28475         * lib/getdate.y: Move...
28476         * lib/get_date.y: ...here.
28477         * tests/test-getdate.c: Move...
28478         * tests/test-get_date.c: ...here.
28479         * doc/posix-functions/getdate.texi (getdate): Update name.
28480         * NEWS: Mention the change.
28481
28482 2010-09-29  Bruno Haible  <bruno@clisp.org>
28483
28484         Separate the module 'waitpid' from the module 'sys_wait'.
28485         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28486         present.
28487         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28488         gl_MODULE_INDICATOR_FOR_TESTS.
28489         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28490         * modules/sys_wait (Depends-on): Remove waitpid.
28491         (Makefile.am): Substitute GNULIB_WAITPID.
28492         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28493         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28494         signature only if the 'waitpid' module is present.
28495         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28496         * NEWS: Mention the change.
28497         * modules/grantpt (Depends-on): Add waitpid.
28498         * modules/wait-process (Depends-on): Likewise.
28499
28500 2010-09-29  Bruno Haible  <bruno@clisp.org>
28501
28502         More tests for module 'sys_wait'.
28503         * modules/sys_wait-c++-tests: New file.
28504         * tests/test-sys_wait-c++.cc: New file.
28505         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28506         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28507
28508 2010-09-29  Bruno Haible  <bruno@clisp.org>
28509
28510         New module 'waitpid'.
28511         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28512         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28513         Don't include <process.h>.
28514         (waitpid): Declare only, using modern idiom.
28515         * m4/waitpid.m4: New file.
28516         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28517         * modules/waitpid: New file.
28518         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28519         (Makefile.am): Update.
28520         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28521
28522 2010-09-28  Bruno Haible  <bruno@clisp.org>
28523
28524         poll: Assume ANSI C.
28525         * lib/poll.c (poll): Use an ANSI C declaration.
28526
28527 2010-09-28  Bruno Haible  <bruno@clisp.org>
28528
28529         poll-h: Create poll.h on all platforms.
28530         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28531         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28532         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28533         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28534         (gl_REPLACE_POLL_H): Don't set POLL_H.
28535         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28536         * modules/poll-h (Depends-on): Add include_next.
28537         (Makefile.am): Create poll.h unconditionally. Substitute also
28538         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28539
28540 2010-09-28  Bruno Haible  <bruno@clisp.org>
28541
28542         Tests for module 'poll-h'.
28543         * modules/poll-h-c++-tests: New file.
28544         * tests/test-poll-h-c++.cc: New file.
28545
28546         Tests for module 'poll-h'.
28547         * modules/poll-h-tests: New file.
28548         * tests/test-poll-h.c: New file.
28549
28550 2010-09-28  Bruno Haible  <bruno@clisp.org>
28551
28552         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28553         * modules/poll-h (Depends-on): Add 'extensions'.
28554
28555 2010-09-28  Bruno Haible  <bruno@clisp.org>
28556
28557         New module 'poll-h'.
28558         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28559         (poll): Use modern idiom.
28560         * modules/poll-h: New file.
28561         * modules/poll (Files): Remove lib/poll.in.h.
28562         (Depends-on): Add poll-h.
28563         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28564         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28565         * m4/poll_h.m4: New file.
28566         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28567         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28568         and invoke gl_REPLACE_POLL_H.
28569         * lib/poll.c: Use common idiom.
28570         * tests/test-poll.c: Likewise.
28571         * doc/posix-headers/poll.texi: Mention the poll-h module.
28572         Suggested by Eric Blake.
28573
28574 2010-09-26  Bruno Haible  <bruno@clisp.org>
28575
28576         sys_wait: Implement WSTOPSIG.
28577         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28578         Reported by Simon Josefsson.
28579
28580 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28581
28582         stdlib, sys_wait: Avoid compilation error on mingw.
28583         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28584
28585 2010-09-26  Bruno Haible  <bruno@clisp.org>
28586
28587         stdlib tests: Avoid code duplication.
28588         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28589         * modules/sys_wait-tests (Files): Likewise.
28590         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28591         * tests/test-stdlib.c: Include test-sys_wait.h.
28592         (main): Invoke test_sys_wait_macros.
28593         * tests/test-sys_wait.c: Include test-sys_wait.h.
28594         (main): Invoke test_sys_wait_macros.
28595
28596 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28597
28598         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28599         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28600         sure Windows sockets are working before calling getaddrinfo.
28601         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28602         * doc/gnulib.texi (Windows sockets): Fix typo.
28603
28604 2010-09-25  Bruno Haible  <bruno@clisp.org>
28605
28606         Tests for module 'regex-quote'.
28607         * modules/regex-quote-tests: New file.
28608         * tests/test-regex-quote.c: New file.
28609
28610         New module 'regex-quote'.
28611         * lib/regex-quote.h: New file.
28612         * lib/regex-quote.c: New file.
28613         * modules/regex-quote: New file.
28614         Suggested by Reuben Thomas <rrt@sc3d.org>.
28615
28616 2010-09-24  Bruno Haible  <bruno@clisp.org>
28617
28618         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28619         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28620
28621 2010-09-23  Bruno Haible  <bruno@clisp.org>
28622
28623         setenv: Relax license.
28624         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28625         Blake.
28626         Requested by Eric Blake.
28627
28628 2010-09-22  Bruno Haible  <bruno@clisp.org>
28629
28630         termios: Relax license.
28631         * modules/termios (License): Change to LGPLv2+.
28632         Requested by Eric Blake.
28633
28634 2010-09-22  Bruno Haible  <bruno@clisp.org>
28635
28636         threadlib: Allow the package to change the default to 'no'.
28637         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28638         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28639         Reported by Paul Eggert.
28640
28641 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28642             Bruno Haible  <bruno@clisp.org>
28643
28644         Fix endless loop in mbmemcasecoll.
28645         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28646         byte.
28647         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28648
28649 2010-09-22  Bruno Haible  <bruno@clisp.org>
28650
28651         Tests for module 'memcoll'.
28652         * modules/memcoll-tests: New file.
28653         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28654
28655         memcoll, xmemcoll: Clarify size vs. length.
28656         * modules/memcoll.c (memcoll0): Clarify specification.
28657         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28658         passed to collate_error.
28659
28660 2010-09-22  Bruno Haible  <bruno@clisp.org>
28661
28662         Tests for module 'memcasecmp'.
28663         * modules/memcasecmp-tests: New file.
28664         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28665
28666 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28667
28668         * lib/pthread.in.h: Add split double-inclusion guard, and include
28669         system <pthread.h> if there is one.  Use @@-style as in other
28670         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28671         pthread.h doesn't.
28672         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28673         (pthread_mutexattr_settype, pthread_mutex_trylock):
28674         New static inline functions, if there's no system <pthread.h>.
28675         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28676         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28677         Approximate with mutexes if the system lacks spinlocks, as in
28678         MacOS.
28679         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28680         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28681         @@-style.  Check for spinlocks separately.
28682         (gl_PTHREAD_DEFAULTS): New macro.
28683         * modules/pthread: Redo to use a more typical style for in.h files.
28684
28685 2010-09-21  Eric Blake  <eblake@redhat.com>
28686
28687         net_if: enhance tests
28688         * tests/test-net_if.c (main): Move signature checks earlier.
28689         Print failures to stderr.
28690         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28691         Document the bug that we do not yet fix.
28692
28693 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28694
28695         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28696         about gnulib, not GSS.
28697
28698 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28699
28700         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28701         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28702         for Emacs.
28703         * build-aux/pmccabe2html: Make Makefile.am example code more
28704         cut-and-paste friendly.
28705
28706 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28707
28708         * tests/test-net_if.c: New file.
28709         * modules/net_if-tests: New file.
28710
28711 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28712
28713         pthread: add pthread_spin_destroy
28714         * lib/pthread.in.h (pthread_spin_destroy): New function.
28715
28716 2010-09-19  Bruno Haible  <bruno@clisp.org>
28717
28718         gnulib-tool: Fix --help output.
28719         * gnulib-tool (func_usage): Fix help message.
28720         Reported by Reuben Thomas <rrt@sc3d.org>.
28721
28722 2010-09-18  Jim Meyering  <meyering@redhat.com>
28723
28724         maint.mk: avoid unexpanded \n in two diagnostics
28725         * top/maint.mk (sc_prohibit_always_true_header_tests):
28726         Don't use a literal \n in a halt=... assignment.  It would not be
28727         expanded, and the two \n bytes would appear in the diagnostic output
28728         rather than the desired newline.  Use halt=$$(printf ... instead.
28729         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28730
28731 2010-09-18  Bruno Haible  <bruno@clisp.org>
28732
28733         netinet_in: Doc tweak.
28734         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28735         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28736
28737 2010-09-18  Jim Meyering  <meyering@redhat.com>
28738
28739         init.sh: correct an outdated comment
28740         * tests/init.sh (create_exe_shims_):  s/function/alias/
28741
28742         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28743         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28744         a file named "*.exe" is removed between the glob expansion and the
28745         processing of that oddly named file.
28746
28747 2010-09-17  Eric Blake  <eblake@redhat.com>
28748
28749         mirbsd: add some more support
28750         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28751         in BSD family.
28752         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28753         devices as OpenBSD.
28754         * m4/host-os.m4 (mirbsd): Add MirBSD.
28755
28756         tests: fix unportable assumption on sys/wait.h
28757         * tests/test-sys_wait.c (main): Relax test.
28758         * tests/test-stdlib.c (main): Likewise.
28759
28760         init.sh: accommodate directory with no .exes
28761         * tests/init.sh: Accomodate directory containing only scripts.
28762
28763         tests: avoid compiler warning
28764         * tests/test-stdlib.c (main): Use the variable.
28765
28766         fdutimens, fdutimensat: update signature, again
28767         * lib/utimens.h (gl_futimens): Delete, and move signature...
28768         (fdutimens): ...here.
28769         (fdutimensat): Rearrange signature.
28770         (lutimensat): Rename variable for clarity.
28771         * lib/fdutimensat.c (fdutimensat): Update signature.
28772         * lib/utimens.c (fdutimens): Likewise.
28773         (gl_futimens): Delete.
28774         (utimens, lutimens): Update callers.
28775         * lib/futimens.c (futimens): Likewise.
28776         * tests/test-fdutimensat.c: Likewise.
28777         * tests/test-utimens.c: Likewise.
28778         * tests/test-futimens.h: Update comment.
28779         * NEWS: Mention this.
28780         Suggested by Paul Eggert.
28781
28782 2010-09-17  Bruno Haible  <bruno@clisp.org>
28783
28784         Take over the maintenance of some older macros from Autoconf.
28785         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28786         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28787         GNU Autoconf.
28788         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28789         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28790
28791 2010-09-17  Eric Blake  <eblake@redhat.com>
28792
28793         fdutimensat: drop atflag validation
28794         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28795         with valid fd, to close a race scenario where futimens is
28796         unsupported and FILE was replaced by a symlink.
28797         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28798         accordingly.
28799         Suggested by Paul Eggert.
28800
28801 2010-09-16  Bruno Haible  <bruno@clisp.org>
28802
28803         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28804         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28805
28806 2010-09-16  Bruno Haible  <bruno@clisp.org>
28807
28808         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28809         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28810         login_tty exists.
28811         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28812
28813 2010-09-16  Bruno Haible  <bruno@clisp.org>
28814
28815         login_tty: Make the replacement code work on BSD systems.
28816         * lib/login_tty.c: Include <sys/ioctl.h>.
28817         (login_tty): Use ioctl TIOCSCTTY when available.
28818         * modules/login_tty (Depends-on): Add sys_ioctl.
28819         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28820
28821 2010-09-16  Bruno Haible  <bruno@clisp.org>
28822
28823         login_tty: Stricter unit test.
28824         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28825         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28826         and tcgetsid() after login_tty.
28827         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28828
28829 2010-09-16  Bruno Haible  <bruno@clisp.org>
28830
28831         New module 'tcgetsid'.
28832         * lib/tcgetsid.c: New file.
28833         * m4/tcgetsid.m4: New file.
28834         * modules/tcgetsid: New file.
28835         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28836         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28837         GNULIB_TCGETSID, HAVE_TCGETSID.
28838         * lib/termios.in.h: Include <sys/types.h>.
28839         (tcgetsid): New declaration.
28840         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28841         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28842         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28843         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28844
28845 2010-09-16  Bruno Haible  <bruno@clisp.org>
28846
28847         Tests for module 'termios'.
28848         * modules/termios-c++-tests: New file.
28849         * modules/termios-tests: New file.
28850         * tests/test-termios-c++.cc: New file.
28851         * tests/test-termios.c: New file.
28852
28853         New module 'termios'.
28854         * modules/termios: New file.
28855         * lib/termios.in.h: New file.
28856         * m4/termios_h.m4: New file.
28857         * doc/posix-headers/termios.texi: Mention the new module.
28858
28859 2010-09-16  Eric Blake  <eblake@redhat.com>
28860
28861         fdutimensat: add an atflag parameter
28862         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28863         * lib/utimens.h (fdutimensat): Update prototype.
28864         * tests/test-fdutimensat.c: Adjust test to match.
28865         * NEWS: Document the change.
28866         Suggested by Paul Eggert.
28867
28868 2010-09-16  Bruno Haible  <bruno@clisp.org>
28869
28870         Fix typos in comments.
28871         * lib/striconveh.h: Fix typo in comment.
28872         * lib/login_tty.c (login_tty): Likewise.
28873
28874 2010-09-15  Bruno Haible  <bruno@clisp.org>
28875
28876         stdlib: clarify MirBSD WEXITSTATUS bug
28877         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28878         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28879
28880 2010-09-15  Eric Blake  <eblake@redhat.com>
28881
28882         stdlib: work around MirBSD WEXITSTATUS bug
28883         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28884         * modules/stdlib (Depends-on): Add sys_wait.
28885         * tests/test-sys_wait.c (main): Enhance test.
28886         * tests/test-stdlib.c (main): Likewise.
28887         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28888
28889         docs: mention MacOS issue with WEXITSTATUS(constant)
28890         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28891         issue.
28892         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28893
28894         strnlen: add tests
28895         * modules/strnlen-tests: New file.
28896         * tests/test-strnlen.c: Likewise.
28897
28898 2010-09-14  Bruno Haible  <bruno@clisp.org>
28899
28900         unistr/base: Avoid link errors when module 'libunistring' is also used.
28901         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28902         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28903         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28904         Declare also when HAVE_LIBUNISTRING is set.
28905         Reported by Pádraig Brady <P@draigbrady.com>.
28906
28907 2010-09-14  Eric Blake  <eblake@redhat.com>
28908
28909         test-rawmemchr: make more robust
28910         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28911         (Depends-on, configure.ac): Add needed prerequisites to use it.
28912         * modules/memchr-tests (Files, Depends-on, configure.ac):
28913         Likewise, to avoid implicit reliance on memchr module prereqs.
28914         * tests/test-memchr.c (main): Ensure proper masking.
28915         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28916         reads.
28917
28918         memchr: detect glibc Alpha bug
28919         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28920         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28921         Alpha.
28922         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28923         * tests/test-memchr.c (main): Enhance test.
28924         Reported by Nelson H. F. Beebe.
28925
28926 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28927
28928         fts, getcwd, glob: audit for dirfd returning -1
28929         * lib/fts.c (opendir): Remove #define; no longer used.
28930         (opendirat): New arg PDIR_FD.  All callers changed.
28931         (fts_build, _opendir2): Use new opendirat to avoid the need for
28932         dirfd, or for checking whether dirfd returns a negative value.
28933         Don't use opendir; always use openat followed by fdopendir.
28934         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28935         it.
28936         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28937         returns -1 here.
28938         * modules/fts (Depends-on): Remove dirfd.
28939         * modules/getcwd (Depends-on): Likewise.
28940
28941 2010-09-13  Eric Blake  <eblake@redhat.com>
28942
28943         float: fix broken MirBSD header
28944         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28945         * doc/posix-headers/float.texi (float.h): Document it.
28946
28947 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28948
28949         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28950         * lib/fts.c (opendirat): New arg extra_flags.
28951         (__opendir2): Use it to avoid following symlinks when opening
28952         a directory, if symlinks are not supposed to be followed.  See
28953         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28954
28955         fdopendir: preserve argument fd before returning
28956         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28957         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28958         (fdopendir): Use them, arranging for FD to be open to the same
28959         directory that it was when it started.  (It might be temporarily
28960         closed while fdopendir is running, so this not thread- or
28961         signal-safe.)  Be careful to do the right thing even when file
28962         descriptors are scarce and dup fails with errno == EMFILE.  See
28963         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28964
28965 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28966
28967         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28968         * NEWS: Document change.
28969         * m4/regex.m4: Disable test for regoff_t size.
28970
28971 2010-09-13  Jim Meyering  <meyering@redhat.com>
28972
28973         fts: don't operate on an invalid file descriptor after failed dup
28974         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28975         negative file descriptor.
28976
28977 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28978
28979         savedir: add streamsavedir, deprecate fdsavedir
28980         * NEWS: Mention deprecation of fdsavedir.
28981         * lib/savedir.c (streamsavedir): New extern function, whose name
28982         ends in "savedir" to be consistent with the others.  This differs
28983         from savedirstream in that it doesn't close its argument.  The
28984         next version of GNU tar will use this instead of fdsavedir, to
28985         avoid some race conditions and conserve file descriptors.
28986         (savedirstream): Reimplement as a wrapper around streamsavedir.
28987         (fdsavedir): Add a comment deprecating this function.  As far as
28988         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28989         * lib/savedir.h (streamsavedir): New decl.
28990         (fdsavedir): Add a comment deprecating this.
28991
28992 2010-09-10  Bruno Haible  <bruno@clisp.org>
28993
28994         langinfo: Fix last commit.
28995         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28996         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28997         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28998
28999 2010-09-10  Bruno Haible  <bruno@clisp.org>
29000
29001         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29002         * lib/progreloc.c (O_EXEC): Define fallback.
29003
29004 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29005
29006         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29007         * NEWS: Document recent changes to fcntl-h.
29008         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29009         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29010         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29011         Similarly for O_SEARCH; this last was already true, but not documented.
29012         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29013         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29014         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29015         Likewise.
29016         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29017         is zero, not whether it is defined.
29018         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29019         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29020         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29021
29022 2010-09-10  Bruno Haible  <bruno@clisp.org>
29023
29024         langinfo, nl_langinfo: Fix for IRIX 5.3.
29025         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29026         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29027         HAVE_LANGINFO_YESEXPR.
29028         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29029         HAVE_LANGINFO_YESEXPR.
29030         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29031         HAVE_LANGINFO_T_FMT_AMPM is 0.
29032         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29033         HAVE_LANGINFO_YESEXPR is 0.
29034         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29035         NOEXPR.
29036         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29037         * doc/posix-functions/nl_langinfo.texi: Likewise.
29038         Reported by Eric Blake.
29039
29040 2010-09-10  Bruno Haible  <bruno@clisp.org>
29041
29042         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29043         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29044         on FreeBSD 8.0 and OpenBSD 4.6.
29045         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29046         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29047         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29048         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29049         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29050         ac_includes_default.
29051         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29052
29053 2010-09-09  Eric Blake  <eblake@redhat.com>
29054
29055         strsignal: work around NetBSD bug
29056         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29057         * lib/string.in.h (includes): Likewise.
29058         * doc/posix-functions/strsignal.texi (strsignal): Document the
29059         bug.
29060         Reported by Nelson H. F. Beebe.
29061
29062         gnulib-tool: work with NetBSD /bin/sh
29063         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29064         (func_get_description, func_get_comment, func_get_status)
29065         (func_get_notice, func_get_applicability, func_get_filelist)
29066         (func_get_dependencies, func_get_autoconf_early_snippet)
29067         (func_get_autoconf_snippet, func_get_automake_snippet)
29068         (func_get_include_directive, func_get_link_directive)
29069         (func_get_license, func_get_maintainer, func_import): Avoid
29070         shell syntax errors from parsing syntax extensions.
29071
29072 2010-09-09  Bruno Haible  <bruno@clisp.org>
29073
29074         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29075         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29076         a reliable way to determine whether the 'alias' command works.
29077
29078 2010-09-08  Jim Meyering  <meyering@redhat.com>
29079
29080         init.sh: penalize a set-x-impaired shell; don't disqualify it
29081         * tests/init.sh: Too many shells corrupt application stderr when
29082         you set -x, so we can't afford to disqualify them, since at least
29083         on Irix-6.5, that would disqualify all bourne shells.
29084         Instead, use a two-pass approach.
29085         On the first pass, try to find a shell that meets the stricter
29086         condition that set -x does not corrupt stderr.
29087         If no shell meets the stricter condition, retest each candidate
29088         shell, but without that extra condition.  Finally, when
29089         VERBOSE=yes is requested and set -x might cause trouble, simply
29090         issue a warning and refrain from enabling debug output.
29091
29092 2010-09-08  Eric Blake  <eblake@redhat.com>
29093
29094         unsetenv: fix OpenBSD bug
29095         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29096         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29097         documentation.
29098         Reported by Jim Meyering.
29099
29100         strtod: work around IRIX 6.5 bug
29101         * lib/strtod.c (strtod): Reparse number on shorter string if
29102         exponent parse was invalid.
29103         * tests/test-strtod.c (main): Add check for "0x1p 2".
29104         Reported by Tom G. Christensen.
29105
29106         getopt: optimize previous patch
29107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29108         empty variable.  Speed up awk script.
29109         Reported by Paolo Bonzini.
29110
29111 2010-09-08  Jim Meyering  <meyering@redhat.com>
29112
29113         test.sh: disqualify shells for which set -x corrupts stderr
29114         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29115         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29116         appear in stderr output.  For example, this command:
29117             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29118         prints "P=1" on those two systems:
29119
29120 2010-09-08  Bruno Haible  <bruno@clisp.org>
29121
29122         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29123         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29124         commands, because some shells ignore redirections when there is an
29125         error in the command lookup.
29126         Reported by Eric Blake.
29127
29128 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29129
29130         * lib/regex.h: Fix a mention of `regex_compile' (should be
29131         `re_compile_pattern').
29132         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29133         (re_set_registers): Correct name of parameter in comment.
29134
29135         * doc/regex.texi: Add documentation for missing syntax flags.
29136         Remove commented-out documentation of defunct syntax option
29137         RE_NO_EMPTY_ALTS.
29138         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29139         Add documentation of re_set_registers.
29140         Document trick to re-use a pattern buffer by setting fastmap manually.
29141         Update documentation of struct re_pattern_buffer per public members.
29142         Uncomment documentation of equivalence class operators and
29143         collating symbol operators, since they are now implemented,
29144         Explain leftmost-longest matching in relation to alternatives.
29145         Tidy documentation of substring matching.
29146         Remove POSIX documentation, which is done better in
29147         glibc, and refer the reader there. Keep BSD API documentation, as
29148         that is not readily available elsewhere.
29149
29150 2010-09-07  Eric Blake  <eblake@redhat.com>
29151
29152         getopt: handle POSIXLY_CORRECT set but not exported
29153         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29154         export state of POSIXLY_CORRECT, due to bash set -o posix.
29155         Reported by Dustin J. Mitchell.
29156
29157 2010-09-05  Bruno Haible  <bruno@clisp.org>
29158
29159         gnulib-tool: Highlight the changed options.
29160         * gnulib-tool (func_usage): Display the --import, --add-import,
29161         --remove-import explanations in bold font.
29162
29163 2010-09-06  Karl Berry  <karl@gnu.org>
29164
29165         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29166
29167 2010-09-05  Bruno Haible  <bruno@clisp.org>
29168
29169         uniwidth/width: Update comment.
29170         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29171         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29172
29173 2010-09-05  Bruno Haible  <bruno@clisp.org>
29174
29175         isinf, isnan: Relax license.
29176         * modules/isinf (License): Change from GPL to LGPL, with consent from
29177         Ben Pfaff.
29178         * modules/isnan (License): Likewise.
29179         Requested by Ludovic Courtès.
29180
29181 2010-09-04  Bruno Haible  <bruno@clisp.org>
29182
29183         gnulib-tool: Help migration from --import to --add-import or --update.
29184         * gnulib-tool: Emit a verbose error message when --import is used
29185         without any module name.
29186
29187 2010-09-04  Bruno Haible  <bruno@clisp.org>
29188
29189         Update doc about gnulib-tool.
29190         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29191         'gnulib-tool --update' in more detail.
29192         Reported by Eric Blake.
29193
29194 2010-09-04  Bruno Haible  <bruno@clisp.org>
29195
29196         gnulib-tool: Change --import. New options --add/remove-import.
29197         * gnulib-tool: New options --add-import, --remove-import.
29198         (func_usage): Document them.
29199         (have_associative): Define always.
29200         (func_import): In import mode, don't merge the specified settings with
29201         the cached settings. Implement remove-import mode.
29202         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29203         Explain when to use them versus --import.
29204         (Simple update): Use --add-import instead of --import.
29205         * NEWS: Mention the change.
29206
29207 2010-09-04  Bruno Haible  <bruno@clisp.org>
29208
29209         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29210         separate gnulib.mk.
29211
29212 2010-09-04  Bruno Haible  <bruno@clisp.org>
29213
29214         gnulib-tool: Don't talk about CVS any more.
29215         * gnulib-tool (func_usage, func_import): Write "version control"
29216         instead of CVS.
29217
29218 2010-09-04  Jim Meyering  <meyering@redhat.com>
29219
29220         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29221         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29222         false positives (whose names may be ill-chosen) when searching
29223         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29224         would cause a false-positive.
29225
29226         avoid coreutils "make distcheck" failure
29227         Coreutils tests with an absolute build directory name that contains
29228         a space.  Not quoting this directory name caused a failure.
29229         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29230         * tests/test-vc-list-files-cvs.sh: Likewise.
29231
29232 2010-09-04  Bruno Haible  <bruno@clisp.org>
29233
29234         gnulib-tool: Avoid error when run in a package without Makefile.am.
29235         * gnulib-tool: When collecting the m4dirs in a package that does not
29236         have a Makefile.am, eliminate those directories that contain no
29237         gnulib-cache.m4. Fix expression that counts these directories.
29238
29239 2010-09-04  Bruno Haible  <bruno@clisp.org>
29240
29241         update-copyright test: Improve output when perl is missing or too old.
29242         * tests/test-update-copyright.sh: Move test of Perl version down after
29243         the test whether Perl exists. Provide an explanation relating Perl's
29244         error message to Automake's SKIP: message.
29245
29246 2010-09-04  Bruno Haible  <bruno@clisp.org>
29247
29248         Don't augment PATH in TESTS_ENVIRONMENT.
29249         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29250         set abs_aux_dir instead of augmenting PATH.
29251         * modules/vc-list-files-tests (Makefile.am): Likewise.
29252         * tests/test-update-copyright.sh: Augment PATH here.
29253         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29254         path_prepend_.
29255         * tests/test-vc-list-files-git.sh: Likewise.
29256
29257 2010-09-04  Jim Meyering  <meyering@redhat.com>
29258
29259         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29260         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29261
29262 2010-09-04  Bruno Haible  <bruno@clisp.org>
29263
29264         strdup: Fix compilation error in C++ mode.
29265         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29266         the macro.
29267
29268 2010-09-04  Bruno Haible  <bruno@clisp.org>
29269
29270         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29271         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29272         macro into a function.
29273         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29274
29275 2010-09-04  Bruno Haible  <bruno@clisp.org>
29276
29277         Set PATH_SEPARATOR the same way autoconf does.
29278         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29279         the value of PATH_SEPARATOR the same way autoconf-generated configure
29280         scripts do.
29281         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29282         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29283
29284 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29285
29286         Set PATH_SEPARATOR the same way autoconf does.
29287         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29288         the same way autoconf-generated configure scripts do.
29289         * posix-modules: Likewise.
29290
29291 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29292
29293         hash: fix safe_hasher const typo
29294         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29295         const; otherwise, there is a type error later.
29296
29297 2010-09-02  Jim Meyering  <meyering@redhat.com>
29298
29299         test-update-copyright.sh: require perl 5.8.0
29300         * tests/test-update-copyright.sh: Require 5.8.0,
29301         which Tom G. Christensen has confirmed is adequate,
29302         while 5.6.1 is not.
29303
29304 2010-09-02  Eric Blake  <eblake@redhat.com>
29305
29306         tests: init.sh improvements for re-exec'ing with zsh
29307         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29308         -vx through shell re-exec.
29309         Reported by Tom G. Christensen.
29310
29311         wctype: fix typo in previous commit
29312         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29313         Reported by Ludovic Courtès.
29314
29315 2010-09-02  Jim Meyering  <meyering@redhat.com>
29316
29317         test-update-copyright.sh: skip test if Perl is too old
29318         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29319         Reported by Tom G. Christensen.
29320
29321 2010-09-02  Bruno Haible  <bruno@clisp.org>
29322
29323         wctype: Avoid compilation error on IRIX 6.5.30.
29324         * lib/wctype.in.h (iswblank): Declare with a replacement if
29325         REPLACE_ISWBLANK is set.
29326         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29327         declared. Set REPLACE_ISWBLANK.
29328         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29329         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29330         * doc/posix-headers/wctype.texi: Likewise.
29331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29332
29333 2010-09-01  Bruno Haible  <bruno@clisp.org>
29334
29335         New module 'socketlib'.
29336         * modules/socketlib: New file.
29337         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29338         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29339         * modules/sockets (Depends-on): Add socketlib.
29340         Suggested by Sam Steingold <sds@gnu.org>.
29341
29342 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29343
29344         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29345
29346         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29347         when one needs search access to a directory but not read access.
29348         On systems where it is available, it works in some cases where
29349         O_RDONLY does not, namely on directories that are searchable but
29350         not readable, and which need only to be searchable.  If O_SEARCH
29351         is not available, fall back to the traditional method of using
29352         O_RDONLY.
29353
29354         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29355         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29356         when opening a directory that needs only to be searchable.
29357         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29358         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29359         * lib/openat-proc.c (openat_proc_name): Likewise.
29360         * lib/openat.c (openat_needs_fchdir): Likewise.
29361         * lib/save-cwd.c (save_cwd): Likewise.
29362         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29363
29364 2010-08-28  Bruno Haible  <bruno@clisp.org>
29365
29366         New module 'host-cpu-c-abi'.
29367         * modules/host-cpu-c-abi: New file.
29368         * m4/host-cpu-c-abi.m4: New file, based on part of
29369         clisp/src/m4/general.m4.
29370         Requested by Sam Steingold <sds@gnu.org>.
29371
29372 2010-08-31  Eric Blake  <eblake@redhat.com>
29373         and Jim Meyering  <meyering@redhat.com>
29374
29375         hash: factor, and guard against misbehaving hasher function
29376         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29377         of table->hasher's return value.  Also protect against a hash value
29378         so large that adding it to table->bucket results in a NULL pointer.
29379         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29380         Use it in place of open-coded check-and-abort.
29381
29382 2010-08-30  Bruno Haible  <bruno@clisp.org>
29383
29384         hash: silence spurious clang warning
29385         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29386         Reported by Eric Blake.
29387
29388 2010-08-30  Eric Blake  <eblake@redhat.com>
29389
29390         strstr, memmem, strcasestr: avoid leaked shell message
29391         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29392         FreeBSD.
29393         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29394         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29395
29396         tests: silence clang warning
29397         * tests/test-malloca.c (do_allocation): Avoid dead store.
29398
29399 2010-08-29  Bruno Haible  <bruno@clisp.org>
29400
29401         gettext: Fix recent mistake.
29402         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29403
29404 2010-08-29  Bruno Haible  <bruno@clisp.org>
29405
29406         selinux-h: Offer a --without-selinux option.
29407         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29408         --without-selinux was specified, skip all tests and define
29409         HAVE_SELINUX_SELINUX_H to 0.
29410         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29411         set LIB_SELINUX to empty.
29412         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29413         gl_LIBSELINUX. If --without-selinux was specified, replace
29414         selinux/context.h.
29415         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29416
29417 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29418             Bruno Haible  <bruno@clisp.org>
29419
29420         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29421         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29422         of HAVE_REALLOC.
29423         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29424         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29425         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29426         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29427
29428 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29429             Bruno Haible  <bruno@clisp.org>
29430
29431         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29432         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29433         HAVE_CALLOC.
29434         * lib/xmalloc.c: Update accordingly.
29435         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29436         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29437         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29438
29439 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29440             Bruno Haible  <bruno@clisp.org>
29441
29442         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29443         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29444         HAVE_MALLOC.
29445         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29446         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29447         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29448
29449 2010-08-29  Bruno Haible  <bruno@clisp.org>
29450
29451         Update modules list.
29452         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29453         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29454         (String handling <string.h>): Add astrxfrm.
29455         (File system functions): Add readlinkat.
29456
29457 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29458
29459         Tests for module 'realloc-gnu'.
29460         * modules/realloc-gnu-tests: New file.
29461         * tests/test-realloc-gnu.c: New file.
29462
29463         Tests for module 'calloc-gnu'.
29464         * modules/calloc-gnu-tests: New file.
29465         * tests/test-calloc-gnu.c: New file.
29466
29467         Tests for module 'malloc-gnu'.
29468         * modules/malloc-gnu-tests: New file.
29469         * tests/test-malloc-gnu.c: New file.
29470
29471 2010-08-28  Bruno Haible  <bruno@clisp.org>
29472
29473         Rename module 'realloc' -> 'realloc-gnu'.
29474         * modules/realloc-gnu: New file, copied from modules/realloc.
29475         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29476         obsolete.
29477         * modules/mgetgroups (Depends-on): Update.
29478         * doc/posix-functions/realloc.texi: Update.
29479         * NEWS: Mention the change.
29480
29481         Rename module 'calloc' -> 'calloc-gnu'.
29482         * modules/calloc-gnu: New file, copied from modules/calloc.
29483         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29484         obsolete.
29485         * doc/posix-functions/calloc.texi: Update.
29486         * NEWS: Mention the change.
29487
29488         Rename module 'malloc' -> 'malloc-gnu'.
29489         * modules/malloc-gnu: New file, copied from modules/malloc.
29490         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29491         obsolete.
29492         * modules/argp (Depends-on): Update.
29493         * modules/regex (Depends-on): Update.
29494         * doc/posix-functions/malloc.texi: Update.
29495         * NEWS: Mention the change.
29496
29497 2010-08-28  Eric Blake  <eblake@redhat.com>
29498
29499         pread, pwrite: add missing dependency
29500         * modules/pread (Depends-on): Add extensions.
29501         * modules/pwrite (Depends-on): Likewise.
29502
29503 2010-08-28  Bruno Haible  <bruno@clisp.org>
29504
29505         unistr/u*-strchr: Fix tests dependencies.
29506         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29507         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29508         Reported by Ian Beckwith <ianb@erislabs.net>.
29509
29510 2010-08-28  Bruno Haible  <bruno@clisp.org>
29511
29512         read-file: Don't occupy too much unused memory.
29513         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29514
29515 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29516             Eric Blake  <eblake@redhat.com>
29517             Bruno Haible  <bruno@clisp.org>
29518
29519         read-file: Avoid memory reallocations with regular files.
29520         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29521         (fread_file): With regular files, use the remaining length as the
29522         initial buffer size.  Check against overflow.
29523         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29524         sys_stat.
29525
29526 2010-08-28  Bruno Haible  <bruno@clisp.org>
29527
29528         ftello: Relax license.
29529         * modules/ftello (License): Relax to LGPLv2+.
29530         Reported by Eric Blake.
29531
29532 2010-08-28  Bruno Haible  <bruno@clisp.org>
29533
29534         Avoid relocwrapper link errors due to gnulib replacement functions.
29535         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29536         function.
29537         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29538
29539 2010-08-28  Bruno Haible  <bruno@clisp.org>
29540
29541         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29542         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29543         defined.
29544         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29545         Suggested by Eric Blake.
29546
29547 2010-08-28  Bruno Haible  <bruno@clisp.org>
29548
29549         sys_socket, netdb: Ensure socklen_t gets defined.
29550         * modules/sys_socket (Depends-on): Add socklen.
29551         * modules/netdb (Depends-on): Likewise.
29552         * modules/getaddrinfo (Depends-on): Remove socklen.
29553         * modules/getsockopt (Depends-on): Likewise.
29554         * modules/setsockopt (Depends-on): Likewise.
29555         * tests/test-sys_socket.c: Check that socklen_t is defined.
29556         * tests/test-netdb.c: Likewise.
29557         * m4/socklen.m4: Update comments.
29558         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29559
29560 2010-08-27  Eric Blake  <eblake@redhat.com>
29561
29562         login_tty: add missing dependency
29563         * modules/login_tty (Depends-on): Add pty.
29564
29565 2010-08-26  Eric Blake  <eblake@redhat.com>
29566
29567         lib-symbol-versions: fix m4 quoting
29568         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29569         format for AC_LINK_IFELSE.
29570
29571         glob: fix compile test
29572         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29573
29574         btowc: fix missing file
29575         * modules/btowc (Files): Also ship locale-fr.m4.
29576
29577         lseek: fix link test
29578         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29579         AC_LINK_IFELSE.
29580
29581         include_next: silence autoconf 2.68 warning
29582         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29583         AC_COMPILE_IFELSE as special.
29584         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29585         autoconf < 2.68.
29586
29587         acl: fix compilation test
29588         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29589         AC_COMPILE_IFELSE.
29590
29591 2010-08-26  Bruno Haible  <bruno@clisp.org>
29592
29593         Modernize AC_TRY_RUN invocations.
29594         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29595         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29596         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29597         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29598         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29599         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29600         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29601         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29602         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29603         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29604         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29605         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29606         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29607         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29608         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29609         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29610         gl_MBRLEN_NUL_RETVAL): Likewise.
29611         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29612         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29613         Likewise.
29614         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29615         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29616         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29617         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29618         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29619         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29620         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29621         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29622         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29623         Likewise.
29624         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29625         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29626         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29627         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29628         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29629         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29630         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29631         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29632         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29634
29635 2010-08-26  Bruno Haible  <bruno@clisp.org>
29636
29637         Modernize AC_TRY_LINK invocations.
29638         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29639         AC_TRY_LINK.
29640         * m4/argp.m4 (gl_ARGP): Likewise.
29641         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29642         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29643         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29644         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29645         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29646         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29647         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29648         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29649         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29650         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29651         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29652         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29653         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29654         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29655         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29656         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29657         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29658         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29659         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29660         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29661         Likewise.
29662         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29663         Likewise.
29664         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29665         Likewise.
29666         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29667         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29668         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29669         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29670         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29671         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29672         * m4/servent.m4 (gl_SERVENT): Likewise.
29673         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29674         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29675         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29676         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29677         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29678         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29679         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29680         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29681         * modules/tsearch-tests (configure.ac): Likewise.
29682
29683 2010-08-26  Bruno Haible  <bruno@clisp.org>
29684
29685         Modernize AC_TRY_COMPILE invocations.
29686         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29687         AC_TRY_COMPILE.
29688         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29689         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29690         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29691         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29692         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29693         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29694         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29695         * m4/lock.m4 (gl_LOCK): Likewise.
29696         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29697         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29698         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29699         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29700         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29701         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29702         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29703         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29704         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29705         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29706         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29707         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29708         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29709         extraneous semicolon.
29710
29711 2010-08-26  Jim Meyering  <meyering@redhat.com>
29712
29713         stat-time: relax license LGPL
29714         * modules/stat-time (License): Change from GPL to LGPL,
29715         with consent from all contributors, for use in libguile.
29716         Requested by Ludovic Courtès.
29717
29718 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29719
29720         poll: return immediately on POLLHUP.
29721         * lib/poll.c (poll): Always set timeout before wait_timeout is
29722         computed.
29723
29724 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29725
29726         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29727         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29728         rmdir ("dir/.//"), unlinkat.
29729
29730 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29731
29732         stdbool: avoid spurious failure with modern xlc
29733         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29734
29735 2010-08-24  Bruno Haible  <bruno@clisp.org>
29736
29737         getloadavg: simplify code
29738         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29739         gl_have_func. Update comments.
29740
29741 2010-08-24  Eric Blake  <eblake@redhat.com>
29742
29743         getloadavg: don't define SVR4 on cygwin
29744         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29745         only define SVR4 when -lkvm is required.
29746         Reported by Yaakov Selkowitz.
29747
29748 2010-08-24  Bruno Haible  <bruno@clisp.org>
29749
29750         priv-set: fix comment
29751         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29752
29753 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29754
29755         priv-set: fix comments
29756         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29757         to match code, as suggested by David Bartley in:
29758         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29759
29760 2010-08-23  Eric Blake  <eblake@redhat.com>
29761
29762         stdbool: avoid rejecting clang
29763         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29764         * tests/test-stdbool.c: Enable more tests if using the system
29765         <stdbool.h> instead of the gnulib replacement.
29766         (main): Move xlc bug test to a runtime test for all compilers.
29767         Reported by Anders Kaseorg.
29768
29769         argz: fix shell quoting issue
29770         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29771         Reported by Charles Wilson.
29772
29773 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29774             Erik Faye-Lund <kusmabite@gmail.com>
29775
29776         poll, select: handle ERROR_BROKEN_PIPE.
29777         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29778         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29779         * lib/select.c (win32_compute_revents): Do not mark a pipe
29780         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29781
29782 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29783
29784         fts: allow compilation with C++
29785         * lib/fts_.h: Specify extern "C" linkage with C++.
29786
29787 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29788
29789         Fix gnulib-tool sed script de-commentation for AIX sed.
29790         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29791         sed.
29792
29793 2010-08-17  Eric Blake  <eblake@redhat.com>
29794
29795         test-stddef: test for (some) offsetof bugs
29796         * tests/test-stddef.c: Enhance test to ensure correct type of
29797         offsetof.
29798         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29799         that we are not fixing at this time.
29800
29801 2010-08-15  Bruno Haible  <bruno@clisp.org>
29802
29803         stpncpy: Allow stpncpy to be defined as a macro.
29804         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29805         if it's already correctly declared.
29806         * lib/string.in.h (stpncpy): Undefine before redefining.
29807         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29808
29809 2010-08-14  Bruno Haible  <bruno@clisp.org>
29810
29811         Rename module 'memxfrm' to 'amemxfrm'.
29812         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29813         (amemxfrm): Renamed from memxfrm.
29814         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29815         (amemxfrm): Renamed from memxfrm.
29816         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29817         * NEWS: Mention the change.
29818         * MODULES.html.sh (String handling <string.h>): Update.
29819         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29820         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29821         * lib/unicase/u16-casexfrm.c: Likewise.
29822         * lib/unicase/u32-casexfrm.c: Likewise.
29823         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29824         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29825         * lib/uninorm/u16-normxfrm.c: Likewise.
29826         * lib/uninorm/u32-normxfrm.c: Likewise.
29827         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29828         memxfrm.
29829         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29830         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29831         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29832         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29833         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29834         Suggested by Paul Eggert.
29835
29836 2010-08-14  Bruno Haible  <bruno@clisp.org>
29837
29838         Tests for module 'astrxfrm'.
29839         * modules/astrxfrm-tests: New file.
29840         * tests/test-astrxfrm.c: New file.
29841
29842         New module 'astrxfrm'.
29843         * lib/astrxfrm.h: New file.
29844         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29845         * modules/astrxfrm: New file.
29846
29847 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29848
29849         regex: Tweak doc.
29850         * doc/regex.texi (Overview): Don't mention regex.c.
29851         (GNU Regular Expression Compiling): Likewise.
29852         (Match-end-of-line Operator): Mention 'not_eol'.
29853
29854 2010-08-14  Brian Gough  <bjg@gnu.org>
29855             Bruno Haible  <bruno@clisp.org>
29856
29857         git-merge-changelog: add doc relating to use with bzr and hg.
29858         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29859
29860 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29861
29862         pthread: fix pthread.h creation for srcdir != builddir
29863         * modules/pthread (Makefile.am): Fix the rule to work also in a
29864         non-srcdir build.
29865
29866 2010-08-13  Karl Berry  <karl@gnu.org>
29867
29868         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29869         * doc/posix-*/*: force line break before @url of POSIX
29870         specifications.
29871         Suggested by Werner Lemberg.
29872
29873 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29874
29875         strtod: fix const diagnostic
29876         * lib/strtod.c (strtod): Don't assign const char * to char *,
29877         as this elicits a warning from GCC when warnings are enabled.
29878
29879 2010-08-10  Pádraig Brady <P@draigbrady.com>
29880         and Eric Blake  <eblake@redhat.com>
29881
29882         copy-acl: ignore ENOTSUP on HP-UX
29883         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29884         so that it is available for HP-UX.
29885         * lib/copy-acl.c (qcopy_acl): Use it.
29886         Reported by Patrick M. Callahan.
29887
29888 2010-08-10  Eric Blake  <eblake@redhat.com>
29889
29890         open, chown: relax license
29891         * modules/open (License): Change to LGPLv2+, with consent by all
29892         authors, for use in augeas.
29893         * modules/chown (License): Likewise.
29894         * modules/lchown (Likewise): Likewise.
29895         Requested by Adam Stokes.
29896
29897 2010-08-09  Karl Berry  <karl@gnu.org>
29898
29899         * build-aux/ar-lib: new file, import from Automake.
29900         * config/srclist.txt: autocheck for updates.
29901
29902 2010-08-09  Eric Blake  <eblake@redhat.com>
29903
29904         readlinkat: adjust client modules
29905         * modules/areadlinkat (Depends-on): Use readlinkat, not
29906         symlinkat.
29907         * modules/areadlinkat-with-size (Depends-on): Likewise.
29908
29909         mknod: be more vocal about danger of running tests as root
29910         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29911         root, since that is just asking for problems.
29912         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29913
29914         readlinkat: split into its own module
29915         * modules/symlinkat: Split readlinkat...
29916         * modules/readlinkat: ...into separate module.
29917         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29918         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29919         * lib/symlinkat.c (readlinkat): Move...
29920         * lib/readlinkat.c: ...into new file.
29921         * modules/symlinkat-tests: Split readlinkat test...
29922         * modules/readlinkat-tests: ...into separate module.
29923         * tests/test-symlinkat.c: Split...
29924         * tests/test-readlinkat.c: ...into new file.
29925         * NEWS: Document the split.
29926         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29927         * lib/unistd.in.h (readlinkat): Likewise.
29928         Suggested by Bruno Haible.
29929
29930 2010-08-08  Bruno Haible  <bruno@clisp.org>
29931
29932         memxfrm: Speed up.
29933         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29934         that usually only one call to strxfrm is necessary for each string
29935         part.
29936         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29937
29938 2010-08-07  Karl Berry  <karl@gnu.org>
29939
29940         * doc/posix-headers/limits.texi,
29941         * doc/posix-functions/malloc.texi,
29942         * doc/posix-functions/strsignal.texi: missing @item.
29943         * doc/ld-version-script.texi: spurious leading i.
29944         * doc/regex.texi (Interval Operators): no commas inside @var.
29945
29946 2010-08-01  Bruno Haible  <bruno@clisp.org>
29947
29948         Integrate the regex documentation.
29949         * doc/gnulib.texi: Define 'cn' index.
29950         (Regular expressions): New a chapter that includes regex.texi and
29951         regexprops-generic.texi.
29952         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29953         syntax.
29954
29955         Whitespace cleanup.
29956         * doc/regex.texi: Remove trailing spaces.
29957
29958         Add regex documentation.
29959         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29960         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29961         Written by Kathy A. Hargreaves and Karl Berry.
29962
29963 2010-08-01  Bruno Haible  <bruno@clisp.org>
29964
29965         link: Update documentation.
29966         * doc/posix-functions/link.texi: Update regarding Solaris.
29967
29968 2010-07-31  Bruno Haible  <bruno@clisp.org>
29969
29970         Update modules list.
29971         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29972         (String handling <string.h>): Add memcmp2, memxfrm.
29973         (Container data structures): Add xlist, xsublist, xoset.
29974         (Core language properties): Add alignof, unused-parameter.
29975         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29976         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29977         (Unibyte characters <ctype.h>): New section.
29978         (String handling <string.h>): New section.
29979         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29980         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29981         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29982         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29983         tan, tanh, tanl, y0, y1, yn.
29984         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29985         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29986         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29987         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29988         unlockpt, vdprintf, vdprintf-posix.
29989         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29990         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29991         xconcat-filename.
29992         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29993         getdtablesize, pipe2, pipe2-safer.
29994         (Security): New section.
29995         (Networking functions): Add accept4.
29996         (Signal handling): Add sigpipe.
29997         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29998         mbmemcasecoll.
29999         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30000         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30001         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30002         pipe-filter-ii.
30003         (Misc): Add argp-version-etc, login_tty, parse-duration.
30004
30005 2010-07-31  Bruno Haible  <bruno@clisp.org>
30006
30007         Improve doc in MODULES.html.
30008         * modules/linkat (Description): Add the word "function".
30009         * modules/mkfifo (Description): Likewise.
30010         * modules/mknod (Description): Likewise.
30011         * modules/remove (Description): Likewise.
30012         * modules/renameat (Description): Likewise.
30013         * modules/stat (Description): Likewise.
30014         * modules/symlink (Description): Likewise.
30015         * modules/unlink (Description): Likewise.
30016
30017 2010-07-31  Bruno Haible  <bruno@clisp.org>
30018
30019         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30020         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30021         option --enable/disable-c++ instead of --enable/disable-cxx.
30022         * NEWS: Mention the change.
30023
30024 2010-07-31  Bruno Haible  <bruno@clisp.org>
30025
30026         readlink, areadlink: Relax test a bit.
30027         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30028         alternative to ENOTDIR.
30029         * tests/test-areadlink.h (test_areadlink): Likewise.
30030         Reported by Rainer Tammer.
30031
30032 2010-07-31  Bruno Haible  <bruno@clisp.org>
30033
30034         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30035         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30036         character, perform the search using U_STRCHR.
30037         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30038         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30039         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30040         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30041         Suggested by Paolo Bonzini.
30042
30043 2010-07-31  Bruno Haible  <bruno@clisp.org>
30044
30045         unistr/u*-strstr: Fix dependencies.
30046         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30047         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30048         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30049
30050 2010-07-31  Bruno Haible  <bruno@clisp.org>
30051
30052         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30053         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30054         the beginning of the loop.
30055         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30056         cases in 'switch' statement.
30057
30058         unistr/u8-strchr: Fix several bugs.
30059         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30060         the string. When not found, return NULL, not a pointer near the end.
30061
30062         More tests for unistr/u8-strchr.
30063         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30064         that the function does not read past the first occurrence of the byte
30065         being searched.
30066         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30067         * tests/unistr/test-u16-strchr.c (main): New function.
30068         * tests/unistr/test-u32-strchr.c (main): New function.
30069
30070 2010-07-31  Bruno Haible  <bruno@clisp.org>
30071
30072         posix-modules: Ignore backup files of documentation files.
30073         * posix-modules: grep only through files named *.texi.
30074
30075 2010-07-31  Bruno Haible  <bruno@clisp.org>
30076
30077         symlinkat: Fix documentation.
30078         * doc/posix-functions/readlinkat.texi: Fix module name.
30079
30080 2010-07-31  Bruno Haible  <bruno@clisp.org>
30081
30082         fchownat: Replace also when chown has the trailing slash bug.
30083         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30084         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30085         introduced on 2010-04-10.
30086         Reported by Rainer Tammer.
30087
30088 2010-07-31  Bruno Haible  <bruno@clisp.org>
30089
30090         linkat: Work around AIX 7.1 bug.
30091         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30092         whether linkat handles trailing slash correctly. If not, replace linkat
30093         and define LINKAT_TRAILING_SLASH_BUG.
30094         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30095         check whether (fd1,file1) points to a directory if file1 or file2 ends
30096         in a slash. Code taken from lib/link.c.
30097         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30098         Reported by Rainer Tammer.
30099
30100 2010-07-31  Bruno Haible  <bruno@clisp.org>
30101
30102         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30103         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30104         This disables an xlc optimization that was causing wrong test results.
30105         Reported by Rainer Tammer.
30106
30107 2010-07-31  Bruno Haible  <bruno@clisp.org>
30108
30109         iconv: Work around AIX 6.1..7.1 bug.
30110         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30111         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30112         cross-compiling, guess no on all versions of AIX.
30113         Reported by Rainer Tammer.
30114
30115 2010-07-31  Bruno Haible  <bruno@clisp.org>
30116
30117         readlink: Relax test a bit.
30118         * tests/test-readlink.h (test_readlink): Allow different errno value
30119         when readlink is called with a file name that ends in / and refers to
30120         a file.
30121         Suggested by Eric Blake.
30122         Reported by Rainer Tammer.
30123
30124 2010-07-31  Bruno Haible  <bruno@clisp.org>
30125
30126         copysign: Does not require -lm on glibc systems.
30127         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30128         gl_COMMON_DOUBLE_MATHFUNC.
30129         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30130
30131 2010-07-31  Bruno Haible  <bruno@clisp.org>
30132
30133         duplocale: Work around AIX 7.1 bug.
30134         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30135         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30136         * lib/duplocale.c (rpl_duplocale): Update comment.
30137         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30138         Reported by Rainer Tammer.
30139
30140 2010-07-30  Bruno Haible  <bruno@clisp.org>
30141
30142         dirfd: Avoid link error on AIX 7.1.
30143         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30144         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30145         exist, set REPLACE_DIRFD.
30146         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30147         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30148         * doc/posix-functions/dirfd.texi: Update.
30149         Reported by Rainer Tammer.
30150
30151 2010-07-30  Eric Blake  <eblake@redhat.com>
30152
30153         strtod: next round of AIX fixes
30154         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30155         exponent.
30156         * tests/test-strtod.c (main): Enhance tests.
30157         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30158         Reported by Rainer Tammer.
30159
30160         futimens: fix configure check
30161         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30162         Reported by Bruno Haible.
30163
30164 2010-07-30  Bruno Haible  <bruno@clisp.org>
30165
30166         getline: Update regarding AIX.
30167         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30168         Reported by Rainer Tammer.
30169
30170 2010-07-30  Bruno Haible  <bruno@clisp.org>
30171
30172         wcwidth: Drop replacement on AIX 7.
30173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30174         AIX 7.
30175         Reported by Rainer Tammer.
30176
30177 2010-07-30  Bruno Haible  <bruno@clisp.org>
30178
30179         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30180         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30181         a 'char *'.
30182         Reported by Rainer Tammer.
30183
30184 2010-07-30  Bruno Haible  <bruno@clisp.org>
30185
30186         unlink: Update regarding AIX.
30187         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30188         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30189         Reported by Rainer Tammer.
30190
30191 2010-07-30  Bruno Haible  <bruno@clisp.org>
30192
30193         symlink: Update regarding AIX.
30194         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30195         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30196         Reported by Rainer Tammer.
30197
30198 2010-07-30  Bruno Haible  <bruno@clisp.org>
30199
30200         strndup: Update regarding AIX.
30201         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30202         AIX 7.
30203         Reported by Rainer Tammer.
30204
30205 2010-07-30  Bruno Haible  <bruno@clisp.org>
30206
30207         stat: Update regarding AIX.
30208         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30209         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30210         Reported by Rainer Tammer.
30211
30212 2010-07-30  Bruno Haible  <bruno@clisp.org>
30213
30214         truncl: Fix autoconf test.
30215         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30216         whether truncl works.
30217         Reported by Rainer Tammer.
30218
30219 2010-07-30  Bruno Haible  <bruno@clisp.org>
30220
30221         round: Update regarding AIX.
30222         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30223         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30224         Reported by Rainer Tammer.
30225
30226 2010-07-30  Bruno Haible  <bruno@clisp.org>
30227
30228         rename: Update regarding AIX.
30229         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30230         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30231         Reported by Rainer Tammer.
30232
30233 2010-07-30  Bruno Haible  <bruno@clisp.org>
30234
30235         printf.m4: Update regarding AIX.
30236         * m4/printf.m4: Update comments regarding AIX.
30237         Reported by Rainer Tammer.
30238
30239 2010-07-30  Bruno Haible  <bruno@clisp.org>
30240
30241         iconv: Update regarding AIX.
30242         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30243         AIX 7.
30244         Reported by Rainer Tammer.
30245
30246 2010-07-30  Bruno Haible  <bruno@clisp.org>
30247
30248         getopt: Update regarding AIX.
30249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30250         no on AIX.
30251         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30252         Reported by Rainer Tammer.
30253
30254 2010-07-30  Bruno Haible  <bruno@clisp.org>
30255
30256         ldexpl; Update regarding AIX.
30257         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30258         on AIX 7.
30259         Reported by Rainer Tammer.
30260
30261 2010-07-30  Bruno Haible  <bruno@clisp.org>
30262
30263         frexpl: Update regarding AIX.
30264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30265         on AIX 7.
30266         Reported by Rainer Tammer.
30267
30268 2010-07-30  Bruno Haible  <bruno@clisp.org>
30269
30270         open, fopen: Update regarding AIX.
30271         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30272         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30273         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30274         * doc/posix-functions/fopen.texi: Likewise.
30275         Reported by Rainer Tammer.
30276
30277 2010-07-30  Bruno Haible  <bruno@clisp.org>
30278
30279         chown: Update doc regarding AIX.
30280         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30281         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30282         Reported by Rainer Tammer.
30283
30284 2010-07-30  Eric Blake  <eblake@redhat.com>
30285
30286         strtod: fix bug in replacement function on AIX
30287         * lib/strtod.c (strtod): Special case broken "0x" parse in
30288         underlying strtod.
30289         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30290         * doc/posix-functions/strtod.texi (strtod): Likewise.
30291         Reported by Rainer Tammer.
30292
30293 2010-07-30  Bruno Haible  <bruno@clisp.org>
30294
30295         mbrlen: Fix cross-compilation guess for AIX.
30296         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30297         guess. Leftover from 2008-12-22.
30298
30299 2010-07-30  Bruno Haible  <bruno@clisp.org>
30300
30301         mbrtowc: Fix cross-compilation guess for AIX.
30302         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30303         guess. Leftover from 2008-12-21.
30304
30305 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30306
30307         init.sh: work around trap limitation of some shells
30308         * tests/init.sh (setup_): Move exit trap outside of shell function.
30309
30310 2010-07-29  Eric Blake  <eblake@redhat.com>
30311
30312         strtod: aid debugging
30313         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30314         understanding why strtod is rejected.
30315
30316 2010-07-28  Bruno Haible  <bruno@clisp.org>
30317
30318         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30319         * lib/unistr/u8-chr.c: Include <string.h>.
30320         * tests/unistr/test-u8-chr.c: Likewise.
30321         * tests/unistr/test-u16-chr.c: Likewise.
30322         * tests/unistr/test-u32-chr.c: Likewise.
30323         * tests/unistr/test-u8-strchr.c: Likewise.
30324         * tests/unistr/test-u16-strchr.c: Likewise.
30325         * tests/unistr/test-u32-strchr.c: Likewise.
30326         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30327         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30328         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30329         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30330
30331 2010-07-28  Bruno Haible  <bruno@clisp.org>
30332
30333         Use spaces for indentation, not tabs.
30334         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30335
30336 2010-07-27  Bruno Haible  <bruno@clisp.org>
30337
30338         mbspcasecmp: Fix function specification.
30339         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30340         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30341         Reported by Eric Blake <eblake@redhat.com>.
30342
30343 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30344
30345         timespec: use cast and not conditional, as truncation isn't possible
30346         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30347         instead of a conditional.  Comment about the situation in more detail.
30348         This undoes most of the 2009-10-29 patch.
30349
30350 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30351
30352         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30353         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30354         * lib/unistr/u8-strchr.c: Likewise.
30355         * modules/unistr/u8-chr: Depend on memchr.
30356
30357         unistr/u*-strchr: add tests
30358         * modules/unistr/u8-strchr-tests: New file.
30359         * modules/unistr/u16-strchr-tests: New file.
30360         * modules/unistr/u32-strchr-tests: New file.
30361         * tests/unistr/test-strchr.h: New file.
30362         * tests/unistr/test-u8-strchr.c: New file.
30363         * tests/unistr/test-u16-strchr.c: New file.
30364         * tests/unistr/test-u32-strchr.c: New file.
30365
30366         unistr/u*-chr: test multibyte sequences more
30367         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30368         test vector.
30369         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30370         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30371         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30372
30373         unistr/u*-chr: test multibyte sequences
30374         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30375
30376         unistr/u*-chr: prepare for multibyte tests
30377         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30378         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30379         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30380         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30381         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30382         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30383
30384 2010-07-18  Bruno Haible  <bruno@clisp.org>
30385
30386         unistr/u8-strchr: Optimize non-ASCII argument case.
30387         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30388         because the first byte often matches anyway.
30389         Reported by Pádraig Brady <P@draigbrady.com>.
30390
30391 2010-07-15  Karl Berry  <karl@gnu.org>
30392
30393         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30394
30395 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30396
30397         getcwd: on Solaris, work better if ancestors are inaccessible
30398         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30399         buffer and size, try again with a large buffer.  This works better
30400         on Solaris, since its getcwd succeeds even if the path to the root
30401         is inaccessible, and this is helpful in common cases such as .zfs
30402         hidden directories.  Problem reported by J Chapman Flack in
30403         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30404         Use system getcwd if it's declared, not merely if it's partly
30405         working; use the partly-working test only to avoid needless effort
30406         if the system getcwd fails.
30407         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30408         comment that was already obsolete and is now even more obsolete.
30409         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30410         now might call strdup.
30411
30412 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30413
30414         pthread: Add enough so that coreutils/src/sort.c compiles.
30415         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30416         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30417         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30418         Include <sys/types.h>, in case it defines pthread_t.
30419         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30420         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30421         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30422         (pthread_rwlockattr_t, pthread_spinlock_t):
30423         New typedefs, if HAVE_PTHREAD_T is not defined.
30424         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30425         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30426         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30427         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30428         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30429         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30430         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30431         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30432         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30433         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30434         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30435         New macros.
30436         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30437         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30438         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30439         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30440         (pthread_spin_unlock): New dummy functions.
30441         (pthread_create): Return EAGAIN; don't set errno.
30442         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30443         require AC_C_INLINE.
30444         * modules/pthread (Depends-on): Add sched, time.
30445         (pthread.h): Use AM_V_GEN.
30446
30447 2010-07-13  Bruno Haible  <bruno@clisp.org>
30448
30449         striconveh: Don't malloc memory if the result buffer is sufficient.
30450         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30451         buffer if its size is sufficient.
30452         Reported by Ludovic Courtès <ludo@gnu.org>.
30453
30454 2010-07-13  Bruno Haible  <bruno@clisp.org>
30455
30456         strtod: Add safety check.
30457         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30458
30459 2010-07-12  Bruno Haible  <bruno@clisp.org>
30460
30461         Unify tests that set gl_cv_func_ldexpl_no_libm.
30462         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30463         gl_FUNC_LDEXPL.
30464         (gl_FUNC_LDEXPL): Invoke it.
30465         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30466
30467 2010-07-12  Bruno Haible  <bruno@clisp.org>
30468
30469         Unify tests that set gl_cv_func_ldexp_no_libm.
30470         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30471         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30472         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30473         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30474         * modules/strtod (Files): Add m4/ldexp.m4.
30475
30476 2010-07-12  Bruno Haible  <bruno@clisp.org>
30477
30478         Unify tests that set gl_cv_func_frexpl_no_libm.
30479         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30480         gl_FUNC_FREXPL_NO_LIBM.
30481         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30482         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30483
30484 2010-07-12  Bruno Haible  <bruno@clisp.org>
30485
30486         Unify tests that set gl_cv_func_frexp_no_libm.
30487         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30488         gl_FUNC_FREXP_NO_LIBM.
30489         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30490         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30491
30492 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30493
30494         memcoll: clarify sizes versus lengths, document better, and tweak perf
30495         * lib/memcoll.c (strcoll_loop, memcoll0):
30496         Improve quality of descriptive comments.  Name variables
30497         consistently as to whether they are lengths (which do not include
30498         terminating null) versus sizes (which do).
30499         * lib/xmemcoll.c (xmemcoll0): Likewise.
30500         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30501         returned when s1size == 0; this is easier to compile and saves
30502         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30503
30504 2010-07-12  Bruno Haible  <bruno@clisp.org>
30505
30506         Tests for module '_Exit'.
30507         * modules/_Exit-tests: New file.
30508         * tests/test-_Exit.sh: New file.
30509         * tests/test-_Exit.c: New file.
30510
30511         New module '_Exit'.
30512         * lib/stdlib.in.h (__attribute__): New macro.
30513         (_Exit): New declaration.
30514         * lib/_Exit.c: New file.
30515         * m4/_Exit.m4: New file.
30516         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30517         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30518         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30519         * modules/_Exit: New file.
30520         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30521         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30522
30523 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30524
30525         strtod: make it more-accurate typically, and don't require libm
30526         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30527         Include limits.h.  Don't include string.h.
30528         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30529         (locale_isspace): New function, so that no casts are needed to
30530         check whether *s is a space.
30531         (ldexp): Provide an unused dummy if not available.
30532         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30533         (strtod): Use them.  This implementation prefers to use the
30534         underlying strtod if available, falling back on our own code
30535         only to fix known bugs.  This is more likely to produce an
30536         accurate result.  Also, it avoids the use of libm functions.
30537         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30538         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30539         was absent, but it caused a test failure with coreutils.
30540         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30541         with libm.
30542         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30543         * modules/strtod-tests (Makefile.am): Likewise.
30544
30545 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30546             Bruno Haible  <bruno@clisp.org>
30547
30548         unistr/u8-strchr: Optimize ASCII argument case.
30549         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30550
30551 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30552
30553         (x)memcoll: minor tweaks
30554         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30555         is after the type that it qualifies.
30556         (memcoll0): Likewise.
30557         * lib/memcoll.h (memcoll0): Likewise.
30558         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30559         * lib/xmemcoll.h (xmemcoll0): Likewise.
30560         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30561         differs from memcoll in that the NUL byte is part of the argument.
30562         Omit the abort-checks, as performance is a real issue here.  Plus,
30563         the checks were wrong anyway (an off-by-one error).  Omit local
30564         variable 'diff', as it's a bit clearer that way.
30565         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30566         no longer needed.
30567
30568 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30569
30570         (x)memcoll: speedup when input is known to be NUL delimited
30571         * lib/memcoll.c: Include stdlib.
30572         (memcoll0): New function.
30573         (strcoll_loop): New function, refactored for use in both memcoll
30574         and memcoll0.
30575         * lib/memcoll.h (memcoll0): Add prototype.
30576         * lib/xmemcoll.c (xmemcoll0): New function.
30577         (collate_error): New function, refactored for use in both xmemcoll
30578         and xmemcoll0.
30579         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30580         * m4/memcoll.m4: add inline invocation.
30581
30582 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30583
30584         * build-aux/bootstrap: Remove any local translations
30585         from the translation project synchronization directory,
30586         so that local only translations are not distributed.
30587
30588 2010-07-04  Bruno Haible  <bruno@clisp.org>
30589
30590         fsusage: Clarify which code applies to which platforms.
30591         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30592         platform.
30593         * lib/fsusage.c (get_fs_usage): Likewise.
30594
30595 2010-07-04  Bruno Haible  <bruno@clisp.org>
30596
30597         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30598         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30599         Reported by Martin Lambers <marlam@marlam.de>.
30600
30601 2010-07-04  Jim Meyering  <meyering@redhat.com>
30602
30603         hash: once again explicitly disallow insertion of NULL
30604         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30605         inserting a NULL pointer cannot work with these functions.
30606         Add a comment with details.
30607         This reverts part of the 2010-07-01 commit, 5bef1a35
30608         "hash: extend module to deal with non-pointer keys".
30609
30610 2010-07-01  Bruno Haible  <bruno@clisp.org>
30611
30612         stdbool: Update doc.
30613         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30614         Info from Christian Weisgerber <naddy@mips.inka.de>.
30615
30616 2010-07-01  Jim Meyering  <meyering@redhat.com>
30617
30618         hash: extend module to deal with non-pointer keys
30619         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30620         but that allows insertion of non-pointer entries.
30621         Do not disallow an ENTRY value of NULL.
30622         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30623         * lib/hash.h (hash_insert0): Declare.
30624
30625 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30626
30627         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30628         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30629         not present (i.e. with autoconf 2.59 and when using gettextize, not
30630         gnulib), require AC_GNU_SOURCE instead.
30631
30632 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30633
30634         idpriv-drop: Fix tests.
30635         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30636         not to the test-idpriv-droptemp program.
30637
30638 2010-06-29  Bruno Haible  <bruno@clisp.org>
30639
30640         string: Fix syntax error with g++ 2.96.
30641         * lib/string.in.h (__pure__): Remove definition.
30642         (_GL_ATTRIBUTE_PURE): New macro.
30643         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30644         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30645         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30646
30647 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30648
30649         unitypes: Fix bug introduced on 2010-05-18.
30650         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30651
30652 2010-06-22  Eric Blake  <eblake@redhat.com>
30653
30654         memmem: slight optimization
30655         * lib/str-two-way.h (critical_factorization): Update comments.
30656         Reduce work during factorization phase.
30657         Reported by Carlos Bueno <carlos@bueno.org>.
30658
30659 2010-06-21  Bruno Haible  <bruno@clisp.org>
30660
30661         Fix HAVE_CALLOC_POSIX misnomer.
30662         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30663         !HAVE_CALLOC_POSIX.
30664         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30665         HAVE_CALLOC_POSIX.
30666         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30667         instead of HAVE_CALLOC_POSIX.
30668         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30669         HAVE_CALLOC_POSIX.
30670
30671         Use modern idiom for calloc() replacement.
30672         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30673         AC_FUNC_CALLOC.
30674         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30675         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30676         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30677         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30678         (gl_REPLACE_CALLOC): New macro.
30679
30680 2010-06-21  Bruno Haible  <bruno@clisp.org>
30681
30682         Fix HAVE_REALLOC_POSIX misnomer.
30683         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30684         !HAVE_REALLOC_POSIX.
30685         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30686         HAVE_REALLOC_POSIX.
30687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30688         instead of HAVE_REALLOC_POSIX.
30689         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30690         HAVE_REALLOC_POSIX.
30691
30692         Use modern idiom for realloc() replacement.
30693         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30694         AC_FUNC_REALLOC.
30695         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30696         Autoconf's AC_FUNC_REALLOC.
30697         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30698         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30699         (gl_REPLACE_REALLOC): New macro.
30700         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30701
30702 2010-06-21  Bruno Haible  <bruno@clisp.org>
30703
30704         Fix HAVE_MALLOC_POSIX misnomer.
30705         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30706         !HAVE_MALLOC_POSIX.
30707         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30708         HAVE_MALLOC_POSIX.
30709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30710         instead of HAVE_MALLOC_POSIX.
30711         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30712         HAVE_MALLOC_POSIX.
30713
30714         Use modern idiom for malloc() replacement.
30715         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30716         AC_FUNC_MALLOC.
30717         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30718         Autoconf's AC_FUNC_MALLOC.
30719         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30720         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30721         (gl_REPLACE_MALLOC): New macro.
30722         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30723
30724 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30725
30726         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30727         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30728         This macro takes 3 arguments, not 4.
30729
30730 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30731
30732         ipv6: fix detection under mingw
30733         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30734         in6_addr.
30735
30736 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30737
30738         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30739         that strtod() works when cross-compiling to a glibc version known
30740         to work.
30741
30742 2010-06-15  Bruno Haible  <bruno@clisp.org>
30743
30744         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30745
30746 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30747
30748         select: Correct timeout.
30749         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30750
30751 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30752
30753         git-version-gen: init shell var to avoid env var influence
30754         * build-aux/git-version-gen (v): Init shell var to empty.
30755
30756 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30757
30758         priv-set: Don't assume that priv.h exists merely because getppriv does.
30759         See Jan Andersen's bug report about AIX 5L in
30760         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30761         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30762         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30763         * lib/priv-set.h: Likewise.
30764         * tests/test-priv-set.c: Likewise.
30765
30766 2010-06-13  Bruno Haible  <bruno@clisp.org>
30767
30768         relocatable: Make it easier to test whether to install wrappers.
30769         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30770         RELOCATABLE_VIA_WRAPPER.
30771
30772 2010-06-13  Bruno Haible  <bruno@clisp.org>
30773
30774         gnulib-tool: Display specified modules and dependencies differently.
30775         * gnulib-tool (func_show_module_list): New function.
30776         (func_import, func_create_testdir): Invoke it.
30777         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30778
30779 2010-06-13  Bruno Haible  <bruno@clisp.org>
30780
30781         gnulib-tool: Align code of func_import and func_create_testdir.
30782         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30783         specified_modules.
30784
30785 2010-06-12  Jim Meyering  <meyering@redhat.com>
30786
30787         test-inttostr: avoid spurious failure on Solaris 9
30788         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30789         to accept "%ju".  Reported by Bruno Haible.
30790
30791 2010-06-11  Jim Meyering  <meyering@redhat.com>
30792
30793         test-sys_socket: mark variables as used more readably
30794         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30795         as "used" explicitly via (void) statement casts.  This is more
30796         readable than using them in an artificial return expression.
30797         Suggestion from Bruno Haible.
30798
30799 2010-06-11  Bruno Haible  <bruno@clisp.org>
30800
30801         Avoid some more warnings from "gcc -Wwrite-strings".
30802         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30803         to 'const char *'.
30804         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30805         * tests/test-c-strcasestr.c (main): Likewise.
30806         * tests/test-mbscasestr1.c (main): Likewise.
30807         * tests/test-mbscasestr2.c (main): Likewise.
30808         * tests/test-memmem.c (main): Likewise.
30809         * tests/test-strstr.c (main): Likewise.
30810         * tests/test-strcasestr.c (main): Likewise.
30811
30812 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30813
30814         init.sh: change framework_failure_ to fail with status 99, not 1
30815         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30816         automake's parallel-tests rule that this is an unexpected failure,
30817         even if the test is listed in XFAIL_TESTS.
30818
30819 2010-06-11  Jim Meyering  <meyering@redhat.com>
30820
30821         test-inttostr: avoid warnings about 4-6KB literal strings
30822         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30823         Include "macros.h", for its definition of ASSERT.
30824         (CK): s/assert/ASSERT/
30825         * modules/inttostr-tests (Files): Add macros.h.
30826
30827         init.sh: don't use $ME_ or skip_ before they are defined
30828         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30829         their first uses.  Also hoist their companions: warn_, fail_,
30830         framework_failure_, $stderr_fileno.  Prompted by a patch from
30831         Stefano Lattarini.
30832
30833         test-sys_socket: avoid set-but-not-used warnings from gcc
30834         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30835         avoid warning about set-but-not-used variables.
30836
30837         test-xvasprintf: avoid 'const' discard warnings
30838         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30839         "const" when assigning from literal strings.
30840         (test_xasprintf): Add "void" in function argument list to placate
30841         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30842
30843         tests: avoid compilation warnings in argmatch and exclude tests...
30844         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30845         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30846         Since it always exits, declare with the "noreturn" attribute.
30847         * tests/test-argmatch.c: Likewise.
30848
30849         tests: avoid 'const' discard warnings in mbsstr tests
30850         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30851         * tests/test-mbsstr2.c (main): Likewise.
30852
30853         test-verify: avoid warning from gcc's -Wmissing-declarations
30854         * tests/test-verify.c (function): Declare to be static.
30855
30856         test-inttostr.c: include <string.h> for use of strcmp
30857         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30858
30859         test-linkat: avoid failed assertion on "other" architectures
30860         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30861         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30862         sparc: https://bugs.launchpad.net/bugs/591968
30863
30864 2010-06-11  Jim Meyering  <meyering@redhat.com>
30865
30866         printf.m4: avoid autoconf's "Expanded Before Required" warning
30867         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30868         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30869         autoconf warning.
30870
30871 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30872
30873         Replacement header templates are now named with ".in", not "_".
30874         * doc/gnulib-intro.texi: Correct.
30875
30876 2010-06-10  Jim Meyering  <meyering@redhat.com>
30877
30878         inttostr-tests: depend on snprintf, not snprintf-posix
30879         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30880         snprintf-posix, to avoid this aclocal failure:
30881           missing file gnulib-tests/vasnprintf.c
30882           configure.ac:45: error: expected source file, required through \
30883           AC_LIBSOURCES, not found
30884
30885 2010-06-10  Jim Meyering  <meyering@redhat.com>
30886
30887         inttostr: add a new function, inttostr, and tests
30888         The namesake function was not available.  The existence of the
30889         template file, inttostr.c makes its addition nontrivial.
30890         * lib/anytostr.c: Rename from inttostr.c.
30891         (anytostr): Rename from inttostr.
30892         * lib/inttostr.c: New file.
30893         * modules/inttostr (Files): Add anytostr.c.
30894         (Makefile.am): Set lib_SOURCES instead of ...
30895         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30896         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30897         * lib/offtostr.c: Likewise.
30898         * lib/uinttostr.c: Likewise.
30899         * lib/umaxtostr.c: Likewise.
30900         * modules/inttostr-tests: New file.
30901         * tests/test-inttostr.c: New file.  Test these functions.
30902
30903 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30904             Bruno Haible  <bruno@clisp.org>
30905
30906         Add "Extending Gnulib" chapter to manual.
30907         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30908         chapter.
30909         (Extending Gnulib): New chapter.
30910         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30911         chapter.
30912
30913 2010-06-09  Bruno Haible  <bruno@clisp.org>
30914
30915         Avoid relocwrapper link errors due to gnulib replacement functions.
30916         * lib/areadlink.c: Use the system's malloc, realloc functions.
30917         (areadlink): Set errno to ENOMEM explicitly.
30918         * modules/areadlink (Depends-on): Remove malloc-posix.
30919         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30920
30921 2010-06-09  Bruno Haible  <bruno@clisp.org>
30922
30923         Avoid relocwrapper link errors due to gnulib replacement functions.
30924         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30925         * lib/malloca.c: Likewise.
30926         * lib/relocatable.c: Likewise.
30927         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30928         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30929         * lib/setenv.c: Use the system's malloc, realloc functions.
30930         * lib/strerror.c: Use the system's sprintf function.
30931         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30932
30933 2010-06-04  Bruno Haible  <bruno@clisp.org>
30934
30935         Prefer documented low-level autoconf macro names.
30936         * m4/lib-link.m4: Use m4_translit instead of translit.
30937         * m4/environ.m4: Likewise.
30938         * m4/mathfunc.m4: Likewise.
30939         * m4/onceonly.m4: Likewise.
30940         * m4/stdint.m4: Likewise.
30941         Suggested by Eric Blake.
30942
30943 2010-06-04  Martin Lambers  <marlam@marlam.de>
30944             Bruno Haible  <bruno@clisp.org>
30945
30946         havelib: Allow library names with '+' characters.
30947         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30948         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30949
30950 2010-06-09  Bruno Haible  <bruno@clisp.org>
30951
30952         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30953         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30954         realloc failed.
30955
30956 2010-06-08  Peter Simons  <simons@cryp.to>
30957
30958         maint.mk: make the news-check rule more configurable
30959         * top/maint.mk (news-check-lines-spec): New variable.
30960         (news-check): Use "sed -n 1,10p" in place of "head".
30961
30962 2010-06-07  Jim Meyering  <meyering@redhat.com>
30963
30964         do-release-commit-and-tag: fix typo in --help
30965         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30966
30967         regex: avoid new dead-code warning with gcc-4.6.0
30968         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30969         if-block containing a while-loop.  It's been unused for at least
30970         5 years.
30971
30972 2010-06-05  Bruno Haible  <bruno@clisp.org>
30973
30974         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30975         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30976
30977 2010-06-04  Bruno Haible  <bruno@clisp.org>
30978
30979         Update to GNU gettext 0.18.1.
30980         * modules/gettext (configure.ac): Require gettext infrastructure from
30981         version 0.18.1.
30982
30983 2010-06-03  Bruno Haible  <bruno@clisp.org>
30984
30985         Don't use AC_LIBOBJ with file names in subdirectories.
30986         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30987         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30988         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30989         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30990         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30991         gl_LIBUNISTRING_LIBSOURCE.
30992         (Makefile.am): Augment lib_SOURCES here, conditionally.
30993         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30994
30995 2010-06-03  Bruno Haible  <bruno@clisp.org>
30996
30997         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30998         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30999         expansion does not end with a newline.
31000         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31001         unnecessary newline.
31002
31003 2010-06-03  Bruno Haible  <bruno@clisp.org>
31004
31005         Reduce dependencies.
31006         * tests/test-quotearg.h: New file, extracted from
31007         tests/test-quotearg.c.
31008         * tests/test-quotearg-simple.c: New file, extracted from
31009         tests/test-quotearg.c.
31010         * tests/test-quotearg.c: Don't include <ctype.h>.
31011         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31012         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31013         use_quote_double_quotes, use_quotearg_colon): Moved to
31014         tests/test-quotearg.h.
31015         (results_g, flag_results, custom_quotes, custom_results): Moved
31016         to tests/test-quotearg-simple.c.
31017         (main): Moved the part that does not depend on gettext to
31018         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31019         performed.
31020         * modules/quotearg-simple: New file.
31021         * modules/quotearg-simple-tests: New file.
31022         * modules/quotearg (Depends-on): Add quotearg-simple.
31023         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31024         (Files): Add tests/test-quotearg.h.
31025         Reported by Paolo Bonzini.
31026
31027 2010-06-03  Bruno Haible  <bruno@clisp.org>
31028
31029         Reduce dependencies.
31030         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31031
31032 2010-06-03  Bruno Haible  <bruno@clisp.org>
31033
31034         time: Undefine more broken macros.
31035         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31036         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31037         Reported by Eric Blake.
31038
31039 2010-06-03  Bruno Haible  <bruno@clisp.org>
31040
31041         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31042         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31043         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31044         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31045         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31046         Reported by Ludovic Courtès <ludo@gnu.org>.
31047
31048 2010-06-02  Eric Blake  <eblake@redhat.com>
31049
31050         time: work with mingw + pthreads-win32 library
31051         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31052         if timespec is defined only in pthread.h.
31053         * modules/time (Makefile.am): Substitute it.
31054         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31055         <pthread.h>, when needed.
31056         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31057         from the library.
31058
31059 2010-05-31  Bruno Haible  <bruno@clisp.org>
31060
31061         Avoid expanding two macros in the wrong order.
31062         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31063         gl_LIBUNISTRING if it is defined.
31064         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31065         autoconf >= 2.64.
31066         Reported by Ludovic Courtès <ludo@gnu.org>.
31067
31068 2010-05-27  Jim Meyering  <meyering@redhat.com>
31069
31070         maint.mk: also prohibit "#undef" of always-defined symbols
31071         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31072         Allow more than one space before the symbol name.
31073         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31074         the regexp uses alternation.
31075
31076 2010-05-26  Eric Blake  <eblake@redhat.com>
31077
31078         maint.mk: avoid echo -e
31079         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31080         Convert all uses of echo -* to printf.
31081         Reported by Matthias Bolte.
31082
31083 2010-05-25  Bruno Haible  <bruno@clisp.org>
31084
31085         Update to GNU gettext 0.18, part 2.
31086         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31087         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31088
31089 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31090
31091         Add missing include in test-pwrite.c.
31092         * tests/test-pwrite.c: Include string.h, for strcmp.
31093
31094 2010-05-24  Bruno Haible  <bruno@clisp.org>
31095
31096         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31097
31098 2010-05-24  Bruno Haible  <bruno@clisp.org>
31099
31100         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31101         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31102         iconveh_error argument.
31103         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31104         U_STRCONV_TO_LOCALE.
31105         * lib/unistr/u16-strcoll.c: Likewise.
31106         * lib/unistr/u32-strcoll.c: Likewise.
31107         * modules/unistr/u8-strcoll (Depends-on): Add
31108         uniconv/u8-strconv-to-enc, localcharset. Remove
31109         uniconv/u8-strconv-to-locale.
31110         (configure.ac): Bump version number.
31111         * modules/unistr/u16-strcoll (Depends-on): Add
31112         uniconv/u16-strconv-to-enc, localcharset. Remove
31113         uniconv/u16-strconv-to-locale.
31114         (configure.ac): Bump version number.
31115         * modules/unistr/u32-strcoll (Depends-on): Add
31116         uniconv/u32-strconv-to-enc, localcharset. Remove
31117         uniconv/u32-strconv-to-locale.
31118         (configure.ac): Bump version number.
31119
31120 2010-05-24  Bruno Haible  <bruno@clisp.org>
31121
31122         Avoid a test failure on NetBSD 5.0.
31123         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31124         an iconv() bug.
31125
31126 2010-05-24  Bruno Haible  <bruno@clisp.org>
31127
31128         Adjust #include directive style.
31129         * modules/regex (Includes): Recommend to write <regex.h>.
31130
31131 2010-05-24  Bruno Haible  <bruno@clisp.org>
31132
31133         regex: Don't require alloca.
31134         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31135         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31136         only inside if (0).
31137
31138 2010-05-23  Jim Meyering  <meyering@redhat.com>
31139
31140         test-renameat.c: include <sys/stat.h>
31141         * tests/test-renameat.c: Include <sys/stat.h>; required for
31142         definition of S_IS* macros.
31143
31144 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31145
31146         Update maintainer documentation for 'relocatable-prog' module.
31147         * doc/relocatable-maint.texi: Update.
31148         Comments by Bruno Haible.
31149
31150 2010-05-23  Bruno Haible  <bruno@clisp.org>
31151
31152         git-merge-changelog: Enable --split-merged-entry by default.
31153         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31154         (usage): Don't mention this option any more.
31155         Reported by Ralf Wildenhues.
31156
31157 2010-05-23  Jim Meyering  <meyering@redhat.com>
31158
31159         test-pwrite: do not leave behind a test file named "out"
31160         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31161         The trivial-looking use of init.sh is really necessary.
31162         It ensures that the temporary file, "out", is created in
31163         a temporary directory, and removed upon termination.
31164         * tests/test-pwrite.sh: Re-add file.
31165         * modules/pwrite-tests: Reference it.
31166
31167 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31168
31169         Fix output redirection buglet in init.sh.
31170         * tests/init.sh: Fix redirection of stderr.
31171
31172 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31173
31174         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31175
31176 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31177
31178         * modules/valgrind-tests: New file.
31179         * m4/valgrind-tests.m4: New file.
31180         * doc/valgrind-tests.texi: New file.
31181         * doc/gnulib.texi (Running self-tests under valgrind): New
31182         section.
31183
31184 2010-05-19  Bruno Haible  <bruno@clisp.org>
31185
31186         Clean up dead code in recent commit.
31187         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31188         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31189         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31190         Suggested by Paolo Bonzini.
31191
31192 2010-05-19  Bruno Haible  <bruno@clisp.org>
31193
31194         Avoid valgrind error reports from libunistring.
31195         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31196         * modules/libunistring (Files): Add it.
31197         * modules/libunistring-optional (Files): Likewise.
31198
31199 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31200             Bruno Haible  <bruno@clisp.org>
31201
31202         New module 'libunistring-optional'.
31203         * modules/libunistring-optional: New file.
31204         * m4/libunistring-base.m4: New file.
31205         * m4/libunistring-optional.m4: New file.
31206         * lib/unicase.in.h: Renamed from lib/unicase.h.
31207         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31208         * lib/unictype.in.h: Renamed from lib/unictype.h.
31209         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31210         * lib/uniname.in.h: Renamed from lib/uniname.h.
31211         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31212         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31213         * lib/unistr.in.h: Renamed from lib/unistr.h.
31214         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31215         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31216         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31217         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31218         gl_LIBUNISTRING. If the library was found, determine the installed
31219         version and set LIBUNISTRING_VERSION.
31220         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31221         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31222         handle a configuration option --with-included-libunistring.
31223         * modules/libunistring (Files): Add m4/absolute-header.m4.
31224         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31225         Add m4/libunistring-base.m4.
31226         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31227         (Makefile.am): Build unicase.h from unicase.in.h.
31228         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31229         Add m4/libunistring-base.m4.
31230         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31231         (Makefile.am): Build uniconv.h from uniconv.in.h.
31232         * modules/unictype/base (Files): Use unictype.in.h instead of
31233         unictype.h. Add m4/libunistring-base.m4.
31234         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31235         (Makefile.am): Build unictype.h from unictype.in.h.
31236         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31237         Add m4/libunistring-base.m4.
31238         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31239         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31240         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31241         Add m4/libunistring-base.m4.
31242         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31243         (Makefile.am): Build uniname.h from uniname.in.h.
31244         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31245         Add m4/libunistring-base.m4.
31246         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31247         (Makefile.am): Build uninorm.h from uninorm.in.h.
31248         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31249         unistdio.h. Add m4/libunistring-base.m4.
31250         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31251         (Makefile.am): Build unistdio.h from unistdio.in.h.
31252         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31253         Add m4/libunistring-base.m4.
31254         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31255         (Makefile.am): Build unistr.h from unistr.in.h.
31256         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31257         Add m4/libunistring-base.m4.
31258         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31259         (Makefile.am): Build unitypes.h from unitypes.in.h.
31260         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31261         Add m4/libunistring-base.m4.
31262         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31263         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31264         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31265         uniwidth.h. Add m4/libunistring-base.m4.
31266         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31267         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31268         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31269         instead of augmenting lib_SOURCES.
31270         * modules/unicase/empty-suffix-context: Likewise.
31271         * modules/unicase/locale-language: Likewise.
31272         * modules/unicase/tolower: Likewise.
31273         * modules/unicase/totitle: Likewise.
31274         * modules/unicase/toupper: Likewise.
31275         * modules/unicase/u8-casecmp: Likewise.
31276         * modules/unicase/u8-casecoll: Likewise.
31277         * modules/unicase/u8-casefold: Likewise.
31278         * modules/unicase/u8-casexfrm: Likewise.
31279         * modules/unicase/u8-ct-casefold: Likewise.
31280         * modules/unicase/u8-ct-tolower: Likewise.
31281         * modules/unicase/u8-ct-totitle: Likewise.
31282         * modules/unicase/u8-ct-toupper: Likewise.
31283         * modules/unicase/u8-is-cased: Likewise.
31284         * modules/unicase/u8-is-casefolded: Likewise.
31285         * modules/unicase/u8-is-lowercase: Likewise.
31286         * modules/unicase/u8-is-titlecase: Likewise.
31287         * modules/unicase/u8-is-uppercase: Likewise.
31288         * modules/unicase/u8-prefix-context: Likewise.
31289         * modules/unicase/u8-suffix-context: Likewise.
31290         * modules/unicase/u8-tolower: Likewise.
31291         * modules/unicase/u8-totitle: Likewise.
31292         * modules/unicase/u8-toupper: Likewise.
31293         * modules/unicase/u16-casecmp: Likewise.
31294         * modules/unicase/u16-casecoll: Likewise.
31295         * modules/unicase/u16-casefold: Likewise.
31296         * modules/unicase/u16-casexfrm: Likewise.
31297         * modules/unicase/u16-ct-casefold: Likewise.
31298         * modules/unicase/u16-ct-tolower: Likewise.
31299         * modules/unicase/u16-ct-totitle: Likewise.
31300         * modules/unicase/u16-ct-toupper: Likewise.
31301         * modules/unicase/u16-is-cased: Likewise.
31302         * modules/unicase/u16-is-casefolded: Likewise.
31303         * modules/unicase/u16-is-lowercase: Likewise.
31304         * modules/unicase/u16-is-titlecase: Likewise.
31305         * modules/unicase/u16-is-uppercase: Likewise.
31306         * modules/unicase/u16-prefix-context: Likewise.
31307         * modules/unicase/u16-suffix-context: Likewise.
31308         * modules/unicase/u16-tolower: Likewise.
31309         * modules/unicase/u16-totitle: Likewise.
31310         * modules/unicase/u16-toupper: Likewise.
31311         * modules/unicase/u32-casecmp: Likewise.
31312         * modules/unicase/u32-casecoll: Likewise.
31313         * modules/unicase/u32-casefold: Likewise.
31314         * modules/unicase/u32-casexfrm: Likewise.
31315         * modules/unicase/u32-ct-casefold: Likewise.
31316         * modules/unicase/u32-ct-tolower: Likewise.
31317         * modules/unicase/u32-ct-totitle: Likewise.
31318         * modules/unicase/u32-ct-toupper: Likewise.
31319         * modules/unicase/u32-is-cased: Likewise.
31320         * modules/unicase/u32-is-casefolded: Likewise.
31321         * modules/unicase/u32-is-lowercase: Likewise.
31322         * modules/unicase/u32-is-titlecase: Likewise.
31323         * modules/unicase/u32-is-uppercase: Likewise.
31324         * modules/unicase/u32-prefix-context: Likewise.
31325         * modules/unicase/u32-suffix-context: Likewise.
31326         * modules/unicase/u32-tolower: Likewise.
31327         * modules/unicase/u32-totitle: Likewise.
31328         * modules/unicase/u32-toupper: Likewise.
31329         * modules/unicase/ulc-casecmp: Likewise.
31330         * modules/unicase/ulc-casecoll: Likewise.
31331         * modules/unicase/ulc-casexfrm: Likewise.
31332         * modules/uniconv/u8-conv-from-enc: Likewise.
31333         * modules/uniconv/u8-conv-to-enc: Likewise.
31334         * modules/uniconv/u8-strconv-from-enc: Likewise.
31335         * modules/uniconv/u8-strconv-from-locale: Likewise.
31336         * modules/uniconv/u8-strconv-to-enc: Likewise.
31337         * modules/uniconv/u8-strconv-to-locale: Likewise.
31338         * modules/uniconv/u16-conv-from-enc: Likewise.
31339         * modules/uniconv/u16-conv-to-enc: Likewise.
31340         * modules/uniconv/u16-strconv-from-enc: Likewise.
31341         * modules/uniconv/u16-strconv-from-locale: Likewise.
31342         * modules/uniconv/u16-strconv-to-enc: Likewise.
31343         * modules/uniconv/u16-strconv-to-locale: Likewise.
31344         * modules/uniconv/u32-conv-from-enc: Likewise.
31345         * modules/uniconv/u32-conv-to-enc: Likewise.
31346         * modules/uniconv/u32-strconv-from-enc: Likewise.
31347         * modules/uniconv/u32-strconv-from-locale: Likewise.
31348         * modules/uniconv/u32-strconv-to-enc: Likewise.
31349         * modules/uniconv/u32-strconv-to-locale: Likewise.
31350         * modules/unictype/bidicategory-byname: Likewise.
31351         * modules/unictype/bidicategory-name: Likewise.
31352         * modules/unictype/bidicategory-of: Likewise.
31353         * modules/unictype/bidicategory-test: Likewise.
31354         * modules/unictype/block-list: Likewise.
31355         * modules/unictype/block-test: Likewise.
31356         * modules/unictype/category-C: Likewise.
31357         * modules/unictype/category-Cc: Likewise.
31358         * modules/unictype/category-Cf: Likewise.
31359         * modules/unictype/category-Cn: Likewise.
31360         * modules/unictype/category-Co: Likewise.
31361         * modules/unictype/category-Cs: Likewise.
31362         * modules/unictype/category-L: Likewise.
31363         * modules/unictype/category-Ll: Likewise.
31364         * modules/unictype/category-Lm: Likewise.
31365         * modules/unictype/category-Lo: Likewise.
31366         * modules/unictype/category-Lt: Likewise.
31367         * modules/unictype/category-Lu: Likewise.
31368         * modules/unictype/category-M: Likewise.
31369         * modules/unictype/category-Mc: Likewise.
31370         * modules/unictype/category-Me: Likewise.
31371         * modules/unictype/category-Mn: Likewise.
31372         * modules/unictype/category-N: Likewise.
31373         * modules/unictype/category-Nd: Likewise.
31374         * modules/unictype/category-Nl: Likewise.
31375         * modules/unictype/category-No: Likewise.
31376         * modules/unictype/category-P: Likewise.
31377         * modules/unictype/category-Pc: Likewise.
31378         * modules/unictype/category-Pd: Likewise.
31379         * modules/unictype/category-Pe: Likewise.
31380         * modules/unictype/category-Pf: Likewise.
31381         * modules/unictype/category-Pi: Likewise.
31382         * modules/unictype/category-Po: Likewise.
31383         * modules/unictype/category-Ps: Likewise.
31384         * modules/unictype/category-S: Likewise.
31385         * modules/unictype/category-Sc: Likewise.
31386         * modules/unictype/category-Sk: Likewise.
31387         * modules/unictype/category-Sm: Likewise.
31388         * modules/unictype/category-So: Likewise.
31389         * modules/unictype/category-Z: Likewise.
31390         * modules/unictype/category-Zl: Likewise.
31391         * modules/unictype/category-Zp: Likewise.
31392         * modules/unictype/category-Zs: Likewise.
31393         * modules/unictype/category-and: Likewise.
31394         * modules/unictype/category-and-not: Likewise.
31395         * modules/unictype/category-byname: Likewise.
31396         * modules/unictype/category-name: Likewise.
31397         * modules/unictype/category-none: Likewise.
31398         * modules/unictype/category-of: Likewise.
31399         * modules/unictype/category-or: Likewise.
31400         * modules/unictype/category-test: Likewise.
31401         * modules/unictype/combining-class: Likewise.
31402         * modules/unictype/ctype-alnum: Likewise.
31403         * modules/unictype/ctype-alpha: Likewise.
31404         * modules/unictype/ctype-blank: Likewise.
31405         * modules/unictype/ctype-cntrl: Likewise.
31406         * modules/unictype/ctype-digit: Likewise.
31407         * modules/unictype/ctype-graph: Likewise.
31408         * modules/unictype/ctype-lower: Likewise.
31409         * modules/unictype/ctype-print: Likewise.
31410         * modules/unictype/ctype-punct: Likewise.
31411         * modules/unictype/ctype-space: Likewise.
31412         * modules/unictype/ctype-upper: Likewise.
31413         * modules/unictype/ctype-xdigit: Likewise.
31414         * modules/unictype/decimal-digit: Likewise.
31415         * modules/unictype/digit: Likewise.
31416         * modules/unictype/mirror: Likewise.
31417         * modules/unictype/numeric: Likewise.
31418         * modules/unictype/property-alphabetic: Likewise.
31419         * modules/unictype/property-ascii-hex-digit: Likewise.
31420         * modules/unictype/property-bidi-arabic-digit: Likewise.
31421         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31422         * modules/unictype/property-bidi-block-separator: Likewise.
31423         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31424         * modules/unictype/property-bidi-common-separator: Likewise.
31425         * modules/unictype/property-bidi-control: Likewise.
31426         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31427         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31428         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31429         * modules/unictype/property-bidi-european-digit: Likewise.
31430         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31431         * modules/unictype/property-bidi-left-to-right: Likewise.
31432         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31433         * modules/unictype/property-bidi-other-neutral: Likewise.
31434         * modules/unictype/property-bidi-pdf: Likewise.
31435         * modules/unictype/property-bidi-segment-separator: Likewise.
31436         * modules/unictype/property-bidi-whitespace: Likewise.
31437         * modules/unictype/property-byname: Likewise.
31438         * modules/unictype/property-combining: Likewise.
31439         * modules/unictype/property-composite: Likewise.
31440         * modules/unictype/property-currency-symbol: Likewise.
31441         * modules/unictype/property-dash: Likewise.
31442         * modules/unictype/property-decimal-digit: Likewise.
31443         * modules/unictype/property-default-ignorable-code-point: Likewise.
31444         * modules/unictype/property-deprecated: Likewise.
31445         * modules/unictype/property-diacritic: Likewise.
31446         * modules/unictype/property-extender: Likewise.
31447         * modules/unictype/property-format-control: Likewise.
31448         * modules/unictype/property-grapheme-base: Likewise.
31449         * modules/unictype/property-grapheme-extend: Likewise.
31450         * modules/unictype/property-grapheme-link: Likewise.
31451         * modules/unictype/property-hex-digit: Likewise.
31452         * modules/unictype/property-hyphen: Likewise.
31453         * modules/unictype/property-id-continue: Likewise.
31454         * modules/unictype/property-id-start: Likewise.
31455         * modules/unictype/property-ideographic: Likewise.
31456         * modules/unictype/property-ids-binary-operator: Likewise.
31457         * modules/unictype/property-ids-trinary-operator: Likewise.
31458         * modules/unictype/property-ignorable-control: Likewise.
31459         * modules/unictype/property-iso-control: Likewise.
31460         * modules/unictype/property-join-control: Likewise.
31461         * modules/unictype/property-left-of-pair: Likewise.
31462         * modules/unictype/property-line-separator: Likewise.
31463         * modules/unictype/property-logical-order-exception: Likewise.
31464         * modules/unictype/property-lowercase: Likewise.
31465         * modules/unictype/property-math: Likewise.
31466         * modules/unictype/property-non-break: Likewise.
31467         * modules/unictype/property-not-a-character: Likewise.
31468         * modules/unictype/property-numeric: Likewise.
31469         * modules/unictype/property-other-alphabetic: Likewise.
31470         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31471         * modules/unictype/property-other-grapheme-extend: Likewise.
31472         * modules/unictype/property-other-id-continue: Likewise.
31473         * modules/unictype/property-other-id-start: Likewise.
31474         * modules/unictype/property-other-lowercase: Likewise.
31475         * modules/unictype/property-other-math: Likewise.
31476         * modules/unictype/property-other-uppercase: Likewise.
31477         * modules/unictype/property-paired-punctuation: Likewise.
31478         * modules/unictype/property-paragraph-separator: Likewise.
31479         * modules/unictype/property-pattern-syntax: Likewise.
31480         * modules/unictype/property-pattern-white-space: Likewise.
31481         * modules/unictype/property-private-use: Likewise.
31482         * modules/unictype/property-punctuation: Likewise.
31483         * modules/unictype/property-quotation-mark: Likewise.
31484         * modules/unictype/property-radical: Likewise.
31485         * modules/unictype/property-sentence-terminal: Likewise.
31486         * modules/unictype/property-soft-dotted: Likewise.
31487         * modules/unictype/property-space: Likewise.
31488         * modules/unictype/property-terminal-punctuation: Likewise.
31489         * modules/unictype/property-test: Likewise.
31490         * modules/unictype/property-titlecase: Likewise.
31491         * modules/unictype/property-unassigned-code-value: Likewise.
31492         * modules/unictype/property-unified-ideograph: Likewise.
31493         * modules/unictype/property-uppercase: Likewise.
31494         * modules/unictype/property-variation-selector: Likewise.
31495         * modules/unictype/property-white-space: Likewise.
31496         * modules/unictype/property-xid-continue: Likewise.
31497         * modules/unictype/property-xid-start: Likewise.
31498         * modules/unictype/property-zero-width: Likewise.
31499         * modules/unictype/scripts: Likewise.
31500         * modules/unictype/syntax-c-ident: Likewise.
31501         * modules/unictype/syntax-c-whitespace: Likewise.
31502         * modules/unictype/syntax-java-ident: Likewise.
31503         * modules/unictype/syntax-java-whitespace: Likewise.
31504         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31505         * modules/unilbrk/u8-width-linebreaks: Likewise.
31506         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31507         * modules/unilbrk/u16-width-linebreaks: Likewise.
31508         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31509         * modules/unilbrk/u32-width-linebreaks: Likewise.
31510         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31511         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31512         * modules/uniname/uniname: Likewise.
31513         * modules/uninorm/canonical-decomposition: Likewise.
31514         * modules/uninorm/composition: Likewise.
31515         * modules/uninorm/decomposing-form: Likewise.
31516         * modules/uninorm/decomposition: Likewise.
31517         * modules/uninorm/filter: Likewise.
31518         * modules/uninorm/nfc: Likewise.
31519         * modules/uninorm/nfd: Likewise.
31520         * modules/uninorm/nfkc: Likewise.
31521         * modules/uninorm/nfkd: Likewise.
31522         * modules/uninorm/u8-normalize: Likewise.
31523         * modules/uninorm/u8-normcmp: Likewise.
31524         * modules/uninorm/u8-normcoll: Likewise.
31525         * modules/uninorm/u8-normxfrm: Likewise.
31526         * modules/uninorm/u16-normalize: Likewise.
31527         * modules/uninorm/u16-normcmp: Likewise.
31528         * modules/uninorm/u16-normcoll: Likewise.
31529         * modules/uninorm/u16-normxfrm: Likewise.
31530         * modules/uninorm/u32-normalize: Likewise.
31531         * modules/uninorm/u32-normcmp: Likewise.
31532         * modules/uninorm/u32-normcoll: Likewise.
31533         * modules/uninorm/u32-normxfrm: Likewise.
31534         * modules/unistdio/u8-asnprintf: Likewise.
31535         * modules/unistdio/u8-asprintf: Likewise.
31536         * modules/unistdio/u8-snprintf: Likewise.
31537         * modules/unistdio/u8-sprintf: Likewise.
31538         * modules/unistdio/u8-u8-asnprintf: Likewise.
31539         * modules/unistdio/u8-u8-asprintf: Likewise.
31540         * modules/unistdio/u8-u8-snprintf: Likewise.
31541         * modules/unistdio/u8-u8-sprintf: Likewise.
31542         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31543         * modules/unistdio/u8-u8-vasprintf: Likewise.
31544         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31545         * modules/unistdio/u8-u8-vsprintf: Likewise.
31546         * modules/unistdio/u8-vasnprintf: Likewise.
31547         * modules/unistdio/u8-vasprintf: Likewise.
31548         * modules/unistdio/u8-vsnprintf: Likewise.
31549         * modules/unistdio/u8-vsprintf: Likewise.
31550         * modules/unistdio/u16-asnprintf: Likewise.
31551         * modules/unistdio/u16-asprintf: Likewise.
31552         * modules/unistdio/u16-snprintf: Likewise.
31553         * modules/unistdio/u16-sprintf: Likewise.
31554         * modules/unistdio/u16-u16-asnprintf: Likewise.
31555         * modules/unistdio/u16-u16-asprintf: Likewise.
31556         * modules/unistdio/u16-u16-snprintf: Likewise.
31557         * modules/unistdio/u16-u16-sprintf: Likewise.
31558         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31559         * modules/unistdio/u16-u16-vasprintf: Likewise.
31560         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31561         * modules/unistdio/u16-u16-vsprintf: Likewise.
31562         * modules/unistdio/u16-vasnprintf: Likewise.
31563         * modules/unistdio/u16-vasprintf: Likewise.
31564         * modules/unistdio/u16-vsnprintf: Likewise.
31565         * modules/unistdio/u16-vsprintf: Likewise.
31566         * modules/unistdio/u32-asnprintf: Likewise.
31567         * modules/unistdio/u32-asprintf: Likewise.
31568         * modules/unistdio/u32-snprintf: Likewise.
31569         * modules/unistdio/u32-sprintf: Likewise.
31570         * modules/unistdio/u32-u32-asnprintf: Likewise.
31571         * modules/unistdio/u32-u32-asprintf: Likewise.
31572         * modules/unistdio/u32-u32-snprintf: Likewise.
31573         * modules/unistdio/u32-u32-sprintf: Likewise.
31574         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31575         * modules/unistdio/u32-u32-vasprintf: Likewise.
31576         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31577         * modules/unistdio/u32-u32-vsprintf: Likewise.
31578         * modules/unistdio/u32-vasnprintf: Likewise.
31579         * modules/unistdio/u32-vasprintf: Likewise.
31580         * modules/unistdio/u32-vsnprintf: Likewise.
31581         * modules/unistdio/u32-vsprintf: Likewise.
31582         * modules/unistdio/ulc-asnprintf: Likewise.
31583         * modules/unistdio/ulc-asprintf: Likewise.
31584         * modules/unistdio/ulc-fprintf: Likewise.
31585         * modules/unistdio/ulc-snprintf: Likewise.
31586         * modules/unistdio/ulc-sprintf: Likewise.
31587         * modules/unistdio/ulc-vasnprintf: Likewise.
31588         * modules/unistdio/ulc-vasprintf: Likewise.
31589         * modules/unistdio/ulc-vfprintf: Likewise.
31590         * modules/unistdio/ulc-vsnprintf: Likewise.
31591         * modules/unistdio/ulc-vsprintf: Likewise.
31592         * modules/unistr/u8-check: Likewise.
31593         * modules/unistr/u8-chr: Likewise.
31594         * modules/unistr/u8-cmp: Likewise.
31595         * modules/unistr/u8-cmp2: Likewise.
31596         * modules/unistr/u8-cpy: Likewise.
31597         * modules/unistr/u8-cpy-alloc: Likewise.
31598         * modules/unistr/u8-endswith: Likewise.
31599         * modules/unistr/u8-mblen: Likewise.
31600         * modules/unistr/u8-mbsnlen: Likewise.
31601         * modules/unistr/u8-mbtouc: Likewise.
31602         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31603         * modules/unistr/u8-mbtoucr: Likewise.
31604         * modules/unistr/u8-move: Likewise.
31605         * modules/unistr/u8-next: Likewise.
31606         * modules/unistr/u8-prev: Likewise.
31607         * modules/unistr/u8-set: Likewise.
31608         * modules/unistr/u8-startswith: Likewise.
31609         * modules/unistr/u8-stpcpy: Likewise.
31610         * modules/unistr/u8-stpncpy: Likewise.
31611         * modules/unistr/u8-strcat: Likewise.
31612         * modules/unistr/u8-strchr: Likewise.
31613         * modules/unistr/u8-strcmp: Likewise.
31614         * modules/unistr/u8-strcoll: Likewise.
31615         * modules/unistr/u8-strcpy: Likewise.
31616         * modules/unistr/u8-strcspn: Likewise.
31617         * modules/unistr/u8-strdup: Likewise.
31618         * modules/unistr/u8-strlen: Likewise.
31619         * modules/unistr/u8-strmblen: Likewise.
31620         * modules/unistr/u8-strmbtouc: Likewise.
31621         * modules/unistr/u8-strncat: Likewise.
31622         * modules/unistr/u8-strncmp: Likewise.
31623         * modules/unistr/u8-strncpy: Likewise.
31624         * modules/unistr/u8-strnlen: Likewise.
31625         * modules/unistr/u8-strpbrk: Likewise.
31626         * modules/unistr/u8-strrchr: Likewise.
31627         * modules/unistr/u8-strspn: Likewise.
31628         * modules/unistr/u8-strstr: Likewise.
31629         * modules/unistr/u8-strtok: Likewise.
31630         * modules/unistr/u8-to-u16: Likewise.
31631         * modules/unistr/u8-to-u32: Likewise.
31632         * modules/unistr/u8-uctomb: Likewise.
31633         * modules/unistr/u16-check: Likewise.
31634         * modules/unistr/u16-chr: Likewise.
31635         * modules/unistr/u16-cmp: Likewise.
31636         * modules/unistr/u16-cmp2: Likewise.
31637         * modules/unistr/u16-cpy: Likewise.
31638         * modules/unistr/u16-cpy-alloc: Likewise.
31639         * modules/unistr/u16-endswith: Likewise.
31640         * modules/unistr/u16-mblen: Likewise.
31641         * modules/unistr/u16-mbsnlen: Likewise.
31642         * modules/unistr/u16-mbtouc: Likewise.
31643         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31644         * modules/unistr/u16-mbtoucr: Likewise.
31645         * modules/unistr/u16-move: Likewise.
31646         * modules/unistr/u16-next: Likewise.
31647         * modules/unistr/u16-prev: Likewise.
31648         * modules/unistr/u16-set: Likewise.
31649         * modules/unistr/u16-startswith: Likewise.
31650         * modules/unistr/u16-stpcpy: Likewise.
31651         * modules/unistr/u16-stpncpy: Likewise.
31652         * modules/unistr/u16-strcat: Likewise.
31653         * modules/unistr/u16-strchr: Likewise.
31654         * modules/unistr/u16-strcmp: Likewise.
31655         * modules/unistr/u16-strcoll: Likewise.
31656         * modules/unistr/u16-strcpy: Likewise.
31657         * modules/unistr/u16-strcspn: Likewise.
31658         * modules/unistr/u16-strdup: Likewise.
31659         * modules/unistr/u16-strlen: Likewise.
31660         * modules/unistr/u16-strmblen: Likewise.
31661         * modules/unistr/u16-strmbtouc: Likewise.
31662         * modules/unistr/u16-strncat: Likewise.
31663         * modules/unistr/u16-strncmp: Likewise.
31664         * modules/unistr/u16-strncpy: Likewise.
31665         * modules/unistr/u16-strnlen: Likewise.
31666         * modules/unistr/u16-strpbrk: Likewise.
31667         * modules/unistr/u16-strrchr: Likewise.
31668         * modules/unistr/u16-strspn: Likewise.
31669         * modules/unistr/u16-strstr: Likewise.
31670         * modules/unistr/u16-strtok: Likewise.
31671         * modules/unistr/u16-to-u32: Likewise.
31672         * modules/unistr/u16-to-u8: Likewise.
31673         * modules/unistr/u16-uctomb: Likewise.
31674         * modules/unistr/u32-check: Likewise.
31675         * modules/unistr/u32-chr: Likewise.
31676         * modules/unistr/u32-cmp: Likewise.
31677         * modules/unistr/u32-cmp2: Likewise.
31678         * modules/unistr/u32-cpy: Likewise.
31679         * modules/unistr/u32-cpy-alloc: Likewise.
31680         * modules/unistr/u32-endswith: Likewise.
31681         * modules/unistr/u32-mblen: Likewise.
31682         * modules/unistr/u32-mbsnlen: Likewise.
31683         * modules/unistr/u32-mbtouc: Likewise.
31684         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31685         * modules/unistr/u32-mbtoucr: Likewise.
31686         * modules/unistr/u32-move: Likewise.
31687         * modules/unistr/u32-next: Likewise.
31688         * modules/unistr/u32-prev: Likewise.
31689         * modules/unistr/u32-set: Likewise.
31690         * modules/unistr/u32-startswith: Likewise.
31691         * modules/unistr/u32-stpcpy: Likewise.
31692         * modules/unistr/u32-stpncpy: Likewise.
31693         * modules/unistr/u32-strcat: Likewise.
31694         * modules/unistr/u32-strchr: Likewise.
31695         * modules/unistr/u32-strcmp: Likewise.
31696         * modules/unistr/u32-strcoll: Likewise.
31697         * modules/unistr/u32-strcpy: Likewise.
31698         * modules/unistr/u32-strcspn: Likewise.
31699         * modules/unistr/u32-strdup: Likewise.
31700         * modules/unistr/u32-strlen: Likewise.
31701         * modules/unistr/u32-strmblen: Likewise.
31702         * modules/unistr/u32-strmbtouc: Likewise.
31703         * modules/unistr/u32-strncat: Likewise.
31704         * modules/unistr/u32-strncmp: Likewise.
31705         * modules/unistr/u32-strncpy: Likewise.
31706         * modules/unistr/u32-strnlen: Likewise.
31707         * modules/unistr/u32-strpbrk: Likewise.
31708         * modules/unistr/u32-strrchr: Likewise.
31709         * modules/unistr/u32-strspn: Likewise.
31710         * modules/unistr/u32-strstr: Likewise.
31711         * modules/unistr/u32-strtok: Likewise.
31712         * modules/unistr/u32-to-u16: Likewise.
31713         * modules/unistr/u32-to-u8: Likewise.
31714         * modules/unistr/u32-uctomb: Likewise.
31715         * modules/uniwbrk/u8-wordbreaks: Likewise.
31716         * modules/uniwbrk/u16-wordbreaks: Likewise.
31717         * modules/uniwbrk/u32-wordbreaks: Likewise.
31718         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31719         * modules/uniwbrk/wordbreak-property: Likewise.
31720         * modules/uniwidth/u8-strwidth: Likewise.
31721         * modules/uniwidth/u8-width: Likewise.
31722         * modules/uniwidth/u16-strwidth: Likewise.
31723         * modules/uniwidth/u16-width: Likewise.
31724         * modules/uniwidth/u32-strwidth: Likewise.
31725         * modules/uniwidth/u32-width: Likewise.
31726         * modules/uniwidth/width: Likewise.
31727         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31728         with $(LIBUNISTRING).
31729         * modules/unicase/ignorable-tests: Likewise.
31730         * modules/unicase/locale-language-tests: Likewise.
31731         * modules/unicase/tolower-tests: Likewise.
31732         * modules/unicase/totitle-tests: Likewise.
31733         * modules/unicase/toupper-tests: Likewise.
31734         * modules/unicase/u8-casecmp-tests: Likewise.
31735         * modules/unicase/u8-casecoll-tests: Likewise.
31736         * modules/unicase/u8-casefold-tests: Likewise.
31737         * modules/unicase/u8-is-cased-tests: Likewise.
31738         * modules/unicase/u8-is-casefolded-tests: Likewise.
31739         * modules/unicase/u8-is-lowercase-tests: Likewise.
31740         * modules/unicase/u8-is-titlecase-tests: Likewise.
31741         * modules/unicase/u8-is-uppercase-tests: Likewise.
31742         * modules/unicase/u8-tolower-tests: Likewise.
31743         * modules/unicase/u8-totitle-tests: Likewise.
31744         * modules/unicase/u8-toupper-tests: Likewise.
31745         * modules/unicase/u16-casecmp-tests: Likewise.
31746         * modules/unicase/u16-casecoll-tests: Likewise.
31747         * modules/unicase/u16-casefold-tests: Likewise.
31748         * modules/unicase/u16-is-cased-tests: Likewise.
31749         * modules/unicase/u16-is-casefolded-tests: Likewise.
31750         * modules/unicase/u16-is-lowercase-tests: Likewise.
31751         * modules/unicase/u16-is-titlecase-tests: Likewise.
31752         * modules/unicase/u16-is-uppercase-tests: Likewise.
31753         * modules/unicase/u16-tolower-tests: Likewise.
31754         * modules/unicase/u16-totitle-tests: Likewise.
31755         * modules/unicase/u16-toupper-tests: Likewise.
31756         * modules/unicase/u32-casecmp-tests: Likewise.
31757         * modules/unicase/u32-casecoll-tests: Likewise.
31758         * modules/unicase/u32-casefold-tests: Likewise.
31759         * modules/unicase/u32-is-cased-tests: Likewise.
31760         * modules/unicase/u32-is-casefolded-tests: Likewise.
31761         * modules/unicase/u32-is-lowercase-tests: Likewise.
31762         * modules/unicase/u32-is-titlecase-tests: Likewise.
31763         * modules/unicase/u32-is-uppercase-tests: Likewise.
31764         * modules/unicase/u32-tolower-tests: Likewise.
31765         * modules/unicase/u32-totitle-tests: Likewise.
31766         * modules/unicase/u32-toupper-tests: Likewise.
31767         * modules/unicase/ulc-casecmp-tests: Likewise.
31768         * modules/unicase/ulc-casecoll-tests: Likewise.
31769         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31770         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31771         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31772         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31773         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31774         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31775         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31776         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31777         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31778         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31779         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31780         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31781         * modules/unictype/bidicategory-byname-tests: Likewise.
31782         * modules/unictype/bidicategory-name-tests: Likewise.
31783         * modules/unictype/bidicategory-of-tests: Likewise.
31784         * modules/unictype/bidicategory-test-tests: Likewise.
31785         * modules/unictype/block-list-tests: Likewise.
31786         * modules/unictype/block-of-tests: Likewise.
31787         * modules/unictype/block-test-tests: Likewise.
31788         * modules/unictype/category-C-tests: Likewise.
31789         * modules/unictype/category-Cc-tests: Likewise.
31790         * modules/unictype/category-Cf-tests: Likewise.
31791         * modules/unictype/category-Cn-tests: Likewise.
31792         * modules/unictype/category-Co-tests: Likewise.
31793         * modules/unictype/category-Cs-tests: Likewise.
31794         * modules/unictype/category-L-tests: Likewise.
31795         * modules/unictype/category-Ll-tests: Likewise.
31796         * modules/unictype/category-Lm-tests: Likewise.
31797         * modules/unictype/category-Lo-tests: Likewise.
31798         * modules/unictype/category-Lt-tests: Likewise.
31799         * modules/unictype/category-Lu-tests: Likewise.
31800         * modules/unictype/category-M-tests: Likewise.
31801         * modules/unictype/category-Mc-tests: Likewise.
31802         * modules/unictype/category-Me-tests: Likewise.
31803         * modules/unictype/category-Mn-tests: Likewise.
31804         * modules/unictype/category-N-tests: Likewise.
31805         * modules/unictype/category-Nd-tests: Likewise.
31806         * modules/unictype/category-Nl-tests: Likewise.
31807         * modules/unictype/category-No-tests: Likewise.
31808         * modules/unictype/category-P-tests: Likewise.
31809         * modules/unictype/category-Pc-tests: Likewise.
31810         * modules/unictype/category-Pd-tests: Likewise.
31811         * modules/unictype/category-Pe-tests: Likewise.
31812         * modules/unictype/category-Pf-tests: Likewise.
31813         * modules/unictype/category-Pi-tests: Likewise.
31814         * modules/unictype/category-Po-tests: Likewise.
31815         * modules/unictype/category-Ps-tests: Likewise.
31816         * modules/unictype/category-S-tests: Likewise.
31817         * modules/unictype/category-Sc-tests: Likewise.
31818         * modules/unictype/category-Sk-tests: Likewise.
31819         * modules/unictype/category-Sm-tests: Likewise.
31820         * modules/unictype/category-So-tests: Likewise.
31821         * modules/unictype/category-Z-tests: Likewise.
31822         * modules/unictype/category-Zl-tests: Likewise.
31823         * modules/unictype/category-Zp-tests: Likewise.
31824         * modules/unictype/category-Zs-tests: Likewise.
31825         * modules/unictype/category-and-not-tests: Likewise.
31826         * modules/unictype/category-and-tests: Likewise.
31827         * modules/unictype/category-byname-tests: Likewise.
31828         * modules/unictype/category-name-tests: Likewise.
31829         * modules/unictype/category-none-tests: Likewise.
31830         * modules/unictype/category-of-tests: Likewise.
31831         * modules/unictype/category-or-tests: Likewise.
31832         * modules/unictype/category-test-withtable-tests: Likewise.
31833         * modules/unictype/combining-class-tests: Likewise.
31834         * modules/unictype/ctype-alnum-tests: Likewise.
31835         * modules/unictype/ctype-alpha-tests: Likewise.
31836         * modules/unictype/ctype-blank-tests: Likewise.
31837         * modules/unictype/ctype-cntrl-tests: Likewise.
31838         * modules/unictype/ctype-digit-tests: Likewise.
31839         * modules/unictype/ctype-graph-tests: Likewise.
31840         * modules/unictype/ctype-lower-tests: Likewise.
31841         * modules/unictype/ctype-print-tests: Likewise.
31842         * modules/unictype/ctype-punct-tests: Likewise.
31843         * modules/unictype/ctype-space-tests: Likewise.
31844         * modules/unictype/ctype-upper-tests: Likewise.
31845         * modules/unictype/ctype-xdigit-tests: Likewise.
31846         * modules/unictype/decimal-digit-tests: Likewise.
31847         * modules/unictype/digit-tests: Likewise.
31848         * modules/unictype/mirror-tests: Likewise.
31849         * modules/unictype/numeric-tests: Likewise.
31850         * modules/unictype/property-alphabetic-tests: Likewise.
31851         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31852         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31853         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31854         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31855         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31856         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31857         * modules/unictype/property-bidi-control-tests: Likewise.
31858         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31859         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31860         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31861         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31862         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31863         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31864         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31865         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31866         * modules/unictype/property-bidi-pdf-tests: Likewise.
31867         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31868         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31869         * modules/unictype/property-byname-tests: Likewise.
31870         * modules/unictype/property-combining-tests: Likewise.
31871         * modules/unictype/property-composite-tests: Likewise.
31872         * modules/unictype/property-currency-symbol-tests: Likewise.
31873         * modules/unictype/property-dash-tests: Likewise.
31874         * modules/unictype/property-decimal-digit-tests: Likewise.
31875         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31876         * modules/unictype/property-deprecated-tests: Likewise.
31877         * modules/unictype/property-diacritic-tests: Likewise.
31878         * modules/unictype/property-extender-tests: Likewise.
31879         * modules/unictype/property-format-control-tests: Likewise.
31880         * modules/unictype/property-grapheme-base-tests: Likewise.
31881         * modules/unictype/property-grapheme-extend-tests: Likewise.
31882         * modules/unictype/property-grapheme-link-tests: Likewise.
31883         * modules/unictype/property-hex-digit-tests: Likewise.
31884         * modules/unictype/property-hyphen-tests: Likewise.
31885         * modules/unictype/property-id-continue-tests: Likewise.
31886         * modules/unictype/property-id-start-tests: Likewise.
31887         * modules/unictype/property-ideographic-tests: Likewise.
31888         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31889         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31890         * modules/unictype/property-ignorable-control-tests: Likewise.
31891         * modules/unictype/property-iso-control-tests: Likewise.
31892         * modules/unictype/property-join-control-tests: Likewise.
31893         * modules/unictype/property-left-of-pair-tests: Likewise.
31894         * modules/unictype/property-line-separator-tests: Likewise.
31895         * modules/unictype/property-logical-order-exception-tests: Likewise.
31896         * modules/unictype/property-lowercase-tests: Likewise.
31897         * modules/unictype/property-math-tests: Likewise.
31898         * modules/unictype/property-non-break-tests: Likewise.
31899         * modules/unictype/property-not-a-character-tests: Likewise.
31900         * modules/unictype/property-numeric-tests: Likewise.
31901         * modules/unictype/property-other-alphabetic-tests: Likewise.
31902         * modules/unictype/property-other-default-ignorable-code-point-tests:
31903         Likewise.
31904         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31905         * modules/unictype/property-other-id-continue-tests: Likewise.
31906         * modules/unictype/property-other-id-start-tests: Likewise.
31907         * modules/unictype/property-other-lowercase-tests: Likewise.
31908         * modules/unictype/property-other-math-tests: Likewise.
31909         * modules/unictype/property-other-uppercase-tests: Likewise.
31910         * modules/unictype/property-paired-punctuation-tests: Likewise.
31911         * modules/unictype/property-paragraph-separator-tests: Likewise.
31912         * modules/unictype/property-pattern-syntax-tests: Likewise.
31913         * modules/unictype/property-pattern-white-space-tests: Likewise.
31914         * modules/unictype/property-private-use-tests: Likewise.
31915         * modules/unictype/property-punctuation-tests: Likewise.
31916         * modules/unictype/property-quotation-mark-tests: Likewise.
31917         * modules/unictype/property-radical-tests: Likewise.
31918         * modules/unictype/property-sentence-terminal-tests: Likewise.
31919         * modules/unictype/property-soft-dotted-tests: Likewise.
31920         * modules/unictype/property-space-tests: Likewise.
31921         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31922         * modules/unictype/property-test-tests: Likewise.
31923         * modules/unictype/property-titlecase-tests: Likewise.
31924         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31925         * modules/unictype/property-unified-ideograph-tests: Likewise.
31926         * modules/unictype/property-uppercase-tests: Likewise.
31927         * modules/unictype/property-variation-selector-tests: Likewise.
31928         * modules/unictype/property-white-space-tests: Likewise.
31929         * modules/unictype/property-xid-continue-tests: Likewise.
31930         * modules/unictype/property-xid-start-tests: Likewise.
31931         * modules/unictype/property-zero-width-tests: Likewise.
31932         * modules/unictype/scripts-tests: Likewise.
31933         * modules/unictype/syntax-c-ident-tests: Likewise.
31934         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31935         * modules/unictype/syntax-java-ident-tests: Likewise.
31936         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31937         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31938         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31939         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31940         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31941         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31942         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31943         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31944         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31945         * modules/uniname/uniname-tests: Likewise.
31946         * modules/uninorm/canonical-decomposition-tests: Likewise.
31947         * modules/uninorm/compat-decomposition-tests: Likewise.
31948         * modules/uninorm/composition-tests: Likewise.
31949         * modules/uninorm/decomposing-form-tests: Likewise.
31950         * modules/uninorm/decomposition-tests: Likewise.
31951         * modules/uninorm/filter-tests: Likewise.
31952         * modules/uninorm/nfc-tests: Likewise.
31953         * modules/uninorm/nfd-tests: Likewise.
31954         * modules/uninorm/nfkc-tests: Likewise.
31955         * modules/uninorm/nfkd-tests: Likewise.
31956         * modules/uninorm/u8-normcmp-tests: Likewise.
31957         * modules/uninorm/u8-normcoll-tests: Likewise.
31958         * modules/uninorm/u16-normcmp-tests: Likewise.
31959         * modules/uninorm/u16-normcoll-tests: Likewise.
31960         * modules/uninorm/u32-normcmp-tests: Likewise.
31961         * modules/uninorm/u32-normcoll-tests: Likewise.
31962         * modules/unistdio/u8-asnprintf-tests: Likewise.
31963         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31964         * modules/unistdio/u8-vasprintf-tests: Likewise.
31965         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31966         * modules/unistdio/u8-vsprintf-tests: Likewise.
31967         * modules/unistdio/u16-asnprintf-tests: Likewise.
31968         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31969         * modules/unistdio/u16-vasprintf-tests: Likewise.
31970         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31971         * modules/unistdio/u16-vsprintf-tests: Likewise.
31972         * modules/unistdio/u32-asnprintf-tests: Likewise.
31973         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31974         * modules/unistdio/u32-vasprintf-tests: Likewise.
31975         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31976         * modules/unistdio/u32-vsprintf-tests: Likewise.
31977         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31978         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31979         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31980         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31981         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31982         * modules/unistr/u8-check-tests: Likewise.
31983         * modules/unistr/u8-chr-tests: Likewise.
31984         * modules/unistr/u8-cmp-tests: Likewise.
31985         * modules/unistr/u8-cmp2-tests: Likewise.
31986         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31987         * modules/unistr/u8-cpy-tests: Likewise.
31988         * modules/unistr/u8-mblen-tests: Likewise.
31989         * modules/unistr/u8-mbsnlen-tests: Likewise.
31990         * modules/unistr/u8-mbtouc-tests: Likewise.
31991         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31992         * modules/unistr/u8-mbtoucr-tests: Likewise.
31993         * modules/unistr/u8-move-tests: Likewise.
31994         * modules/unistr/u8-next-tests: Likewise.
31995         * modules/unistr/u8-prev-tests: Likewise.
31996         * modules/unistr/u8-set-tests: Likewise.
31997         * modules/unistr/u8-stpcpy-tests: Likewise.
31998         * modules/unistr/u8-stpncpy-tests: Likewise.
31999         * modules/unistr/u8-strcat-tests: Likewise.
32000         * modules/unistr/u8-strcmp-tests: Likewise.
32001         * modules/unistr/u8-strcoll-tests: Likewise.
32002         * modules/unistr/u8-strcpy-tests: Likewise.
32003         * modules/unistr/u8-strdup-tests: Likewise.
32004         * modules/unistr/u8-strlen-tests: Likewise.
32005         * modules/unistr/u8-strmblen-tests: Likewise.
32006         * modules/unistr/u8-strmbtouc-tests: Likewise.
32007         * modules/unistr/u8-strncat-tests: Likewise.
32008         * modules/unistr/u8-strncmp-tests: Likewise.
32009         * modules/unistr/u8-strncpy-tests: Likewise.
32010         * modules/unistr/u8-strnlen-tests: Likewise.
32011         * modules/unistr/u8-to-u16-tests: Likewise.
32012         * modules/unistr/u8-to-u32-tests: Likewise.
32013         * modules/unistr/u8-uctomb-tests: Likewise.
32014         * modules/unistr/u16-check-tests: Likewise.
32015         * modules/unistr/u16-chr-tests: Likewise.
32016         * modules/unistr/u16-cmp-tests: Likewise.
32017         * modules/unistr/u16-cmp2-tests: Likewise.
32018         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32019         * modules/unistr/u16-cpy-tests: Likewise.
32020         * modules/unistr/u16-mblen-tests: Likewise.
32021         * modules/unistr/u16-mbsnlen-tests: Likewise.
32022         * modules/unistr/u16-mbtouc-tests: Likewise.
32023         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32024         * modules/unistr/u16-mbtoucr-tests: Likewise.
32025         * modules/unistr/u16-move-tests: Likewise.
32026         * modules/unistr/u16-next-tests: Likewise.
32027         * modules/unistr/u16-prev-tests: Likewise.
32028         * modules/unistr/u16-set-tests: Likewise.
32029         * modules/unistr/u16-stpcpy-tests: Likewise.
32030         * modules/unistr/u16-stpncpy-tests: Likewise.
32031         * modules/unistr/u16-strcat-tests: Likewise.
32032         * modules/unistr/u16-strcmp-tests: Likewise.
32033         * modules/unistr/u16-strcoll-tests: Likewise.
32034         * modules/unistr/u16-strcpy-tests: Likewise.
32035         * modules/unistr/u16-strdup-tests: Likewise.
32036         * modules/unistr/u16-strlen-tests: Likewise.
32037         * modules/unistr/u16-strmblen-tests: Likewise.
32038         * modules/unistr/u16-strmbtouc-tests: Likewise.
32039         * modules/unistr/u16-strncat-tests: Likewise.
32040         * modules/unistr/u16-strncmp-tests: Likewise.
32041         * modules/unistr/u16-strncpy-tests: Likewise.
32042         * modules/unistr/u16-strnlen-tests: Likewise.
32043         * modules/unistr/u16-to-u32-tests: Likewise.
32044         * modules/unistr/u16-to-u8-tests: Likewise.
32045         * modules/unistr/u16-uctomb-tests: Likewise.
32046         * modules/unistr/u32-check-tests: Likewise.
32047         * modules/unistr/u32-chr-tests: Likewise.
32048         * modules/unistr/u32-cmp-tests: Likewise.
32049         * modules/unistr/u32-cmp2-tests: Likewise.
32050         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32051         * modules/unistr/u32-cpy-tests: Likewise.
32052         * modules/unistr/u32-mblen-tests: Likewise.
32053         * modules/unistr/u32-mbsnlen-tests: Likewise.
32054         * modules/unistr/u32-mbtouc-tests: Likewise.
32055         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32056         * modules/unistr/u32-mbtoucr-tests: Likewise.
32057         * modules/unistr/u32-move-tests: Likewise.
32058         * modules/unistr/u32-next-tests: Likewise.
32059         * modules/unistr/u32-prev-tests: Likewise.
32060         * modules/unistr/u32-set-tests: Likewise.
32061         * modules/unistr/u32-stpcpy-tests: Likewise.
32062         * modules/unistr/u32-stpncpy-tests: Likewise.
32063         * modules/unistr/u32-strcat-tests: Likewise.
32064         * modules/unistr/u32-strcmp-tests: Likewise.
32065         * modules/unistr/u32-strcoll-tests: Likewise.
32066         * modules/unistr/u32-strcpy-tests: Likewise.
32067         * modules/unistr/u32-strdup-tests: Likewise.
32068         * modules/unistr/u32-strlen-tests: Likewise.
32069         * modules/unistr/u32-strmblen-tests: Likewise.
32070         * modules/unistr/u32-strmbtouc-tests: Likewise.
32071         * modules/unistr/u32-strncat-tests: Likewise.
32072         * modules/unistr/u32-strncmp-tests: Likewise.
32073         * modules/unistr/u32-strncpy-tests: Likewise.
32074         * modules/unistr/u32-strnlen-tests: Likewise.
32075         * modules/unistr/u32-to-u16-tests: Likewise.
32076         * modules/unistr/u32-to-u8-tests: Likewise.
32077         * modules/unistr/u32-uctomb-tests: Likewise.
32078         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32079         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32080         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32081         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32082         * modules/uniwidth/u8-strwidth-tests: Likewise.
32083         * modules/uniwidth/u8-width-tests: Likewise.
32084         * modules/uniwidth/u16-strwidth-tests: Likewise.
32085         * modules/uniwidth/u16-width-tests: Likewise.
32086         * modules/uniwidth/u32-strwidth-tests: Likewise.
32087         * modules/uniwidth/u32-width-tests: Likewise.
32088         * modules/uniwidth/width-tests: Likewise.
32089
32090 2010-05-18  Richard Jones  <rjones@redhat.com>
32091
32092         doc: users.txt: list hivex
32093         * users.txt: Add hivex.
32094
32095 2010-05-18  Richard Jones  <rjones@redhat.com>
32096
32097         doc: users.txt: list febootstrap
32098         * users.txt: Add febootstrap.
32099
32100 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32101
32102         bootstrap: fix an error when gnulib is not used as a git submodule
32103         * build-aux/bootstrap (gnulib_path): If its length is zero then
32104         assign "gnulib" to it.
32105         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32106
32107 2010-05-16  Bruno Haible  <bruno@clisp.org>
32108
32109         Avoid autoconf warnings about AM_ICONV.
32110         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32111         2.64.
32112
32113 2010-05-16  Bruno Haible  <bruno@clisp.org>
32114
32115         absolute-header: Make the macro usable in more situations.
32116         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32117         from gl_ABSOLUTE_HEADER.
32118         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32119
32120 2010-05-16  James Youngman  <jay@gnu.org>
32121
32122         doc: update users.txt
32123         * users.txt: Add CSSC.
32124
32125 2010-05-16  Jim Meyering  <meyering@redhat.com>
32126
32127         init.sh: fix an error in the previous change; add more comments
32128         * tests/init.sh: Compare exit code in loop against 9, not 2.
32129         Patch by Bruno Haible.
32130         Make the two tests more similar by adding an empty "then" clause.
32131         Add comments.
32132
32133         init.sh: avoid unnecessary shell re-exec
32134         * tests/init.sh: Improve the re-exec-required check to first test the
32135         current shell.  If it passes the test, do not search for a shell that
32136         does pass, and do not re-exec.  This test is particularly contorted to
32137         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32138         of $(...) evokes a syntax error and causes immediate shell exit with
32139         status 2.  Bruno Haible reported that the re-exec made it impossible
32140         to single-step through any init.sh-using script.
32141
32142 2010-05-16  Bruno Haible  <bruno@clisp.org>
32143
32144         Fix collision between gnulib's and libintl's printf replacements.
32145         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32146         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32147         (printf): When using GNU C, map the __printf__ function to rpl_printf
32148         via __asm__. When not using GNU C, define rpl_printf instead of
32149         __printf__.
32150         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32151         commit.
32152         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32153         commit.
32154         * m4/asm-underscore.m4: New file.
32155         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32156         * modules/stdio (Files): Add m4/asm-underscore.m4.
32157         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32158         Reported by Ben Pfaff.
32159
32160 2010-05-16  Bruno Haible  <bruno@clisp.org>
32161
32162         verify: Avoid skipping the test on openSUSE 11.0.
32163         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32164
32165 2010-05-13  Bruno Haible  <bruno@clisp.org>
32166
32167         Avoid useless warnings from G++.
32168         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32169         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32170         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32171
32172 2010-05-11  Jim Meyering  <meyering@redhat.com>
32173
32174         maint.mk: tweak preceding change
32175         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32176         regexps tighter by anchoring at EOL, and make the new group "shy"
32177         for slightly decreased overhead.
32178
32179 2010-05-11  Eric Blake  <eblake@redhat.com>
32180
32181         maint.mk: gnulib doesn't guarantee NSIG
32182         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32183
32184 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32185
32186         test-pwrite.c: Remove unused variable declaration.
32187         * tests/test-pwrite.c (main): Remove read_buf declaration.
32188
32189         Remove useless test-pwrite.sh file.
32190         * tests/test-pwrite.sh: Delete file.
32191         * modules/pwrite-tests: Remove references.
32192         Reported by Bruno Haible.
32193
32194 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32195
32196         init.sh: fix a typo
32197         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32198
32199 2010-05-10  Jim Meyering  <meyering@redhat.com>
32200
32201         maint.mk: avoid using a temporary file in the always-defined-macros check
32202         * top/maint.mk (.re-defmac): Remove rule.
32203         (gl_trap_): Remove definition.
32204         (sc_prohibit_always-defined_macros): Rewrite not to create and
32205         depend on a temporary file.  Instead, depend on GNU grep's ability
32206         to read a list of regular expressions from stdin when given "-f -".
32207
32208 2010-05-09  Bruno Haible  <bruno@clisp.org>
32209
32210         Update to GNU gettext 0.18, part 1.
32211         * m4/gettext.m4: Update to GNU gettext 0.18.
32212         * m4/intl.m4: Likewise.
32213         * m4/po.m4: Likewise.
32214         * modules/gettext (Files): Add m4/fcntl-o.m4.
32215         (configure.ac): Require gettext infrastructure from version 0.18.
32216
32217 2010-05-09  Jim Meyering  <meyering@redhat.com>
32218
32219         init.sh: enable MALLOC_PERTURB_
32220         * tests/init.sh: Enable glibc's malloc-perturbing option.
32221
32222         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32223         With my recent change in init.sh from the two-line form:
32224             -#   : ${srcdir=.}
32225             -#   . "$srcdir/init.sh"; path_prepend_ .
32226             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32227         I noticed that using the one-line form would cause this test
32228         to fail with a false-positive, or to stop working altogether,
32229         depending on whether help-version changed or all the tests did.
32230         * top/maint.mk (_hv_regex): Remove this definition.
32231         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32232         (_hv_regex_strong): Use a stronger regex to check for conformance.
32233         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32234         Give a separate diagnostic for lack of conforming use.
32235
32236         maint.mk: prohibit definition of symbols defined by gnulib
32237         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32238         definition of symbols defined by gnulib.
32239
32240 2010-05-09  Bruno Haible  <bruno@clisp.org>
32241
32242         acl: Avoid test failure on Cygwin-hosted mingw.
32243         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32244
32245 2010-05-09  Bruno Haible  <bruno@clisp.org>
32246
32247         error: Use system's fcntl function.
32248         * lib/error.c (fcntl): Undefine.
32249
32250 2010-05-09  Jim Meyering  <meyering@redhat.com>
32251
32252         verify: adjust formatting to be more consistent
32253         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32254         argument-list '('s, and after one comma.
32255
32256 2010-05-09  Bruno Haible  <bruno@clisp.org>
32257
32258         error: More reliable output on mingw.
32259         * lib/error.c: Include <windows.h>.
32260         (is_open): New function.
32261         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32262         defined.
32263
32264 2010-05-09  Bruno Haible  <bruno@clisp.org>
32265
32266         vasnprintf: Fix syntax errors in libintl build on mingw.
32267         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32268         pad_ourselves and prec_ourselves after use.
32269
32270 2010-05-08  Bruno Haible  <bruno@clisp.org>
32271
32272         * lib/config.charset: Update comments for Cygwin 1.7.
32273         * lib/localcharset.c: Likewise.
32274
32275 2010-05-07  Jim Meyering  <meyering@redhat.com>
32276
32277         init.sh: improve comments
32278         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32279         . "${srcdir=.}/init.sh"; path_prepend_ .
32280         Add a note about path_prepend_ and the alternative of using
32281         TESTS_ENVIRONMENT.
32282
32283 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32284
32285         exclude: Unescape hashed patterns in wildcard mode.
32286         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32287         to the hash list.
32288         * tests/test-exclude8.sh: New test case.
32289         * modules/exclude-tests: Add new test.
32290
32291 2010-05-05  Eric Blake  <eblake@redhat.com>
32292
32293         verify: automate tests
32294         * modules/verify-tests: New module.
32295         * tests/test-verify.sh: New file.
32296         * tests/test-verify.c: Guard each negative test with a unique id.
32297         Also avoid warning about unused left hand of comma expressions.
32298
32299 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32300
32301         Further improvements to verify.h, suggested by Eric Blake.
32302         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32303         the GL_* versions, to avoid collision with OpenGL.
32304         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32305         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32306         than testing merely whether it's defined.
32307
32308         Modify verify.h to pacify gcc -Wredundant_decls.
32309         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32310         These use the prefix "GL_" since they're likely to be useful elsewhere.
32311         We may need to break them out into a different .h file.
32312         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32313         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32314         of verify_function__.
32315
32316 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32317
32318         Tests for module pwrite.
32319         * modules/pwrite-tests: New file.
32320         * tests/test-pwrite.sh: New file.
32321         * tests/test-pwrite.c: New file.
32322
32323         New module pwrite.
32324         * lib/unistd.in.h (pwrite): New declaration.
32325         * lib/pwrite.c: New file, from glibc with modifications.
32326         * m4/pwrite.m4: New file.
32327         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32328         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32329         REPLACE_PWRITE.
32330         * modules/pwrite: New file.
32331         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32332         REPLACE_PWRITE.
32333         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32334         * doc/posix-functions/pwrite.texi: Mention the new module.
32335
32336 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32337
32338         pread: Update documentation.
32339         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32340
32341 2010-05-04  Eric Blake  <eblake@redhat.com>
32342
32343         docs: update cygwin progress
32344         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32345         this bug.
32346         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32347         Added in cygwin 1.7.2.
32348         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32349         Likewise.
32350         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32351         Likewise.
32352         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32353         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32354         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32355         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32356         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32357         Mention nproc module.
32358         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32359         bug in cygwin 1.7.5 addition.
32360         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32361         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32362         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32363         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32364         1.7.5.
32365         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32366         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32367         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32368         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32369         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32370         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32371         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32372         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32373         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32374         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32375         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32376         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32377         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32378         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32379         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32380         Likewise.
32381         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32382         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32383         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32384         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32385         Likewise.
32386         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32387         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32388         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32389         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32390         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32391         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32392         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32393         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32394         Likewise.
32395         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32396         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32397         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32398         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32399         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32400         Likewise.
32401         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32402         Likewise.
32403         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32404         Likewise.
32405         * doc/glibc-functions/xdrrec_endofrecord.texi
32406         (xdrrec_endofrecord): Likewise.
32407         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32408         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32409         Likewise.
32410         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32411         Likewise.
32412
32413 2010-05-04  Jim Meyering  <meyering@redhat.com>
32414
32415         gendocs.sh: make its "-s FILE" option more useful
32416         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32417         $PACKAGE to reflect the probably-different basename of "FILE".
32418
32419 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32420
32421         bootstrap: don't ignore download_po_files failure
32422         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32423         failure.
32424
32425 2010-05-03  Jim Meyering  <meyering@redhat.com>
32426
32427         maint.mk: allow to pass options to gendocs.sh
32428         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32429         (gendocs_options_): New overridable variable.
32430
32431         gnu-web-doc-update: don't ignore configure or build failure
32432         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32433
32434         announce-gen: backslash-escape '@'s in --help output
32435         * build-aux/announce-gen: Fix syntax errors.
32436
32437         maint.mk, announce-gen: allow project-specific announcement mail headers
32438         * top/maint.mk (translation_project_): Define default.
32439         (announcement_Cc_, announcement_mail_headers_): Likewise.
32440         (announcement): Invoke announce-gen with new --mail-headers option.
32441         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32442
32443         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32444         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32445         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32446         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32447         line in the "err2" output file when running "make check" in verbose
32448         mode (i.e., with set -x enabled).
32449
32450 2010-05-03  Bruno Haible  <bruno@clisp.org>
32451
32452         wctob: Fix for weird platforms.
32453         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32454         argument value.
32455
32456 2010-05-03  Jim Meyering  <meyering@redhat.com>
32457
32458         maint.mk: prohibit unwarranted use of <strings.h>
32459         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32460         strings.h in a file that does not also use strcasecmp, strncasecmp,
32461         ffs or ffsll.
32462
32463         maint.mk: remove obsolete comments
32464         * top/maint.mk: Remove stale, commented-out rules.
32465
32466 2010-05-02  Bruno Haible  <bruno@clisp.org>
32467
32468         wcwidth: Declare also when it's aliased.
32469         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32470         macro.
32471
32472 2010-05-02  Bruno Haible  <bruno@clisp.org>
32473
32474         Fix regression from 2010-04-25.
32475         * gnulib-tool (func_modules_transitive_closure): Check the status of
32476         all modules, not only of the tests that are of the form foo-tests where
32477         foo is a module.
32478
32479 2010-05-02  Bruno Haible  <bruno@clisp.org>
32480
32481         wctob: Work around nasty Cygwin 1.7.2 bug.
32482         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32483         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32484
32485 2010-05-01  Bruno Haible  <bruno@clisp.org>
32486
32487         fpurge: Sharper test.
32488         * tests/test-fpurge.c (main): Add one more ftell check.
32489         * modules/fpurge-tests (Depends-on): Add ftell.
32490         Suggested by Eric Blake.
32491
32492 2010-05-01  Bruno Haible  <bruno@clisp.org>
32493
32494         ftello: Another test.
32495         * tests/test-ftello3.c: New file.
32496         * modules/ftello-tests (Files): Add it.
32497         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32498         MOSTLYCLEANFILES.
32499
32500         ftell: Another test.
32501         * tests/test-ftell3.c: New file.
32502         * modules/ftell-tests (Files): Add it.
32503         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32504         MOSTLYCLEANFILES.
32505
32506 2010-05-01  Bruno Haible  <bruno@clisp.org>
32507
32508         ftell, ftello: Work around Solaris bug.
32509         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32510         * lib/ftello.c: Include stdio-impl.h.
32511         (ftello): On Solaris, when _IOWRT is set, compute the result without
32512         looking at _IOREAD.
32513         * modules/ftello (Files): Add lib/stdio-impl.h.
32514         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32515         * doc/posix-functions/ftello.texi: Likewise.
32516         Reported by Eric Blake.
32517
32518 2010-05-01  Bruno Haible  <bruno@clisp.org>
32519
32520         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32521         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32522         the _IOWRT flag is also set.
32523
32524 2010-05-01  Bruno Haible  <bruno@clisp.org>
32525
32526         Fix doc about a HP-UX stdio bug.
32527         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32528         * doc/posix-functions/ftello.texi: Likewise.
32529
32530 2010-05-01  Bruno Haible  <bruno@clisp.org>
32531
32532         lseek test: Fix failure on Solaris.
32533         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32534         output.
32535
32536 2010-04-30  Jim Meyering  <meyering@redhat.com>
32537
32538         bootstrap: don't ignore failure to generate po*/Makevars
32539         * build-aux/bootstrap (with_gettext): Don't ignore failure
32540         to create po/Makevars or runtime-po/Makevars.
32541
32542 2010-04-29  Eric Blake  <eblake@redhat.com>
32543
32544         headers: relax license to LGPLv2+
32545         * modules/fcntl-h (License): Relax license.
32546         * modules/getopt-posix (License): Likewise.
32547         * modules/locale (License): Likewise.
32548         * modules/math (License): Likewise.
32549         * modules/pty (License): Likewise.
32550         * modules/sched (License): Likewise.
32551         * modules/search (License): Likewise.
32552         * modules/spawn (License): Likewise.
32553         * modules/stdarg (License): Likewise.
32554         * modules/sysexits (License): Likewise.
32555
32556 2010-04-29  Jim Meyering  <meyering@redhat.com>
32557
32558         inttypes: relax license to LGPLv2+
32559         * modules/inttypes (License): Relax license.
32560
32561 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32562
32563         * top/maint.mk (indent): Run twice to produce idempotent results.
32564
32565 2010-04-28  Bruno Haible  <bruno@clisp.org>
32566
32567         getdate: Generate getdate.c in the source directory.
32568         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32569         MOSTLYCLEANFILES.
32570         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32571
32572 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32573
32574         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32575         is not declared as a const *; avoid warnings in that case.
32576
32577 2010-04-28  Eric Blake  <eblake@redhat.com>
32578
32579         canonicalize-lgpl: avoid compiler warning
32580         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32581         declaration' / 'extraneous semicolon' warning with some compilers.
32582         Reported by Andreas Gruenbacher.
32583
32584 2010-04-28  Jim Meyering  <meyering@redhat.com>
32585
32586         init.sh: ensure a more reliable exit status when exiting via trap
32587         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32588         Inspired by patches from Dmitry V. Levin.
32589         Also trap on signal 3 (SIGQUIT).
32590
32591 2010-04-27  Bruno Haible  <bruno@clisp.org>
32592
32593         Update doc about utimes().
32594         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32595         'utimens' module.
32596         Reported by Andreas Gruenbacher <agruen@suse.de>.
32597
32598 2010-04-27  Eric Blake  <eblake@redhat.com>
32599
32600         full-read, full-write: relax license
32601         * modules/full-read (License): Drop to LGPLv2+.
32602         * modules/full-write (License): Likewise.
32603         * modules/safe-read (License): Likewise.
32604         * modules/safe-write (License): Likewise.
32605
32606         pthread: mention library for linking
32607         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32608
32609 2010-04-27  Jim Meyering  <meyering@redhat.com>
32610
32611         maint.mk: fix a bug introduced in last change
32612         * top/maint.mk (gl_assured_headers_): Now that all names are on
32613         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32614         is not anchored to end of word, it should be adequate.
32615
32616         maint.mk: avoid side-effect in latest syntax-check
32617         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32618         to run commands via $(shell...), and hence to incur cost only when
32619         the new rule is actually run.
32620
32621         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32622         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32623         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32624         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32625         (gl_assured_headers_, az_, AZ_): Define.
32626         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32627
32628 2010-04-26  Jim Meyering  <jim@meyering.net>
32629             Bruno Haible  <bruno@clisp.org>
32630
32631         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32632         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32633         Prompted by an exchange with Gilles Espinasse.
32634
32635 2010-04-26  Jim Meyering  <meyering@redhat.com>
32636
32637         git-version-gen: aesthetic tweak
32638         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32639         so that the command remains on a single line.
32640
32641 2010-04-26  Eric Blake  <eblake@redhat.com>
32642
32643         git-version-gen: allow use on EBCDIC hosts
32644         * build-aux/git-version-gen (dirty): Use literal rather than tying
32645         ourselves to ascii.
32646         Reported by Steve Goetze.
32647
32648 2010-04-25  Bruno Haible  <bruno@clisp.org>
32649
32650         netdb: Add support for GNULIB_POSIXCHECK.
32651         * lib/netdb.in.h: Include warn-on-use.h.
32652         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32653         functions are used when GNULIB_POSIXCHECK is defined and the
32654         getaddrinfo module is not in use.
32655         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32656         freeaddrinfo, gai_strerror, getnameinfo are declared.
32657         * modules/netdb (Depends-on): Add warn-on-use.
32658         (Makefile.am): Include warn-on-use.h in netdb.h.
32659
32660 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32661
32662         build: avoid "make check" failure without .git/ directory
32663         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32664         there is no .git/ directory.
32665
32666 2010-04-25  Bruno Haible  <bruno@clisp.org>
32667
32668         ptsname: Fix misuse of ttyname_r.
32669         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32670         of errno.
32671
32672 2010-04-25  Bruno Haible  <bruno@clisp.org>
32673
32674         ttyname_r: Make it work on Solaris 10.
32675         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32676         if the system function has the POSIX declaration. Test whether the
32677         function fails if the buffer is less than 128 bytes large.
32678         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32679         system's ttyname_r function. Provide a reasonably large buffer.
32680         * modules/ttyname_r (Depends-on): Add extensions.
32681         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32682
32683 2010-04-25  Bruno Haible  <bruno@clisp.org>
32684
32685         Use the 'extensions' module for some more functions on Solaris.
32686         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32687         module.
32688         * doc/posix-functions/ctime_r.texi: Likewise.
32689         * doc/posix-functions/getgrgid_r.texi: Likewise.
32690         * doc/posix-functions/getgrnam_r.texi: Likewise.
32691         * doc/posix-functions/getpwnam_r.texi: Likewise.
32692         * doc/posix-functions/getpwuid_r.texi: Likewise.
32693         * doc/posix-functions/readdir_r.texi: Likewise.
32694         * doc/posix-functions/sigwait.texi: Likewise.
32695         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32696         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32697
32698 2010-04-25  Bruno Haible  <bruno@clisp.org>
32699
32700         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32701         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32702         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32703         * lib/ttyname_r.c: Include <limits.h>.
32704         (ttyname_r): Define using the system's ttyname_r function, if it exists
32705         and not on Solaris.
32706         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32707         set.
32708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32709         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32710         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32711         Reported by Simon Josefsson.
32712
32713 2010-04-25  Bruno Haible  <bruno@clisp.org>
32714
32715         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32716         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32717         * doc/posix-functions/ctime_r.texi: Likewise.
32718         * doc/posix-functions/getgrgid_r.texi: Likewise.
32719         * doc/posix-functions/getgrnam_r.texi: Likewise.
32720         * doc/posix-functions/getlogin_r.texi: Likewise.
32721         * doc/posix-functions/getpwnam_r.texi: Likewise.
32722         * doc/posix-functions/getpwuid_r.texi: Likewise.
32723         * doc/posix-functions/readdir_r.texi: Likewise.
32724         * doc/posix-functions/sigwait.texi: Likewise.
32725         * doc/posix-functions/ttyname_r.texi: Likewise.
32726         Reported by Simon Josefsson.
32727
32728 2010-04-25  Bruno Haible  <bruno@clisp.org>
32729
32730         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32731         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32732         also to --create-testdir.
32733         (func_acceptable): Don't consider the status of *-tests modules here.
32734         (func_modules_transitive_closure): Consider it here, before including a
32735         test module.
32736         (func_import, func_create_testdir): Set inc_all_direct_tests,
32737         inc_all_indirect_tests.
32738         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32739         --create-testdir and --create-megatestdir.
32740
32741 2010-04-25  Bruno Haible  <bruno@clisp.org>
32742
32743         gnulib-tool: Add --without-*-tests options.
32744         * gnulib-tool (func_usage): Document the --without-*-tests options.
32745         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32746         excl_unportable_tests): New variables.
32747         Fail if they are specified with --import or --update.
32748         (func_acceptable): Respect the excl_*_tests variables.
32749         (func_import): Set the excl_*_tests variables to empty.
32750
32751 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32752             Bruno Haible  <bruno@clisp.org>
32753
32754         Work around a MacOS X 10.4 bug with openpty.
32755         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32756         * tests/test-openpty.c (main): Close the master side explicitly.
32757
32758 2010-04-25  Bruno Haible  <bruno@clisp.org>
32759
32760         strnlen: Fix a C++ test error on MacOS X and Solaris.
32761         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32762         the function is not declared.
32763         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32764         Simon Josefsson.
32765
32766 2010-04-24  Bruno Haible  <bruno@clisp.org>
32767
32768         Avoid a gcc warning.
32769         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32770         of correct type for %08lx directive.
32771         Reported by Eric Blake.
32772
32773 2010-04-24  Bruno Haible  <bruno@clisp.org>
32774
32775         vasnprintf: Correct errno value in case of out-of-memory.
32776         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32777         or sprintf. Use the errno value from SNPRINTF or sprintf.
32778         Reported by Ian Beckwith <ianb@erislabs.net>.
32779
32780 2010-04-24  Bruno Haible  <bruno@clisp.org>
32781
32782         ansi-c++-opt: Find correct compiler when cross-compiling.
32783         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32784         AC_CHECK_PROGS.
32785         Reported by Simon Josefsson.
32786
32787 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32788
32789         vc-list-files: Add support for subversion
32790         * build-aux/vc-list-files: Use "svn list" to generate the list of
32791         files controlled by subversion.
32792
32793 2010-04-23  Jim Meyering  <meyering@redhat.com>
32794
32795         vc-list-files tests: convert to use init.sh
32796         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32797         path_prepend_.
32798         Use Exit, not exit.
32799         Use skip_ rather than open coding it.
32800         Remove trap set-up and compare definitions.
32801         * tests/test-vc-list-files-git.sh: Likewise.
32802         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32803
32804 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32805
32806         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32807         backup files.
32808
32809 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32810
32811         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32812
32813 2010-04-20  Eric Blake  <eblake@redhat.com>
32814
32815         tests: be robust to ignored SIGPIPE
32816         * tests/test-select-in.sh: Consume all output.
32817         * tests/test-lseek.sh: Check correct exit status, while avoiding
32818         EPIPE.
32819
32820 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32821             Bruno Haible  <bruno@clisp.org>
32822
32823         visibility: Don't use -fvisibility if it leads to a warning.
32824         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32825         yes, don't pretend that visibility works if it leads to a warning.
32826         Reported by Mike Gran <spk121@yahoo.com>.
32827
32828 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32829
32830         * build-aux/bootstrap: Use "git -h" for testing for supported options
32831         instead of "git --help".  The short-form option only shows a summary,
32832         and doesn't layout the full man page.  Grep for the full option name
32833         in the summary, too.
32834
32835 2010-04-19  Bruno Haible  <bruno@clisp.org>
32836
32837         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32838         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32839         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32840         mention of RELOCATABLE_STRIP.
32841         Reported by Sylvain Beucler <beuc@beuc.net>.
32842
32843 2010-04-19  Bruno Haible  <bruno@clisp.org>
32844
32845         * lib/diffseq.h: Fix typo in comment.
32846         Reported by Eric Blake.
32847
32848 2010-04-19  Bruno Haible  <bruno@clisp.org>
32849
32850         ioctl: Move autoconf macro to a .m4 file.
32851         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32852         * modules/ioctl (Files): Add it.
32853         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32854         Reported by Ian Beckwith <ianb@erislabs.net>.
32855
32856 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32857             Bruno Haible  <bruno@clisp.org>
32858
32859         diffseq: Accommodate use-case with abstract arrays.
32860         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32861         is not defined.
32862         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32863         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32864
32865 2010-04-18  Bruno Haible  <bruno@clisp.org>
32866
32867         * doc/posix-headers/stdbool.texi: More precise wording.
32868
32869 2010-04-17  Jim Meyering  <meyering@redhat.com>
32870
32871         maint.mk: use gnu-style indentation in an embedded perl script
32872         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32873         Rename variable: s/two/last_two_bytes/
32874
32875 2010-04-16  Eric Blake  <eblake@redhat.com>
32876
32877         test-stdbool: skip test that fails with Solaris CC
32878         * tests/test-stdbool.c (f): Skip test that causes compilation
32879         error under buggy C++ compiler.
32880         * lib/stdbool.in.h: Document the limitation.
32881         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32882
32883         setenv: allow compilation with C++
32884         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32885         register keyword.
32886
32887         stdint: allow test to pass with C++
32888         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32889
32890         getopt: allow compilation with C++
32891         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32892         struct.
32893         * lib/getopt.c (_getopt_internal_r): Use correct type.
32894         Reported by Dagobert Michelson, via Joel E. Denny.
32895
32896 2010-04-16  Bruno Haible  <bruno@clisp.org>
32897
32898         Override netdb.h always.
32899         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32900         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32901         Reported by Ludovic Courtès <ludo@gnu.org>.
32902
32903 2010-04-15  Bruno Haible  <bruno@clisp.org>
32904
32905         openpty: Fix mistake from 2010-03-21.
32906         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32907         Reported by Simon Josefsson.
32908
32909 2010-04-15  Eric Blake  <eblake@redhat.com>
32910
32911         test-forkpty: fix expected signature
32912         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32913         Reported by Simon Josefsson.
32914
32915 2010-04-15  Jim Meyering  <meyering@redhat.com>
32916
32917         maint.mk: texinfo_suffix_re_: correct the default regexp
32918         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32919
32920         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32921         make it configurable via texinfo_suffix_re_.
32922
32923 2010-04-14  Eric Blake  <eblake@redhat.com>
32924
32925         strtok_r: relax license to LGPLv2+
32926         * modules/strtok_r (License): Relax license.
32927         Reported by Matthias Bolte.
32928
32929 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32930
32931         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32932         version 1.4.4 by default instead of requiring the libgcrypt
32933         version used during build.  This makes it possible to use the
32934         application with older but still binary compatible libgcrypt
32935         versions.
32936
32937 2010-04-13  Eric Blake  <eblake@redhat.com>
32938
32939         getopt-gnu: match recent glibc fixes and posix ruling
32940         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32941         '+' handling, when requesting extensions.
32942         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32943         'W;' handling.
32944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32945         * doc/posix-functions/getopt.texi (getopt): Document this.
32946         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32947         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32948         Likewise.
32949
32950         getopt: merge bug fixes from glibc
32951         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32952         diagnostics.  Honor '+:' correctly.  Reject ';'.
32953
32954         getopt-posix: detect MacOS bug
32955         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32956         optind when missing a required argument.
32957         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32958         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32959         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32960         Likewise.
32961
32962         getopt-posix: avoid spurious failure on Solaris
32963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32964         an indicator that setting optind=1 is sufficient for reset.
32965
32966         getopt-posix: avoid spurious failure on FreeBSD
32967         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32968         in POSIX mode, since the m4 test uses it.
32969
32970         gnulib-tool: silence warning on BSD sh
32971         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32972
32973 2010-04-13  Jim Meyering  <meyering@redhat.com>
32974
32975         doc: users.txt: GNU patch now uses gnulib
32976         * users.txt: Add patch.
32977
32978 2010-04-12  Jim Meyering  <meyering@redhat.com>
32979
32980         maint.mk: generate more concise timing data for syntax-check rules
32981         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32982         " done" from each line that reports a syntax-check test duration.
32983
32984 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32985
32986         git-version-gen: use "git update-index..." rather than "git status"
32987         * build-aux/git-version-gen: Use git update-index --refresh, not
32988         "git status".  With some versions of git, "git status" would fail
32989         to update the index and result in an unwarranted "-dirty" suffix.
32990
32991 2010-04-11  Jim Meyering  <meyering@redhat.com>
32992
32993         openat: correct formatting (no semantic change)
32994         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32995         Suggested by Bruno Haible.
32996
32997 2010-04-11  Bruno Haible  <bruno@clisp.org>
32998
32999         Stricter declaration checking in testdirs.
33000         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33001         If for_tests is true, augment AM_CPPFLAGS to define
33002         GNULIB_STRICT_CHECKING.
33003         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33004         GNULIB_STRICT_CHECKING is defined, verify that the function is
33005         declared.
33006
33007 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33008             Bruno Haible  <bruno@clisp.org>
33009
33010         libunistring: Improve configure output.
33011         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33012         Don't say "consider installing GNU libunistring" when checking again
33013         with libiconv.
33014
33015 2010-04-11  Bruno Haible  <bruno@clisp.org>
33016
33017         libunistring: Correct value of $LTLIBUNISTRING.
33018         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33019         correct the value of $LTLIBUNISTRING.
33020
33021 2010-04-11  Bruno Haible  <bruno@clisp.org>
33022
33023         havelib: Add static libraries to LIBS in the right order.
33024         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33025         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33026
33027 2010-04-11  Bruno Haible  <bruno@clisp.org>
33028
33029         libunistring: Detect libunistring also when it depends on libiconv.
33030         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33031         the second AC_LIB_HAVE_LINKFLAGS invocation.
33032
33033 2010-04-11  James Youngman  <jay@gnu.org>
33034
33035         close-stream: declare local scalars to be "const"
33036         * lib/close-stream.c (close_stream): Make boolean variables const
33037         to document the fact that we set but do not change them.
33038
33039 2010-04-11  Bruno Haible  <bruno@clisp.org>
33040
33041         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33042
33043 2010-04-11  Jim Meyering  <meyering@redhat.com>
33044
33045         maint.mk: don't include dist-check.mk
33046         * top/maint.mk: Remove bogus include directive.
33047
33048         maint.mk: improve empty-line-at-EOF check
33049         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33050         solution, rather than tail+Perl-based one.  The latter would read
33051         a few kilobytes from the end of each file, and did not handle empty
33052         files properly.
33053
33054         maint.mk: print the elapsed time for each syntax-check rule
33055         * top/maint.mk (sc_m_rules_): Save start time in a file.
33056         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33057         (local-check): Interpose the .z rules
33058
33059 2010-04-11  Jim Meyering  <meyering@redhat.com>
33060
33061         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33062         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33063         empty file with one that ends in an empty line.
33064
33065 2010-04-10  Bruno Haible  <bruno@clisp.org>
33066
33067         mkdir: Make it work on mingw64.
33068         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33069         * lib/mkdir.c: Update comment.
33070         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33071
33072 2010-04-10  Bruno Haible  <bruno@clisp.org>
33073
33074         Don't override improved macro from newer autoconf.
33075         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33076         autoconf >= 2.62.
33077         Reported by Joel E. Denny <jdenny@clemson.edu>.
33078
33079 2010-04-10  Jim Meyering  <meyering@redhat.com>
33080
33081         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33082         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33083
33084         maint.mk: correct a diagnostic
33085         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33086         in diagnostic; now use $prohibit.
33087
33088 2010-04-10  Bruno Haible  <address@hidden>
33089
33090         fchownat: Fix a C++ test error on Solaris 8.
33091         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33092         the function does not exist.
33093
33094 2010-04-10  Bruno Haible  <bruno@clisp.org>
33095
33096         vasnprintf: Add more tests.
33097         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33098         (test_function): Test converting an invalid wide string.
33099
33100         vasnprintf: Correct handling of unconvertible wide string arguments.
33101         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33102         VASNPRINTF.
33103         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33104         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33105         smaller than the expected maximum need for the directive. Set errno to
33106         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33107         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33109         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33110         * modules/vasnprintf (Files): Add m4/printf.m4.
33111         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33112
33113 2010-04-10  Bruno Haible  <bruno@clisp.org>
33114
33115         vasnprintf: Fix crash in %ls directive.
33116         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33117         string is passed as argument to %ls, with no precision and no width.
33118         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33119
33120 2010-04-10  Bruno Haible  <bruno@clisp.org>
33121
33122         vasnprintf: Fix multiple test failures on mingw.
33123         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33124         _snprintf, or snwprintf, not _snwprintf.
33125
33126 2010-04-10  Bruno Haible  <bruno@clisp.org>
33127
33128         write: Fix a C++ test error on mingw.
33129         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33130
33131 2010-04-10  Bruno Haible  <bruno@clisp.org>
33132
33133         vasnprintf test: Reduce code duplication.
33134         * tests/test-vasnprintf.c (test_function): New function, extracted from
33135         test_vasnprintf.
33136         (test_vasnprintf, test_asnprintf): Invoke it.
33137
33138 2010-04-10  Bruno Haible  <bruno@clisp.org>
33139
33140         strnlen: Fix warning in C++ mode on MacOS X.
33141         * lib/string.in.h (strnlen): Use the modern idiom.
33142         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33143         defining strnlen as a macro already in <config.h>.
33144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33145         REPLACE_STRNLEN.
33146         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33147         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33148
33149 2010-04-08  James Youngman  <jay@gnu.org>
33150
33151         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33152         the example.
33153
33154 2010-04-09  Jim Meyering  <meyering@redhat.com>
33155
33156         maint.mk: print better diagnostic when there is no $(_hv_file)
33157         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33158         announce that when $(_hv_file) (aka help-version) does not exist.
33159
33160         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33161         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33162         not try to interpret its random input bytes.  Jarno Rajahalme reported
33163         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33164         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33165         (mktempd_): Likewise, just in case.
33166
33167         ftruncate: add two years to projected module removal date: 2012
33168         * m4/ftruncate.m4: Adjust comments.
33169
33170         ftruncate: mark module as obsolete; even MinGW provides it, now
33171         * modules/ftruncate (Status): Obsolete.
33172         (Notice): Say that.
33173         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33174         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33175
33176 2010-04-08  Bruno Haible  <bruno@clisp.org>
33177
33178         Fix side effects from tests-related modules.
33179         * modules/dprintf-posix (Comment): New section.
33180         * modules/fprintf-posix (Comment): Likewise.
33181         * modules/obstack-printf-posix (Comment): Likewise.
33182         * modules/printf-posix (Comment): Likewise.
33183         * modules/snprintf-posix (Comment): Likewise.
33184         * modules/sprintf-posix (Comment): Likewise.
33185         * modules/vasnprintf-posix (Comment): Likewise.
33186         * modules/vasprintf-posix (Comment): Likewise.
33187         * modules/vdprintf-posix (Comment): Likewise.
33188         * modules/vfprintf-posix (Comment): Likewise.
33189         * modules/vprintf-posix (Comment): Likewise.
33190         * modules/vsnprintf-posix (Comment): Likewise.
33191         * modules/vsprintf-posix (Comment): Likewise.
33192         * modules/xprintf-posix (Comment): Likewise.
33193         * modules/xvasprintf-posix (Comment): Likewise.
33194         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33195         * modules/floorf-tests (Depends-on): Likewise.
33196         * modules/round-tests (Depends-on): Likewise.
33197         * modules/roundf-tests (Depends-on): Likewise.
33198         * modules/trunc-tests (Depends-on): Likewise.
33199         * modules/truncf-tests (Depends-on): Likewise.
33200         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33201         'fprintf-posix' module is not present.
33202         * tests/test-floorf2.c (check): Likewise.
33203         * tests/test-trunc2.c (check): Likewise.
33204         * tests/test-truncf2.c (check): Likewise.
33205         * tests/test-round2.c (equal): Likewise.
33206         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33207
33208 2010-04-07  Karl Berry  <karl@gnu.org>
33209
33210         * config/srclist.txt,
33211         * config/srclistvars.sh,
33212         * config/srclist-update: doc fixes.
33213
33214 2010-04-07  Jim Meyering  <meyering@redhat.com>
33215
33216         maint.mk: add a PATH crosschecking syntax-check rule
33217         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33218         Useful if you use a test like the one in help-version (coreutils,
33219         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33220         printed by prog --version.
33221
33222 2010-04-06  Bruno Haible  <bruno@clisp.org>
33223
33224         Fix link error on mingw.
33225         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33226         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33227
33228 2010-04-06  Bruno Haible  <bruno@clisp.org>
33229
33230         Assume rmdir exists.
33231         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33232
33233 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33234
33235         doc: update users.txt
33236         * users.txt: Add gcal.
33237
33238 2010-04-06  Jim Meyering  <meyering@redhat.com>
33239
33240         init.sh: simply unset TMPDIR rather than risking env -i
33241         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33242         although it probably works fine on all Unix-based systems, some
33243         systems (Cygwin?) cannot tolerate a totally cleared environment.
33244         Suggestion from Eric Blake.
33245
33246 2010-04-06  Jim Meyering  <meyering@redhat.com>
33247
33248         init.sh: portability fix: use env's POSIX-specified -i option not -u
33249         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33250         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33251
33252 2010-04-05  Bruno Haible  <bruno@clisp.org>
33253
33254         btowc: Work around Cygwin 1.7.2 bug.
33255         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33256         does not map NUL to 0.
33257         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33258
33259 2010-04-05  Bruno Haible  <bruno@clisp.org>
33260
33261         Make the multithread modules work on Cygwin 1.7.2.
33262         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33263         imported symbols can be declared weak, so that it returns "no" on
33264         Cygwin 1.7.2.
33265
33266 2010-04-05  Bruno Haible  <bruno@clisp.org>
33267
33268         Use the module 'strncat'.
33269         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33270
33271         Tests for module 'strncat'.
33272         * modules/strncat-tests: New file.
33273         * tests/test-strncat.c: New file.
33274
33275         New module 'strncat'.
33276         * lib/string.in.h (strncat): New declaration.
33277         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33278         * m4/strncat.m4: New file, based on m4/memchr.m4.
33279         * modules/strncat: New file.
33280         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33281         is declared.
33282         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33283         REPLACE_STRNCAT.
33284         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33285         REPLACE_STRNCAT.
33286         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33287         module.
33288         * tests/test-string-c++.cc: Check signature of strncat.
33289
33290 2010-04-05  Jim Meyering  <meyering@redhat.com>
33291
33292         xstrtoumax-tests: convert to use init.sh
33293         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33294         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33295         Use Exit, not exit.
33296         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33297
33298         xstrtoimax-tests: convert to use init.sh
33299         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33300         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33301         Use Exit, not exit.
33302         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33303
33304 2010-04-05  Bruno Haible  <bruno@clisp.org>
33305
33306         sys_socket: Avoid #define replacements in C++ mode.
33307         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33308         warning to the function if possible, rather than #defining the symbol
33309         to a dysfunctional alias.
33310
33311 2010-04-05  Bruno Haible  <bruno@clisp.org>
33312
33313         fseeko: Fix C++ test error on mingw.
33314         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33315         gl_FUNC_FSEEKO.
33316         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33317         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33318         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33319         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33320
33321 2010-04-05  Bruno Haible  <bruno@clisp.org>
33322
33323         duplocale: Improve test output.
33324         * tests/test-duplocale.c (main): Print reason for skipped test.
33325
33326 2010-04-05  Bruno Haible  <bruno@clisp.org>
33327
33328         Assume rmdir exists.
33329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33330         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33331
33332 2010-04-05  Bruno Haible  <bruno@clisp.org>
33333
33334         Fix link error on Solaris 8 with cc.
33335         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33336
33337 2010-04-05  Bruno Haible  <bruno@clisp.org>
33338
33339         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33340         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33341
33342 2010-04-05  Bruno Haible  <bruno@clisp.org>
33343
33344         vasprintf: Update documentation.
33345         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33346
33347 2010-04-05  Bruno Haible  <bruno@clisp.org>
33348
33349         ptsname: Improve test.
33350         * tests/test-ptsname.c (main): Also try the various master names of BSD
33351         systems.
33352
33353 2010-04-05  Bruno Haible  <bruno@clisp.org>
33354
33355         memchr: Avoid a possible C++ test error.
33356         * lib/string.in.h (memchr): Provide declaration if function is missing.
33357         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33358         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33360         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33361
33362 2010-04-05  Bruno Haible  <bruno@clisp.org>
33363
33364         strtok_r: Improve idiom.
33365         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33366         AC_LIBOBJ is used.
33367
33368 2010-04-05  Bruno Haible  <bruno@clisp.org>
33369
33370         strdup: Improve idiom.
33371         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33372         AC_LIBOBJ is used.
33373         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33374         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33375         when AC_LIBOBJ is used.
33376
33377 2010-04-05  Bruno Haible  <bruno@clisp.org>
33378
33379         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33380         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33381         don't set REPLACE_MBSINIT to 1.
33382         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33383         don't set REPLACE_MBRTOWC to 1.
33384         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33385         exist, don't set REPLACE_MBSRTOWCS to 1.
33386         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33387         exist, don't set REPLACE_MBSNRTOWCS to 1.
33388         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33389         don't set REPLACE_WCRTOMB to 1.
33390         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33391         exist, don't set REPLACE_WCSRTOMBS to 1.
33392         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33393         exist, don't set REPLACE_WCSNRTOMBS to 1.
33394
33395 2010-04-05  Bruno Haible  <bruno@clisp.org>
33396
33397         ldexpl: Improve idiom.
33398         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33399         make sure to set HAVE_DECL_LDEXPL to 0.
33400
33401 2010-04-05  Jim Meyering  <meyering@redhat.com>
33402
33403         xstrtol-tests: convert to use init.sh
33404         * modules/xstrtol-tests (Files): Add tests/init.sh.
33405         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33406         Use Exit, not exit.
33407         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33408
33409         atexit-tests: convert to use init.sh
33410         * modules/atexit-tests (Files): Add tests/init.sh.
33411         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33412         Use Exit, not exit.
33413         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33414
33415         init.sh: fix typo
33416         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33417
33418         init.sh: make it easier for a test script to write to the tty, ...
33419         when using automake's parallel-tests mode.
33420         * tests/init.sh (stderr_fileno_): Define overridable variable.
33421         (warn_): New function, to use it.
33422         (fail_, skip_, framework_failure_): Use warn_.
33423
33424 2010-04-04  Bruno Haible  <bruno@clisp.org>
33425
33426         btowc: Avoid warning.
33427         * lib/btowc.c: Include <stdlib.h>.
33428         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33429
33430 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33431             Bruno Haible  <bruno@clisp.org>
33432
33433         wchar: Port to NetBSD 1.5.
33434         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33435         * lib/wctype.in.h (WEOF): Likewise.
33436
33437 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33438             Bruno Haible  <bruno@clisp.org>
33439
33440         Port extended stdio to NetBSD 1.5.
33441         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33442         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33443         older.
33444
33445 2010-04-04  Bruno Haible  <bruno@clisp.org>
33446
33447         string: Remove unused substitution.
33448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33449         HAVE_DECL_STRERROR.
33450         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33451
33452 2010-04-04  Bruno Haible  <bruno@clisp.org>
33453
33454         strtod: Avoid a possible C++ test error.
33455         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33456         set REPLACE_STRTOD.
33457
33458 2010-04-04  Bruno Haible  <bruno@clisp.org>
33459
33460         strerror: Update documentation.
33461         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33462
33463 2010-04-04  Bruno Haible  <bruno@clisp.org>
33464
33465         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33466         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33467         _GL_CXXALIAS_SYS_CAST.
33468
33469 2010-04-04  Bruno Haible  <bruno@clisp.org>
33470
33471         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33472         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33473         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33474         REPLACE_FREXPL to 1.
33475         * doc/posix-functions/frexpl.texi: Update documentation.
33476
33477 2010-04-04  Bruno Haible  <bruno@clisp.org>
33478
33479         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33480         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33481
33482 2010-04-04  Bruno Haible  <bruno@clisp.org>
33483
33484         Implement nanosleep for native Windows.
33485         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33486
33487 2010-04-04  Bruno Haible  <bruno@clisp.org>
33488
33489         math: Fix some C++ test errors on Solaris 8.
33490         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33491
33492 2010-04-04  Bruno Haible  <bruno@clisp.org>
33493
33494         math: Fix some C++ test errors on Cygwin.
33495         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33496         truncl): Provide declaration if the system does not have it.
33497         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33498         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33499         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33500         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33501         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33502         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33503         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33504         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33505         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33506         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33507         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33508         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33509         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33510         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33511         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33512         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33514         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33515         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33516         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33517         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33518         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33519
33520 2010-04-04  Bruno Haible  <bruno@clisp.org>
33521
33522         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33523         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33524         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33525         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33526         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33527         * m4/isinf.m4 (gl_ISINF): Likewise.
33528         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33529
33530 2010-04-04  Bruno Haible  <bruno@clisp.org>
33531
33532         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33533         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33534
33535 2010-04-04  Bruno Haible  <bruno@clisp.org>
33536
33537         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33538         * modules/tmpfile (configure.ac): Update.
33539
33540         tmpfile: Fix C++ test error on mingw.
33541         * lib/stdio.in.h (tmpfile): New declaration.
33542         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33543         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33544         * modules/tmpfile (Depends-on): Add stdio.
33545         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33546         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33547         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33548         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33549         REPLACE_TMPFILE.
33550         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33551
33552 2010-04-04  Bruno Haible  <bruno@clisp.org>
33553
33554         ioctl: Fix C++ test error on mingw.
33555         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33556         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33557         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33558
33559 2010-04-03  Bruno Haible  <bruno@clisp.org>
33560
33561         wcwidth: Fix C++ test error on mingw.
33562         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33564         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33565
33566 2010-04-03  Bruno Haible  <bruno@clisp.org>
33567
33568         nanosleep: Fix C++ test error on mingw.
33569         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33570         * lib/time.in.h (nanosleep): Use modern idiom.
33571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33572         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33573         REPLACE_NANOSLEEP to 1.
33574         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33575         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33576
33577 2010-04-03  Bruno Haible  <bruno@clisp.org>
33578
33579         strptime: Fix C++ test error on mingw.
33580         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33581         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33582         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33583         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33584         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33585         not REPLACE_STRPTIME.
33586         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33587         REPLACE_STRPTIME.
33588
33589 2010-04-03  Bruno Haible  <bruno@clisp.org>
33590
33591         timegm: Fix C++ test error on mingw.
33592         * lib/time.in.h (timegm): Use modern idiom.
33593         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33594         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33595         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33596         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33597
33598 2010-04-03  Bruno Haible  <bruno@clisp.org>
33599
33600         timegm: Assume declaration if function exists.
33601         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33602         if it exists. Don't clobber ac_cv_func_timegm.
33603
33604 2010-04-03  Bruno Haible  <bruno@clisp.org>
33605
33606         time_r: Fix C++ test error on mingw.
33607         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33608         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33609         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33610         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33611         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33612
33613 2010-04-03  Bruno Haible  <bruno@clisp.org>
33614
33615         time_r: Minor updates.
33616         * modules/time_r (Description): Mention the provided functions.
33617         * lib/time_r.c: Don't include <string.h>.
33618         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33619         * doc/posix-functions/localtime_r.texi: Likewise.
33620
33621 2010-04-03  Bruno Haible  <bruno@clisp.org>
33622
33623         time: Fix regression introduced on 2010-03-08.
33624         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33625         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33626
33627 2010-04-03  Jim Meyering  <meyering@redhat.com>
33628
33629         maint.mk: don't silently disable project-specific syntax-check rules
33630         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33631         that they need to convert their project-specific syntax-check rules
33632         to use the new _sc_search_regexp.
33633
33634 2010-04-03  Bruno Haible  <bruno@clisp.org>
33635
33636         fchdir: Fix regression introduced on 2010-03-08.
33637         * lib/unistd.in.h (fchdir): Fix declaration.
33638         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33640         REPLACE_FCHDIR.
33641         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33642         REPLACE_FCHDIR.
33643
33644 2010-04-03  Bruno Haible  <bruno@clisp.org>
33645
33646         getpagesize: Fix C++ test error on mingw.
33647         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33648         system does not declare the function.
33649         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33650         declared.
33651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33652         HAVE_DECL_GETPAGESIZE.
33653         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33654
33655 2010-04-03  Bruno Haible  <bruno@clisp.org>
33656
33657         stdio: Make C++ tests work on mingw.
33658         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33659         does not declare the function.
33660
33661 2010-04-03  Bruno Haible  <bruno@clisp.org>
33662
33663         ftello: Fix C++ test error on mingw.
33664         * lib/stdio.in.h (ftello): Use modern idiom.
33665         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33666         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33667         is missing and that it needs to be replaced.
33668         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33670         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33671
33672 2010-04-03  Bruno Haible  <bruno@clisp.org>
33673
33674         fseeko: Fix C++ test error on mingw.
33675         * lib/stdio.in.h (fseeko): Use modern idiom.
33676         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33677         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33678         is missing and that it needs to be replaced.
33679         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33681         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33682
33683 2010-04-03  Bruno Haible  <bruno@clisp.org>
33684
33685         mkstemp: Fix C++ test error on mingw.
33686         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33687         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33688         function is missing and that it needs to be replaced.
33689         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33690         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33691
33692 2010-04-03  Bruno Haible  <bruno@clisp.org>
33693
33694         stpncpy: Fix C++ test error on mingw.
33695         * lib/string.in.h (stpncpy): Use modern idiom.
33696         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33697         function is missing and that it needs to be replaced.
33698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33699         REPLACE_STPNCPY.
33700         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33701
33702 2010-04-03  Bruno Haible  <bruno@clisp.org>
33703
33704         sys_stat: Fix C++ test error on mingw.
33705         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33706         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33707
33708 2010-04-03  Bruno Haible  <bruno@clisp.org>
33709
33710         pty: Update doc.
33711         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33712
33713 2010-04-03  Bruno Haible  <bruno@clisp.org>
33714
33715         unistd: Fix C++ test error on mingw.
33716         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33717
33718 2010-04-03  Bruno Haible  <bruno@clisp.org>
33719
33720         Update doc regarding mingw.
33721         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33722         * doc/glibc-functions/login_tty.texi: Likewise.
33723         * doc/glibc-functions/forkpty.texi: Likewise.
33724
33725 2010-04-03  Bruno Haible  <bruno@clisp.org>
33726
33727         stdlib: Avoid compilation failure of c-strtold on mingw.
33728         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33729
33730 2010-04-03  Bruno Haible  <bruno@clisp.org>
33731
33732         locale: Make C++ tests work on Cygwin and mingw.
33733         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33734         cannot provide the function.
33735         Reported by Simon Josefsson.
33736
33737 2010-04-03  Bruno Haible  <bruno@clisp.org>
33738
33739         localename: Port to MacOS X 10.6.
33740         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33741         memory layout of the locales in MacOS X 10.6 as well.
33742         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33743
33744 2010-04-02  Bruno Haible  <bruno@clisp.org>
33745
33746         gnulib-tool: Ensure that long-running tests are executed last.
33747         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33748         running tests after the one for the other tests.
33749
33750 2010-04-02  Bruno Haible  <bruno@clisp.org>
33751
33752         gnulib-tool: Ensure the tests in the main directory are executed first.
33753         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33754         start with the current directory.
33755
33756 2010-04-02  Bruno Haible  <bruno@clisp.org>
33757
33758         Tests for module 'havelib', moved here from GNU gettext.
33759         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33760         modifications.
33761         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33762         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33763         with modifications.
33764         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33765         modifications.
33766         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33767         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33768         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33769         with modifications.
33770         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33771         with modifications.
33772         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33773         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33774         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33775         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33776         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33777         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33778         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33779         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33780         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33781         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33782         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33783         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33784         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33785         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33786         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33787         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33788         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33789         with modifications.
33790         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33791         with modifications.
33792         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33793         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33794         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33795         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33796         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33797         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33798         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33799         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33800         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33801         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33802         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33803         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33804         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33805         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33806         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33807         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33808         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33809         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33810         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33811         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33812         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33813         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33814         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33815         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33816         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33817         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33818         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33819         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33820         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33821         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33822         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33823         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33824         * tests/havelib/rpathx/rpathx.c: New file, from
33825         gettext/autoconf-lib-link.
33826         * tests/havelib/rpathx/Makefile.am: New file, from
33827         gettext/autoconf-lib-link.
33828         * tests/havelib/rpathx/configure.ac: New file, from
33829         gettext/autoconf-lib-link with modifications.
33830         * tests/havelib/rpathy/rpathy.c: New file, from
33831         gettext/autoconf-lib-link.
33832         * tests/havelib/rpathy/Makefile.am: New file, from
33833         gettext/autoconf-lib-link.
33834         * tests/havelib/rpathy/configure.ac: New file, from
33835         gettext/autoconf-lib-link with modifications.
33836         * tests/havelib/rpathz/rpathz.c: New file, from
33837         gettext/autoconf-lib-link.
33838         * tests/havelib/rpathz/Makefile.am: New file, from
33839         gettext/autoconf-lib-link.
33840         * tests/havelib/rpathz/configure.ac: New file, from
33841         gettext/autoconf-lib-link with modifications.
33842         * tests/havelib/rpathlx/usex.c: New file, from
33843         gettext/autoconf-lib-link.
33844         * tests/havelib/rpathlx/Makefile.am: New file, from
33845         gettext/autoconf-lib-link.
33846         * tests/havelib/rpathlx/configure.ac: New file, from
33847         gettext/autoconf-lib-link with modifications.
33848         * tests/havelib/rpathly/usey.c: New file, from
33849         gettext/autoconf-lib-link.
33850         * tests/havelib/rpathly/Makefile.am: New file, from
33851         gettext/autoconf-lib-link.
33852         * tests/havelib/rpathly/configure.ac: New file, from
33853         gettext/autoconf-lib-link with modifications.
33854         * tests/havelib/rpathlz/usez.c: New file, from
33855         gettext/autoconf-lib-link.
33856         * tests/havelib/rpathlz/Makefile.am: New file, from
33857         gettext/autoconf-lib-link.
33858         * tests/havelib/rpathlz/configure.ac: New file, from
33859         gettext/autoconf-lib-link with modifications.
33860         * tests/havelib/rpathlyx/usey.c: New file, from
33861         gettext/autoconf-lib-link.
33862         * tests/havelib/rpathlyx/Makefile.am: New file, from
33863         gettext/autoconf-lib-link.
33864         * tests/havelib/rpathlyx/configure.ac: New file, from
33865         gettext/autoconf-lib-link with modifications.
33866         * tests/havelib/rpathlzyx/usez.c: New file, from
33867         gettext/autoconf-lib-link.
33868         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33869         gettext/autoconf-lib-link.
33870         * tests/havelib/rpathlzyx/configure.ac: New file, from
33871         gettext/autoconf-lib-link with modifications.
33872         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33873         with modifications.
33874
33875 2010-04-02  Bruno Haible  <bruno@clisp.org>
33876
33877         gnulib-tool: Create distributed built sources also for the tests.
33878         * gnulib-tool (func_create_testdir): Also generate distributed built
33879         sources in the tests directory.
33880
33881 2010-04-02  Bruno Haible  <bruno@clisp.org>
33882
33883         gnulib-tool: Obey user's environment variables.
33884         * gnulib-tool (func_create_testdir): When creating built sources,
33885         respect the environment variables for autoconf, automake, etc. given by
33886         the user.
33887
33888 2010-04-02  Bruno Haible  <bruno@clisp.org>
33889
33890         gnulib-tool: Provide the value of --m4-base to modules.
33891         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33892         of gl_m4_base.
33893
33894 2010-04-02  Eric Blake  <eblake@redhat.com>
33895
33896         maint.mk: fix some fallout
33897         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33898         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33899
33900 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33901
33902         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33903         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33904         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33905         (sc_cast_of_x_alloc_return_value): Likewise.
33906         (sc_cast_of_alloca_return_value): Likewise.
33907         (sc_space_tab): Likewise.
33908         (sc_prohibit_atoi_atof): Likewise.
33909         (sc_prohibit_magic_number_exit): Likewise.
33910         (sc_error_exit_success): Likewise.
33911         (sc_file_system): Likewise.
33912         (sc_prohibit_have_config_h): Likewise.
33913         (sc_require_config_h): Likewise.
33914         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33915         (sc_obsolete_symbols): Likewise.
33916         (sc_changelog): Likewise.
33917         (sc_program_name): Likewise.
33918         (sc_the_the): Likewise.
33919         (sc_trailing_blank): Likewise.
33920         (sc_two_space_separator_in_usage): Likewise.
33921         (sc_useless_cpp_parens): Likewise.
33922         (sc_GPL_version): Likewise.
33923         (sc_GFDL_version): Likewise.
33924         (sc_texinfo_acronym): Likewise.
33925         (sc_prohibit_cvs_keyword): Likewise.
33926         (sc_prohibit_stat_st_blocks): Likewise.
33927         (sc_prohibit_S_IS_definition): Likewise.
33928         (sc_redundant_const): Likewise.
33929         (sc_makefile_TAB_only_indentation): Likewise.
33930         (sc_m4_quote_check): Likewise.
33931         (sc_makefile_path_separator_check): Likewise.
33932         (sc_copyright_check): Likewise.
33933         (sc_Wundef_boolean): Likewise.
33934         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33935
33936         maint.mk: match 0 or more whitespace-before-function-call '('
33937         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33938         that have zero or two-and-more spaces between the function name
33939         and the open parenthesis.
33940         (sc_error_message_warn_fatal): Likewise.
33941         (sc_error_message_uppercase): Likewise.
33942         (sc_error_message_period): Likewise.
33943
33944 2010-03-31  Eric Blake  <eblake@redhat.com>
33945
33946         maint.mk: check for [ as well as test
33947         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33948         Based on a libvirt report by Matthias Bolte.
33949
33950         gnumakefile: don't squelch _version output
33951         * top/GNUmakefile (_version): Create one-shot dependency rather
33952         than using $(shell) when version must be regenerated.
33953         (_autoreconf): Run verbosely, by default.
33954
33955         sys_time: avoid compiler warnings
33956         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33957         unconditional, fixing regression from 2010-03-29.
33958         Reported by Simon Josefsson.
33959
33960 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33961
33962         maint.mk: s/_header_without_use/_sc_header_without_use/
33963         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33964         (sc_prohibit_assert_without_use): Use the new name.
33965         (sc_prohibit_close_stream_without_use): Likewise.
33966         (sc_prohibit_getopt_without_use): Likewise.
33967         (sc_prohibit_quotearg_without_use): Likewise.
33968         (sc_prohibit_quote_without_use): Likewise.
33969         (sc_prohibit_long_options_without_use): Likewise.
33970         (sc_prohibit_inttostr_without_use): Likewise.
33971         (sc_prohibit_ignore_value_without_use): Likewise.
33972         (sc_prohibit_error_without_use): Likewise.
33973         (sc_prohibit_xalloc_without_use): Likewise.
33974         (sc_prohibit_hash_without_use): Likewise.
33975         (sc_prohibit_hash_pjw_without_use): Likewise.
33976         (sc_prohibit_safe_read_without_use): Likewise.
33977         (sc_prohibit_argmatch_without_use): Likewise.
33978         (sc_prohibit_canonicalize_without_use): Likewise.
33979         (sc_prohibit_root_dev_ino_without_use): Likewise.
33980         (sc_prohibit_openat_without_use): Likewise.
33981         (sc_prohibit_c_ctype_without_use): Likewise.
33982         (sc_prohibit_signal_without_use): Likewise.
33983         (sc_prohibit_intprops_without_use): Likewise.
33984
33985 2010-03-30  Eric Blake  <eblake@redhat.com>
33986
33987         maint: improve module indicators
33988         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33989         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33990         columns, and avoid extra macro expansion.
33991
33992         fdopendir: work around FreeBSD bug
33993         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33994         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33995         * modules/dirent (Makefile.am): Substitute it.
33996         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33997         declaration.
33998         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33999         fix.
34000         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34001
34002 2010-03-29  Bruno Haible  <bruno@clisp.org>
34003
34004         Emit #pragma system_header after the inclusion guard, not before.
34005         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34006         guard that spans the entire file, not before. This enables an
34007         optimization in GCC's preprocessor.
34008         * lib/ctype.in.h: Likewise.
34009         * lib/dirent.in.h: Likewise.
34010         * lib/errno.in.h: Likewise.
34011         * lib/float.in.h: Likewise.
34012         * lib/getopt.in.h: Likewise.
34013         * lib/iconv.in.h: Likewise.
34014         * lib/langinfo.in.h: Likewise.
34015         * lib/locale.in.h: Likewise.
34016         * lib/math.in.h: Likewise.
34017         * lib/netdb.in.h: Likewise.
34018         * lib/netinet_in.in.h: Likewise.
34019         * lib/pty.in.h: Likewise.
34020         * lib/sched.in.h: Likewise.
34021         * lib/se-selinux.in.h: Likewise.
34022         * lib/search.in.h: Likewise.
34023         * lib/spawn.in.h: Likewise.
34024         * lib/stdarg.in.h: Likewise.
34025         * lib/stdint.in.h: Likewise.
34026         * lib/string.in.h: Likewise.
34027         * lib/strings.in.h: Likewise.
34028         * lib/sys_file.in.h: Likewise.
34029         * lib/sys_ioctl.in.h: Likewise.
34030         * lib/sys_time.in.h: Likewise.
34031         * lib/sys_times.in.h: Likewise.
34032         * lib/sys_utsname.in.h: Likewise.
34033         * lib/sys_wait.in.h: Likewise.
34034         * lib/sysexits.in.h: Likewise.
34035         * lib/wctype.in.h: Likewise.
34036
34037 2010-03-28  James Youngman  <jay@gnu.org>
34038
34039         save-cwd: don't leak a file descriptor when the caller execs.
34040         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34041         saved file descriptor.
34042         * modules/save-cwd (Depends-on): Depend on cloexec.
34043
34044 2010-03-29  Bruno Haible  <bruno@clisp.org>
34045
34046         Remove vestiges of fts-lgpl module.
34047         * lib/fts_.h: Assume GNULIB_FTS is 1.
34048         * lib/fts.c: Likewise.
34049         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34050
34051 2010-03-28  Bruno Haible  <bruno@clisp.org>
34052
34053         Fix definition of tests witness macro.
34054         * gnulib-tool (func_import): Fix definition of witness macro.
34055
34056 2010-03-28  Bruno Haible  <bruno@clisp.org>
34057
34058         Fix ioctl's protoype on glibc systems.
34059         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34060         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34061         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34062         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34063         signature. If not, arrange to replace the ioctl function.
34064         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34065         REPLACE_IOCTL.
34066         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34067         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34068         Reported by Ludovic Courtès <ludo@gnu.org>.
34069
34070 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34071
34072         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34073         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34074         made it so grep -r --include=GLOB* ... did not work.
34075
34076 2010-03-26  Jim Meyering  <meyering@redhat.com>
34077             Eric Blake  <eblake@redhat.com>
34078
34079         maint.mk: prohibit use of test's -o and -a operators
34080         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34081
34082 2010-03-28  Bruno Haible  <bruno@clisp.org>
34083
34084         Remove unused GNULIB_XYZ macro definitions.
34085         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34086         invocation.
34087
34088 2010-03-28  Bruno Haible  <bruno@clisp.org>
34089
34090         Mark privileged tests modules.
34091         * modules/idpriv-drop-tests (Status): New section.
34092         * modules/idpriv-droptemp-tests (Status): New section.
34093
34094 2010-03-28  Bruno Haible  <bruno@clisp.org>
34095
34096         Split C++ tests into separate tests modules.
34097         * modules/dirent-c++-tests: New file, extracted from
34098         modules/dirent-tests.
34099         * modules/dirent-tests: Depend on it.
34100         * modules/fcntl-h-c++-tests: New file, extracted from
34101         modules/fcntl-h-tests.
34102         * modules/fcntl-h-tests: Depend on it.
34103         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34104         * modules/glob-tests: Depend on it.
34105         * modules/iconv-h-c++-tests: New file, extracted from
34106         modules/iconv-h-tests.
34107         * modules/iconv-h-tests: Depend on it.
34108         * modules/langinfo-c++-tests: New file, extracted from
34109         modules/langinfo-tests.
34110         * modules/langinfo-tests: Depend on it.
34111         * modules/locale-c++-tests: New file, extracted from
34112         modules/locale-tests.
34113         * modules/locale-tests: Depend on it.
34114         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34115         * modules/math-tests: Depend on it.
34116         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34117         * modules/pty-tests: Depend on it.
34118         * modules/search-c++-tests: New file, extracted from
34119         modules/search-tests.
34120         * modules/search-tests: Depend on it.
34121         * modules/signal-c++-tests: New file, extracted from
34122         modules/signal-tests.
34123         * modules/signal-tests: Depend on it.
34124         * modules/spawn-c++-tests: New file, extracted from
34125         modules/spawn-tests.
34126         * modules/spawn-tests: Depend on it.
34127         * modules/stdio-c++-tests: New file, extracted from
34128         modules/stdio-tests.
34129         * modules/stdio-tests: Depend on it.
34130         * modules/stdlib-c++-tests: New file, extracted from
34131         modules/stdlib-tests.
34132         * modules/stdlib-tests: Depend on it.
34133         * modules/string-c++-tests: New file, extracted from
34134         modules/string-tests.
34135         * modules/string-tests: Depend on it.
34136         * modules/sys_ioctl-c++-tests: New file, extracted from
34137         modules/sys_ioctl-tests.
34138         * modules/sys_ioctl-tests: Depend on it.
34139         * modules/sys_select-c++-tests: New file, extracted from
34140         modules/sys_select-tests.
34141         * modules/sys_select-tests: Depend on it.
34142         * modules/sys_socket-c++-tests: New file, extracted from
34143         modules/sys_socket-tests.
34144         * modules/sys_socket-tests: Depend on it.
34145         * modules/sys_stat-c++-tests: New file, extracted from
34146         modules/sys_stat-tests.
34147         * modules/sys_stat-tests: Depend on it.
34148         * modules/sys_time-c++-tests: New file, extracted from
34149         modules/sys_time-tests.
34150         * modules/sys_time-tests: Depend on it.
34151         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34152         * modules/time-tests: Depend on it.
34153         * modules/unistd-c++-tests: New file, extracted from
34154         modules/unistd-tests.
34155         * modules/unistd-tests: Depend on it.
34156         * modules/wchar-c++-tests: New file, extracted from
34157         modules/wchar-tests.
34158         * modules/wchar-tests: Depend on it.
34159         * modules/wctype-c++-tests: New file, extracted from
34160         modules/wctype-tests.
34161         * modules/wctype-tests: Depend on it.
34162         Reported by Simon Josefsson.
34163
34164 2010-03-28  Bruno Haible  <bruno@clisp.org>
34165
34166         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34167         * gnulib-tool (func_exists_module): New function, extracted from
34168         func_verify_module.
34169         (func_verify_module): Use it.
34170         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34171         'foo' only if 'foo' exists.
34172         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34173         module.
34174
34175 2010-03-28  Bruno Haible  <bruno@clisp.org>
34176
34177         gnulib-tool: Add support for special categories of tests.
34178         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34179         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34180         (func_usage): Document them.
34181         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34182         inc_unportable_tests, inc_all_tests): New variables.
34183         (func_acceptable): Consider these variables.
34184         (func_modules_transitive_closure): Make it work when the 'Status' field
34185         consists of multiple words.
34186         (func_import): Store and restore the values of inc_cxx_tests,
34187         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34188         inc_all_tests in gnulib-comp.m4.
34189         (func_create_testdir): Set inc_all_tests to true.
34190         * doc/gnulib.texi (Extra tests modules): New section.
34191         Suggested by Jim Meyering.
34192
34193 2010-03-28  Bruno Haible  <bruno@clisp.org>
34194
34195         ansi-c++-opt: Allow turning off the C++ build by default.
34196         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34197         gl_CXX_CHOICE_DEFAULT_NO is defined.
34198         Requested by Eric Blake.
34199
34200 2010-03-28  Bruno Haible  <bruno@clisp.org>
34201
34202         unistd: Avoid #define replacements in C++ mode.
34203         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34204         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34205         setsockopt, shutdown, select): In C++, attach a warning to the function
34206         if possible, rather than #defining the symbol to a dysfunctional alias.
34207         Reported by John W. Eaton <jwe@gnu.org>.
34208
34209 2010-03-28  Bruno Haible  <bruno@clisp.org>
34210
34211         Fix link errors on mingw.
34212         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34213         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34214         $(LIBSOCKET).
34215         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34216         $(LIBSOCKET).
34217
34218 2010-03-28  Bruno Haible  <bruno@clisp.org>
34219             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34220
34221         lib-ignore: Determine different options for different compilers.
34222         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34223         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34224         Add comments.
34225         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34226         * NEWS: Mention the change.
34227
34228 2010-03-27  Bruno Haible  <bruno@clisp.org>
34229
34230         Remove unused GNULIB_XYZ macro definitions.
34231         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34232         * modules/fseek (configure.ac): Likewise.
34233         * modules/ioctl (configure.ac): Likewise.
34234         * modules/open (configure.ac): Likewise.
34235         * modules/stdlib-safer (configure.ac): Likewise.
34236
34237 2010-03-27  Bruno Haible  <bruno@clisp.org>
34238
34239         Add a remark about certain modules.
34240         * modules/malloc (Comment): New section.
34241         * modules/realloc (Comment): Likewise.
34242         * modules/sigpipe (Comment): Likewise.
34243
34244 2010-03-27  Bruno Haible  <bruno@clisp.org>
34245
34246         Resolve conflict between the two kinds of module indicators.
34247         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34248         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34249         * modules/canonicalize (configure.ac): Invoke
34250         gl_MODULE_INDICATOR_FOR_TESTS.
34251         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34252         GNULIB_XYZ.
34253         * tests/test-dirent-c++.cc: Likewise.
34254         * tests/test-dirent-safer.c: Likewise.
34255         * tests/test-dup2.c: Likewise.
34256         * tests/test-fchdir.c: Likewise.
34257         * tests/test-fcntl-h-c++.cc: Likewise.
34258         * tests/test-getopt.c: Likewise.
34259         * tests/test-getopt.h: Likewise.
34260         * tests/test-langinfo-c++.cc: Likewise.
34261         * tests/test-locale-c++.cc: Likewise.
34262         * tests/test-math-c++.cc: Likewise.
34263         * tests/test-pty-c++.cc: Likewise.
34264         * tests/test-search-c++.cc: Likewise.
34265         * tests/test-signal-c++.cc: Likewise.
34266         * tests/test-spawn-c++.cc: Likewise.
34267         * tests/test-stdio-c++.cc: Likewise.
34268         * tests/test-stdlib-c++.cc: Likewise.
34269         * tests/test-string-c++.cc: Likewise.
34270         * tests/test-sys_ioctl-c++.cc: Likewise.
34271         * tests/test-sys_select-c++.cc: Likewise.
34272         * tests/test-sys_socket-c++.cc: Likewise.
34273         * tests/test-sys_stat-c++.cc: Likewise.
34274         * tests/test-sys_time-c++.cc: Likewise.
34275         * tests/test-time-c++.cc: Likewise.
34276         * tests/test-unistd-c++.cc: Likewise.
34277         * tests/test-wchar-c++.cc: Likewise.
34278         * tests/uninorm/test-u8-nfc.c: Likewise.
34279         * tests/uninorm/test-u8-nfd.c: Likewise.
34280         * tests/uninorm/test-u8-nfkc.c: Likewise.
34281         * tests/uninorm/test-u8-nfkd.c: Likewise.
34282         * tests/uninorm/test-u16-nfc.c: Likewise.
34283         * tests/uninorm/test-u16-nfd.c: Likewise.
34284         * tests/uninorm/test-u16-nfkc.c: Likewise.
34285         * tests/uninorm/test-u16-nfkd.c: Likewise.
34286         * tests/uninorm/test-u32-nfc.c: Likewise.
34287         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34288         * tests/uninorm/test-u32-nfd.c: Likewise.
34289         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34290         * tests/uninorm/test-u32-nfkc.c: Likewise.
34291         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34292         * tests/uninorm/test-u32-nfkd.c: Likewise.
34293         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34294         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34295
34296 2010-03-27  Bruno Haible  <bruno@clisp.org>
34297
34298         Distinguish two kinds of module indicators.
34299         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34300         gl_MODULE_INDICATOR.
34301         (gl_MODULE_INDICATOR): New macro.
34302         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34303         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34304         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34305         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34306         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34307         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34308         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34309         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34310         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34311         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34312         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34313         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34314         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34315         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34316         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34317         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34318         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34319         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34320         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34321         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34322         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34323         * modules/cloexec (configure.ac): Likewise.
34324         * modules/getopt-gnu (configure.ac): Likewise.
34325         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34326         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34327         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34328         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34329
34330 2010-03-27  Bruno Haible  <bruno@clisp.org>
34331
34332         New module description field 'Comment'.
34333         * gnulib-tool: New option --extract-comment.
34334         (func_usage): Document it.
34335         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34336         (func_get_comment): New function.
34337         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34338
34339 2010-03-27  Bruno Haible  <bruno@clisp.org>
34340
34341         Addendum to 2010-02-07 commit.
34342         * gnulib-tool (func_usage): Document --extract-applicability option.
34343
34344 2010-03-27  Bruno Haible  <bruno@clisp.org>
34345
34346         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34347         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34348         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34349         rather than link errors.
34350
34351 2010-03-27  Bruno Haible  <bruno@clisp.org>
34352
34353         Avoid side effects from tests-related modules on the compilation of lib.
34354         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34355         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34356         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34357         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34358         macro.
34359         (func_import): Define a witness macro. Assign it a value that depends
34360         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34361         tests-related modules.
34362         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34363         Reported by Jim Meyering.
34364
34365 2010-03-27  Bruno Haible  <bruno@clisp.org>
34366
34367         Factorize common .m4 code.
34368         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34369         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34370         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34371         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34372         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34373         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34374         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34375         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34376         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34377         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34378         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34379         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34380         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34381         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34382         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34383         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34384         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34385         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34387         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34388         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34389         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34390         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34391         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34392         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34393         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34394         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34395         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34396         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34397         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34398         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34399         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34400
34401 2010-03-27  Bruno Haible  <bruno@clisp.org>
34402
34403         Fix a compilation error on Cygwin with g++ >= 4.3.
34404         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34405         if it is undefined or if we alias it to chmod.
34406         (lstat): Don't warn about the use of this function if it is undefined
34407         or if we alias it to stat.
34408         Reported by Simon Josefsson.
34409
34410 2010-03-27  Bruno Haible  <bruno@clisp.org>
34411
34412         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34413         * modules/getlogin (configure.ac): Update.
34414
34415         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34416         * modules/getlogin_r (configure.ac): Update.
34417
34418         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34419         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34420         * modules/inet_ntop (configure.ac): Update.
34421
34422         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34423         * modules/inet_pton (configure.ac): Update.
34424
34425         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34426         * modules/mbslen (configure.ac): Update.
34427
34428         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34429         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34430         * modules/forkpty (configure.ac): Update.
34431         * modules/openpty (configure.ac): Update.
34432
34433 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34434
34435         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34436         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34437
34438 2010-03-25  Eric Blake  <eblake@redhat.com>
34439
34440         maint: use pragma consistently across replacement headers
34441         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34442         * lib/dirent.in.h (system_header): Likewise.
34443         * lib/errno.in.h (system_header): Likewise.
34444         * lib/float.in.h (system_header): Likewise.
34445         * lib/getopt.in.h (system_header): Likewise.
34446         * lib/iconv.in.h (system_header): Likewise.
34447         * lib/inttypes.in.h (system_header): Likewise.
34448         * lib/langinfo.in.h (system_header): Likewise.
34449         * lib/locale.in.h (system_header): Likewise.
34450         * lib/math.in.h (system_header): Likewise.
34451         * lib/netdb.in.h (system_header): Likewise.
34452         * lib/netinet_in.in.h (system_header): Likewise.
34453         * lib/pty.in.h (system_header): Likewise.
34454         * lib/sched.in.h (system_header): Likewise.
34455         * lib/se-selinux.in.h (system_header): Likewise.
34456         * lib/search.in.h (system_header): Likewise.
34457         * lib/spawn.in.h (system_header): Likewise.
34458         * lib/stdarg.in.h (system_header): Likewise.
34459         * lib/stdint.in.h (system_header): Likewise.
34460         * lib/string.in.h (system_header): Likewise.
34461         * lib/strings.in.h (system_header): Likewise.
34462         * lib/sys_file.in.h (system_header): Likewise.
34463         * lib/sys_ioctl.in.h (system_header): Likewise.
34464         * lib/sys_socket.in.h (system_header): Likewise.
34465         * lib/sys_times.in.h (system_header): Likewise.
34466         * lib/sys_utsname.in.h (system_header): Likewise.
34467         * lib/sys_wait.in.h (system_header): Likewise.
34468         * lib/sysexits.in.h (system_header): Likewise.
34469         * lib/unistd.in.h (system_header): Likewise.
34470         * lib/wctype.in.h (system_header): Likewise.
34471
34472         arpa/inet: fix mingw compilation warning
34473         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34474         Reported by Matthew Bolte.
34475
34476 2010-03-25  Bruno Haible  <bruno@clisp.org>
34477
34478         Avoid collision between gnulib wrapper and libintl wrapper.
34479         * lib/printf.c (printf): Don't define if a printf wrapper is already
34480         defined in intl/printf.c.
34481         Reported by Michel Boaventura <michel@michelboaventura.com>.
34482
34483 2010-03-25  Bruno Haible  <bruno@clisp.org>
34484
34485         Use ANSI C.
34486         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34487
34488 2010-03-25  Bruno Haible  <bruno@clisp.org>
34489
34490         Minor formatting changes.
34491         * lib/acosl.c: Insert space before function argument list.
34492         * lib/argz.c: Likewise.
34493         * lib/asinl.c: Likewise.
34494         * lib/expl.c: Likewise.
34495         * lib/gen-uni-tables.c: Likewise.
34496         * lib/gettext.h: Likewise.
34497         * lib/glthread/lock.h: Likewise.
34498         * lib/tanl.c: Likewise.
34499         * lib/uniname/uniname.c: Likewise.
34500         * tests/test-idpriv-drop.c: Likewise.
34501         * tests/test-idpriv-droptemp.c: Likewise.
34502         * tests/test-lock.c: Likewise.
34503         * tests/test-tls.c: Likewise.
34504         * lib/argp-help.c: Insert space before function-like macro argument
34505         list.
34506         * lib/memcmp.c: Likewise.
34507         * tests/test-base64.c: Likewise.
34508         * lib/localename.c: Insert space before sizeof's argument list.
34509         * lib/safe-alloc.h: Likewise.
34510         * lib/file-set.h: Insert space before macro argument list.
34511         * tests/test-argp.c: Likewise.
34512         * lib/argp-namefrob.h: Insert space before function parameter list.
34513         * lib/getaddrinfo.c: Likewise.
34514         * lib/netdb.in.h: Likewise.
34515         * lib/parse-duration.h: Likewise.
34516         * lib/parse-duration.c: Likewise.
34517         * lib/poll.c: Likewise.
34518         * lib/select.c: Likewise.
34519         * lib/trim.h: Likewise.
34520         * tests/test-usleep.c: Likewise.
34521         * lib/ldexpl.c: Insert space before function parameter list and before
34522         function argument list.
34523         * lib/logl.c: Likewise.
34524         * lib/sqrtl.c: Likewise.
34525         * lib/trim.c: Likewise.
34526         * lib/cosl.c: Use GNU style indentation. Insert space before function
34527         argument list.
34528         * lib/sinl.c: Likewise.
34529         * lib/tsearch.c: Insert space after 'for'.
34530         Reported by Jim Meyering.
34531
34532 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34533
34534         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34535         config header before grepping, as it's not present before
34536         autoreconf/configure are run.  Reported by Simon Josefsson.
34537
34538 2010-03-23  Bruno Haible  <bruno@clisp.org>
34539
34540         pt_chown: Make it work with automake < 1.11.
34541         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34542         Reported by Simon Josefsson.
34543
34544 2010-03-23  Bruno Haible  <bruno@clisp.org>
34545
34546         pt_chown: Don't depend on GPLed modules.
34547         * lib/pt_chown.c: Don't include idpriv.h.
34548         (main): Don't drop privileges.
34549         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34550         Reported by Simon Josefsson.
34551
34552 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34553
34554         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34555         suggestions from karl@freefriends.org (Karl Berry).
34556
34557 2010-03-22  Eric Blake  <eblake@redhat.com>
34558
34559         gethostname: further tweaks
34560         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34561         are overriding gethostname.
34562         Suggested by Bruno Haible.
34563
34564 2010-03-21  Bruno Haible  <bruno@clisp.org>
34565
34566         Fix comments.
34567         * lib/forkpty.c (rpl_forkpty): Fix comment.
34568         * lib/openpty.c (rpl_openpty): Likewise.
34569         Reported by Eric Blake.
34570
34571 2010-03-22  Eric Blake  <eblake@redhat.com>
34572
34573         gethostname: fix build on mingw
34574         * lib/unistd.in.h (includes): Work around fact that mingw
34575         <winsock2.h> re-includes <unistd.h>, by avoiding any
34576         redeclarations if we are being included by <winsock2.h>.
34577         Reported by Matthias Bolte.
34578
34579 2010-03-21  Bruno Haible  <bruno@clisp.org>
34580
34581         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34582         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34583         modifications.
34584         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34585         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34586         provide the replacement.
34587         * modules/forkpty (Depends-on): Add openpty, login_tty.
34588         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34589         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34590         * doc/glibc-functions/forkpty.texi: More supported platforms.
34591         * config/srclist.txt: Add forkpty.c (commented).
34592
34593 2010-03-21  Bruno Haible  <bruno@clisp.org>
34594
34595         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34596         (Makefile.am): Verify that PTY_LIB is defined.
34597
34598         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34599
34600 2010-03-21  Bruno Haible  <bruno@clisp.org>
34601
34602         Tests for module 'login_tty'.
34603         * modules/login_tty-tests: New file.
34604         * tests/test-login_tty.c: New file.
34605
34606         New module 'login_tty'.
34607         * lib/login_tty.c: New file.
34608         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34609         * modules/login_tty: New file.
34610         * doc/glibc-functions/login_tty.texi: Mention the new module.
34611
34612 2010-03-21  Bruno Haible  <bruno@clisp.org>
34613
34614         login_tty: Documentation.
34615         * doc/glibc-functions/login_tty.texi: New file.
34616         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34617
34618 2010-03-21  Bruno Haible  <bruno@clisp.org>
34619
34620         pty: Consistent macro naming.
34621         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34622         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34623         * modules/pty (configure.ac): Update.
34624
34625 2010-03-21  Bruno Haible  <bruno@clisp.org>
34626
34627         Tests for openpty: Make stricter.
34628         * tests/test-openpty.c (main): Add test of canonical processing and
34629         erase.
34630         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34631
34632         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34633         * lib/openpty.c (openpty): New replacement function.
34634         * lib/pty.in.h: Include <termios.h>.
34635         (openpty): Update declaration. Add comments.
34636         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34637         is not declared, arrange to provide the replacement. Check for _getpty
34638         and posix_openpt.
34639         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34640         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34641         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34642         * modules/pty-tests (test_pty_c___LDADD): New variable.
34643         * doc/glibc-functions/openpty.texi: More supported platforms.
34644
34645 2010-03-21  Bruno Haible  <bruno@clisp.org>
34646
34647         setenv: Tweaks.
34648         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34649         the test program.
34650         * doc/posix-functions/setenv.texi: Update platforms list.
34651
34652 2010-03-21  Bruno Haible  <bruno@clisp.org>
34653
34654         New module 'unlockpt'.
34655         * lib/unlockpt.c: New file, from glibc with modifications.
34656         * m4/unlockpt.m4: New file.
34657         * modules/unlockpt: New file.
34658         * lib/stdlib.in.h (unlockpt): New declaration.
34659         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34660         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34661         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34662         HAVE_UNLOCKPT.
34663         * doc/posix-functions/unlockpt.texi: Mention the new module.
34664         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34665         * config/srclist.txt: Add unlockpt.c (commented).
34666
34667 2010-03-21  Jim Meyering  <meyering@redhat.com>
34668
34669         maint.mk: prohibit inclusion of "intprops.h" without use
34670         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34671
34672 2010-03-21  Bruno Haible  <bruno@clisp.org>
34673
34674         New module 'grantpt'.
34675         * lib/grantpt.c: New file, from glibc with modifications.
34676         * m4/grantpt.m4: New file.
34677         * modules/grantpt: New file.
34678         * lib/stdlib.in.h (grantpt): New declaration.
34679         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34680         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34681         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34682         HAVE_GRANTPT.
34683         * doc/posix-functions/grantpt.texi: Mention the new module.
34684         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34685         * config/srclist.txt: Add grantpt.c (commented).
34686
34687 2010-03-21  Bruno Haible  <bruno@clisp.org>
34688
34689         New module 'pt_chown'.
34690         * lib/pt_chown.c: New file, from glibc with modifications.
34691         * lib/pty-private.h: New file, from glibc with modifications.
34692         * modules/pt_chown: New file.
34693         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34694
34695 2010-03-21  Bruno Haible  <bruno@clisp.org>
34696
34697         Tests for module 'ptsname'.
34698         * modules/ptsname-tests: New file.
34699         * tests/test-ptsname.c: New file.
34700
34701         New module 'ptsname'.
34702         * lib/ptsname.c: New file, from glibc with modifications.
34703         * m4/ptsname.m4: New file.
34704         * modules/ptsname: New file.
34705         * lib/stdlib.in.h (ptsname): New declaration.
34706         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34707         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34708         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34709         HAVE_PTSNAME.
34710         * doc/posix-functions/ptsname.texi: Mention the new module.
34711         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34712         * config/srclist.txt: Add ptsname.c (commented).
34713
34714 2010-03-21  Bruno Haible  <bruno@clisp.org>
34715
34716         Tests for module 'ttyname_r'.
34717         * modules/ttyname_r-tests: New file.
34718         * tests/test-ttyname_r.c: New file.
34719
34720         New module 'ttyname_r'.
34721         * lib/ttyname_r.c: New file.
34722         * m4/ttyname_r.m4: New file.
34723         * modules/ttyname_r: New file.
34724         * lib/unistd.in.h (ttyname_r): New declaration.
34725         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34726         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34727         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34728         HAVE_TTYNAME_R.
34729         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34730         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34731
34732 2010-03-20  Bruno Haible  <bruno@clisp.org>
34733
34734         signal: Undefine macro definitions in C++ mode.
34735         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34736         sigfillset): Undefine macro definitions from the system header in C++
34737         mode.
34738         Reported by John W. Eaton <jwe@gnu.org>.
34739
34740 2010-03-20  Bruno Haible  <bruno@clisp.org>
34741
34742         Ensure no #include statements inside extern "C" { ... }.
34743         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34744         contain #include statements.
34745         * lib/time.in.h: Likewise.
34746
34747 2010-03-20  Bruno Haible  <bruno@clisp.org>
34748
34749         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34750         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34751         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34752         Reported by John W. Eaton <jwe@gnu.org>.
34753
34754 2010-03-20  Bruno Haible  <bruno@clisp.org>
34755
34756         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34757         Reported by Jim Meyering.
34758
34759 2010-03-20  Bruno Haible  <bruno@clisp.org>
34760
34761         pipe: Set errno upon failure.
34762         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34763         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34764         errno value in error message.
34765
34766 2010-03-20  Bruno Haible  <bruno@clisp.org>
34767             Jim Meyering  <meyering@redhat.com>
34768
34769         lchown: Avoid "unused variable" warning.
34770         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34771
34772 2010-03-20  Bruno Haible  <bruno@clisp.org>
34773
34774         Work around unlink() bug on MacOS X 10.5.6.
34775         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34776         attempting to unlink a parent directory.
34777         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34778         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34779         activate for the replacement function.
34780         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34781
34782 2010-03-20  Bruno Haible  <bruno@clisp.org>
34783
34784         Fix link errors on Solaris 8.
34785         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34786         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34787
34788 2010-03-19  Jim Meyering  <meyering@redhat.com>
34789
34790         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34791         The _LIBC implementation of build_range_exp correctly honors the
34792         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34793         However, the non-_LIBC implementation would ignore that syntax-bit
34794         flag and return REG_ERANGE unconditionally.
34795         This change makes it honor that flag.
34796         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34797         Make two pointer parameters "const".
34798         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34799         (parse_bracket_exp): Update caller.
34800
34801         regex.m4: correct the reversed range endpoint ([b-a]) test
34802         * m4/regex.m4: When requiring that [b-a] evoke failure,
34803         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34804         test pass once again for x86-based systems.
34805
34806 2010-03-19  Bruno Haible  <bruno@clisp.org>
34807
34808         scandir: Fix link error on Solaris 8.
34809         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34810         macros.
34811
34812 2010-03-19  Bruno Haible  <bruno@clisp.org>
34813
34814         getusershell: Fix documentation.
34815         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34816         module.
34817         * doc/glibc-functions/setusershell.texi: Likewise.
34818
34819         getusershell: Provide declaration, missing on Solaris 9.
34820         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34821         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34822         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34823         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34825         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34826         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34827         HAVE_GETUSERSHELL.
34828         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34829
34830 2010-03-19  Bruno Haible  <bruno@clisp.org>
34831
34832         wctype: Provide iswblank function.
34833         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34834         exists and is fine.
34835         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34836         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34837         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34838         * doc/posix-functions/iswblank.texi: Update.
34839
34840 2010-03-19  Bruno Haible  <bruno@clisp.org>
34841
34842         Tests of module 'pty' in C++ mode.
34843         * modules/pty-tests: New file.
34844         * tests/test-pty-c++.cc: New file.
34845         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34846
34847 2010-03-19  Eric Blake  <eblake@redhat.com>
34848
34849         logb: fix documentation
34850         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34851         1.5 declaration bug.
34852
34853         forkpty, openpty: prefer glibc's const-safe prototype
34854         * lib/forkpty.c (rpl_forkpty): New file.
34855         * lib/openpty.c (rpl_openpty): Likewise.
34856         * modules/forkpty (Files): Distribute it.
34857         * modules/openpty (Files): Likewise.
34858         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34859         check...
34860         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34861         replacement for for non-const BSD signature.
34862         * modules/pty (Makefile.am): Substitute witnesses.
34863         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34864         * tests/test-forkpty.c: Update signature check.
34865         * tests/test-openpty.c: Likewise.
34866         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34867         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34868
34869         forkpty, openpty: split functions into new modules
34870         * modules/pty (Makefile.am): Substitute new witnesses.
34871         (Libraries): Move library detection...
34872         * modules/forkpty: ...into new module.
34873         * modules/openpty: Another new module.
34874         * modules/pty-tests: Rename and split...
34875         * modules/forkpty-tests: ...to this...
34876         * modules/openpty-tests: ...and this.
34877         * tests/test-pty.c: Rename and split...
34878         * tests/test-forkpty.c: ...to this...
34879         * tests/test-openpty.c: ...and this.
34880         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34881         (gl_PTY): Split library searching...
34882         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34883         (gl_FORKPTY, gl_OPENPTY): New macros.
34884         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34885         * NEWS: Mention the split.
34886         * MODULES.html.sh (Misc): Document the modules.
34887         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34888         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34889
34890         pty: improve replacement header
34891         * lib/pty.in.h: New file.
34892         * modules/pty (Files): Ship it.
34893         (Makefile.am): Always build replacement.
34894         * m4/pty.m4: Rename...
34895         * m4/pty_h.m4: ...to this.
34896         (gl_PTY): Modernize setting of witness macros; update check of
34897         forkpty to take proper advantage of cache.
34898         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34899
34900         getopt: avoid compiler warning
34901         * lib/getopt.c (attribute_hidden): Remove unused macro.
34902
34903 2010-03-18  Bruno Haible  <bruno@clisp.org>
34904
34905         Fix link errors on Solaris 8.
34906         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34907         * modules/search-tests (test_search_c___LDADD): Likewise.
34908         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34909         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34910         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34911         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34912         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34913         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34914         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34915
34916 2010-03-18  Bruno Haible  <bruno@clisp.org>
34917
34918         Fix bug introduced on 2010-03-14.
34919         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34920         (gl_SPAWN_H): Require it.
34921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34922         Reported by Simon Josefsson.
34923
34924 2010-03-18  Bruno Haible  <bruno@clisp.org>
34925
34926         Fix typo introduced on 2009-12-31.
34927         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34928         posix_spawn_file_actions_adddup2.
34929
34930 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34931         and Eric Blake  <eblake@redhat.com>
34932
34933         test-vc-list-files-git: make more robust
34934         * tests/test-vc-list-files-git.sh: Unset problematic environment
34935         variables.  Chain commands together.
34936
34937 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34938
34939         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34940         `AC_CHECK_DECL' invocation.
34941
34942 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34943
34944         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34945         appears before executable statements. Suggested by Petr Sumbera
34946         <Petr.Sumbera@Sun.COM>.
34947
34948 2010-03-14  Bruno Haible  <bruno@clisp.org>
34949
34950         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34951         portability problems. Instead use a simpler test.
34952         (main): Check that invalid arguments are rejected only on Linux.
34953
34954 2010-03-14  Bruno Haible  <bruno@clisp.org>
34955
34956         Fix bug introduced on 2009-12-31.
34957         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34958         gl_PREREQ_SYS_H_WINSOCK2 always.
34959         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34960         SYS_SOCKET_H variable.
34961         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34962         Update comments.
34963         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34964         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34965         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34966         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34967         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34968
34969 2010-03-14  Bruno Haible  <bruno@clisp.org>
34970
34971         Fix values returned by sinl, cosl.
34972         * lib/trigl.h: Add specification comments.
34973         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34974         that combines the values from the precomputed table with the values of
34975         the Chebyshev polynomials.
34976
34977 2010-03-14  Bruno Haible  <bruno@clisp.org>
34978
34979         Fix compilation error when modules 'posix_spawn[p]' are not used.
34980         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34981         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34982
34983 2010-03-14  Bruno Haible  <bruno@clisp.org>
34984
34985         Fix compilation error on mingw when module 'time_r' is not used.
34986         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34987         is 1.
34988         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34989         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34990         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34991         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34992
34993 2010-03-14  Bruno Haible  <bruno@clisp.org>
34994
34995         Fix compilation error with Sun C.
34996         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34997         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34998         instead of GCC specific ULONG_LONG_MAX.
34999         * lib/xstrtoll.c: Likewise.
35000         * lib/xstrtoull.c: Likewise.
35001
35002 2010-03-13  Bruno Haible  <bruno@clisp.org>
35003
35004         Allow the user to disable C++ code and tests.
35005         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35006         (gl_PROG_ANSI_CXX): Require it.
35007
35008 2010-03-13  Bruno Haible  <bruno@clisp.org>
35009
35010         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35011         cases.
35012
35013 2010-03-13  Bruno Haible  <bruno@clisp.org>
35014
35015         Test that gnulib does not break the standard C++ headers.
35016         * tests/test-locale-c++2.cc: New file.
35017         * modules/locale-tests (Files): Add it.
35018         (Makefile.am): Compile it for test-locale-c++.
35019         * tests/test-math-c++2.cc: New file.
35020         * modules/math-tests (Files): Add it.
35021         (Makefile.am): Compile it for test-math-c++.
35022         * tests/test-signal-c++2.cc: New file.
35023         * modules/signal-tests (Files): Add it.
35024         (Makefile.am): Compile it for test-signal-c++.
35025         * tests/test-stdio-c++2.cc: New file.
35026         * modules/stdio-tests (Files): Add it.
35027         (Makefile.am): Compile it for test-stdio-c++.
35028         * tests/test-stdlib-c++2.cc: New file.
35029         * modules/stdlib-tests (Files): Add it.
35030         (Makefile.am): Compile it for test-stdlib-c++.
35031         * tests/test-string-c++2.cc: New file.
35032         * modules/string-tests (Files): Add it.
35033         (Makefile.am): Compile it for test-string-c++.
35034         * tests/test-time-c++2.cc: New file.
35035         * modules/time-tests (Files): Add it.
35036         (Makefile.am): Compile it for test-time-c++.
35037         Reported by John W. Eaton <jwe@gnu.org>.
35038
35039 2010-03-13  Bruno Haible  <bruno@clisp.org>
35040
35041         * gnulib-tool (func_usage): Clarify which options are available for
35042         --create-testdir and --create-megatestdir.
35043
35044 2010-03-13  Bruno Haible  <bruno@clisp.org>
35045
35046         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35047         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35048         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35049         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35050         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35051         when appropriate.
35052         Reported by Jim Meyering.
35053
35054 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35055
35056         * gnulib-tool (func_import): Explain origin of code.
35057
35058 2010-03-12  Bruno Haible  <bruno@clisp.org>
35059
35060         Fix problem with automake's definition of CXXLINK.
35061         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35062         Reported by Simon Josefsson and Ludovic Courtès.
35063
35064 2010-03-12  Bruno Haible  <bruno@clisp.org>
35065
35066         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35067         stable releases.
35068
35069 2010-03-11  Bruno Haible  <bruno@clisp.org>
35070
35071         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35072         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35073         whether the system provides one variant or multiple variants of the
35074         function.
35075         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35076         C++ compilers.
35077         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35078         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35079         Reported by Jim Meyering.
35080
35081 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35082
35083         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35084
35085 2010-03-08  Bruno Haible  <bruno@clisp.org>
35086
35087         gnulib-tool: Add support for --libtool in --create-testdir.
35088         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35089         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35090
35091 2010-03-08  Eric Blake  <eblake@redhat.com>
35092
35093         gnulib-tool.texi: mention possibility of git submodule
35094         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35095         submodules.
35096         * doc/.gitignore: Ignore another generated file.
35097
35098 2010-03-08  Karl Berry  <karl@gnu.org>
35099
35100         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35101         of committing gnulib files while skipping others.
35102
35103 2010-03-07  Bruno Haible  <bruno@clisp.org>
35104
35105         Tests of module 'wctype' in C++ mode.
35106         * tests/test-wctype-c++.cc: New file.
35107         * modules/wctype-tests (Files): Add it and tests/signature.h.
35108         (Depends-on): Add ansi-c++-opt.
35109         (Makefile.am): Arrange to compile and run test-wctype-c++.
35110
35111         Tests of module 'wchar' in C++ mode.
35112         * tests/test-wchar-c++.cc: New file.
35113         * modules/wchar-tests (Files): Add it and tests/signature.h.
35114         (Depends-on): Add ansi-c++-opt.
35115         (Makefile.am): Arrange to compile and run test-wchar-c++.
35116         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35117         gl_MODULE_INDICATOR.
35118
35119         Tests of module 'unistd' in C++ mode.
35120         * tests/test-unistd-c++.cc: New file.
35121         * modules/unistd-tests (Files): Add it and tests/signature.h.
35122         (Depends-on): Add ansi-c++-opt.
35123         (Makefile.am): Arrange to compile and run test-unistd-c++.
35124         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35125         gl_MODULE_INDICATOR.
35126
35127         Tests of module 'time' in C++ mode.
35128         * tests/test-time-c++.cc: New file.
35129         * modules/time-tests (Files): Add it and tests/signature.h.
35130         (Depends-on): Add ansi-c++-opt.
35131         (Makefile.am): Arrange to compile and run test-time-c++.
35132         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35133
35134         Tests of module 'sys_time' in C++ mode.
35135         * tests/test-sys_time-c++.cc: New file.
35136         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35137         (Depends-on): Add ansi-c++-opt.
35138         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35139         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35140         gl_MODULE_INDICATOR.
35141
35142         Tests of module 'sys_stat' in C++ mode.
35143         * tests/test-sys_stat-c++.cc: New file.
35144         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35145         (Depends-on): Add ansi-c++-opt.
35146         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35147         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35148         gl_MODULE_INDICATOR.
35149
35150         Tests of module 'sys_socket' in C++ mode.
35151         * tests/test-sys_socket-c++.cc: New file.
35152         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35153         (Depends-on): Add ansi-c++-opt.
35154         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35155         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35156         gl_MODULE_INDICATOR.
35157
35158         Tests of module 'sys_select' in C++ mode.
35159         * tests/test-sys_select-c++.cc: New file.
35160         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35161         (Depends-on): Add ansi-c++-opt.
35162         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35163         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35164         gl_MODULE_INDICATOR.
35165
35166         Tests of module 'sys_ioctl' in C++ mode.
35167         * tests/test-sys_ioctl-c++.cc: New file.
35168         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35169         (Depends-on): Add ansi-c++-opt.
35170         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35171         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35172         gl_MODULE_INDICATOR.
35173
35174         Tests of module 'string' in C++ mode.
35175         * tests/test-string-c++.cc: New file.
35176         * modules/string-tests (Files): Add it and tests/signature.h.
35177         (Depends-on): Add ansi-c++-opt.
35178         (Makefile.am): Arrange to compile and run test-string-c++.
35179         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35180         gl_MODULE_INDICATOR.
35181
35182         Tests of module 'stdlib' in C++ mode.
35183         * tests/test-stdlib-c++.cc: New file.
35184         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35185         (Depends-on): Add ansi-c++-opt.
35186         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35187         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35188         gl_MODULE_INDICATOR.
35189
35190         Tests of module 'stdio' in C++ mode.
35191         * tests/test-stdio-c++.cc: New file.
35192         * modules/stdio-tests (Files): Add it and tests/signature.h.
35193         (Depends-on): Add ansi-c++-opt.
35194         (Makefile.am): Arrange to compile and run test-stdio-c++.
35195         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35196         gl_MODULE_INDICATOR.
35197
35198         Tests of module 'spawn' in C++ mode.
35199         * tests/test-spawn-c++.cc: New file.
35200         * modules/spawn-tests (Files): Add it and tests/signature.h.
35201         (Depends-on): Add ansi-c++-opt.
35202         (Makefile.am): Arrange to compile and run test-spawn-c++.
35203         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35204         gl_MODULE_INDICATOR.
35205
35206         Tests of module 'signal' in C++ mode.
35207         * tests/test-signal-c++.cc: New file.
35208         * modules/signal-tests (Files): Add it and tests/signature.h.
35209         (Depends-on): Add ansi-c++-opt.
35210         (Makefile.am): Arrange to compile and run test-signal-c++.
35211         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35212         gl_MODULE_INDICATOR.
35213
35214         Tests of module 'search' in C++ mode.
35215         * tests/test-search-c++.cc: New file.
35216         * modules/search-tests (Files): Add it and tests/signature.h.
35217         (Depends-on): Add ansi-c++-opt.
35218         (Makefile.am): Arrange to compile and run test-search-c++.
35219         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35220         gl_MODULE_INDICATOR.
35221
35222         Tests of module 'math' in C++ mode.
35223         * tests/test-math-c++.cc: New file.
35224         * modules/math-tests (Files): Add it and tests/signature.h.
35225         (Depends-on): Add ansi-c++-opt.
35226         (Makefile.am): Arrange to compile and run test-math-c++.
35227         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35228
35229         Tests of module 'locale' in C++ mode.
35230         * tests/test-locale-c++.cc: New file.
35231         * modules/locale-tests (Files): Add it and tests/signature.h.
35232         (Depends-on): Add ansi-c++-opt.
35233         (Makefile.am): Arrange to compile and run test-locale-c++.
35234         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35235         gl_MODULE_INDICATOR.
35236
35237         Tests of module 'langinfo' in C++ mode.
35238         * tests/test-langinfo-c++.cc: New file.
35239         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35240         (Depends-on): Add ansi-c++-opt.
35241         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35242         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35243         gl_MODULE_INDICATOR.
35244
35245         Tests of module 'iconv-h' in C++ mode.
35246         * tests/test-iconv-h-c++.cc: New file.
35247         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35248         (Depends-on): Add ansi-c++-opt.
35249         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35250
35251         Tests of module 'glob' in C++ mode.
35252         * tests/test-glob-c++.cc: New file.
35253         * modules/glob-tests (Files): Add it.
35254         (Depends-on): Add ansi-c++-opt.
35255         (Makefile.am): Arrange to compile and run test-glob-c++.
35256
35257         Tests of module 'fcntl-h' in C++ mode.
35258         * tests/test-fcntl-h-c++.cc: New file.
35259         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35260         (Depends-on): Add ansi-c++-opt.
35261         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35262         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35263         gl_MODULE_INDICATOR.
35264
35265         Tests of module 'dirent' in C++ mode.
35266         * tests/test-dirent-c++.cc: New file.
35267         * modules/dirent-tests (Files): Add it and tests/signature.h.
35268         (Depends-on): Add ansi-c++-opt.
35269         (Makefile.am): Arrange to compile and run test-dirent-c++.
35270         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35271         gl_MODULE_INDICATOR.
35272
35273         New module 'ansi-c++-opt'.
35274         * modules/ansi-c++-opt: New file.
35275         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35276
35277         Document C++ namespace mode.
35278         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35279
35280         wctype: Avoid #define replacements in C++ mode.
35281         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35282         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35283         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35284         In C++, define a namespaced alias symbol.
35285         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35286         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35287         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35288         rule.
35289
35290         wchar: Avoid #define replacements in C++ mode.
35291         * lib/wchar.in.h: Include c++defs.h.
35292         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35293         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35294         symbol.
35295         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35296         * modules/wchar (Depends-on): Add c++defs.
35297         (Makefile.am): Update wchar.h rule.
35298
35299         unistd: Avoid #define replacements in C++ mode.
35300         * lib/unistd.in.h: Include c++defs.h.
35301         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35302         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35303         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35304         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35305         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35306         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35307         symbol.
35308         (environ): Update.
35309         * modules/unistd (Depends-on): Add c++defs.
35310         (Makefile.am): Update unistd.h rule.
35311
35312         time: Avoid #define replacements in C++ mode.
35313         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35314         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35315         define a namespaced alias symbol.
35316         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35317         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35318         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35319         * modules/time (Depends-on): Add c++defs, warn-on-use.
35320         (Makefile.am): Update time.h rule.
35321         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35322         * modules/nanosleep (configure.ac): Likewise.
35323         * modules/strptime (configure.ac): Likewise.
35324         * modules/timegm (configure.ac): Likewise.
35325
35326         sys_time: Avoid #define replacements in C++ mode.
35327         * lib/sys_time.in.h: Include c++defs.h.
35328         (gettimeofday): In C++, define a namespaced alias symbol.
35329         * modules/sys_time (Depends-on): Add c++defs.
35330         (Makefile.am): Update sys/time.h rule.
35331
35332         sys_stat: Avoid #define replacements in C++ mode.
35333         * lib/sys_stat.in.h: Include c++defs.h.
35334         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35335         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35336         namespaced alias symbol.
35337         In C++, define a namespaced alias symbol.
35338         * modules/sys_stat (Depends-on): Add c++defs.
35339         (Makefile.am): Update sys/stat.h rule.
35340
35341         sys_socket: Avoid #define replacements in C++ mode.
35342         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35343         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35344         definitions also when the system has a <sys/socket.h>.
35345         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35346         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35347         In C++, define a namespaced alias symbol.
35348         * modules/sys_socket (Depends-on): Add c++defs.
35349         (Makefile.am): Update sys/socket.h rule.
35350
35351         sys_select: Avoid #define replacements in C++ mode.
35352         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35353         definitions also when the system has a <sys/select.h>.
35354         (select): In C++, define a namespaced alias symbol.
35355         * modules/sys_select (Depends-on): Add c++defs.
35356         (Makefile.am): Update sys/select.h rule.
35357
35358         sys_ioctl: Avoid #define replacements in C++ mode.
35359         * lib/sys_ioctl.in.h: Include c++defs.h.
35360         (ioctl): In C++, define a namespaced alias symbol.
35361         * modules/sys_ioctl (Depends-on): Add c++defs.
35362         (Makefile.am): Update sys/ioctl.h rule.
35363
35364         string: Avoid #define replacements in C++ mode.
35365         * lib/string.in.h: Include c++defs.h.
35366         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35367         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35368         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35369         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35370         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35371         * modules/string (Depends-on): Add c++defs.
35372         (Makefile.am): Update string.h rule.
35373
35374         stdlib: Avoid #define replacements in C++ mode.
35375         * lib/stdlib.in.h: Include c++defs.h.
35376         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35377         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35378         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35379         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35380         symbol.
35381         * modules/stdlib (Depends-on): Add c++defs.
35382         (Makefile.am): Update stdlib.h rule.
35383
35384         stdio: Avoid #define replacements in C++ mode.
35385         * lib/stdio.in.h: Include c++defs.h.
35386         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35387         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35388         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35389         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35390         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35391         namespaced alias symbol.
35392         * modules/stdio (Depends-on): Add c++defs.
35393         (Makefile.am): Update stdio.h rule.
35394
35395         spawn: Avoid #define replacements in C++ mode.
35396         * lib/spawn.in.h: Include c++defs.h.
35397         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35398         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35399         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35400         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35401         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35402         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35403         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35404         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35405         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35406         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35407         In C++, define a namespaced alias symbol.
35408         * modules/spawn (Depends-on): Add c++defs.
35409         (Makefile.am): Update spawn.h rule.
35410
35411         signal: Avoid #define replacements in C++ mode.
35412         * lib/signal.in.h: Include c++defs.h.
35413         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35414         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35415         namespaced alias symbol.
35416         * modules/signal (Depends-on): Add c++defs.
35417         (Makefile.am): Update signal.h rule.
35418
35419         search: Avoid #define replacements in C++ mode.
35420         * lib/search.in.h: Include c++defs.h.
35421         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35422         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35423         symbol.
35424         * modules/search (Depends-on): Add c++defs.
35425         (Makefile.am): Update search.h rule.
35426
35427         math: Avoid #define replacements in C++ mode.
35428         * lib/math.in.h: Include c++defs.h.
35429         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35430         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35431         trunc, truncl): In C++, define a namespaced alias symbol.
35432         * modules/math (Depends-on): Add c++defs.
35433         (Makefile.am): Update math.h rule.
35434
35435         locale: Avoid #define replacements in C++ mode.
35436         * lib/locale.in.h: Include c++defs.h.
35437         (duplocale): In C++, define a namespaced alias symbol.
35438         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35439         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35440         * modules/locale (Depends-on): Add c++defs.
35441         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35442
35443         langinfo: Avoid #define replacements in C++ mode.
35444         * lib/langinfo.in.h: Include c++defs.h.
35445         (nl_langinfo): In C++, define a namespaced alias symbol.
35446         * modules/langinfo (Depends-on): Add c++defs.
35447         (Makefile.am): Update langinfo.h rule.
35448
35449         iconv-h: Avoid #define replacements in C++ mode.
35450         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35451         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35452         symbol.
35453         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35454         whenever iconv is present.
35455         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35456         (Makefile.am): Update iconv.h rule.
35457
35458         glob: Avoid #define replacements in C++ mode.
35459         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35460         (_gl_glob_errfunc_fn): New type.
35461         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35462         symbol.
35463         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35464         (Makefile.am): Update glob.h rule.
35465
35466         fcntl-h: Avoid #define replacements in C++ mode.
35467         * lib/fcntl.in.h: Include c++defs.h.
35468         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35469         * modules/fcntl-h (Depends-on): Add c++defs.
35470         (Makefile.am): Update fcntl.h rule.
35471
35472         dirent: Avoid #define replacements in C++ mode.
35473         * lib/dirent.in.h: Include c++defs.h.
35474         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35475         namespaced alias symbol.
35476         (dirfd): Update declaration.
35477         * modules/dirent (Depends-on): Add c++defs.
35478         (Makefile.am): Update dirent.h rule.
35479
35480         ctype: Make it usable in C++ code.
35481         * lib/ctype.in.h: Include c++defs.h.
35482         (isblank): Declare as extern "C".
35483         * modules/ctype (Depends-on): Add c++defs.
35484         (Makefile.am): Update ctype.h rule.
35485
35486         New module 'c++defs'.
35487         * modules/c++defs: New file.
35488         * build-aux/c++defs.h: New file.
35489         Reported by John W. Eaton <jwe@gnu.org>.
35490
35491 2010-03-07  Bruno Haible  <bruno@clisp.org>
35492
35493         logb: Provide missing declaration for Cygwin.
35494         * lib/math.in.h (logb): New declaration.
35495         * m4/logb.m4: New file.
35496         * modules/logb (Files): Add m4/logb.m4.
35497         (Depends-on): Add math.
35498         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35499         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35501         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35502         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35503
35504 2010-03-07  Bruno Haible  <bruno@clisp.org>
35505
35506         Fix test-cond link error.
35507         * tests/test-cond.c: Include <stdio.h>.
35508
35509 2010-03-07  Bruno Haible  <bruno@clisp.org>
35510
35511         Fix test-dirent-safer link error.
35512         * modules/dirent-safer-tests (Makefile.am): Define
35513         test_dirent_safer_LDADD.
35514
35515 2010-03-07  Bruno Haible  <bruno@clisp.org>
35516
35517         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35518         among default module list.
35519
35520 2010-03-07  Bruno Haible  <bruno@clisp.org>
35521
35522         Fix link error on platforms with GNU libiconv.
35523         * modules/unistr/u8-strcoll-tests (Makefile): Define
35524         test_u8_strcoll_LDADD.
35525         * modules/unistr/u16-strcoll-tests (Makefile): Define
35526         test_u16_strcoll_LDADD.
35527         * modules/unistr/u32-strcoll-tests (Makefile): Define
35528         test_u32_strcoll_LDADD.
35529
35530 2010-03-07  Bruno Haible  <bruno@clisp.org>
35531
35532         Use POSIX declarations for socket functions.
35533         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35534         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35535         rpl_sendto): Change declaration to match POSIX.
35536         * lib/connect.c (rpl_connect): Likewise.
35537         * lib/accept.c (rpl_accept): Likewise.
35538         * lib/bind.c (rpl_bind): Likewise.
35539         * lib/getpeername.c (rpl_getpeername): Likewise.
35540         * lib/getsockname.c (rpl_getsockname): Likewise.
35541         * lib/recv.c (rpl_recv): Likewise.
35542         * lib/send.c (rpl_send): Likewise.
35543         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35544         * lib/sendto.c (rpl_sendto): Likewise.
35545
35546 2010-03-06  Bruno Haible  <bruno@clisp.org>
35547
35548         Clarify access, euidaccess, faccessat.
35549         * doc/posix-functions/faccessat.texi: Mention security problem under
35550         "Other problems", not "Portability problems".
35551         * doc/posix-functions/access.texi: Likewise. Mention a related security
35552         problem.
35553         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35554         * lib/euidaccess.c: Add comments about platforms.
35555         * lib/unistd.in.h (access, euidaccess): Add warnings.
35556
35557 2010-03-07  Bruno Haible  <bruno@clisp.org>
35558
35559         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35560         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35561         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35562         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35563         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35564         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35565         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35566         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35567         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35568         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35569         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35570         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35571         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35572         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35573         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35574         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35575         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35576         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35577         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35578         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35579         Likewise.
35580         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35581         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35582         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35583         Likewise.
35584         * tests/test-spawn.c (main): Make it work when
35585         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35586
35587 2010-03-07  Bruno Haible  <bruno@clisp.org>
35588
35589         Fix incorrect Makefile.am generation in German locale.
35590         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35591         Execute sed command with character range in C locale.
35592
35593 2010-03-06  Bruno Haible  <bruno@clisp.org>
35594
35595         Tests for module 'iconv-h'.
35596         * modules/iconv-h-tests: New file.
35597         * tests/test-iconv-h.c: New file.
35598
35599         New module 'iconv-h'.
35600         * modules/iconv-h: New file.
35601         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35602         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35603         (configure.ac): Remove gl_ICONV_H.
35604         (Makefile.am): Remove rule for iconv.h.
35605
35606 2010-03-06  Bruno Haible  <bruno@clisp.org>
35607
35608         More consistent naming of *.m4 files.
35609         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35610         * modules/wctype (Files): Update.
35611
35612         More consistent naming of *.m4 files.
35613         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35614         * modules/wchar (Files): Update.
35615
35616 2010-03-06  Jim Meyering  <meyering@redhat.com>
35617
35618         euidaccess: relax license to LGPLv2+
35619         * modules/euidaccess (License): Relax to LGPLv2+.
35620
35621 2010-03-06  Bruno Haible  <bruno@clisp.org>
35622
35623         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35624         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35625         (Makefile.am): Augment lib_SOURCES instead.
35626
35627 2010-03-04  Jim Meyering  <meyering@redhat.com>
35628
35629         utime: remove obsolete module
35630         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35631         unnecessary for years, and has been marked as obsolete for 10 months.
35632         * modules/utime: Remove file.
35633         * lib/utime.c: Remove file.
35634         * m4/utime.m4: Remove file.
35635         * m4/utimes-null.m4: Remove file.
35636         * doc/posix-functions/utime.texi (utime): Remove reference to
35637         the module.  Move the sole "fixed by gnulib" item into the
35638         "problems not fixed by Gnulib" list.
35639         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35640
35641 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35642
35643         * modules/exit (License): Relax license to LGPLv2+.
35644         (Status): Mark as obsolete.
35645         * NEWS: Mention deprecated 'exit' module.
35646         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35647         of now obsolete 'exit'.
35648
35649 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35650
35651         fts-lgpl: remove unused module
35652         * modules/fts-lgpl: Remove.
35653         * MODULES.html.sh (func_all_modules): Adjust.
35654         * check-module (find_included_lib_files): Adjust.
35655         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35656
35657 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35658
35659         copy-acl: enhance Solaris ACL error handling
35660         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35661         * lib/set-mode-acl.c (qset_acl): Likewise.
35662
35663 2010-03-02  Bruno Haible  <bruno@clisp.org>
35664
35665         spawn: Don't override the system defined values on FreeBSD 8.
35666         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35667         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35668         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35669         if HAVE_POSIX_SPAWN is 1.
35670         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35671
35672 2010-03-01  Bruno Haible  <bruno@clisp.org>
35673
35674         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35675         regarding Automake.
35676
35677 2010-02-25  Bruno Haible  <bruno@clisp.org>
35678
35679         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35680         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35681         setting, not afterwards.
35682         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35683
35684 2010-02-24  Eric Blake  <eblake@redhat.com>
35685
35686         bootstrap, git-version-gen: use timestamp
35687         * build-aux/git-version-gen (scriptversion): Force UTC.
35688         * build-aux/bootstrap (scriptversion): New variable.
35689
35690         bootstrap: allow older git
35691         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35692         older than 1.6.4.  Requested by the libvirt project.
35693
35694 2010-02-23  Eric Blake  <eblake@redhat.com>
35695
35696         warn-on-use: work with old autoconf
35697         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35698         AS_VAR semantics of autoconf 2.60.
35699         Reported by Bruno Haible.
35700
35701         bootstrap: improve some comments
35702         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35703         clarification comments.
35704
35705         gettimeofday: provide correct function
35706         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35707         when replacement is declared, otherwise provide gettimeofday.
35708         Reported by Michael Goffioul.
35709
35710 2010-02-23  Jim Meyering  <meyering@redhat.com>
35711
35712         lib-ignore: relax license to "unlimited", not LGPLv2+
35713         * modules/lib-ignore (License): Relax to "unlimited".
35714
35715 2010-02-23  Jim Meyering  <meyering@redhat.com>
35716
35717         lib-ignore: relax license to LGPLv2+
35718         * modules/lib-ignore (License): Relax to LGPLv2+.
35719
35720 2010-02-22  Eric Blake  <eblake@redhat.com>
35721
35722         lseek: avoid bash 3.2 broken pipe bug
35723         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35724         warning from bash 3.2.
35725         Reported by Ben Pfaff, with analysis from Bruno Haible.
35726
35727         bootstrap: support non-FSF copyright holder
35728         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35729         bootstrap.conf override of COPYRIGHT_HOLDER.
35730         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35731
35732         bootstrap: interoperate with gettext 0.14.1
35733         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35734
35735         bootstrap: allow for alternate submodule location
35736         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35737         hardcoding submodule location.
35738         (gnulib_mk): Allow direct use of Makefile.am.
35739
35740         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35741         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35742         rather than reconfiguring where the submodule points.
35743
35744         gettimeofday: restore support for platforms that lack function
35745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35746         replacement if function is missing.
35747         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35748         * modules/sys_time (Makefile.am): Substitute it.
35749         * lib/sys_time.in.h (gettimeofday): Check it.
35750         Reported by Michael Goffioul.
35751
35752 2010-02-21  Bruno Haible  <bruno@clisp.org>
35753
35754         * lib/stdio.in.h (obstack_printf): Fix typo.
35755
35756 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35757
35758         vc-list-files: use bzr ls's -R option
35759         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35760         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35761
35762 2010-02-21  Jim Meyering  <meyering@redhat.com>
35763
35764         init.sh: fix EXEEXT shims to work also for names like test-prog
35765         * tests/init.sh: Re-exec a better shell, when needed.
35766         If the current shell lacks support for posix $(...), an init.sh-using
35767         test will now try to find a shell that supports that.  If EXEEXT is
35768         nonempty, we also require support for hyphen-in-alias-name and shell
35769         substitutions like ${var#glob}.  Failure to find such a shell results
35770         in a skipped test.
35771
35772 2010-02-21  Bruno Haible  <bruno@clisp.org>
35773
35774         Really work around around "broken pipe" error message from bash 3.2.
35775         * gnulib-tool (func_reset_sigpipe): Remove function.
35776         (echo): In bash 3.2, define to a function that uses printf.
35777         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35778
35779 2010-02-20  Bruno Haible  <bruno@clisp.org>
35780
35781         Restore support for automake 1.9.6 with autoconf 2.61.
35782         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35783         Reported by James Youngman <jay@gnu.org>.
35784
35785 2010-02-20  Bruno Haible  <bruno@clisp.org>
35786
35787         Improve *printf warning condition.
35788         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35789         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35790         and the function is overridden due to SIGPIPE emulation.
35791
35792 2010-02-20  Bruno Haible  <bruno@clisp.org>
35793
35794         * lib/stdio.in.h: Tweak comments.
35795
35796 2010-02-19  Bruno Haible  <bruno@clisp.org>
35797
35798         Make it easier to find modules. New gnulib-tool option '--find'.
35799         * gnulib-tool: New option --find.
35800         (func_usage): Document it.
35801         (func_sanitize_modulelist): New function, extracted from
35802         func_all_modules.
35803         (func_all_modules): Invoke it.
35804         * doc/gnulib-tool.texi (Which modules?): New node.
35805
35806 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35807
35808         * lib/sys_select.in.h: Provide select replacement even if
35809         sys/select.h exists on a system, for Interix.
35810
35811 2010-02-18  Jim Meyering  <meyering@redhat.com>
35812
35813         init.sh: don't use $(...) just yet
35814         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35815         to accommodate e.g., Solaris' /bin/sh.
35816
35817 2010-02-17  Bruno Haible  <bruno@clisp.org>
35818
35819         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35820         Reported by Ludovic Courtès <ludo@gnu.org>.
35821
35822 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35823
35824         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35825         linking with -lintl.
35826
35827 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35828
35829         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35830         if not provided by the system's netdb.h.  Reported by
35831         ludo@gnu.org (Ludovic Courtès).
35832
35833 2010-02-15  Jim Meyering  <meyering@redhat.com>
35834
35835         init.sh: improve portability and efficiency
35836         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35837         "dummy" in a for loop.
35838         Use '!', not '^' to select the complement of a character set used
35839         in a "case" statement.
35840         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35841         Suggestions from Eric Blake.
35842
35843         init.sh: automatically accommodate programs with the .exe suffix
35844         Automatically arrange for an invocation of "prog" to execute the
35845         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35846         may use the simpler "prog", yet still work when built on a system
35847         that requires specifying the added suffix.
35848         Do this by constructing a function named "prog" that invokes
35849         "prog.exe" for each .exe file in selected directories.
35850         * tests/init.sh (find_exe_basenames_): New function.
35851         (create_exe_shim_functions_): New function.
35852         (path_prepend_): Use it.
35853
35854         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35855         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35856         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35857
35858 2010-02-14  Jim Meyering  <meyering@redhat.com>
35859
35860         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35861         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35862         (sc_prohibit_hash_pjw_without_use): New rule.
35863
35864         maint.mk: allow the default upload destination dir to be overridden
35865         * top/maint.mk (upload_dest_dir_): Define with a default that
35866         preserves the status quo.
35867         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35868         Reported by Peter Simons.
35869
35870         maint.mk: prohibit inclusion of "hash.h" without_use
35871         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35872
35873 2010-02-10  Jim Meyering  <meyering@redhat.com>
35874
35875         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35876         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35877
35878 2010-02-09  Eric Blake  <ebb9@byu.net>
35879         and Bruno Haible  <bruno@clisp.org>
35880
35881         obstack-printf-posix: ensure declaration
35882         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35883         extracted from gl_FUNC_OBSTACK_PRINTF.
35884         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35885         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35886         Likewise.
35887         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35888         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35889         0.
35890
35891 2010-02-08  Bruno Haible  <bruno@clisp.org>
35892
35893         gnulib-tool: Fix typo in 2010-02-07 commit.
35894         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35895         Reported by Eric Blake.
35896
35897 2010-02-07  Bruno Haible  <bruno@clisp.org>
35898
35899         gnulib-tool: Fix up caching patches.
35900         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35901         option --no-cache. Use associative arrays when supported by the shell.
35902         (sed_comments): New variable.
35903         (modcache): Renamed from do_cache.
35904         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35905         abbreviate unnecessarily.
35906         (have_associative): New variable.
35907         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35908         way also for ksh and zsh.
35909         (func_init_sed_convert_to_cache_statements): New function, extracted
35910         from func_cache_lookup_module. Add support for associative arrays.
35911         Don't set the c_MODULE_cached variable here. Ignore all lines before
35912         the first field header. Remove only the final newline, not all trailing
35913         newlines. Support empty fields correctly. Limit the use of 'eval' to
35914         assignments.
35915         (func_get_description, func_get_status, func_get_notice,
35916         func_get_applicability, func_get_filelist, func_get_dependencies,
35917         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35918         func_get_automake_snippet, func_get_include_directive,
35919         func_get_link_directive, func_get_license, func_get_maintainer):
35920         Update documentation. List the unoptimized code first. Add support for
35921         associative arrays. Limit the use of 'eval' to assignments.
35922         (func_get_applicability): Undo stylistic pessimisations.
35923         (func_get_automake_snippet, func_get_include_directive): Reduce code
35924         duplication.
35925         (func_modules_transitive_closure, func_modules_add_dummy,
35926         func_modules_notice, func_modules_to_filelist, func_add_file,
35927         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35928         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35929         func_create_testdir, func_create_megatestdir): Update documentation.
35930
35931 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35932
35933         * gnulib-tool (func_cache_lookup_module): Store the module name
35934         belonging to the cache variable; error out if two different
35935         module names map to the same cache variable name.
35936
35937 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35938
35939         gnulib-tool: Make caching optional.
35940         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35941         Update matching short versions of --no-changelog.
35942         (func_usage): Update.
35943         (sed_extract_cache_prog): Renamed from ...
35944         (sed_extract_prog): ... this; revert to old extraction script.
35945         (func_get_description, func_get_status)
35946         (func_get_notice, func_get_applicability, func_get_filelist)
35947         (func_get_dependencies, func_get_autoconf_early_snippet)
35948         (func_get_autoconf_snippet, func_get_automake_snippet)
35949         (func_get_include_directive, func_get_link_directive)
35950         (func_get_license, func_get_maintainer): If $do_cache is false,
35951         use old, non-caching extraction scripts.
35952         Suggestion by Bruno Haible.
35953
35954 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35955
35956         gnulib-tool: cache module metainformation.
35957         * gnulib-tool (sed_extract_prog): Match newline before each
35958         header, and rewrite header to a shell variable suffix.
35959         (func_cache_var, func_cache_lookup_module): New functions,
35960         to turn a module name into a cache variable prefix, and to
35961         look up and cache module metainformation.
35962         (func_get_description, func_get_status)
35963         (func_get_notice, func_get_applicability, func_get_filelist)
35964         (func_get_dependencies, func_get_autoconf_early_snippet)
35965         (func_get_autoconf_snippet, func_get_automake_snippet)
35966         (func_get_include_directive, func_get_link_directive)
35967         (func_get_license, func_get_maintainer): Use
35968         func_cache_lookup_module.
35969
35970 2010-02-07  Bruno Haible  <bruno@clisp.org>
35971
35972         fnctl: Fix missing dependency.
35973         * modules/fcntl (Depends-on): Add getdtablesize.
35974         Reported by John W. Eaton <jwe@gnu.org>.
35975
35976 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35977
35978         Argp: fix recognition of short alias options.
35979
35980         * lib/argp-parse.c (convert_options): Fix improper use of
35981         `|' between character values.
35982         * tests/test-argp.c (group1_option): New alias option
35983         --read (-r).
35984         (group1_parser): Special handling for 'r'.
35985         (test15): New test case.
35986         (test_fun): Add test15.
35987         * tests/test-argp-2.sh: Update expected --help and --usage
35988         outputs.
35989
35990 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35991
35992         * tests/test-argp.c: Fix indentation.
35993
35994 2010-02-04  Eric Blake  <ebb9@byu.net>
35995
35996         gettimeofday: expose type of second argument
35997         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35998         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35999         * tests/test-gettimeofday.c: Use it to silence warning.
36000         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36001         the issue.
36002
36003 2010-02-03  Jim Meyering  <meyering@redhat.com>
36004
36005         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36006         * lib/regcomp.c (TYPE_SIGNED): Define.
36007         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36008
36009         regcomp.c: avoid a new -Wshadow warning
36010         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36011
36012 2010-02-01  Jim Meyering  <meyering@redhat.com>
36013
36014         removing useless parentheses in cpp #define directives
36015         For motivation, see commit c0221df4, "define STREQ(a,b)
36016         consistently, removing useless parentheses"
36017         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36018         * lib/mountlist.c (MNT_IGNORE): Likewise.
36019         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36020
36021 2010-02-01  Eric Blake  <ebb9@byu.net>
36022
36023         sys_time: use link-warning
36024         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36025         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36026         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36027         * modules/sys_time (Depends-on): Add warn-on-use.
36028         (Makefile.am): Always build replacement.
36029         (configure.ac): Update substitutions.
36030         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36031         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36032         bother with SYS_TIME_H.
36033         * modules/gettimeofday (configure.ac): Declare indicator.
36034         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36035         in use.
36036
36037         closein-tests: silence compiler warning
36038         * tests/test-closein.c (main): Ignore fread result.
36039         * modules/closein-tests (Depends-on): Add ignore-value.
36040
36041         tests: silence warning about system return
36042         * tests/test-areadlink-with-size.c (main): Ignore system result.
36043         * tests/test-areadlink.c (main): Likewise.
36044         * tests/test-areadlinkat-with-size.c (main): Likewise.
36045         * tests/test-areadlinkat.c (main): Likewise.
36046         * tests/test-canonicalize-lgpl.c (main): Likewise.
36047         * tests/test-canonicalize.c (main): Likewise.
36048         * tests/test-chown.c (main): Likewise.
36049         * tests/test-fchownat.c (main): Likewise.
36050         * tests/test-fdutimensat.c (main): Likewise.
36051         * tests/test-fstatat.c (main): Likewise.
36052         * tests/test-futimens.c (main): Likewise.
36053         * tests/test-lchown.c (main): Likewise.
36054         * tests/test-link.c (main): Likewise.
36055         * tests/test-linkat.c (main): Likewise.
36056         * tests/test-lstat.c (main): Likewise.
36057         * tests/test-mkdir.c (main): Likewise.
36058         * tests/test-mkdirat.c (main): Likewise.
36059         * tests/test-mkfifo.c (main): Likewise.
36060         * tests/test-mkfifoat.c (main): Likewise.
36061         * tests/test-mknod.c (main): Likewise.
36062         * tests/test-readlink.c (main): Likewise.
36063         * tests/test-remove.c (main): Likewise.
36064         * tests/test-rename.c (main): Likewise.
36065         * tests/test-renameat.c (main): Likewise.
36066         * tests/test-rmdir.c (main): Likewise.
36067         * tests/test-symlink.c (main): Likewise.
36068         * tests/test-symlinkat.c (main): Likewise.
36069         * tests/test-unlink.c (main): Likewise.
36070         * tests/test-unlinkat.c (main): Likewise.
36071         * tests/test-utimens.c (main): Likewise.
36072         * tests/test-utimensat.c (main): Likewise.
36073         * modules/areadlink-tests (Depends-on): Add ignore-value.
36074         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36075         * modules/areadlinkat-tests (Depends-on): Likewise.
36076         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36077         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36078         * modules/canonicalize-tests (Depends-on): Likewise.
36079         * modules/chown-tests (Depends-on): Likewise.
36080         * modules/fdutimensat-tests (Depends-on): Likewise.
36081         * modules/futimens-tests (Depends-on): Likewise.
36082         * modules/lchown-tests (Depends-on): Likewise.
36083         * modules/link-tests (Depends-on): Likewise.
36084         * modules/linkat-tests (Depends-on): Likewise.
36085         * modules/lstat-tests (Depends-on): Likewise.
36086         * modules/mkdir-tests (Depends-on): Likewise.
36087         * modules/mkfifo-tests (Depends-on): Likewise.
36088         * modules/mkfifoat-tests (Depends-on): Likewise.
36089         * modules/mknod-tests (Depends-on): Likewise.
36090         * modules/openat-tests (Depends-on): Likewise.
36091         * modules/readlink-tests (Depends-on): Likewise.
36092         * modules/remove-tests (Depends-on): Likewise.
36093         * modules/rename-tests (Depends-on): Likewise.
36094         * modules/renameat-tests (Depends-on): Likewise.
36095         * modules/rmdir-tests (Depends-on): Likewise.
36096         * modules/symlink-tests (Depends-on): Likewise.
36097         * modules/symlinkat-tests (Depends-on): Likewise.
36098         * modules/unlink-tests (Depends-on): Likewise.
36099         * modules/utimens-tests (Depends-on): Likewise.
36100         * modules/utimensat-tests (Depends-on): Likewise.
36101
36102 2010-01-31  Bruno Haible  <bruno@clisp.org>
36103
36104         Perform the same test for many <math.h> functions.
36105         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36106         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36107         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36108         of gl_MATHFUNC.
36109         * modules/acos (configure.ac): Likewise.
36110         * modules/asin (configure.ac): Likewise.
36111         * modules/atan (configure.ac): Likewise.
36112         * modules/atan2 (configure.ac): Likewise.
36113         * modules/cbrt (configure.ac): Likewise.
36114         * modules/copysign (configure.ac): Likewise.
36115         * modules/cos (configure.ac): Likewise.
36116         * modules/cosh (configure.ac): Likewise.
36117         * modules/erf (configure.ac): Likewise.
36118         * modules/erfc (configure.ac): Likewise.
36119         * modules/exp (configure.ac): Likewise.
36120         * modules/fmod (configure.ac): Likewise.
36121         * modules/hypot (configure.ac): Likewise.
36122         * modules/j0 (configure.ac): Likewise.
36123         * modules/j1 (configure.ac): Likewise.
36124         * modules/jn (configure.ac): Likewise.
36125         * modules/lgamma (configure.ac): Likewise.
36126         * modules/log (configure.ac): Likewise.
36127         * modules/log10 (configure.ac): Likewise.
36128         * modules/log1p (configure.ac): Likewise.
36129         * modules/pow (configure.ac): Likewise.
36130         * modules/remainder (configure.ac): Likewise.
36131         * modules/sin (configure.ac): Likewise.
36132         * modules/sinh (configure.ac): Likewise.
36133         * modules/tan (configure.ac): Likewise.
36134         * modules/tanh (configure.ac): Likewise.
36135         * modules/y0 (configure.ac): Likewise.
36136         * modules/y1 (configure.ac): Likewise.
36137         * modules/yn (configure.ac): Likewise.
36138         Suggested by Paolo Bonzini.
36139
36140 2010-01-31  Bruno Haible  <bruno@clisp.org>
36141
36142         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36143
36144 2010-01-31  Bruno Haible  <bruno@clisp.org>
36145
36146         Work around getdelim() bug on FreeBSD 8.0.
36147         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36148         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36149         not work.
36150         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36151         is 1.
36152         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36153         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36154         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36155         a non-zero size.
36156         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36157
36158 2010-01-31  Bruno Haible  <bruno@clisp.org>
36159
36160         Work around getline() bug on FreeBSD 8.0.
36161         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36162         and a non-zero size.
36163         * tests/test-getline.c (main): Likewise.
36164         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36165         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36166
36167 2010-01-28  Eric Blake  <ebb9@byu.net>
36168
36169         regex: fix build failure
36170         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36171         platforms.
36172
36173 2010-01-28  Jim Meyering  <meyering@redhat.com>
36174
36175         regex: do not ignore memory allocation failure
36176         * lib/regex_internal.c (create_cd_newstate): Detect
36177         re_node_set_init_copy failure.   Extracted from glibc commit
36178         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36179
36180         regex: sync more white-space changes from libc
36181         * lib/regex_internal.c: White-space only changes.
36182         * lib/regexec.c: Likewise.
36183
36184         regex: add many uses of __attribute_warn_unused_result__
36185         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36186         * lib/regexec.c: Likewise.
36187         Extracted from a messy glibc commit.
36188
36189         regcomp.c: spelling and merge-artifact from glibc
36190         * lib/regcomp.c: Merge remainder of glibc's
36191         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36192
36193         regcomp.c: sync white-space changes from glibc
36194         * lib/regcomp.c: Merge to accommodate white space
36195         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36196
36197         regcomp.c: do not ignore internal return values
36198         * lib/regcomp.c: Do not ignore internal return values.
36199         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36200         but without its white-space changes and spelling fixes.
36201
36202         regex_internal.h: define __attribute_warn_unused_result__
36203         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36204
36205         maint: add a syntax-check rule to check for vulnerable Makefile.in
36206         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36207
36208 2010-01-27  Jim Meyering  <meyering@redhat.com>
36209
36210         ncftpput-ftp: clean up spaces
36211         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36212         Remove trailing blanks.
36213
36214 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36215
36216         * build-aux/git-version-gen: Fix copyright statement.
36217         * build-aux/gnupload: Likewise.
36218         * tests/test-arcfour.c: Likewise.
36219         * tests/test-arctwo.c: Likewise.
36220         * tests/test-count-one-bits.c: Likewise.
36221         * tests/test-crc.c: Likewise.
36222         * tests/test-des.c: Likewise.
36223         * tests/test-gc-arcfour.c: Likewise.
36224         * tests/test-gc-arctwo.c: Likewise.
36225         * tests/test-gc-des.c: Likewise.
36226         * tests/test-gc-hmac-md5.c: Likewise.
36227         * tests/test-gc-hmac-sha1.c: Likewise.
36228         * tests/test-gc-md2.c: Likewise.
36229         * tests/test-gc-md4.c: Likewise.
36230         * tests/test-gc-md5.c: Likewise.
36231         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36232         * tests/test-gc-rijndael.c: Likewise.
36233         * tests/test-gc-sha1.c: Likewise.
36234         * tests/test-gc.c: Likewise.
36235         * tests/test-gethostname.c: Likewise.
36236         * tests/test-gettimeofday.c: Likewise.
36237         * tests/test-hash.c: Likewise.
36238         * tests/test-hmac-md5.c: Likewise.
36239         * tests/test-hmac-sha1.c: Likewise.
36240         * tests/test-md2.c: Likewise.
36241         * tests/test-md4.c: Likewise.
36242         * tests/test-md5.c: Likewise.
36243         * tests/test-memchr.c: Likewise.
36244         * tests/test-memchr2.c: Likewise.
36245         * tests/test-memcmp.c: Likewise.
36246         * tests/test-memmem.c: Likewise.
36247         * tests/test-memrchr.c: Likewise.
36248         * tests/test-rawmemchr.c: Likewise.
36249         * tests/test-read-file.c: Likewise.
36250         * tests/test-rijndael.c: Likewise.
36251         * tests/test-sockets.c: Likewise.
36252         * tests/test-strchrnul.c: Likewise.
36253         * tests/test-strstr.c: Likewise.
36254         * tests/test-strtod.c: Likewise.
36255         * build-aux/ncftpput-ftp: Likewise.
36256
36257 2010-01-26  Eric Blake  <ebb9@byu.net>
36258
36259         ignore-value: update recommended header name
36260         * modules/ignore-value (Include): Only use <> for headers that
36261         exist in glibc.
36262
36263 2010-01-26  Jim Meyering  <meyering@redhat.com>
36264
36265         test-userspec.c: avoid compiler warnings
36266         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36267         and "initialization discards qualifiers..." warnings.
36268         Put the first "uid" in its own scope, and make char* members "const".
36269
36270 2010-01-25  Bruno Haible  <bruno@clisp.org>
36271
36272         gnulib-tool: Make warning diagnostics consistent.
36273         * gnulib-tool (func_warning): New function.
36274         Use it everywhere where gnulib-tool produces output to stderr and it is
36275         not a fatal error.
36276
36277 2010-01-25  Bruno Haible  <bruno@clisp.org>
36278
36279         Fix test dependencies.
36280         * modules/xstrtol-tests (Depends-on): Add inttypes.
36281         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36282
36283 2010-01-25 Pádraig Brady <P@draigBrady.com>
36284
36285         syntax-check: detect incorrect boolean macro values in config.h
36286         * modules/maintainer-makefile (configure.ac): Parameterize the location
36287         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36288         The logic is from Eric Blake and the location indicated by Jim Meyering.
36289         Note the more natural CONFIG_HEADER name is prohibited by automake
36290         for backwards compatibility reasons.
36291         * top/maint.mk (sc_Wundef_boolean): New rule.
36292
36293 2010-01-25  Jim Meyering  <meyering@redhat.com>
36294
36295         bootstrap: detect MacOS 10.6's shasum, too
36296         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36297         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36298
36299 2010-01-23  Jim Meyering  <meyering@redhat.com>
36300
36301         xstrtoll: new module
36302         * modules/xstrtoll: New file.
36303         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36304         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36305         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36306         ./configure fails if you use this module and lack "long long".
36307         * modules/xstrtoll-tests: New module.
36308         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36309         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36310         new init.sh-based test framework.
36311
36312 2010-01-24  Bruno Haible  <bruno@clisp.org>
36313
36314         Tests for module 'yn'.
36315         * modules/yn-tests: New file.
36316         * tests/test-yn.c: New file.
36317
36318         Tests for module 'y1'.
36319         * modules/y1-tests: New file.
36320         * tests/test-y1.c: New file.
36321
36322         Tests for module 'y0'.
36323         * modules/y0-tests: New file.
36324         * tests/test-y0.c: New file.
36325
36326         Tests for module 'tanh'.
36327         * modules/tanh-tests: New file.
36328         * tests/test-tanh.c: New file.
36329
36330         Tests for module 'tan'.
36331         * modules/tan-tests: New file.
36332         * tests/test-tan.c: New file.
36333
36334         Tests for module 'sqrt'.
36335         * modules/sqrt-tests: New file.
36336         * tests/test-sqrt.c: New file.
36337
36338         Tests for module 'sinh'.
36339         * modules/sinh-tests: New file.
36340         * tests/test-sinh.c: New file.
36341
36342         Tests for module 'sin'.
36343         * modules/sin-tests: New file.
36344         * tests/test-sin.c: New file.
36345
36346         Tests for module 'rint'.
36347         * modules/rint-tests: New file.
36348         * tests/test-rint.c: New file.
36349
36350         Tests for module 'remainder'.
36351         * modules/remainder-tests: New file.
36352         * tests/test-remainder.c: New file.
36353
36354         Tests for module 'pow'.
36355         * modules/pow-tests: New file.
36356         * tests/test-pow.c: New file.
36357
36358         Tests for module 'nextafter'.
36359         * modules/nextafter-tests: New file.
36360         * tests/test-nextafter.c: New file.
36361
36362         Tests for module 'modf'.
36363         * modules/modf-tests: New file.
36364         * tests/test-modf.c: New file.
36365
36366         Tests for module 'logb'.
36367         * modules/logb-tests: New file.
36368         * tests/test-logb.c: New file.
36369
36370         Tests for module 'log1p'.
36371         * modules/log1p-tests: New file.
36372         * tests/test-log1p.c: New file.
36373
36374         Tests for module 'log10'.
36375         * modules/log10-tests: New file.
36376         * tests/test-log10.c: New file.
36377
36378         Tests for module 'log'.
36379         * modules/log-tests: New file.
36380         * tests/test-log.c: New file.
36381
36382         Tests for module 'lgamma'.
36383         * modules/lgamma-tests: New file.
36384         * tests/test-lgamma.c: New file.
36385
36386         Tests for module 'ldexp'.
36387         * modules/ldexp-tests: New file.
36388         * tests/test-ldexp.c: New file.
36389
36390         Tests for module 'jn'.
36391         * modules/jn-tests: New file.
36392         * tests/test-jn.c: New file.
36393
36394         Tests for module 'j1'.
36395         * modules/j1-tests: New file.
36396         * tests/test-j1.c: New file.
36397
36398         Tests for module 'j0'.
36399         * modules/j0-tests: New file.
36400         * tests/test-j0.c: New file.
36401
36402         Tests for module 'hypot'.
36403         * modules/hypot-tests: New file.
36404         * tests/test-hypot.c: New file.
36405
36406         Tests for module 'fmod'.
36407         * modules/fmod-tests: New file.
36408         * tests/test-fmod.c: New file.
36409
36410         Tests for module 'fabs'.
36411         * modules/fabs-tests: New file.
36412         * tests/test-fabs.c: New file.
36413
36414         Tests for module 'exp'.
36415         * modules/exp-tests: New file.
36416         * tests/test-exp.c: New file.
36417
36418         Tests for module 'erfc'.
36419         * modules/erfc-tests: New file.
36420         * tests/test-erfc.c: New file.
36421
36422         Tests for module 'erf'.
36423         * modules/erf-tests: New file.
36424         * tests/test-erf.c: New file.
36425
36426         Tests for module 'cosh'.
36427         * modules/cosh-tests: New file.
36428         * tests/test-cosh.c: New file.
36429
36430         Tests for module 'cos'.
36431         * modules/cos-tests: New file.
36432         * tests/test-cos.c: New file.
36433
36434         Tests for module 'copysign'.
36435         * modules/copysign-tests: New file.
36436         * tests/test-copysign.c: New file.
36437
36438         Tests for module 'cbrt'.
36439         * modules/cbrt-tests: New file.
36440         * tests/test-cbrt.c: New file.
36441
36442         Tests for module 'atan2'.
36443         * modules/atan2-tests: New file.
36444         * tests/test-atan2.c: New file.
36445
36446         Tests for module 'atan'.
36447         * modules/atan-tests: New file.
36448         * tests/test-atan.c: New file.
36449
36450         Tests for module 'asin'.
36451         * modules/asin-tests: New file.
36452         * tests/test-asin.c: New file.
36453
36454         Tests for module 'acos'.
36455         * modules/acos-tests: New file.
36456         * tests/test-acos.c: New file.
36457
36458 2010-01-24  Bruno Haible  <bruno@clisp.org>
36459
36460         Fix tests for common <math.h> functions.
36461         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36462         code snippet that references the function pointer, rather than merely
36463         calling the function. Substitute the FUNC_LIBM variable.
36464         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36465         * modules/acos (configure.ac): Likewise.
36466         * modules/asin (configure.ac): Likewise.
36467         * modules/atan (configure.ac): Likewise.
36468         * modules/atan2 (configure.ac): Likewise.
36469         * modules/cbrt (configure.ac): Likewise.
36470         * modules/copysign (configure.ac): Likewise.
36471         * modules/cos (configure.ac): Likewise.
36472         * modules/cosh (configure.ac): Likewise.
36473         * modules/erf (configure.ac): Likewise.
36474         * modules/erfc (configure.ac): Likewise.
36475         * modules/exp (configure.ac): Likewise.
36476         * modules/fabs (configure.ac): Likewise.
36477         * modules/fmod (configure.ac): Likewise.
36478         * modules/hypot (configure.ac): Likewise.
36479         * modules/j0 (configure.ac): Likewise.
36480         * modules/j1 (configure.ac): Likewise.
36481         * modules/jn (configure.ac): Likewise.
36482         * modules/ldexp (configure.ac): Likewise.
36483         * modules/lgamma (configure.ac): Likewise.
36484         * modules/log (configure.ac): Likewise.
36485         * modules/log10 (configure.ac): Likewise.
36486         * modules/log1p (configure.ac): Likewise.
36487         * modules/logb (configure.ac): Likewise.
36488         * modules/modf (configure.ac): Likewise.
36489         * modules/nextafter (configure.ac): Likewise.
36490         * modules/pow (configure.ac): Likewise.
36491         * modules/remainder (configure.ac): Likewise.
36492         * modules/rint (configure.ac): Likewise.
36493         * modules/sin (configure.ac): Likewise.
36494         * modules/sinh (configure.ac): Likewise.
36495         * modules/tan (configure.ac): Likewise.
36496         * modules/tanh (configure.ac): Likewise.
36497         * modules/y0 (configure.ac): Likewise.
36498         * modules/y1 (configure.ac): Likewise.
36499         * modules/yn (configure.ac): Likewise.
36500
36501 2010-01-24  Bruno Haible  <bruno@clisp.org>
36502
36503         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36504         * tests/test-acosl.c (x): New variable.
36505         (main): Store argument in x and fetch it from x.
36506         * tests/test-asinl.c (x): New variable.
36507         (main): Store argument in x and fetch it from x.
36508         * tests/test-atanl.c (x): New variable.
36509         (main): Store argument in x and fetch it from x.
36510         * tests/test-cosl.c (x): New variable.
36511         (main): Store argument in x and fetch it from x.
36512         * tests/test-expl.c (x): New variable.
36513         (main): Store argument in x and fetch it from x.
36514         * tests/test-logl.c (x): New variable.
36515         (main): Store argument in x and fetch it from x.
36516         * tests/test-sinl.c (x): New variable.
36517         (main): Store argument in x and fetch it from x.
36518         * tests/test-sqrtl.c (x): New variable.
36519         (main): Store argument in x and fetch it from x.
36520         * tests/test-tanl.c (x): New variable.
36521         (main): Store argument in x and fetch it from x.
36522
36523 2010-01-24  Bruno Haible  <bruno@clisp.org>
36524
36525         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36526         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36527         assignments to the initial TESTS_ENVIRONMENT.
36528         * doc/gnulib.texi (Unit test modules): Document it.
36529         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36530         TESTS_ENVIRONMENT.
36531         * modules/btowc-tests (Makefile.am): Likewise.
36532         * modules/c-stack-tests (Makefile.am): Likewise.
36533         * modules/c-strcase-tests (Makefile.am): Likewise.
36534         * modules/copy-file-tests (Makefile.am): Likewise.
36535         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36536         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36537         * modules/mbrtowc-tests (Makefile.am): Likewise.
36538         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36539         * modules/mbscasestr-tests (Makefile.am): Likewise.
36540         * modules/mbschr-tests (Makefile.am): Likewise.
36541         * modules/mbscspn-tests (Makefile.am): Likewise.
36542         * modules/mbsinit-tests (Makefile.am): Likewise.
36543         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36544         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36545         * modules/mbspbrk-tests (Makefile.am): Likewise.
36546         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36547         * modules/mbsrchr-tests (Makefile.am): Likewise.
36548         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36549         * modules/mbsspn-tests (Makefile.am): Likewise.
36550         * modules/mbsstr-tests (Makefile.am): Likewise.
36551         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36552         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36553         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36554         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36555         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36556         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36557         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36558         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36559         * modules/wcrtomb-tests (Makefile.am): Likewise.
36560         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36561         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36562         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36563         assignments from TESTS_ENVIRONMENT.
36564         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36565         augmentation.
36566         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36567         * modules/atexit-tests (Makefile.am): Likewise.
36568         * modules/binary-io-tests (Makefile.am): Likewise.
36569         * modules/closein-tests (Makefile.am): Likewise.
36570         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36571         * modules/exclude-tests (Makefile.am): Likewise.
36572         * modules/fflush-tests (Makefile.am): Likewise.
36573         * modules/fpending-tests (Makefile.am): Likewise.
36574         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36575         * modules/freadahead-tests (Makefile.am): Likewise.
36576         * modules/freadptr-tests (Makefile.am): Likewise.
36577         * modules/freadseek-tests (Makefile.am): Likewise.
36578         * modules/fseek-tests (Makefile.am): Likewise.
36579         * modules/fseeko-tests (Makefile.am): Likewise.
36580         * modules/ftell-tests (Makefile.am): Likewise.
36581         * modules/ftello-tests (Makefile.am): Likewise.
36582         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36583         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36584         * modules/lseek-tests (Makefile.am): Likewise.
36585         * modules/parse-duration-tests (Makefile.am): Likewise.
36586         * modules/perror-tests (Makefile.am): Likewise.
36587         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36588         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36589         * modules/pipe-tests (Makefile.am): Likewise.
36590         * modules/pread-tests (Makefile.am): Likewise.
36591         * modules/printf-posix-tests (Makefile.am): Likewise.
36592         * modules/select-tests (Makefile.am): Likewise.
36593         * modules/sigpipe-tests (Makefile.am): Likewise.
36594         * modules/tsearch-tests (Makefile.am): Likewise.
36595         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36596         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36597         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36598         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36599         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36600         * modules/version-etc-tests (Makefile.am): Likewise.
36601         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36602         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36603         * modules/xalloc-die-tests (Makefile.am): Likewise.
36604         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36605         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36606         * modules/xstrtol-tests (Makefile.am): Likewise.
36607         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36608         * modules/yesno-tests (Makefile.am): Likewise.
36609         Suggested by Jim Meyering.
36610
36611 2010-01-24  Bruno Haible  <bruno@clisp.org>
36612
36613         More documentation.
36614         * doc/gnulib.texi (Writing modules): New chapter.
36615         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36616         the new chapter.
36617
36618 2010-01-24  Jim Meyering  <meyering@redhat.com>
36619
36620         maint.mk: do not prepend "./" after filtering
36621         * top/maint.mk (_prepend_srcdir_prefix): New variable
36622         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36623         "./" when $(srcdir) is ".".
36624
36625         define STREQ(a,b) consistently, removing useless parentheses
36626         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36627         since the only risk is that "a" or "b" contains an unparenthesized
36628         comma, but if either did that, STREQ would have 3 or more arguments.
36629         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36630         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36631         * lib/hash-triple.c (STREQ): Likewise.
36632         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36633         * lib/getugroups.c (STREQ): Likewise.
36634
36635 2010-01-23  Jim Meyering  <meyering@redhat.com>
36636
36637         maint.mk: fix syntax-check in a non-srcdir build directory
36638         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36639         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36640
36641 2010-01-22  Jim Meyering  <meyering@redhat.com>
36642
36643         userspec: add unit tests
36644         * tests/test-userspec.c: New file.
36645         * modules/userspec-tests: Likewise.
36646
36647 2010-01-21  Jim Meyering  <meyering@redhat.com>
36648
36649         maint.mk: handle source file names containing "." robustly
36650         * top/maint.mk (_dot_escaped_srcdir): Define.
36651         (VC_LIST): Use it in LHS of sed substitution.
36652
36653 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36654
36655         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36656         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36657         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36658         from a non-srcdir build.
36659
36660 2010-01-20  Eric Blake  <ebb9@byu.net>
36661
36662         warn-on-use: use instead of link-warning
36663         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36664         * modules/unistd (Depends-on, Makefile.am): Likewise.
36665         * modules/arpa_inet (Depends-on): Replace link-warning with
36666         warn-on-use.
36667         (Makefile.am): Update rules accordingly.
36668         * modules/ctype (Depends-on, Makefile.am): Likewise.
36669         * modules/dirent (Depends-on, Makefile.am): Likewise.
36670         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36671         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36672         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36673         * modules/locale (Depends-on, Makefile.am): Likewise.
36674         * modules/math (Depends-on, Makefile.am): Likewise.
36675         * modules/search (Depends-on, Makefile.am): Likewise.
36676         * modules/signal (Depends-on, Makefile.am): Likewise.
36677         * modules/spawn (Depends-on, Makefile.am): Likewise.
36678         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36679         * modules/string (Depends-on, Makefile.am): Likewise.
36680         * modules/strings (Depends-on, Makefile.am): Likewise.
36681         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36682         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36683         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36684         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36685         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36686         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36687         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36688         * modules/wchar (Depends-on, Makefile.am): Likewise.
36689         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36690         should be poisoned.
36691         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36692         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36693         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36694         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36695         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36696         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36697         * m4/math_h.m4 (gl_MATH_H): Likewise.
36698         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36699         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36700         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36701         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36702         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36703         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36704         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36705         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36707         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36708         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36709         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36710         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36711         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36712         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36713         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36714         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36715         GL_LINK_WARNING.
36716         * lib/ctype.in.h: Likewise.
36717         * lib/dirent.in.h: Likewise.
36718         * lib/fcntl.in.h: Likewise.
36719         * lib/inttypes.in.h: Likewise.
36720         * lib/langinfo.in.h: Likewise.
36721         * lib/locale.in.h: Likewise.
36722         * lib/math.in.h: Likewise.
36723         * lib/search.in.h: Likewise.
36724         * lib/signal.in.h: Likewise.
36725         * lib/spawn.in.h: Likewise.
36726         * lib/stdio.in.h: Likewise.
36727         * lib/stdlib.in.h: Likewise.
36728         * lib/string.in.h: Likewise.
36729         * lib/strings.in.h: Likewise.
36730         * lib/sys_file.in.h: Likewise.
36731         * lib/sys_ioctl.in.h: Likewise.
36732         * lib/sys_select.in.h: Likewise.
36733         * lib/sys_socket.in.h: Likewise.
36734         * lib/sys_stat.in.h: Likewise.
36735         * lib/sys_times.in.h: Likewise.
36736         * lib/sys_utsname.in.h: Likewise.
36737         * lib/unistd.in.h: Likewise.
36738         * lib/wchar.in.h: Likewise.
36739
36740 2010-01-20  Bruno Haible  <bruno@clisp.org>
36741
36742         Avoid duplicate -lm.
36743         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36744         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36745         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36746         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36747         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36748         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36749         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36750         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36751         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36752         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36753         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36754         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36755         Reported by Paolo Bonzini.
36756
36757 2010-01-19  Bruno Haible  <bruno@clisp.org>
36758
36759         langinfo, nl_langinfo: Relicense under LGPLv2+.
36760         * modules/langinfo (License): Change to LGPLv2+.
36761         * modules/nl_langinfo (License): Likewise.
36762         Patch by David Lutterkort <lutter@redhat.com>.
36763
36764 2010-01-19  Bruno Haible  <bruno@clisp.org>
36765
36766         Avoid compilation error with cc on OSF/1 5.1.
36767         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36768         statement, not before.
36769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36770
36771 2010-01-18  Bruno Haible  <bruno@clisp.org>
36772
36773         Avoid a link error due to the __printf__ symbol.
36774         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36775         and 2.6.x.
36776         (__format__, __printf__): Remove definitions.
36777         * lib/argp-fmtstream.h: Likewise.
36778         * lib/argp.h: Likewise.
36779         * lib/error.h: Likewise.
36780         * lib/vasnprintf.h: Likewise.
36781         * lib/xprintf.h: Likewise.
36782         * lib/xvasprintf.h: Likewise.
36783         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36784
36785 2010-01-18  Bruno Haible  <bruno@clisp.org>
36786
36787         Tests for module 'tanl'.
36788         * modules/tanl-tests: New file.
36789         * tests/test-tanl.c: New file.
36790
36791         Tests for module 'sqrtl'.
36792         * modules/sqrtl-tests: New file.
36793         * tests/test-sqrtl.c: New file.
36794
36795         Tests for module 'sinl'.
36796         * modules/sinl-tests: New file.
36797         * tests/test-sinl.c: New file.
36798
36799         Tests for module 'logl'.
36800         * modules/logl-tests: New file.
36801         * tests/test-logl.c: New file.
36802
36803         Tests for module 'expl'.
36804         * modules/expl-tests: New file.
36805         * tests/test-expl.c: New file.
36806
36807         Tests for module 'cosl'.
36808         * modules/cosl-tests: New file.
36809         * tests/test-cosl.c: New file.
36810
36811         Tests for module 'atanl'.
36812         * modules/atanl-tests: New file.
36813         * tests/test-atanl.c: New file.
36814
36815         Tests for module 'asinl'.
36816         * modules/asinl-tests: New file.
36817         * tests/test-asinl.c: New file.
36818
36819         Tests for module 'acosl'.
36820         * modules/acosl-tests: New file.
36821         * tests/test-acosl.c: New file.
36822
36823         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36824         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36825         tanl): Use the standard gnulib idiom.
36826         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36827         * lib/sinl.c: Likewise.
36828         * lib/tanl.c: Don't include trigl.c.
36829         (kernel_tanl): Make static.
36830         * lib/sincosl.c: Include trigl.h first.
36831         * lib/trigl.c: Likewise.
36832         * m4/acosl.m4: New file.
36833         * m4/asinl.m4: New file.
36834         * m4/atanl.m4: New file.
36835         * m4/cosl.m4: New file.
36836         * m4/expl.m4: New file.
36837         * m4/logl.m4: New file.
36838         * m4/sinl.m4: New file.
36839         * m4/sqrtl.m4: New file.
36840         * m4/tanl.m4: New file.
36841         * m4/mathl.m4: Remove file.
36842         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36843         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36844         Don't initialize GNULIB_MATHL.
36845         * modules/acosl: New file.
36846         * modules/asinl: New file.
36847         * modules/atanl: New file.
36848         * modules/cosl: New file.
36849         * modules/expl: New file.
36850         * modules/logl: New file.
36851         * modules/sinl: New file.
36852         * modules/sqrtl: New file.
36853         * modules/tanl: New file.
36854         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36855         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36856         substitute GNULIB_MATHL.
36857         * modules/mathl: Rewritten.
36858         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36859         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36860         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36861         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36862         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36863         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36864         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36865         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36866         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36867
36868 2010-01-18  Bruno Haible  <bruno@clisp.org>
36869
36870         sqrt: Make gl_FUNC_SQRT requirable.
36871         * m4/sqrt.m4: New file.
36872         * modules/sqrt (Files): Add it.
36873         (configure.ac): Invoke gl_FUNC_SQRT.
36874
36875 2010-01-18  Bruno Haible  <bruno@clisp.org>
36876
36877         New modules for common <math.h> functions.
36878         * m4/mathfunc.m4: New file.
36879         * modules/acos: New file.
36880         * modules/asin: New file.
36881         * modules/atan: New file.
36882         * modules/atan2: New file.
36883         * modules/cbrt: New file.
36884         * modules/copysign: New file.
36885         * modules/cos: New file.
36886         * modules/cosh: New file.
36887         * modules/erf: New file.
36888         * modules/erfc: New file.
36889         * modules/exp: New file.
36890         * modules/fabs: New file.
36891         * modules/fmod: New file.
36892         * modules/hypot: New file.
36893         * modules/j0: New file.
36894         * modules/j1: New file.
36895         * modules/jn: New file.
36896         * modules/ldexp: New file.
36897         * modules/lgamma: New file.
36898         * modules/log: New file.
36899         * modules/log10: New file.
36900         * modules/log1p: New file.
36901         * modules/logb: New file.
36902         * modules/modf: New file.
36903         * modules/nextafter: New file.
36904         * modules/pow: New file.
36905         * modules/remainder: New file.
36906         * modules/rint: New file.
36907         * modules/sin: New file.
36908         * modules/sinh: New file.
36909         * modules/sqrt: New file.
36910         * modules/tan: New file.
36911         * modules/tanh: New file.
36912         * modules/y0: New file.
36913         * modules/y1: New file.
36914         * modules/yn: New file.
36915         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36916         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36917         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36918         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36919         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36920         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36921         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36922         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36923         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36924         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36925         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36926         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36927         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36928         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36929         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36930         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36931         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36932         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36933         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36934         * doc/posix-functions/log.texi: Mention the 'log' module.
36935         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36936         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36937         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36938         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36939         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36940         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36941         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36942         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36943         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36944         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36945         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36946         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36947         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36948         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36949         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36950         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36951
36952 2010-01-18  Jim Meyering  <meyering@redhat.com>
36953
36954         ignore-value: relax license to LGPLv2+
36955         * modules/ignore-value (License): Relax to LGPLv2+.
36956
36957         getdate: don't leak when TZ contains two or more '"'s
36958         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36959         double quote in TZ after the first one.
36960
36961         readtokens: do not leak internal token_lengths buffer
36962         * lib/readtokens.c (readtokens): Free the local, lengths,
36963         when the supplied "token_lengths" parameter is NULL.
36964
36965 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36966
36967         Fix a couple of missing LIBTHREAD link failures on AIX.
36968         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36969         $(LIBTHREAD).
36970         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36971
36972         Link test-poll against INET_PTON_LIB.
36973         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36974         for inet_pton on Solaris 10.
36975
36976 2010-01-17  Bruno Haible  <bruno@clisp.org>
36977
36978         unistdio/*-sprintf: Fix typo in module description.
36979         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36980         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36981         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36982         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36983         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36984         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36985         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36987
36988 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36989
36990         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36991         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36992         variables in shell case patterns, for AIX and HP-UX ksh.
36993
36994         Split large sed scripts, for HP-UX sed.
36995         * modules/stdio: Split sed scripts around 50 sed commands,
36996         to avoid HP-UX limit of 99 commands, in the near future.
36997         * modules/string: Likewise.
36998         * modules/unistd: Likewise.
36999
37000         gnulib-tool: avoid writing in the current directory.
37001         * gnulib-tool (func_emit_lib_Makefile_am)
37002         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37003         not in the current directory, so concurrent gnulib-tool
37004         instances do not interfere.
37005
37006 2010-01-16  Jim Meyering  <meyering@redhat.com>
37007
37008         doc: update users.txt
37009         * users.txt: Add grep.
37010         (diffutils, gzip): Update URLs.
37011
37012 2010-01-12  Bruno Haible  <bruno@clisp.org>
37013
37014         posix_spawn: Avoid test failure on Cygwin.
37015         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37016         characters.
37017         Reported by Simon Josefsson.
37018
37019 2010-01-12  Bruno Haible  <bruno@clisp.org>
37020
37021         * tests/test-cond.c (main): When skipping the test, show the reason.
37022
37023 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37024
37025         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37026
37027 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37028
37029         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37030         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37031
37032 2010-01-12  Eric Blake  <ebb9@byu.net>
37033
37034         build: guarantee AS_VAR_IF
37035         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37036         (gl_AS_VAR_IF): Move...
37037         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37038         Reported by Simon Josefsson.
37039
37040 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37041
37042         * lib/stdio.in.h: Fix typo.
37043
37044 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37045
37046         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37047         libgpg-error.
37048
37049 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37050
37051         * tests/test-xalloc-die.sh: Use $EXEEXT.
37052
37053 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37054             Bruno Haible  <bruno@clisp.org>
37055
37056         getlogin, getlogin_r: Avoid test failure.
37057         * tests/test-getlogin.c: Include <stdio.h>.
37058         (main): Skip the test when the function fails because stdin is not a
37059         tty.
37060         * tests/test-getlogin_r.c: Include <stdio.h>.
37061         (main): Skip the test when the function fails because stdin is not a
37062         tty.
37063
37064 2010-01-11  Eric Blake  <ebb9@byu.net>
37065
37066         tests: avoid more large file warnings
37067         * tests/test-fflush.c: Avoid warning about ftell use.
37068         * tests/test-fseek.c: Avoid warning about fseek use.
37069
37070 2010-01-10  Bruno Haible  <bruno@clisp.org>
37071
37072         nproc: Work better on Linux when /proc and /sys are not mounted.
37073         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37074         as lower bound when, on glibc/Linux systems,
37075         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37076         Suggested by Pádraig Brady <P@draigbrady.com>.
37077         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37078
37079         nproc: Refactor.
37080         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37081         extracted from num_processors.
37082         (num_processors): Call it.
37083
37084 2010-01-11  Jim Meyering  <meyering@redhat.com>
37085
37086         utimecmp: avoid new warning from upcoming gcc-4.5.0
37087         * lib/utimecmp.c (BILLION): Define using #define rather than an
37088         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37089
37090 2010-01-11  Eric Blake  <ebb9@byu.net>
37091
37092         math: add portability warnings for classification macros
37093         * modules/math (Depends-on): Add warn-on-use.
37094         (Makefile.am): Provide new substitutions.
37095         * m4/math_h.m4 (gl_MATH_H): Require inline.
37096         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37097         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37098         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37099         implement warnings.
37100
37101         unistd: warn on use of environ without module
37102         * modules/unistd (Depends-on): Add warn-on-use.
37103         (Makefile.am): Provide new substitutions.
37104         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37105         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37106
37107         stdio: warn on suspicious uses
37108         * modules/stdio (Depends-on): Add warn-on-use.
37109         (Makefile.am): Provide new substitutions.
37110         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37111         fseeko.
37112         * lib/stdio.in.h (gets): Always warn on use.
37113         (fseek, ftell): Adjust when warnings are issued, and honor
37114         _GL_NO_LARGE_FILES as a way to silence the warning.
37115         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37116         any warning about large file offsets.
37117         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37118         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37119         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37120         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37121         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37122         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37123         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37124         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37125
37126         warn-on-use: new module
37127         * modules/warn-on-use: New file.
37128         * build-aux/warn-on-use.h: Likewise.
37129         * m4/warn-on-use.m4: Likewise.
37130         * MODULES.html.sh (Support for building): Mention it.
37131
37132 2010-01-10  Bruno Haible  <bruno@clisp.org>
37133
37134         Tests for module 'unistr/u32-strdup'.
37135         * modules/unistr/u32-strdup-tests: New file.
37136         * tests/unistr/test-u32-strdup.c: New file.
37137
37138         Tests for module 'unistr/u16-strdup'.
37139         * modules/unistr/u16-strdup-tests: New file.
37140         * tests/unistr/test-u16-strdup.c: New file.
37141
37142         Tests for module 'unistr/u8-strdup'.
37143         * modules/unistr/u8-strdup-tests: New file.
37144         * tests/unistr/test-u8-strdup.c: New file.
37145         * tests/unistr/test-strdup.h: New file.
37146
37147         Tests for module 'unistr/u32-strncmp'.
37148         * modules/unistr/u32-strncmp-tests: New file.
37149         * tests/unistr/test-u32-strncmp.c: New file.
37150
37151         Tests for module 'unistr/u16-strncmp'.
37152         * modules/unistr/u16-strncmp-tests: New file.
37153         * tests/unistr/test-u16-strncmp.c: New file.
37154
37155         Tests for module 'unistr/u8-strncmp'.
37156         * modules/unistr/u8-strncmp-tests: New file.
37157         * tests/unistr/test-u8-strncmp.c: New file.
37158         * tests/unistr/test-strncmp.h: New file.
37159
37160         Tests for module 'unistr/u32-strcoll'.
37161         * modules/unistr/u32-strcoll-tests: New file.
37162         * tests/unistr/test-u32-strcoll.c: New file.
37163
37164         Tests for module 'unistr/u16-strcoll'.
37165         * modules/unistr/u16-strcoll-tests: New file.
37166         * tests/unistr/test-u16-strcoll.c: New file.
37167
37168         Tests for module 'unistr/u8-strcoll'.
37169         * modules/unistr/u8-strcoll-tests: New file.
37170         * tests/unistr/test-u8-strcoll.c: New file.
37171
37172         Tests for module 'unistr/u32-strcmp'.
37173         * modules/unistr/u32-strcmp-tests: New file.
37174         * tests/unistr/test-u32-strcmp.c: New file.
37175         * tests/unistr/test-u32-strcmp.h: New file.
37176
37177         Tests for module 'unistr/u16-strcmp'.
37178         * modules/unistr/u16-strcmp-tests: New file.
37179         * tests/unistr/test-u16-strcmp.c: New file.
37180         * tests/unistr/test-u16-strcmp.h: New file.
37181
37182         Tests for module 'unistr/u8-strcmp'.
37183         * modules/unistr/u8-strcmp-tests: New file.
37184         * tests/unistr/test-u8-strcmp.c: New file.
37185         * tests/unistr/test-u8-strcmp.h: New file.
37186         * tests/unistr/test-strcmp.h: New file.
37187
37188         Tests for module 'unistr/u32-strncat'.
37189         * modules/unistr/u32-strncat-tests: New file.
37190         * tests/unistr/test-u32-strncat.c: New file.
37191
37192         Tests for module 'unistr/u16-strncat'.
37193         * modules/unistr/u16-strncat-tests: New file.
37194         * tests/unistr/test-u16-strncat.c: New file.
37195
37196         Tests for module 'unistr/u8-strncat'.
37197         * modules/unistr/u8-strncat-tests: New file.
37198         * tests/unistr/test-u8-strncat.c: New file.
37199         * tests/unistr/test-strncat.h: New file.
37200
37201         Tests for module 'unistr/u32-strcat'.
37202         * modules/unistr/u32-strcat-tests: New file.
37203         * tests/unistr/test-u32-strcat.c: New file.
37204
37205         Tests for module 'unistr/u16-strcat'.
37206         * modules/unistr/u16-strcat-tests: New file.
37207         * tests/unistr/test-u16-strcat.c: New file.
37208
37209         Tests for module 'unistr/u8-strcat'.
37210         * modules/unistr/u8-strcat-tests: New file.
37211         * tests/unistr/test-u8-strcat.c: New file.
37212         * tests/unistr/test-strcat.h: New file.
37213
37214         Tests for module 'unistr/u32-stpncpy'.
37215         * modules/unistr/u32-stpncpy-tests: New file.
37216         * tests/unistr/test-u32-stpncpy.c: New file.
37217
37218         Tests for module 'unistr/u16-stpncpy'.
37219         * modules/unistr/u16-stpncpy-tests: New file.
37220         * tests/unistr/test-u16-stpncpy.c: New file.
37221
37222         Tests for module 'unistr/u8-stpncpy'.
37223         * modules/unistr/u8-stpncpy-tests: New file.
37224         * tests/unistr/test-u8-stpncpy.c: New file.
37225         * tests/unistr/test-stpncpy.h: New file.
37226
37227         Tests for module 'unistr/u32-strncpy'.
37228         * modules/unistr/u32-strncpy-tests: New file.
37229         * tests/unistr/test-u32-strncpy.c: New file.
37230
37231         Tests for module 'unistr/u16-strncpy'.
37232         * modules/unistr/u16-strncpy-tests: New file.
37233         * tests/unistr/test-u16-strncpy.c: New file.
37234
37235         Tests for module 'unistr/u8-strncpy'.
37236         * modules/unistr/u8-strncpy-tests: New file.
37237         * tests/unistr/test-u8-strncpy.c: New file.
37238         * tests/unistr/test-strncpy.h: New file.
37239
37240         Tests for module 'unistr/u32-stpcpy'.
37241         * modules/unistr/u32-stpcpy-tests: New file.
37242         * tests/unistr/test-u32-stpcpy.c: New file.
37243
37244         Tests for module 'unistr/u16-stpcpy'.
37245         * modules/unistr/u16-stpcpy-tests: New file.
37246         * tests/unistr/test-u16-stpcpy.c: New file.
37247
37248         Tests for module 'unistr/u8-stpcpy'.
37249         * modules/unistr/u8-stpcpy-tests: New file.
37250         * tests/unistr/test-u8-stpcpy.c: New file.
37251         * tests/unistr/test-stpcpy.h: New file.
37252
37253         Tests for module 'unistr/u32-strcpy'.
37254         * modules/unistr/u32-strcpy-tests: New file.
37255         * tests/unistr/test-u32-strcpy.c: New file.
37256
37257         Tests for module 'unistr/u16-strcpy'.
37258         * modules/unistr/u16-strcpy-tests: New file.
37259         * tests/unistr/test-u16-strcpy.c: New file.
37260
37261         Tests for module 'unistr/u8-strcpy'.
37262         * modules/unistr/u8-strcpy-tests: New file.
37263         * tests/unistr/test-u8-strcpy.c: New file.
37264         * tests/unistr/test-strcpy.h: New file.
37265
37266         Tests for module 'unistr/u32-strnlen'.
37267         * modules/unistr/u32-strnlen-tests: New file.
37268         * tests/unistr/test-u32-strnlen.c: New file.
37269
37270         Tests for module 'unistr/u16-strnlen'.
37271         * modules/unistr/u16-strnlen-tests: New file.
37272         * tests/unistr/test-u16-strnlen.c: New file.
37273
37274         Tests for module 'unistr/u8-strnlen'.
37275         * modules/unistr/u8-strnlen-tests: New file.
37276         * tests/unistr/test-u8-strnlen.c: New file.
37277         * tests/unistr/test-strnlen.h: New file.
37278
37279         Tests for module 'unistr/u32-strlen'.
37280         * modules/unistr/u32-strlen-tests: New file.
37281         * tests/unistr/test-u32-strlen.c: New file.
37282
37283         Tests for module 'unistr/u16-strlen'.
37284         * modules/unistr/u16-strlen-tests: New file.
37285         * tests/unistr/test-u16-strlen.c: New file.
37286
37287         Tests for module 'unistr/u8-strlen'.
37288         * modules/unistr/u8-strlen-tests: New file.
37289         * tests/unistr/test-u8-strlen.c: New file.
37290
37291         Tests for module 'unistr/u32-prev'.
37292         * modules/unistr/u32-prev-tests: New file.
37293         * tests/unistr/test-u32-prev.c: New file.
37294
37295         Tests for module 'unistr/u16-prev'.
37296         * modules/unistr/u16-prev-tests: New file.
37297         * tests/unistr/test-u16-prev.c: New file.
37298
37299         Tests for module 'unistr/u8-prev'.
37300         * modules/unistr/u8-prev-tests: New file.
37301         * tests/unistr/test-u8-prev.c: New file.
37302
37303         Tests for module 'unistr/u32-next'.
37304         * modules/unistr/u32-next-tests: New file.
37305         * tests/unistr/test-u32-next.c: New file.
37306
37307         Tests for module 'unistr/u16-next'.
37308         * modules/unistr/u16-next-tests: New file.
37309         * tests/unistr/test-u16-next.c: New file.
37310
37311         Tests for module 'unistr/u8-next'.
37312         * modules/unistr/u8-next-tests: New file.
37313         * tests/unistr/test-u8-next.c: New file.
37314
37315         Tests for module 'unistr/u32-strmbtouc'.
37316         * modules/unistr/u32-strmbtouc-tests: New file.
37317         * tests/unistr/test-u32-strmbtouc.c: New file.
37318
37319         Tests for module 'unistr/u16-strmbtouc'.
37320         * modules/unistr/u16-strmbtouc-tests: New file.
37321         * tests/unistr/test-u16-strmbtouc.c: New file.
37322
37323         Tests for module 'unistr/u8-strmbtouc'.
37324         * modules/unistr/u8-strmbtouc-tests: New file.
37325         * tests/unistr/test-u8-strmbtouc.c: New file.
37326
37327         Tests for module 'unistr/u32-strmblen'.
37328         * modules/unistr/u32-strmblen-tests: New file.
37329         * tests/unistr/test-u32-strmblen.c: New file.
37330
37331         Tests for module 'unistr/u16-strmblen'.
37332         * modules/unistr/u16-strmblen-tests: New file.
37333         * tests/unistr/test-u16-strmblen.c: New file.
37334
37335         Tests for module 'unistr/u8-strmblen'.
37336         * modules/unistr/u8-strmblen-tests: New file.
37337         * tests/unistr/test-u8-strmblen.c: New file.
37338
37339         Tests for module 'unistr/u32-cpy-alloc'.
37340         * modules/unistr/u32-cpy-alloc-tests: New file.
37341         * tests/unistr/test-u32-cpy-alloc.c: New file.
37342
37343         Tests for module 'unistr/u16-cpy-alloc'.
37344         * modules/unistr/u16-cpy-alloc-tests: New file.
37345         * tests/unistr/test-u16-cpy-alloc.c: New file.
37346
37347         Tests for module 'unistr/u8-cpy-alloc'.
37348         * modules/unistr/u8-cpy-alloc-tests: New file.
37349         * tests/unistr/test-u8-cpy-alloc.c: New file.
37350         * tests/unistr/test-cpy-alloc.h: New file.
37351
37352         Tests for module 'unistr/u32-mbsnlen'.
37353         * modules/unistr/u32-mbsnlen-tests: New file.
37354         * tests/unistr/test-u32-mbsnlen.c: New file.
37355
37356         Tests for module 'unistr/u16-mbsnlen'.
37357         * modules/unistr/u16-mbsnlen-tests: New file.
37358         * tests/unistr/test-u16-mbsnlen.c: New file.
37359
37360         Tests for module 'unistr/u8-mbsnlen'.
37361         * modules/unistr/u8-mbsnlen-tests: New file.
37362         * tests/unistr/test-u8-mbsnlen.c: New file.
37363
37364         Tests for module 'unistr/u32-chr'.
37365         * modules/unistr/u32-chr-tests: New file.
37366         * tests/unistr/test-u32-chr.c: New file.
37367
37368         Tests for module 'unistr/u16-chr'.
37369         * modules/unistr/u16-chr-tests: New file.
37370         * tests/unistr/test-u16-chr.c: New file.
37371
37372         Tests for module 'unistr/u8-chr'.
37373         * modules/unistr/u8-chr-tests: New file.
37374         * tests/unistr/test-u8-chr.c: New file.
37375         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37376
37377         Tests for module 'unistr/u32-cmp2'.
37378         * modules/unistr/u32-cmp2-tests: New file.
37379         * tests/unistr/test-u32-cmp2.c: New file.
37380
37381         Tests for module 'unistr/u16-cmp2'.
37382         * modules/unistr/u16-cmp2-tests: New file.
37383         * tests/unistr/test-u16-cmp2.c: New file.
37384
37385         Tests for module 'unistr/u8-cmp2'.
37386         * modules/unistr/u8-cmp2-tests: New file.
37387         * tests/unistr/test-u8-cmp2.c: New file.
37388         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37389
37390         Tests for module 'unistr/u32-cmp'.
37391         * modules/unistr/u32-cmp-tests: New file.
37392         * tests/unistr/test-u32-cmp.c: New file.
37393
37394         Tests for module 'unistr/u16-cmp'.
37395         * modules/unistr/u16-cmp-tests: New file.
37396         * tests/unistr/test-u16-cmp.c: New file.
37397
37398         Tests for module 'unistr/u8-cmp'.
37399         * modules/unistr/u8-cmp-tests: New file.
37400         * tests/unistr/test-u8-cmp.c: New file.
37401         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37402
37403         Tests for module 'unistr/u32-set'.
37404         * modules/unistr/u32-set-tests: New file.
37405         * tests/unistr/test-u32-set.c: New file.
37406
37407         Tests for module 'unistr/u16-set'.
37408         * modules/unistr/u16-set-tests: New file.
37409         * tests/unistr/test-u16-set.c: New file.
37410
37411         Tests for module 'unistr/u8-set'.
37412         * modules/unistr/u8-set-tests: New file.
37413         * tests/unistr/test-u8-set.c: New file.
37414         * tests/unistr/test-set.h: New file.
37415
37416         Tests for module 'unistr/u32-move'.
37417         * modules/unistr/u32-move-tests: New file.
37418         * tests/unistr/test-u32-move.c: New file.
37419
37420         Tests for module 'unistr/u16-move'.
37421         * modules/unistr/u16-move-tests: New file.
37422         * tests/unistr/test-u16-move.c: New file.
37423
37424         Tests for module 'unistr/u8-move'.
37425         * modules/unistr/u8-move-tests: New file.
37426         * tests/unistr/test-u8-move.c: New file.
37427         * tests/unistr/test-move.h: New file.
37428
37429         Tests for module 'unistr/u32-cpy'.
37430         * modules/unistr/u32-cpy-tests: New file.
37431         * tests/unistr/test-u32-cpy.c: New file.
37432
37433         Tests for module 'unistr/u16-cpy'.
37434         * modules/unistr/u16-cpy-tests: New file.
37435         * tests/unistr/test-u16-cpy.c: New file.
37436
37437         Tests for module 'unistr/u8-cpy'.
37438         * modules/unistr/u8-cpy-tests: New file.
37439         * tests/unistr/test-u8-cpy.c: New file.
37440         * tests/unistr/test-cpy.h: New file.
37441
37442 2010-01-09  Bruno Haible  <bruno@clisp.org>
37443
37444         Tests for module 'unistr/u32-uctomb'.
37445         * modules/unistr/u32-uctomb-tests: New file.
37446         * tests/unistr/test-u32-uctomb.c: New file.
37447
37448         Tests for module 'unistr/u16-uctomb'.
37449         * modules/unistr/u16-uctomb-tests: New file.
37450         * tests/unistr/test-u16-uctomb.c: New file.
37451
37452         Tests for module 'unistr/u8-uctomb'.
37453         * modules/unistr/u8-uctomb-tests: New file.
37454         * tests/unistr/test-u8-uctomb.c: New file.
37455
37456         Tests for module 'unistr/u32-mbtoucr'.
37457         * modules/unistr/u32-mbtoucr-tests: New file.
37458         * tests/unistr/test-u32-mbtoucr.c: New file.
37459
37460         Tests for module 'unistr/u16-mbtoucr'.
37461         * modules/unistr/u16-mbtoucr-tests: New file.
37462         * tests/unistr/test-u16-mbtoucr.c: New file.
37463
37464         Tests for module 'unistr/u8-mbtoucr'.
37465         * modules/unistr/u8-mbtoucr-tests: New file.
37466         * tests/unistr/test-u8-mbtoucr.c: New file.
37467
37468         Tests for module 'unistr/u32-mbtouc'.
37469         * modules/unistr/u32-mbtouc-tests: New file.
37470         * tests/unistr/test-u32-mbtouc.c: New file.
37471
37472         Tests for module 'unistr/u16-mbtouc'.
37473         * modules/unistr/u16-mbtouc-tests: New file.
37474         * tests/unistr/test-u16-mbtouc.c: New file.
37475
37476         Tests for module 'unistr/u8-mbtouc'.
37477         * modules/unistr/u8-mbtouc-tests: New file.
37478         * tests/unistr/test-u8-mbtouc.c: New file.
37479
37480         Tests for module 'unistr/u32-mbtouc-unsafe'.
37481         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37482         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37483         * tests/unistr/test-u32-mbtouc.h: New file.
37484
37485         Tests for module 'unistr/u16-mbtouc-unsafe'.
37486         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37487         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37488         * tests/unistr/test-u16-mbtouc.h: New file.
37489
37490         Tests for module 'unistr/u8-mbtouc-unsafe'.
37491         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37492         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37493         * tests/unistr/test-u8-mbtouc.h: New file.
37494
37495         Tests for module 'unistr/u32-mblen'.
37496         * modules/unistr/u32-mblen-tests: New file.
37497         * tests/unistr/test-u32-mblen.c: New file.
37498
37499         Tests for module 'unistr/u16-mblen'.
37500         * modules/unistr/u16-mblen-tests: New file.
37501         * tests/unistr/test-u16-mblen.c: New file.
37502
37503         Tests for module 'unistr/u8-mblen'.
37504         * modules/unistr/u8-mblen-tests: New file.
37505         * tests/unistr/test-u8-mblen.c: New file.
37506
37507         Tests for module 'unistr/u32-to-u16'.
37508         * modules/unistr/u32-to-u16-tests: New file.
37509         * tests/unistr/test-u32-to-u16.c: New file.
37510
37511         Tests for module 'unistr/u32-to-u8'.
37512         * modules/unistr/u32-to-u8-tests: New file.
37513         * tests/unistr/test-u32-to-u8.c: New file.
37514
37515         Tests for module 'unistr/u16-to-u32'.
37516         * modules/unistr/u16-to-u32-tests: New file.
37517         * tests/unistr/test-u16-to-u32.c: New file.
37518
37519         Tests for module 'unistr/u16-to-u8'.
37520         * modules/unistr/u16-to-u8-tests: New file.
37521         * tests/unistr/test-u16-to-u8.c: New file.
37522
37523         Tests for module 'unistr/u8-to-u32'.
37524         * modules/unistr/u8-to-u32-tests: New file.
37525         * tests/unistr/test-u8-to-u32.c: New file.
37526
37527         Tests for module 'unistr/u8-to-u16'.
37528         * modules/unistr/u8-to-u16-tests: New file.
37529         * tests/unistr/test-u8-to-u16.c: New file.
37530
37531         Tests for module 'unistr/u32-check'.
37532         * modules/unistr/u32-check-tests: New file.
37533         * tests/unistr/test-u32-check.c: New file.
37534
37535         Tests for module 'unistr/u16-check'.
37536         * modules/unistr/u16-check-tests: New file.
37537         * tests/unistr/test-u16-check.c: New file.
37538
37539         Tests for module 'unistr/u8-check'.
37540         * modules/unistr/u8-check-tests: New file.
37541         * tests/unistr/test-u8-check.c: New file.
37542
37543         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37544         (category_equals): New function.
37545         (main): Add more tests.
37546         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37547
37548         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37549
37550 2010-01-10  Bruno Haible  <bruno@clisp.org>
37551
37552         unistr/u*-strcoll: Try harder to distinguish different strings.
37553         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37554         compare s1 and s2 to see if they are different.
37555
37556 2010-01-10  Bruno Haible  <bruno@clisp.org>
37557
37558         unistr/u*-stpncpy: Fix the return value.
37559         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37560         description of the return value consistent with stpncpy in glibc.
37561         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37562         written non-NUL unit.
37563
37564 2010-01-10  Bruno Haible  <bruno@clisp.org>
37565
37566         unistr/u*-next: Add missing dependencies.
37567         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37568         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37569         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37570
37571 2010-01-10  Bruno Haible  <bruno@clisp.org>
37572
37573         unistr/u8-mbsnlen: Fix return value for incomplete character.
37574         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37575         u8_mblen.
37576         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37577         Remove unistr/u8-mblen.
37578         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37579         u16_mblen.
37580         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37581         Remove unistr/u16-mblen.
37582
37583 2010-01-10  Bruno Haible  <bruno@clisp.org>
37584
37585         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37586         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37587         Reported by Brian Gough <bjg@gnu.org> and
37588         Chris Clayton <chris2553@googlemail.com> via
37589         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37590
37591 2010-01-09  Bruno Haible  <bruno@clisp.org>
37592
37593         unistr/u16-to-u32: Reject invalid input.
37594         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37595         u16_mbtouc.
37596         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37597         Remove unistr/u16-mbtouc.
37598
37599         unistr/u16-to-u8: Reject invalid input.
37600         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37601         u16_mbtouc.
37602         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37603         Remove unistr/u16-mbtouc.
37604
37605         unistr/u8-to-u32: Reject invalid input.
37606         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37607         u8_mbtouc.
37608         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37609         Remove unistr/u8-mbtouc.
37610
37611         unistr/u8-to-u16: Reject invalid input.
37612         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37613         u8_mbtouc.
37614         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37615         Remove unistr/u8-mbtouc.
37616
37617 2010-01-09  Bruno Haible  <bruno@clisp.org>
37618
37619         Tests for module 'getlogin'.
37620         * modules/getlogin-tests: New file.
37621         * tests/test-getlogin.c: New file.
37622
37623         New module 'getlogin'.
37624         * lib/unistd.in.h (getlogin): New declaration.
37625         * lib/getlogin.c: New file.
37626         * m4/getlogin.m4: New file.
37627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37628         HAVE_GETLOGIN.
37629         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37630         HAVE_GETLOGIN.
37631         * modules/getlogin: New file.
37632         * doc/posix-functions/getlogin.texi: Mention the new module.
37633         Reported by John W. Eaton <jwe@gnu.org>.
37634
37635 2010-01-09  Bruno Haible  <bruno@clisp.org>
37636
37637         getlogin_r: Support for native Windows.
37638         * lib/getlogin_r.c: Include <windows.h>
37639         (getlogin_r): Implement for native Windows.
37640         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37641         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37642         via John W. Eaton <jwe@gnu.org>.
37643
37644 2010-01-09  Bruno Haible  <bruno@clisp.org>
37645
37646         getlogin_r: Small fixes.
37647         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37648         succeeds.
37649         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37650         before testing whether getlogin_r is declared. No need to set
37651         HAVE_DECL_GETLOGIN_R to 1.
37652         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37653
37654 2010-01-09  Bruno Haible  <bruno@clisp.org>
37655
37656         * lib/unistd.in.h (getlogin_r): Add comment.
37657
37658 2010-01-09  Bruno Haible  <bruno@clisp.org>
37659
37660         Tests for module 'getlogin_r'.
37661         * modules/getlogin_r-tests: New file.
37662         * tests/test-getlogin_r.c: New file.
37663
37664 2010-01-09  Jim Meyering  <meyering@redhat.com>
37665
37666         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37667         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37668         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37669
37670 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37671
37672         * lib/dup2.c (rpl_dup2): Improve comment.
37673
37674 2010-01-08  Eric Blake  <ebb9@byu.net>
37675
37676         maint.mk: allow packages to add makefile @@ exceptions
37677         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37678         (sc_makefile_check): Rename...
37679         (sc_makefile_at_at_check): ...to this, and use hook.
37680
37681         dup2: work around mingw bug
37682         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37683         Reported by Simon Josefsson.
37684
37685 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37686
37687         glob: Fix C++ compilation.
37688         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37689         C++.
37690
37691 2010-01-07  Bruno Haible  <bruno@clisp.org>
37692
37693         Fix indentation of wctype.in.h, broken since 2007-01-06.
37694         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37695
37696 2010-01-07  Bruno Haible  <bruno@clisp.org>
37697
37698         mbslen: Avoid collision with system function.
37699         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37700         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37701         * m4/mbslen.m4: New file.
37702         * modules/mbslen (Files): Add it.
37703         (configure.ac): Invoke gl_MBSLEN.
37704         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37705         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37706         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37707         via Ian Beckwith <ianb@erislabs.net>.
37708
37709 2010-01-07  Bruno Haible  <bruno@clisp.org>
37710
37711         dirent: Document the last fix.
37712         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37713
37714 2010-01-07  Bruno Haible  <bruno@clisp.org>
37715
37716         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37717         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37718         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37719         va_list are defined.
37720         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37721         Reported by Eric Blake.
37722
37723 2010-01-07  Bruno Haible  <bruno@clisp.org>
37724
37725         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37726         * modules/xlist (Depends-on): Add 'list',
37727         * modules/xoset (Depends-on): Add 'oset'.
37728         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37729
37730 2010-01-07  Bruno Haible  <bruno@clisp.org>
37731
37732         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37733         * doc/posix-functions/strncasecmp.texi: Likewise.
37734
37735 2010-01-07  Bruno Haible  <bruno@clisp.org>
37736
37737         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37738
37739 2010-01-07  John W. Eaton  <jwe@octave.org>
37740
37741         wctype: allow C++ use
37742         * lib/wctype.in.h: Add extern "C" block for C++.
37743
37744 2010-01-06  Eric Blake  <ebb9@byu.net>
37745
37746         maint.mk: detect incorrect GFDL usage
37747         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37748
37749 2010-01-06  Jim Meyering  <meyering@redhat.com>
37750         and Eric Blake  <ebb9@byu.net>
37751
37752         maint.mk: ignore multi-line copyright in NEWS
37753         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37754
37755 2010-01-06  Eric Blake  <ebb9@byu.net>
37756
37757         select: add missing dependency
37758         * modules/select-tests (Depends-on): Move sockets dependency...
37759         * modules/select (Depends-on): ...here.
37760         Reported by Ian Beckwith.
37761
37762         doc: regenerate INSTALL
37763         * doc/INSTALL: Reflect recent autoconf update.
37764         * doc/INSTALL.ISO: Likewise.
37765         * doc/INSTALL.UTF-8: Likewise.
37766
37767         pread: fix compilation on glibc
37768         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37769         Reported by Ralf Wildenhues.
37770
37771         dirent: fix test failure
37772         * lib/dirent.in.h (includes): Guarantee ino_t.
37773         Reported by Ralf Wildenhues.
37774
37775 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37776
37777         linkat, renameat: avoid bad free
37778         * lib/at-func2.c (at_func2): Fix typo.
37779         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37780
37781 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37782
37783         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37784         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37785         to avoid failure of symlink test later.
37786
37787 2010-01-06  Eric Blake  <ebb9@byu.net>
37788
37789         stdio, unistd: guarantee ssize_t
37790         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37791         2008 are exposed when needed.
37792         * lib/stdio.in.h (includes): Likewise.
37793         Reported by Ralf Wildenhues.
37794
37795 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37796
37797         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37798         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37799         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37800
37801 2010-01-06  Jim Meyering  <meyering@redhat.com>
37802
37803         readtokens: this module *does* require xalloc.h
37804         It uses only functions that were omitted by the old syntax-check rule.
37805         * lib/readtokens.c: Include "xalloc.h" once again.
37806         * modules/readtokens (Depends-on): Add xalloc.
37807         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37808
37809 2010-01-05  Eric Blake  <ebb9@byu.net>
37810
37811         maint: support 'make announcement' from a VPATH build
37812         * top/maint.mk (announcement): Look for correct NEWS file.
37813
37814 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37815
37816         utimens (fdutimens): ignore a negative FD, per contract
37817         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37818         when we have a valid file descriptor.  Otherwise, using a brand
37819         new glibc (with just-patched futimens that now fails with EBADF)
37820         would cause this function to fail with ENOSYS.
37821         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37822         See also http://bugzilla.redhat.com/552320.
37823
37824 2010-01-05  Eric Blake  <ebb9@byu.net>
37825
37826         strcase: document what it provides
37827         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37828         gnulib module.
37829         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37830         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37831
37832 2010-01-05  Jim Meyering  <meyering@redhat.com>
37833
37834         maint: remove useless inclusions of "xalloc.h"
37835         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37836         * lib/readtokens.c: Likewise.
37837         * lib/same.c: Likewise.
37838         * modules/getloadavg (Depends-on): Remove xalloc.
37839         * modules/readtokens: Likewise.
37840         * modules/same: Likewise.
37841
37842         maint.mk: include 4 more function names in alloca.h-checking regexp
37843         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37844         regexp.  Before, we would give a false-positive (saying alloca.h
37845         is included unnecessarily) when the only uses involved omitted symbols.
37846
37847         xalloc.h: use consistent formatting
37848         * lib/xalloc.h: Move declarations to start in the first column.
37849
37850 2010-01-05  Eric Blake  <ebb9@byu.net>
37851
37852         mkdir: avoid xalloc
37853         * lib/mkdir.c (includes): Drop unused header.
37854         Reported by John W. Eaton.
37855
37856 2010-01-04  Jim Meyering  <meyering@redhat.com>
37857
37858         nl_langinfo: avoid configure-time syntax error
37859         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37860         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37861         the empty string.  Don't let that provoke a shell syntax error.
37862
37863         regcomp, regexec, fnmatch: avoid array bounds read error
37864         * lib/regcomp.c (build_equiv_class): From glibc:
37865         Use only the low 24 bits of a findidx return value as an index
37866         into the weights array.  Patch by Ulrich Drepper:
37867         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37868         * lib/regexec.c (check_node_accept_bytes): Likewise.
37869         * lib/fnmatch_loop.c (FCT): Likewise.
37870
37871         regcomp: skip collseq lookup when there are no rules
37872         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37873         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37874
37875         regcomp: recognize ill-formed { } expressions
37876         * lib/regcomp.c (parse_dup_op): From glibc:
37877         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37878
37879         regcomp: fix typo in comment
37880         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37881         s/satisfy/satisfies/.
37882
37883         regcomp: sync from glibc: remove dead store
37884         * lib/regcomp.c (duplicate_node_closure): Remove useless
37885         search_duplicated_node call and dead store.
37886
37887         regcomp: sync from glibc; always use nl_langinfo
37888         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37889         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37890         * modules/regex (Depends-on): Add nl_langinfo.
37891
37892 2010-01-04  Eric Blake  <ebb9@byu.net>
37893
37894         fdopendir: fix configure test
37895         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37896
37897 2010-01-01  Bruno Haible  <bruno@clisp.org>
37898
37899         wchar: Remove unused configure check.
37900         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37901
37902 2010-01-01  Eric Blake  <ebb9@byu.net>
37903
37904         headers: make check of system header explicit
37905         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37906         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37907         ourselves.
37908         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37909         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37910         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37911         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37912         internals.
37913         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37914         missing.
37915         Suggested by Bruno Haible.
37916
37917 2010-01-01  Jim Meyering  <meyering@redhat.com>
37918
37919         ChangeLog: tweak to eliminate unnecessary copyright line
37920         * ChangeLog: Remove a copyright line that was mistakenly updated
37921         by today's update-copyright run.  Reported by Eric Blake.
37922
37923         test-update-copyright: don't let envvar setting cause test failure
37924         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37925
37926 2010-01-01  Bruno Haible  <bruno@clisp.org>
37927
37928         localename: Avoid gcc warning.
37929         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37930         function if it is not used.
37931
37932 2010-01-01  Jim Meyering  <meyering@redhat.com>
37933
37934         update nearly all FSF copyright year lists to include 2010
37935         Use the same procedure as for 2009, outlined in
37936         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37937
37938         version-etc: set COPYRIGHT_YEAR to 2010
37939         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37940
37941 2009-12-31  Eric Blake  <ebb9@byu.net>
37942
37943         doc: correct availability of cygwin 1.5.x getopt
37944         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37945         variables.
37946         * doc/posix-functions/opterr.texi (opterr): Likewise.
37947         * doc/posix-functions/optind.texi (optind): Likewise.
37948         * doc/posix-functions/optopt.texi (optopt): Likewise.
37949         * doc/posix-functions/tzname.texi (tzname): Likewise.
37950
37951         openat: update maintainer
37952         * modules/openat (Maintainer): Add myself.
37953
37954         utimens: avoid shadowing warning
37955         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37956         buffers into one, to avoid shadowing, as well as avoiding a
37957         redundant stat.
37958         Reported by Jim Meyering.
37959
37960         test-dup2: avoid compiler warning
37961         * tests/test-dup2.c (is_inheritable): Only define if used.
37962
37963 2010-01-01  Bruno Haible  <bruno@clisp.org>
37964
37965         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37966         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37967         defined, use wctomb instead of wcrtomb.
37968
37969 2010-01-01  Bruno Haible  <bruno@clisp.org>
37970
37971         iconv: Reject native Solaris iconv.
37972         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37973         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37974
37975 2009-12-31  Bruno Haible  <bruno@clisp.org>
37976
37977         * tests/test-signal.c (main): Remove test of 'SIG'.
37978
37979 2009-12-31  Bruno Haible  <bruno@clisp.org>
37980
37981         spawn: Fix incomplete fix.
37982         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37983         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37984         warnings for GNULIB_POSIXCHECK again.
37985         Reported by Eric Blake.
37986
37987 2009-12-31  Bruno Haible  <bruno@clisp.org>
37988
37989         Avoid namespace pollution on glibc systems.
37990         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37991         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37992         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37993         glibc systems.
37994
37995 2009-12-31  Bruno Haible  <bruno@clisp.org>
37996
37997         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37998         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37999         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38000         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38001         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38002         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38003         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38004
38005 2009-12-31  Bruno Haible  <bruno@clisp.org>
38006
38007         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38008         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38009         afterwards.
38010
38011 2009-12-31  Bruno Haible  <bruno@clisp.org>
38012
38013         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38014         SYS_UTSNAME_H.
38015
38016 2009-12-31  Bruno Haible  <bruno@clisp.org>
38017
38018         spawn: Fix misapplied patch.
38019         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38020         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38021         warnings for GNULIB_POSIXCHECK.
38022
38023 2009-12-31  Bruno Haible  <bruno@clisp.org>
38024
38025         times: Update after sys_times changed.
38026         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38027         * modules/times (Files): Add it.
38028         (configure.ac): Invoke gl_FUNC_TIMES.
38029
38030 2009-12-31  Bruno Haible  <bruno@clisp.org>
38031
38032         Use AC_C_INLINE where necessary.
38033         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38034         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38035         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38036         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38037         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38038         * m4/mbiter.m4 (gl_MBITER): Likewise.
38039         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38040         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38041         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38042         * modules/u64 (configure.ac): Likewise.
38043
38044 2009-12-31  Bruno Haible  <bruno@clisp.org>
38045
38046         Use AC_C_INLINE instead of module 'inline' where possible.
38047         * modules/inline (Description): Clarify purpose.
38048         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38049         * modules/count-one-bits (Depends-on): Remove inline.
38050         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38051         * modules/openat (Depends-on): Remove inline.
38052         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38053         instead of depending on module 'inline'.
38054         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38055         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38056         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38057         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38058         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38059         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38060         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38061         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38062         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38063         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38064         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38065         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38066         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38067         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38068         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38069         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38070         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38071         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38072         Likewise.
38073         * modules/unictype/property-ascii-hex-digit (Depends-on,
38074         configure.ac): Likewise.
38075         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38076         configure.ac): Likewise.
38077         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38078         configure.ac): Likewise.
38079         * modules/unictype/property-bidi-block-separator (Depends-on,
38080         configure.ac): Likewise.
38081         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38082         configure.ac): Likewise.
38083         * modules/unictype/property-bidi-common-separator (Depends-on,
38084         configure.ac): Likewise.
38085         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38086         Likewise.
38087         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38088         configure.ac): Likewise.
38089         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38090         configure.ac): Likewise.
38091         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38092         configure.ac): Likewise.
38093         * modules/unictype/property-bidi-european-digit (Depends-on,
38094         configure.ac): Likewise.
38095         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38096         configure.ac): Likewise.
38097         * modules/unictype/property-bidi-left-to-right (Depends-on,
38098         configure.ac): Likewise.
38099         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38100         configure.ac): Likewise.
38101         * modules/unictype/property-bidi-other-neutral (Depends-on,
38102         configure.ac): Likewise.
38103         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38104         Likewise.
38105         * modules/unictype/property-bidi-segment-separator (Depends-on,
38106         configure.ac): Likewise.
38107         * modules/unictype/property-bidi-whitespace (Depends-on,
38108         configure.ac): Likewise.
38109         * modules/unictype/property-combining (Depends-on, configure.ac):
38110         Likewise.
38111         * modules/unictype/property-composite (Depends-on, configure.ac):
38112         Likewise.
38113         * modules/unictype/property-currency-symbol (Depends-on,
38114         configure.ac): Likewise.
38115         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38116         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38117         Likewise.
38118         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38119         configure.ac): Likewise.
38120         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38121         Likewise.
38122         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38123         Likewise.
38124         * modules/unictype/property-extender (Depends-on, configure.ac):
38125         Likewise.
38126         * modules/unictype/property-format-control (Depends-on, configure.ac):
38127         Likewise.
38128         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38129         Likewise.
38130         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38131         Likewise.
38132         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38133         Likewise.
38134         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38135         Likewise.
38136         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38137         Likewise.
38138         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38139         Likewise.
38140         * modules/unictype/property-id-start (Depends-on, configure.ac):
38141         Likewise.
38142         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38143         Likewise.
38144         * modules/unictype/property-ids-binary-operator (Depends-on,
38145         configure.ac): Likewise.
38146         * modules/unictype/property-ids-trinary-operator (Depends-on,
38147         configure.ac): Likewise.
38148         * modules/unictype/property-ignorable-control (Depends-on,
38149         configure.ac): Likewise.
38150         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38151         Likewise.
38152         * modules/unictype/property-join-control (Depends-on, configure.ac):
38153         Likewise.
38154         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38155         Likewise.
38156         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38157         Likewise.
38158         * modules/unictype/property-logical-order-exception (Depends-on,
38159         configure.ac): Likewise.
38160         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38161         Likewise.
38162         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38163         * modules/unictype/property-non-break (Depends-on, configure.ac):
38164         Likewise.
38165         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38166         Likewise.
38167         * modules/unictype/property-numeric (Depends-on, configure.ac):
38168         Likewise.
38169         * modules/unictype/property-other-alphabetic (Depends-on,
38170         configure.ac): Likewise.
38171         * modules/unictype/property-other-default-ignorable-code-point
38172         (Depends-on, configure.ac): Likewise.
38173         * modules/unictype/property-other-grapheme-extend (Depends-on,
38174         configure.ac): Likewise.
38175         * modules/unictype/property-other-id-continue (Depends-on,
38176         configure.ac): Likewise.
38177         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38178         Likewise.
38179         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38180         Likewise.
38181         * modules/unictype/property-other-math (Depends-on, configure.ac):
38182         Likewise.
38183         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38184         Likewise.
38185         * modules/unictype/property-paired-punctuation (Depends-on,
38186         configure.ac): Likewise.
38187         * modules/unictype/property-paragraph-separator (Depends-on,
38188         configure.ac): Likewise.
38189         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38190         Likewise.
38191         * modules/unictype/property-pattern-white-space (Depends-on,
38192         configure.ac): Likewise.
38193         * modules/unictype/property-private-use (Depends-on, configure.ac):
38194         Likewise.
38195         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38196         Likewise.
38197         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38198         Likewise.
38199         * modules/unictype/property-radical (Depends-on, configure.ac):
38200         Likewise.
38201         * modules/unictype/property-sentence-terminal (Depends-on,
38202         configure.ac): Likewise.
38203         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38204         Likewise.
38205         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38206         * modules/unictype/property-terminal-punctuation (Depends-on,
38207         configure.ac): Likewise.
38208         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38209         Likewise.
38210         * modules/unictype/property-unassigned-code-value (Depends-on,
38211         configure.ac): Likewise.
38212         * modules/unictype/property-unified-ideograph (Depends-on,
38213         configure.ac): Likewise.
38214         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38215         Likewise.
38216         * modules/unictype/property-variation-selector (Depends-on,
38217         configure.ac): Likewise.
38218         * modules/unictype/property-white-space (Depends-on, configure.ac):
38219         Likewise.
38220         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38221         Likewise.
38222         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38223         Likewise.
38224         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38225         Likewise.
38226         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38227         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38228         Likewise.
38229
38230 2009-12-31  Bruno Haible  <bruno@clisp.org>
38231
38232         Remove unnecessary AC_C_INLINE invocation.
38233         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38234         since 2009-08-21.
38235
38236 2009-12-31  Jim Meyering  <meyering@redhat.com>
38237
38238         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38239         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38240         With this change, we can all remove the gpg_key_ID = ... definition
38241         from our respective cfg.mk files.
38242
38243         maint.mk: create announcement template in ~/, not in /tmp
38244         * top/maint.mk (emit_upload_commands): Adjust.
38245         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38246         Remove temporary file, .ci-msg.
38247
38248 2009-12-31  Eric Blake  <ebb9@byu.net>
38249
38250         link-warning: always build headers with link warnings
38251         * modules/arpa_inet (Makefile.am): Always build replacement
38252         header.
38253         * modules/ctype (Makefile.am): Likewise.
38254         * modules/dirent (Makefile.am): Likewise.
38255         * modules/inttypes (Makefile.am): Likewise.
38256         * modules/langinfo (Makefile.am): Likewise.
38257         * modules/locale (Makefile.am): Likewise.
38258         * modules/spawn (Makefile.am): Likewise.
38259         * modules/sys_file (Makefile.am): Likewise.
38260         * modules/sys_ioctl (Makefile.am): Likewise.
38261         * modules/sys_select (Makefile.am): Likewise.
38262         * modules/sys_socket (Makefile.am): Likewise.
38263         * modules/sys_times (Makefile.am): Likewise.
38264         * modules/sys_utsname (Makefile.am): Likewise.
38265         * modules/sys_wait (Makefile.am): Likewise.
38266         * modules/wchar (Makefile.am): Likewise.
38267         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38268         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38269         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38270         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38271         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38272         Likewise.
38273         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38274         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38275         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38276         Likewise.
38277         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38278         Likewise.
38279         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38280         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38281         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38282         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38283         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38284         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38285         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38286         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38287         (gl_WCHAR_H_DEFAULTS): Likewise.
38288
38289 2009-12-31  Eric Blake  <ebb9@byu.net>
38290
38291         signal, spawn: use link warnings
38292         * lib/signal.in.h (sigset_t): Make unconditional.
38293         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38294         (sigpending, sigprocmask, sigaction): Add link warnings.
38295         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38296         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38297         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38298         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38299         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38300         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38301         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38302         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38303         (posix_spawn_file_actions_destroy)
38304         (posix_spawn_file_actions_addopen)
38305         (posix_spawn_file_actions_addclose)
38306         (posix_spawn_file_actions_adddup2): Likewise.
38307         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38308         * tests/test-signal.c (main): Enhance test.
38309
38310         spawn: improve wrapper support
38311         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38312         (gl_SPAWN_H_DEFAULTS): New defaults.
38313         * modules/spawn (Makefile.am): Substitute them.
38314         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38315         Only declare if missing or broken.
38316
38317         sys_times, sys_utsname: use include_next
38318         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38319         header.
38320         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38321         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38322         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38323         * modules/sys_times (Depends-on): Add include_next.
38324         (Makefile.am): Substitute additional values.
38325         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38326         * lib/sys_times.in.h (includes): Include native header, if
38327         available.
38328         * lib/sys_utsname.in.h (includes): Likewise.
38329         * tests/test-sys_times.c (main): Enhance test.
38330
38331         fdutimensat: revert prior patch
38332         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38333         utimens.h.
38334         Reported by Bruno Haible.
38335
38336 2009-12-30  Eric Blake  <ebb9@byu.net>
38337
38338         sys_wait: drop link-warning dependency
38339         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38340         link-warning efforts.
38341         * lib/sys_wait.in.h: Likewise.
38342
38343         fdutimensat: remove bogus dependency
38344         * modules/fdutimensat (Depends-on): Drop inline.
38345
38346         unistd: fix typo
38347         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38348
38349 2009-12-30  Bruno Haible  <bruno@clisp.org>
38350
38351         Fix compilation error with Solaris cc.
38352         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38353         * lib/unicase/u16-is-invariant.c: Likewise.
38354         * lib/unicase/u32-is-invariant.c: Likewise.
38355         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38356
38357 2009-12-30  Bruno Haible  <bruno@clisp.org>
38358
38359         Fix test crash.
38360         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38361         locales.
38362         Reported by Simon Josefsson <simon@josefsson.org>.
38363
38364 2009-12-30  Bruno Haible  <bruno@clisp.org>
38365
38366         Fix compilation error on most platforms.
38367         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38368         Reported by Simon Josefsson <simon@josefsson.org>
38369         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38370
38371 2009-12-30  Eric Blake  <ebb9@byu.net>
38372
38373         futimens, utimensat: work around ntfs-3g bug
38374         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38375         a ctime bug is present, and expand workaround to cover ntfs-3g.
38376         * lib/utimens.c (fdutimens, lutimens): Likewise.
38377         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38378         (validate_timespec): Adjust return value.
38379         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38380         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38381         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38382
38383 2009-12-29  Eric Blake  <ebb9@byu.net>
38384
38385         link-warning: make usage consistent
38386         * modules/ctype (Depends-on): Add link-warning.
38387         (Makefile.am): Update rules accordingly.
38388         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38389         * modules/locale (Depends-on, Makefile.am): Likewise.
38390         * modules/sys_file (Makefile.am): Likewise.
38391         * modules/getopt-posix (Makefile.am): Delete unused link warning
38392         efforts.
38393         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38394         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38395         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38396         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38397
38398         stdio: remove unused variables
38399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38400         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38401         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38402
38403         tests: test more substitute headers
38404         * modules/ctype-tests: New file.
38405         * modules/dirent-tests: Likewise.
38406         * modules/spawn-tests: Likewise.
38407         * modules/sys_file-tests: Likewise.
38408         * modules/sys_ioctl-tests: Likewise.
38409         * modules/sys_wait-tests: Likewise.
38410         * tests/test-ctype.c: Likewise.
38411         * tests/test-dirent.c: Likewise.
38412         * tests/test-spawn.c: Likewise.
38413         * tests/test-sys_file.c: Likewise.
38414         * tests/test-sys_ioctl.c: Likewise.
38415         * tests/test-sys_wait.c: Likewise.
38416         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38417         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38418         whether or not flock is in use.
38419
38420         tests: remove License section from module
38421         * modules/arpa_inet-tests: Remove unneeded section.
38422         * modules/byteswap-tests: Likewise.
38423         * modules/ceilf-tests: Likewise.
38424         * modules/ceill-tests: Likewise.
38425         * modules/crypto/des-tests: Likewise.
38426         * modules/crypto/gc-arcfour-tests: Likewise.
38427         * modules/crypto/gc-arctwo-tests: Likewise.
38428         * modules/crypto/gc-des-tests: Likewise.
38429         * modules/crypto/gc-hmac-md5-tests: Likewise.
38430         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38431         * modules/crypto/gc-md2-tests: Likewise.
38432         * modules/crypto/gc-md4-tests: Likewise.
38433         * modules/crypto/gc-md5-tests: Likewise.
38434         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38435         * modules/crypto/gc-rijndael-tests: Likewise.
38436         * modules/crypto/gc-sha1-tests: Likewise.
38437         * modules/crypto/gc-tests: Likewise.
38438         * modules/crypto/md2-tests: Likewise.
38439         * modules/crypto/md4-tests: Likewise.
38440         * modules/fcntl-h-tests: Likewise.
38441         * modules/floorf-tests: Likewise.
38442         * modules/floorl-tests: Likewise.
38443         * modules/frexp-nolibm-tests: Likewise.
38444         * modules/frexp-tests: Likewise.
38445         * modules/frexpl-nolibm-tests: Likewise.
38446         * modules/frexpl-tests: Likewise.
38447         * modules/getaddrinfo-tests: Likewise.
38448         * modules/inttypes-tests: Likewise.
38449         * modules/isfinite-tests: Likewise.
38450         * modules/isinf-tests: Likewise.
38451         * modules/ldexpl-tests: Likewise.
38452         * modules/locale-tests: Likewise.
38453         * modules/math-tests: Likewise.
38454         * modules/netdb-tests: Likewise.
38455         * modules/netinet_in-tests: Likewise.
38456         * modules/printf-frexp-tests: Likewise.
38457         * modules/printf-frexpl-tests: Likewise.
38458         * modules/priv-set-tests: Likewise.
38459         * modules/random_r-tests: Likewise.
38460         * modules/round-tests: Likewise.
38461         * modules/roundf-tests: Likewise.
38462         * modules/roundl-tests: Likewise.
38463         * modules/search-tests: Likewise.
38464         * modules/select-tests: Likewise.
38465         * modules/signal-tests: Likewise.
38466         * modules/stdbool-tests: Likewise.
38467         * modules/stddef-tests: Likewise.
38468         * modules/stdint-tests: Likewise.
38469         * modules/stdio-tests: Likewise.
38470         * modules/stdlib-tests: Likewise.
38471         * modules/string-tests: Likewise.
38472         * modules/strings-tests: Likewise.
38473         * modules/sys_select-tests: Likewise.
38474         * modules/sys_socket-tests: Likewise.
38475         * modules/sys_stat-tests: Likewise.
38476         * modules/sys_time-tests: Likewise.
38477         * modules/sys_utsname-tests: Likewise.
38478         * modules/sysexits-tests: Likewise.
38479         * modules/time-tests: Likewise.
38480         * modules/trunc-tests: Likewise.
38481         * modules/truncf-tests: Likewise.
38482         * modules/truncl-tests: Likewise.
38483         * modules/tsearch-tests: Likewise.
38484         * modules/unistd-tests: Likewise.
38485         * modules/wchar-tests: Likewise.
38486         * modules/wctype-tests: Likewise.
38487
38488         tests: fix license on several tests
38489         * tests/test-des.c: Update to GPLv3+.
38490         * tests/test-flock.c: Likewise.
38491         * tests/test-fsync.c: Likewise.
38492         * tests/test-futimens.h: Likewise.
38493         * tests/test-gc-arcfour.c: Likewise.
38494         * tests/test-gc-arctwo.c: Likewise.
38495         * tests/test-gc-des.c: Likewise.
38496         * tests/test-gc-hmac-md5.c: Likewise.
38497         * tests/test-gc-hmac-sha1.c: Likewise.
38498         * tests/test-gc-md2.c: Likewise.
38499         * tests/test-gc-md4.c: Likewise.
38500         * tests/test-gc-md5.c: Likewise.
38501         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38502         * tests/test-gc-rijndael.c: Likewise.
38503         * tests/test-gc-sha1.c: Likewise.
38504         * tests/test-gc.c: Likewise.
38505         * tests/test-getcwd.c: Likewise.
38506         * tests/test-link.c: Likewise.
38507         * tests/test-link.h: Likewise.
38508         * tests/test-lutimens.h: Likewise.
38509         * tests/test-md2.c: Likewise.
38510         * tests/test-md4.c: Likewise.
38511         * tests/test-mkdir.h: Likewise.
38512         * tests/test-rename.c: Likewise.
38513         * tests/test-rename.h: Likewise.
38514         * tests/test-safe-alloc.c: Likewise.
38515         * tests/test-utimens-common.h: Likewise.
38516         * tests/test-utimens.h: Likewise.
38517
38518         maint: sync license texts
38519         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38520         * doc/gpl-3.0.texi: Revert copyright year update.
38521         * doc/lgpl-3.0.texi: Likewise.
38522
38523 2009-12-29  Jim Meyering  <meyering@redhat.com>
38524
38525         update nearly all FSF copyright year lists to include 2009
38526         The files named by the following are exempted:
38527             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38528               test -f "$dst" && { echo "$dst"; continue; }
38529               test -d "$dst" || continue
38530               echo "$dst"/$(basename "$src")
38531             done > exempt
38532             git ls-files tests/unictype >> exempt
38533         In the remaining files, convert to all-interval notation if
38534         - there is already at least one year interval like 2000-2003
38535         - the file is maintained by me
38536         - the file is in lib/uni*/, where that style already prevails
38537         Otherwise, use update-copyright's default.
38538
38539 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38540         and Eric Blake  <ebb9@byu.net>
38541
38542         tests: don't require debug system() to pass
38543         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38544         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38545         * tests/test-unlink.h (test_unlink_func): Likewise.
38546         * tests/test-fstatat.c (main): ...into callers.
38547         * tests/test-lstat.c (main): Likewise.
38548         * tests/test-rmdir.c (main): Likewise.
38549         * tests/test-unlink.c (main): Likewise.
38550         * tests/test-unlinkat.c (main): Likewise.
38551         * tests/test-areadlink-with-size.c (main): Don't require a
38552         debug-only system call to pass, aiding cross-testing to mingw.
38553         * tests/test-areadlink.c (main): Likewise.
38554         * tests/test-areadlinkat-with-size.c (main): Likewise.
38555         * tests/test-areadlinkat.c (main): Likewise.
38556         * tests/test-canonicalize-lgpl.c (main): Likewise.
38557         * tests/test-canonicalize.c (main): Likewise.
38558         * tests/test-chown.c (main): Likewise.
38559         * tests/test-fchownat.c (main): Likewise.
38560         * tests/test-lchown.c (main): Likewise.
38561         * tests/test-fdutimensat.c (main): Likewise.
38562         * tests/test-futimens.c (main): Likewise.
38563         * tests/test-link.c (main): Likewise.
38564         * tests/test-linkat.c (main): Likewise.
38565         * tests/test-mkdir.c (main): Likewise.
38566         * tests/test-mkdirat.c (main): Likewise.
38567         * tests/test-mkfifo.c (main): Likewise.
38568         * tests/test-mkfifoat.c (main): Likewise.
38569         * tests/test-mknod.c (main): Likewise.
38570         * tests/test-readlink.c (main): Likewise.
38571         * tests/test-remove.c (main): Likewise.
38572         * tests/test-rename.c (main): Likewise.
38573         * tests/test-renameat.c (main): Likewise.
38574         * tests/test-symlink.c (main): Likewise.
38575         * tests/test-symlinkat.c (main): Likewise.
38576         * tests/test-utimens.c (main): Likewise.
38577         * tests/test-utimensat.c (main): Likewise.
38578
38579 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38580
38581         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38582         on $(UNUSED_PARAMETER_H) to avoid build failure.
38583
38584 2009-12-28  Jim Meyering  <meyering@redhat.com>
38585
38586         update-copyright: you may specify a max. line length other than 72
38587         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38588
38589         maint: use consistent FSF copyright line syntax
38590         * lib/posixtm.c: Add missing comma in FSF copyright line.
38591         * lib/posixtm.h: Likewise.
38592         * lib/getugroups.c: Add missing ", Inc.".
38593
38594         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38595         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38596         FSF copyright line.  Remove trailing blanks.
38597
38598 2009-12-28  Eric Blake  <ebb9@byu.net>
38599
38600         test-dup2: reduce dependencies
38601         * modules/cloexec (Configure.ac): Set witness.
38602         * modules/dup2-tests (Depends-on): Drop cloexec.
38603         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38604         not present.
38605         Suggested by Bruno Haible.
38606
38607 2009-12-26  Bruno Haible  <bruno@clisp.org>
38608
38609         Remove an unneeded dependency.
38610         * modules/fseterr (Depends-on): Remove dup2.
38611
38612 2009-12-26  Eric Blake  <ebb9@byu.net>
38613
38614         tests: use macros.h in more places
38615         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38616         (ASSERT_STREAM): Provide default of stderr.
38617         * tests/test-dirent-safer.c: Include macros.h, using alternate
38618         stream for assertions.
38619         * tests/test-dup-safer.c: Likewise.
38620         * tests/test-freopen-safer.c: Likewise.
38621         * tests/test-getopt.c: Likewise.
38622         * tests/test-openat-safer.c: Likewise.
38623         * tests/test-pipe.c: Likewise.
38624         * tests/test-popen-safer.c: Likewise.
38625         * modules/dirent-safer-tests (Files): Include macros.h.
38626         * modules/unistd-safer-tests (Files): Likewise.
38627         * modules/freopen-safer-tests (Files): Likewise.
38628         * modules/getopt-posix-tests (Files): Likewise.
38629         * modules/openat-safer-tests (Files): Likewise.
38630         * modules/pipe-tests (Files): Likewise.
38631
38632 2009-12-26  Bruno Haible  <bruno@clisp.org>
38633
38634         javacomp: Portability fix.
38635         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38636         that it also works on Solaris.
38637
38638 2009-12-26  Bruno Haible  <bruno@clisp.org>
38639
38640         localename: Fix storage allocation of gl_locale_name_thread's result.
38641         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38642         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38643         all platforms that have 'uselocale'.
38644         (gl_locale_name_thread_unsafe): New function, extracted from
38645         gl_locale_name_thread.
38646         (gl_locale_name_thread): Call struniq on all platforms that have
38647         'uselocale'.
38648         * tests/test-localename.c (test_locale_name_thread): Check that the
38649         resulting strings are permanently allocated.
38650         * modules/localename-tests (Depends-on): Add strdup.
38651
38652 2009-12-26  Bruno Haible  <bruno@clisp.org>
38653
38654         * tests/test-localename.c (categories): Fill in the strings.
38655
38656 2009-12-26  Jim Meyering  <meyering@redhat.com>
38657
38658         isdir: complete the removal of m4/isdir.m4
38659         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38660
38661         isdir: clean up, since at least grep still uses it
38662         * lib/isdir.c: Include "isdir.h".
38663         (S_ISDIR): Remove now-unneeded definition.
38664         * modules/isdir (Files): Add lib/isdir.h.
38665         * lib/isdir.h: New file, with declaration.
38666         * m4/isdir.m4: Remove file -- unneeded.
38667
38668 2009-12-25  Bruno Haible  <bruno@clisp.org>
38669
38670         selinux-h: Make generated .h files standalone.
38671         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38672         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38673         * lib/se-selinux.in.h: Likewise.
38674         * modules/selinux-h (Depends-on): Add unused-parameter.
38675         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38676         selinux/selinux.h and selinux/context.h.
38677         Suggested by Eric Blake.
38678
38679 2009-12-25  Bruno Haible  <bruno@clisp.org>
38680
38681         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38682         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38683         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38684         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38685         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38686
38687 2009-12-24  Bruno Haible  <bruno@clisp.org>
38688
38689         openat: Fix warning.
38690         * lib/openat-proc.c: Include <unistd.h>.
38691
38692 2009-12-24  Bruno Haible  <bruno@clisp.org>
38693
38694         New module 'unused-parameter'.
38695         * build-aux/unused-parameter.h: New file, extracted from earlier
38696         gnulib-common.m4.
38697         * modules/unused-parameter: New file.
38698         * lib/unistr.h: Include unused-parameter.h.
38699         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38700         _GL_UNUSED.
38701         * modules/unistr/base (Depends-on): Add unused-parameter.
38702
38703 2009-12-24  Bruno Haible  <bruno@clisp.org>
38704
38705         Add missing dependencies to 'extensions' module.
38706         * m4/extensions.m4: Add comment.
38707         * modules/accept4 (Depends-on): Add extensions.
38708         * modules/dup3 (Depends-on): Likewise.
38709         * modules/fcntl (Depends-on): Likewise.
38710         * modules/futimens (Depends-on): Likewise.
38711         * modules/mknod (Depends-on): Likewise.
38712         * modules/pipe2 (Depends-on): Likewise.
38713         * modules/stat-time (Depends-on): Likewise.
38714         * modules/strcasestr-simple (Depends-on): Likewise.
38715         * modules/strsignal (Depends-on): Likewise.
38716         * modules/utimensat (Depends-on): Likewise.
38717         * modules/localcharset (Depends-on): Likewise. Needed because of
38718         gl_FCNTL_O_FLAGS.
38719         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38720         AC_TYPE_MBSTATE_T.
38721         * modules/wcsnrtombs (Depends-on): Likewise.
38722         * modules/wcsrtombs (Depends-on): Likewise.
38723
38724 2009-12-24  Bruno Haible  <bruno@clisp.org>
38725
38726         binary-io: Avoid gcc warning due to SET_BINARY.
38727         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38728         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38729
38730 2009-12-24  Bruno Haible  <bruno@clisp.org>
38731
38732         Avoid future namespace pollution on glibc systems.
38733         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38734         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38735         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38736         glibc systems.
38737
38738 2009-12-24  Bruno Haible  <bruno@clisp.org>
38739
38740         Refactor common macros used in tests.
38741         * tests/macros.h: New file.
38742         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38743         and/or <stdlib.h>, if appropriate.
38744         (ASSERT, SIZEOF): Remove macros.
38745         * tests/test-areadlink-with-size.c: Likewise.
38746         * tests/test-areadlinkat.c: Likewise.
38747         * tests/test-areadlinkat-with-size.c: Likewise.
38748         * tests/test-argmatch.c: Likewise.
38749         * tests/test-argv-iter.c: Likewise.
38750         * tests/test-array-mergesort.c: Likewise.
38751         * tests/test-array_list.c: Likewise.
38752         * tests/test-array_oset.c: Likewise.
38753         * tests/test-avltree_list.c: Likewise.
38754         * tests/test-avltree_oset.c: Likewise.
38755         * tests/test-avltreehash_list.c: Likewise.
38756         * tests/test-base64.c: Likewise.
38757         * tests/test-binary-io.c: Likewise.
38758         * tests/test-bitrotate.c: Likewise.
38759         * tests/test-btowc.c: Likewise.
38760         * tests/test-byteswap.c: Likewise.
38761         * tests/test-c-ctype.c: Likewise.
38762         * tests/test-c-stack.c: Likewise.
38763         * tests/test-c-strcasecmp.c: Likewise.
38764         * tests/test-c-strcasestr.c: Likewise.
38765         * tests/test-c-strncasecmp.c: Likewise.
38766         * tests/test-c-strstr.c: Likewise.
38767         * tests/test-canonicalize-lgpl.c: Likewise.
38768         * tests/test-canonicalize.c: Likewise.
38769         * tests/test-carray_list.c: Likewise.
38770         * tests/test-ceilf1.c: Likewise.
38771         * tests/test-ceilf2.c: Likewise.
38772         * tests/test-ceill.c: Likewise.
38773         * tests/test-chown.c: Likewise.
38774         * tests/test-cloexec.c: Likewise.
38775         * tests/test-copy-acl.c: Likewise.
38776         * tests/test-copy-file.c: Likewise.
38777         * tests/test-count-one-bits.c: Likewise.
38778         * tests/test-dprintf-posix.c: Likewise.
38779         * tests/test-dup2.c: Likewise.
38780         * tests/test-dup3.c: Likewise.
38781         * tests/test-duplocale.c: Likewise.
38782         * tests/test-fbufmode.c: Likewise.
38783         * tests/test-fchdir.c: Likewise.
38784         * tests/test-fchownat.c: Likewise.
38785         * tests/test-fcntl-safer.c: Likewise.
38786         * tests/test-fcntl.c: Likewise.
38787         * tests/test-fdopendir.c: Likewise.
38788         * tests/test-fdutimensat.c: Likewise.
38789         * tests/test-fflush2.c: Likewise.
38790         * tests/test-file-has-acl.c: Likewise.
38791         * tests/test-filevercmp.c: Likewise.
38792         * tests/test-flock.c: Likewise.
38793         * tests/test-floorf1.c: Likewise.
38794         * tests/test-floorf2.c: Likewise.
38795         * tests/test-floorl.c: Likewise.
38796         * tests/test-fnmatch.c: Likewise.
38797         * tests/test-fopen.h: Likewise.
38798         * tests/test-fpending.c: Likewise.
38799         * tests/test-fprintf-posix.c: Likewise.
38800         * tests/test-fpurge.c: Likewise.
38801         * tests/test-freadable.c: Likewise.
38802         * tests/test-freadahead.c: Likewise.
38803         * tests/test-freading.c: Likewise.
38804         * tests/test-freadptr.c: Likewise.
38805         * tests/test-freadptr2.c: Likewise.
38806         * tests/test-freadseek.c: Likewise.
38807         * tests/test-freopen.c: Likewise.
38808         * tests/test-frexp.c: Likewise.
38809         * tests/test-frexpl.c: Likewise.
38810         * tests/test-fseek.c: Likewise.
38811         * tests/test-fseeko.c: Likewise.
38812         * tests/test-fstatat.c: Likewise.
38813         * tests/test-fstrcmp.c: Likewise.
38814         * tests/test-fsync.c: Likewise.
38815         * tests/test-ftell.c: Likewise.
38816         * tests/test-ftello.c: Likewise.
38817         * tests/test-func.c: Likewise.
38818         * tests/test-futimens.c: Likewise.
38819         * tests/test-fwritable.c: Likewise.
38820         * tests/test-fwriting.c: Likewise.
38821         * tests/test-getcwd.c: Likewise.
38822         * tests/test-getdate.c: Likewise.
38823         * tests/test-getdelim.c: Likewise.
38824         * tests/test-getdtablesize.c: Likewise.
38825         * tests/test-getgroups.c: Likewise.
38826         * tests/test-getline.c: Likewise.
38827         * tests/test-getndelim2.c: Likewise.
38828         * tests/test-glob.c: Likewise.
38829         * tests/test-hash.c: Likewise.
38830         * tests/test-i-ring.c: Likewise.
38831         * tests/test-iconv-utf.c: Likewise.
38832         * tests/test-iconv.c: Likewise.
38833         * tests/test-idpriv-drop.c: Likewise.
38834         * tests/test-idpriv-droptemp.c: Likewise.
38835         * tests/test-inet_ntop.c: Likewise.
38836         * tests/test-inet_pton.c: Likewise.
38837         * tests/test-isblank.c: Likewise.
38838         * tests/test-isfinite.c: Likewise.
38839         * tests/test-isinf.c: Likewise.
38840         * tests/test-isnan.c: Likewise.
38841         * tests/test-isnand.h: Likewise.
38842         * tests/test-isnanf.h: Likewise.
38843         * tests/test-isnanl.h: Likewise.
38844         * tests/test-lchown.c: Likewise.
38845         * tests/test-ldexpl.c: Likewise.
38846         * tests/test-link.c: Likewise.
38847         * tests/test-linkat.c: Likewise.
38848         * tests/test-linked_list.c: Likewise.
38849         * tests/test-linkedhash_list.c: Likewise.
38850         * tests/test-localename.c: Likewise.
38851         * tests/test-lseek.c: Likewise.
38852         * tests/test-lstat.c: Likewise.
38853         * tests/test-mbmemcasecmp.c: Likewise.
38854         * tests/test-mbmemcasecoll.c: Likewise.
38855         * tests/test-mbrtowc.c: Likewise.
38856         * tests/test-mbscasecmp.c: Likewise.
38857         * tests/test-mbscasestr1.c: Likewise.
38858         * tests/test-mbscasestr2.c: Likewise.
38859         * tests/test-mbscasestr3.c: Likewise.
38860         * tests/test-mbscasestr4.c: Likewise.
38861         * tests/test-mbschr.c: Likewise.
38862         * tests/test-mbscspn.c: Likewise.
38863         * tests/test-mbsinit.c: Likewise.
38864         * tests/test-mbsncasecmp.c: Likewise.
38865         * tests/test-mbsnrtowcs.c: Likewise.
38866         * tests/test-mbspbrk.c: Likewise.
38867         * tests/test-mbspcasecmp.c: Likewise.
38868         * tests/test-mbsrchr.c: Likewise.
38869         * tests/test-mbsrtowcs.c: Likewise.
38870         * tests/test-mbsspn.c: Likewise.
38871         * tests/test-mbsstr1.c: Likewise.
38872         * tests/test-mbsstr2.c: Likewise.
38873         * tests/test-mbsstr3.c: Likewise.
38874         * tests/test-memchr.c: Likewise.
38875         * tests/test-memchr2.c: Likewise.
38876         * tests/test-memcmp.c: Likewise.
38877         * tests/test-memmem.c: Likewise.
38878         * tests/test-memrchr.c: Likewise.
38879         * tests/test-mkdir.c: Likewise.
38880         * tests/test-mkdirat.c: Likewise.
38881         * tests/test-mkfifo.c: Likewise.
38882         * tests/test-mkfifoat.c: Likewise.
38883         * tests/test-mknod.c: Likewise.
38884         * tests/test-nanosleep.c: Likewise.
38885         * tests/test-nl_langinfo.c: Likewise.
38886         * tests/test-obstack-printf.c: Likewise.
38887         * tests/test-open.c: Likewise.
38888         * tests/test-openat.c: Likewise.
38889         * tests/test-pipe-filter-gi1.c: Likewise.
38890         * tests/test-pipe-filter-gi2-main.c: Likewise.
38891         * tests/test-pipe-filter-ii1.c: Likewise.
38892         * tests/test-pipe-filter-ii2-main.c: Likewise.
38893         * tests/test-pipe2.c: Likewise.
38894         * tests/test-popen.h: Likewise.
38895         * tests/test-posixtm.c: Likewise.
38896         * tests/test-pread.c: Likewise.
38897         * tests/test-printf-frexp.c: Likewise.
38898         * tests/test-printf-frexpl.c: Likewise.
38899         * tests/test-printf-posix.c: Likewise.
38900         * tests/test-priv-set.c: Likewise.
38901         * tests/test-quotearg.c: Likewise.
38902         * tests/test-random_r.c: Likewise.
38903         * tests/test-rawmemchr.c: Likewise.
38904         * tests/test-rbtree_list.c: Likewise.
38905         * tests/test-rbtree_oset.c: Likewise.
38906         * tests/test-rbtreehash_list.c: Likewise.
38907         * tests/test-readlink.c: Likewise.
38908         * tests/test-remove.c: Likewise.
38909         * tests/test-rename.c: Likewise.
38910         * tests/test-renameat.c: Likewise.
38911         * tests/test-rmdir.c: Likewise.
38912         * tests/test-round1.c: Likewise.
38913         * tests/test-roundf1.c: Likewise.
38914         * tests/test-roundl.c: Likewise.
38915         * tests/test-safe-alloc.c: Likewise.
38916         * tests/test-sameacls.c: Likewise.
38917         * tests/test-set-mode-acl.c: Likewise.
38918         * tests/test-setenv.c: Likewise.
38919         * tests/test-sigaction.c: Likewise.
38920         * tests/test-signbit.c: Likewise.
38921         * tests/test-sleep.c: Likewise.
38922         * tests/test-snprintf-posix.c: Likewise.
38923         * tests/test-snprintf.c: Likewise.
38924         * tests/test-sprintf-posix.c: Likewise.
38925         * tests/test-stat-time.c: Likewise.
38926         * tests/test-stat.c: Likewise.
38927         * tests/test-strcasestr.c: Likewise.
38928         * tests/test-strchrnul.c: Likewise.
38929         * tests/test-strerror.c: Likewise.
38930         * tests/test-striconv.c: Likewise.
38931         * tests/test-striconveh.c: Likewise.
38932         * tests/test-striconveha.c: Likewise.
38933         * tests/test-strsignal.c: Likewise.
38934         * tests/test-strstr.c: Likewise.
38935         * tests/test-strtod.c: Likewise.
38936         * tests/test-strverscmp.c: Likewise.
38937         * tests/test-symlink.c: Likewise.
38938         * tests/test-symlinkat.c: Likewise.
38939         * tests/test-trunc1.c: Likewise.
38940         * tests/test-trunc2.c: Likewise.
38941         * tests/test-truncf1.c: Likewise.
38942         * tests/test-truncf2.c: Likewise.
38943         * tests/test-truncl.c: Likewise.
38944         * tests/test-uname.c: Likewise.
38945         * tests/test-unlink.c: Likewise.
38946         * tests/test-unlinkat.c: Likewise.
38947         * tests/test-unsetenv.c: Likewise.
38948         * tests/test-usleep.c: Likewise.
38949         * tests/test-utimens.c: Likewise.
38950         * tests/test-utimensat.c: Likewise.
38951         * tests/test-vasnprintf-posix.c: Likewise.
38952         * tests/test-vasnprintf-posix2.c: Likewise.
38953         * tests/test-vasnprintf.c: Likewise.
38954         * tests/test-vasprintf-posix.c: Likewise.
38955         * tests/test-vasprintf.c: Likewise.
38956         * tests/test-vdprintf-posix.c: Likewise.
38957         * tests/test-vfprintf-posix.c: Likewise.
38958         * tests/test-vprintf-posix.c: Likewise.
38959         * tests/test-vsnprintf-posix.c: Likewise.
38960         * tests/test-vsnprintf.c: Likewise.
38961         * tests/test-vsprintf-posix.c: Likewise.
38962         * tests/test-wcrtomb.c: Likewise.
38963         * tests/test-wcsnrtombs.c: Likewise.
38964         * tests/test-wcsrtombs.c: Likewise.
38965         * tests/test-wctype.c: Likewise.
38966         * tests/test-wcwidth.c: Likewise.
38967         * tests/test-xfprintf-posix.c: Likewise.
38968         * tests/test-xmemdup0.c: Likewise.
38969         * tests/test-xprintf-posix.c: Likewise.
38970         * tests/test-xvasprintf.c: Likewise.
38971         * tests/unicase/test-locale-language.c: Likewise.
38972         * tests/unicase/test-mapping-part1.h: Likewise.
38973         * tests/unicase/test-predicate-part1.h: Likewise.
38974         * tests/unicase/test-u8-casecmp.c: Likewise.
38975         * tests/unicase/test-u8-casecoll.c: Likewise.
38976         * tests/unicase/test-u8-casefold.c: Likewise.
38977         * tests/unicase/test-u8-is-cased.c: Likewise.
38978         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38979         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38980         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38981         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38982         * tests/unicase/test-u8-tolower.c: Likewise.
38983         * tests/unicase/test-u8-totitle.c: Likewise.
38984         * tests/unicase/test-u8-toupper.c: Likewise.
38985         * tests/unicase/test-u16-casecmp.c: Likewise.
38986         * tests/unicase/test-u16-casecoll.c: Likewise.
38987         * tests/unicase/test-u16-casefold.c: Likewise.
38988         * tests/unicase/test-u16-is-cased.c: Likewise.
38989         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38990         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38991         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38992         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38993         * tests/unicase/test-u16-tolower.c: Likewise.
38994         * tests/unicase/test-u16-totitle.c: Likewise.
38995         * tests/unicase/test-u16-toupper.c: Likewise.
38996         * tests/unicase/test-u32-casecmp.c: Likewise.
38997         * tests/unicase/test-u32-casecoll.c: Likewise.
38998         * tests/unicase/test-u32-casefold.c: Likewise.
38999         * tests/unicase/test-u32-is-cased.c: Likewise.
39000         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39001         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39002         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39003         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39004         * tests/unicase/test-u32-tolower.c: Likewise.
39005         * tests/unicase/test-u32-totitle.c: Likewise.
39006         * tests/unicase/test-u32-toupper.c: Likewise.
39007         * tests/unicase/test-ulc-casecmp.c: Likewise.
39008         * tests/unicase/test-ulc-casecoll.c: Likewise.
39009         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39010         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39011         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39012         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39013         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39014         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39015         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39016         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39017         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39018         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39019         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39020         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39021         * tests/unictype/test-bidi_byname.c: Likewise.
39022         * tests/unictype/test-bidi_name.c: Likewise.
39023         * tests/unictype/test-bidi_of.c: Likewise.
39024         * tests/unictype/test-bidi_test.c: Likewise.
39025         * tests/unictype/test-block_list.c: Likewise.
39026         * tests/unictype/test-block_of.c: Likewise.
39027         * tests/unictype/test-block_test.c: Likewise.
39028         * tests/unictype/test-categ_and.c: Likewise.
39029         * tests/unictype/test-categ_and_not.c: Likewise.
39030         * tests/unictype/test-categ_byname.c: Likewise.
39031         * tests/unictype/test-categ_name.c: Likewise.
39032         * tests/unictype/test-categ_none.c: Likewise.
39033         * tests/unictype/test-categ_of.c: Likewise.
39034         * tests/unictype/test-categ_or.c: Likewise.
39035         * tests/unictype/test-categ_test_withtable.c: Likewise.
39036         * tests/unictype/test-combining.c: Likewise.
39037         * tests/unictype/test-decdigit.c: Likewise.
39038         * tests/unictype/test-digit.c: Likewise.
39039         * tests/unictype/test-mirror.c: Likewise.
39040         * tests/unictype/test-numeric.c: Likewise.
39041         * tests/unictype/test-pr_byname.c: Likewise.
39042         * tests/unictype/test-pr_test.c: Likewise.
39043         * tests/unictype/test-predicate-part1.h: Likewise.
39044         * tests/unictype/test-scripts.c: Likewise.
39045         * tests/unictype/test-sy_c_ident.c: Likewise.
39046         * tests/unictype/test-sy_java_ident.c: Likewise.
39047         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39048         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39049         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39050         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39051         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39052         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39053         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39054         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39055         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39056         * tests/uninorm/test-compat-decomposition.c: Likewise.
39057         * tests/uninorm/test-composition.c: Likewise.
39058         * tests/uninorm/test-decomposing-form.c: Likewise.
39059         * tests/uninorm/test-decomposition.c: Likewise.
39060         * tests/uninorm/test-u8-nfc.c: Likewise.
39061         * tests/uninorm/test-u8-nfd.c: Likewise.
39062         * tests/uninorm/test-u8-nfkc.c: Likewise.
39063         * tests/uninorm/test-u8-nfkd.c: Likewise.
39064         * tests/uninorm/test-u8-normcmp.c: Likewise.
39065         * tests/uninorm/test-u8-normcoll.c: Likewise.
39066         * tests/uninorm/test-u16-nfc.c: Likewise.
39067         * tests/uninorm/test-u16-nfd.c: Likewise.
39068         * tests/uninorm/test-u16-nfkc.c: Likewise.
39069         * tests/uninorm/test-u16-nfkd.c: Likewise.
39070         * tests/uninorm/test-u16-normcmp.c: Likewise.
39071         * tests/uninorm/test-u16-normcoll.c: Likewise.
39072         * tests/uninorm/test-u32-nfc.c: Likewise.
39073         * tests/uninorm/test-u32-nfd.c: Likewise.
39074         * tests/uninorm/test-u32-nfkc.c: Likewise.
39075         * tests/uninorm/test-u32-nfkd.c: Likewise.
39076         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39077         * tests/uninorm/test-u32-normcmp.c: Likewise.
39078         * tests/uninorm/test-u32-normcoll.c: Likewise.
39079         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39080         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39081         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39082         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39083         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39084         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39085         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39086         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39087         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39088         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39089         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39090         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39091         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39092         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39093         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39094         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39095         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39096         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39097         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39098         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39099         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39100         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39101         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39102         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39103         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39104         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39105         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39106         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39107         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39108         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39109         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39110         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39111         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39112         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39113         * tests/uniwidth/test-u8-width.c: Likewise.
39114         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39115         * tests/uniwidth/test-u16-width.c: Likewise.
39116         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39117         * tests/uniwidth/test-u32-width.c: Likewise.
39118         * tests/uniwidth/test-uc_width.c: Likewise.
39119         * tests/uniwidth/test-uc_width2.c: Likewise.
39120         * modules/acl-tests (Files): Add tests/macros.h.
39121         * modules/areadlink-tests (Files): Likewise.
39122         * modules/areadlink-with-size-tests (Files): Likewise.
39123         * modules/areadlinkat-tests (Files): Likewise.
39124         * modules/areadlinkat-with-size-tests (Files): Likewise.
39125         * modules/argmatch-tests (Files): Likewise.
39126         * modules/argv-iter-tests (Files): Likewise.
39127         * modules/array-list-tests (Files): Likewise.
39128         * modules/array-mergesort-tests (Files): Likewise.
39129         * modules/array-oset-tests (Files): Likewise.
39130         * modules/avltree-list-tests (Files): Likewise.
39131         * modules/avltree-oset-tests (Files): Likewise.
39132         * modules/avltreehash-list-tests (Files): Likewise.
39133         * modules/base64-tests (Files): Likewise.
39134         * modules/binary-io-tests (Files): Likewise.
39135         * modules/bitrotate-tests (Files): Likewise.
39136         * modules/btowc-tests (Files): Likewise.
39137         * modules/byteswap-tests (Files): Likewise.
39138         * modules/c-ctype-tests (Files): Likewise.
39139         * modules/c-stack-tests (Files): Likewise.
39140         * modules/c-strcase-tests (Files): Likewise.
39141         * modules/c-strcasestr-tests (Files): Likewise.
39142         * modules/c-strstr-tests (Files): Likewise.
39143         * modules/canonicalize-lgpl-tests (Files): Likewise.
39144         * modules/canonicalize-tests (Files): Likewise.
39145         * modules/carray-list-tests (Files): Likewise.
39146         * modules/ceilf-tests (Files): Likewise.
39147         * modules/ceill-tests (Files): Likewise.
39148         * modules/chown-tests (Files): Likewise.
39149         * modules/cloexec-tests (Files): Likewise.
39150         * modules/copy-file-tests (Files): Likewise.
39151         * modules/count-one-bits-tests (Files): Likewise.
39152         * modules/dprintf-posix-tests (Files): Likewise.
39153         * modules/dup2-tests (Files): Likewise.
39154         * modules/dup3-tests (Files): Likewise.
39155         * modules/duplocale-tests (Files): Likewise.
39156         * modules/fbufmode-tests (Files): Likewise.
39157         * modules/fchdir-tests (Files): Likewise.
39158         * modules/fcntl-safer-tests (Files): Likewise.
39159         * modules/fcntl-tests (Files): Likewise.
39160         * modules/fdopendir-tests (Files): Likewise.
39161         * modules/fdutimensat-tests (Files): Likewise.
39162         * modules/fflush-tests (Files): Likewise.
39163         * modules/filevercmp-tests (Files): Likewise.
39164         * modules/flock-tests (Files): Likewise.
39165         * modules/floorf-tests (Files): Likewise.
39166         * modules/floorl-tests (Files): Likewise.
39167         * modules/fnmatch-tests (Files): Likewise.
39168         * modules/fopen-safer-tests (Files): Likewise.
39169         * modules/fopen-tests (Files): Likewise.
39170         * modules/fpending-tests (Files): Likewise.
39171         * modules/fprintf-posix-tests (Files): Likewise.
39172         * modules/fpurge-tests (Files): Likewise.
39173         * modules/freadable-tests (Files): Likewise.
39174         * modules/freadahead-tests (Files): Likewise.
39175         * modules/freading-tests (Files): Likewise.
39176         * modules/freadptr-tests (Files): Likewise.
39177         * modules/freadseek-tests (Files): Likewise.
39178         * modules/freopen-tests (Files): Likewise.
39179         * modules/frexp-nolibm-tests (Files): Likewise.
39180         * modules/frexp-tests (Files): Likewise.
39181         * modules/frexpl-nolibm-tests (Files): Likewise.
39182         * modules/frexpl-tests (Files): Likewise.
39183         * modules/fseek-tests (Files): Likewise.
39184         * modules/fseeko-tests (Files): Likewise.
39185         * modules/fstrcmp-tests (Files): Likewise.
39186         * modules/fsync-tests (Files): Likewise.
39187         * modules/ftell-tests (Files): Likewise.
39188         * modules/ftello-tests (Files): Likewise.
39189         * modules/func-tests (Files): Likewise.
39190         * modules/futimens-tests (Files): Likewise.
39191         * modules/fwritable-tests (Files): Likewise.
39192         * modules/fwriting-tests (Files): Likewise.
39193         * modules/getcwd-tests (Files): Likewise.
39194         * modules/getdate-tests (Files): Likewise.
39195         * modules/getdelim-tests (Files): Likewise.
39196         * modules/getdtablesize-tests (Files): Likewise.
39197         * modules/getgroups-tests (Files): Likewise.
39198         * modules/getline-tests (Files): Likewise.
39199         * modules/getndelim2-tests (Files): Likewise.
39200         * modules/glob-tests (Files): Likewise.
39201         * modules/hash-tests (Files): Likewise.
39202         * modules/i-ring-tests (Files): Likewise.
39203         * modules/iconv-tests (Files): Likewise.
39204         * modules/iconv_open-utf-tests (Files): Likewise.
39205         * modules/idpriv-drop-tests (Files): Likewise.
39206         * modules/idpriv-droptemp-tests (Files): Likewise.
39207         * modules/inet_ntop-tests (Files): Likewise.
39208         * modules/inet_pton-tests (Files): Likewise.
39209         * modules/isblank-tests (Files): Likewise.
39210         * modules/isfinite-tests (Files): Likewise.
39211         * modules/isinf-tests (Files): Likewise.
39212         * modules/isnan-tests (Files): Likewise.
39213         * modules/isnand-nolibm-tests (Files): Likewise.
39214         * modules/isnand-tests (Files): Likewise.
39215         * modules/isnanf-nolibm-tests (Files): Likewise.
39216         * modules/isnanf-tests (Files): Likewise.
39217         * modules/isnanl-nolibm-tests (Files): Likewise.
39218         * modules/isnanl-tests (Files): Likewise.
39219         * modules/lchown-tests (Files): Likewise.
39220         * modules/ldexpl-tests (Files): Likewise.
39221         * modules/link-tests (Files): Likewise.
39222         * modules/linkat-tests (Files): Likewise.
39223         * modules/linked-list-tests (Files): Likewise.
39224         * modules/linkedhash-list-tests (Files): Likewise.
39225         * modules/localename-tests (Files): Likewise.
39226         * modules/lseek-tests (Files): Likewise.
39227         * modules/lstat-tests (Files): Likewise.
39228         * modules/mbmemcasecmp-tests (Files): Likewise.
39229         * modules/mbmemcasecoll-tests (Files): Likewise.
39230         * modules/mbrtowc-tests (Files): Likewise.
39231         * modules/mbscasecmp-tests (Files): Likewise.
39232         * modules/mbscasestr-tests (Files): Likewise.
39233         * modules/mbschr-tests (Files): Likewise.
39234         * modules/mbscspn-tests (Files): Likewise.
39235         * modules/mbsinit-tests (Files): Likewise.
39236         * modules/mbsncasecmp-tests (Files): Likewise.
39237         * modules/mbsnrtowcs-tests (Files): Likewise.
39238         * modules/mbspbrk-tests (Files): Likewise.
39239         * modules/mbspcasecmp-tests (Files): Likewise.
39240         * modules/mbsrchr-tests (Files): Likewise.
39241         * modules/mbsrtowcs-tests (Files): Likewise.
39242         * modules/mbsspn-tests (Files): Likewise.
39243         * modules/mbsstr-tests (Files): Likewise.
39244         * modules/memchr-tests (Files): Likewise.
39245         * modules/memchr2-tests (Files): Likewise.
39246         * modules/memcmp-tests (Files): Likewise.
39247         * modules/memmem-tests (Files): Likewise.
39248         * modules/memrchr-tests (Files): Likewise.
39249         * modules/mkdir-tests (Files): Likewise.
39250         * modules/mkfifo-tests (Files): Likewise.
39251         * modules/mkfifoat-tests (Files): Likewise.
39252         * modules/mknod-tests (Files): Likewise.
39253         * modules/nanosleep-tests (Files): Likewise.
39254         * modules/nl_langinfo-tests (Files): Likewise.
39255         * modules/obstack-printf-tests (Files): Likewise.
39256         * modules/open-tests (Files): Likewise.
39257         * modules/openat-tests (Files): Likewise.
39258         * modules/pipe-filter-gi-tests (Files): Likewise.
39259         * modules/pipe-filter-ii-tests (Files): Likewise.
39260         * modules/pipe2-tests (Files): Likewise.
39261         * modules/popen-safer-tests (Files): Likewise.
39262         * modules/popen-tests (Files): Likewise.
39263         * modules/posixtm-tests (Files): Likewise.
39264         * modules/pread-tests (Files): Likewise.
39265         * modules/printf-frexp-tests (Files): Likewise.
39266         * modules/printf-frexpl-tests (Files): Likewise.
39267         * modules/printf-posix-tests (Files): Likewise.
39268         * modules/priv-set-tests (Files): Likewise.
39269         * modules/quotearg-tests (Files): Likewise.
39270         * modules/random_r-tests (Files): Likewise.
39271         * modules/rawmemchr-tests (Files): Likewise.
39272         * modules/rbtree-list-tests (Files): Likewise.
39273         * modules/rbtree-oset-tests (Files): Likewise.
39274         * modules/rbtreehash-list-tests (Files): Likewise.
39275         * modules/readlink-tests (Files): Likewise.
39276         * modules/remove-tests (Files): Likewise.
39277         * modules/rename-tests (Files): Likewise.
39278         * modules/renameat-tests (Files): Likewise.
39279         * modules/rmdir-tests (Files): Likewise.
39280         * modules/round-tests (Files): Likewise.
39281         * modules/roundf-tests (Files): Likewise.
39282         * modules/roundl-tests (Files): Likewise.
39283         * modules/safe-alloc-tests (Files): Likewise.
39284         * modules/setenv-tests (Files): Likewise.
39285         * modules/sigaction-tests (Files): Likewise.
39286         * modules/signbit-tests (Files): Likewise.
39287         * modules/sleep-tests (Files): Likewise.
39288         * modules/snprintf-posix-tests (Files): Likewise.
39289         * modules/snprintf-tests (Files): Likewise.
39290         * modules/sprintf-posix-tests (Files): Likewise.
39291         * modules/stat-tests (Files): Likewise.
39292         * modules/stat-time-tests (Files): Likewise.
39293         * modules/strcasestr-tests (Files): Likewise.
39294         * modules/strchrnul-tests (Files): Likewise.
39295         * modules/strerror-tests (Files): Likewise.
39296         * modules/striconv-tests (Files): Likewise.
39297         * modules/striconveh-tests (Files): Likewise.
39298         * modules/striconveha-tests (Files): Likewise.
39299         * modules/strsignal-tests (Files): Likewise.
39300         * modules/strstr-tests (Files): Likewise.
39301         * modules/strtod-tests (Files): Likewise.
39302         * modules/strverscmp-tests (Files): Likewise.
39303         * modules/symlink-tests (Files): Likewise.
39304         * modules/symlinkat-tests (Files): Likewise.
39305         * modules/trunc-tests (Files): Likewise.
39306         * modules/truncf-tests (Files): Likewise.
39307         * modules/truncl-tests (Files): Likewise.
39308         * modules/uname-tests (Files): Likewise.
39309         * modules/unicase/cased-tests (Files): Likewise.
39310         * modules/unicase/ignorable-tests (Files): Likewise.
39311         * modules/unicase/locale-language-tests (Files): Likewise.
39312         * modules/unicase/tolower-tests (Files): Likewise.
39313         * modules/unicase/totitle-tests (Files): Likewise.
39314         * modules/unicase/toupper-tests (Files): Likewise.
39315         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39316         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39317         * modules/unicase/u8-casefold-tests (Files): Likewise.
39318         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39319         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39320         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39321         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39322         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39323         * modules/unicase/u8-tolower-tests (Files): Likewise.
39324         * modules/unicase/u8-totitle-tests (Files): Likewise.
39325         * modules/unicase/u8-toupper-tests (Files): Likewise.
39326         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39327         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39328         * modules/unicase/u16-casefold-tests (Files): Likewise.
39329         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39330         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39331         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39332         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39333         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39334         * modules/unicase/u16-tolower-tests (Files): Likewise.
39335         * modules/unicase/u16-totitle-tests (Files): Likewise.
39336         * modules/unicase/u16-toupper-tests (Files): Likewise.
39337         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39338         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39339         * modules/unicase/u32-casefold-tests (Files): Likewise.
39340         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39341         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39342         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39343         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39344         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39345         * modules/unicase/u32-tolower-tests (Files): Likewise.
39346         * modules/unicase/u32-totitle-tests (Files): Likewise.
39347         * modules/unicase/u32-toupper-tests (Files): Likewise.
39348         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39349         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39350         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39351         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39352         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39353         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39354         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39355         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39356         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39357         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39358         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39359         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39360         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39361         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39362         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39363         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39364         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39365         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39366         * modules/unictype/block-list-tests (Files): Likewise.
39367         * modules/unictype/block-of-tests (Files): Likewise.
39368         * modules/unictype/block-test-tests (Files): Likewise.
39369         * modules/unictype/category-C-tests (Files): Likewise.
39370         * modules/unictype/category-Cc-tests (Files): Likewise.
39371         * modules/unictype/category-Cf-tests (Files): Likewise.
39372         * modules/unictype/category-Cn-tests (Files): Likewise.
39373         * modules/unictype/category-Co-tests (Files): Likewise.
39374         * modules/unictype/category-Cs-tests (Files): Likewise.
39375         * modules/unictype/category-L-tests (Files): Likewise.
39376         * modules/unictype/category-Ll-tests (Files): Likewise.
39377         * modules/unictype/category-Lm-tests (Files): Likewise.
39378         * modules/unictype/category-Lo-tests (Files): Likewise.
39379         * modules/unictype/category-Lt-tests (Files): Likewise.
39380         * modules/unictype/category-Lu-tests (Files): Likewise.
39381         * modules/unictype/category-M-tests (Files): Likewise.
39382         * modules/unictype/category-Mc-tests (Files): Likewise.
39383         * modules/unictype/category-Me-tests (Files): Likewise.
39384         * modules/unictype/category-Mn-tests (Files): Likewise.
39385         * modules/unictype/category-N-tests (Files): Likewise.
39386         * modules/unictype/category-Nd-tests (Files): Likewise.
39387         * modules/unictype/category-Nl-tests (Files): Likewise.
39388         * modules/unictype/category-No-tests (Files): Likewise.
39389         * modules/unictype/category-P-tests (Files): Likewise.
39390         * modules/unictype/category-Pc-tests (Files): Likewise.
39391         * modules/unictype/category-Pd-tests (Files): Likewise.
39392         * modules/unictype/category-Pe-tests (Files): Likewise.
39393         * modules/unictype/category-Pf-tests (Files): Likewise.
39394         * modules/unictype/category-Pi-tests (Files): Likewise.
39395         * modules/unictype/category-Po-tests (Files): Likewise.
39396         * modules/unictype/category-Ps-tests (Files): Likewise.
39397         * modules/unictype/category-S-tests (Files): Likewise.
39398         * modules/unictype/category-Sc-tests (Files): Likewise.
39399         * modules/unictype/category-Sk-tests (Files): Likewise.
39400         * modules/unictype/category-Sm-tests (Files): Likewise.
39401         * modules/unictype/category-So-tests (Files): Likewise.
39402         * modules/unictype/category-Z-tests (Files): Likewise.
39403         * modules/unictype/category-Zl-tests (Files): Likewise.
39404         * modules/unictype/category-Zp-tests (Files): Likewise.
39405         * modules/unictype/category-Zs-tests (Files): Likewise.
39406         * modules/unictype/category-and-not-tests (Files): Likewise.
39407         * modules/unictype/category-and-tests (Files): Likewise.
39408         * modules/unictype/category-byname-tests (Files): Likewise.
39409         * modules/unictype/category-name-tests (Files): Likewise.
39410         * modules/unictype/category-none-tests (Files): Likewise.
39411         * modules/unictype/category-of-tests (Files): Likewise.
39412         * modules/unictype/category-or-tests (Files): Likewise.
39413         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39414         * modules/unictype/combining-class-tests (Files): Likewise.
39415         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39416         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39417         * modules/unictype/ctype-blank-tests (Files): Likewise.
39418         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39419         * modules/unictype/ctype-digit-tests (Files): Likewise.
39420         * modules/unictype/ctype-graph-tests (Files): Likewise.
39421         * modules/unictype/ctype-lower-tests (Files): Likewise.
39422         * modules/unictype/ctype-print-tests (Files): Likewise.
39423         * modules/unictype/ctype-punct-tests (Files): Likewise.
39424         * modules/unictype/ctype-space-tests (Files): Likewise.
39425         * modules/unictype/ctype-upper-tests (Files): Likewise.
39426         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39427         * modules/unictype/decimal-digit-tests (Files): Likewise.
39428         * modules/unictype/digit-tests (Files): Likewise.
39429         * modules/unictype/mirror-tests (Files): Likewise.
39430         * modules/unictype/numeric-tests (Files): Likewise.
39431         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39432         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39433         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39434         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39435         Likewise.
39436         * modules/unictype/property-bidi-block-separator-tests (Files):
39437         Likewise.
39438         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39439         Likewise.
39440         * modules/unictype/property-bidi-common-separator-tests (Files):
39441         Likewise.
39442         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39443         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39444         Likewise.
39445         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39446         Likewise.
39447         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39448         Likewise.
39449         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39450         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39451         Likewise.
39452         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39453         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39454         Likewise.
39455         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39456         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39457         * modules/unictype/property-bidi-segment-separator-tests (Files):
39458         Likewise.
39459         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39460         * modules/unictype/property-byname-tests (Files): Likewise.
39461         * modules/unictype/property-combining-tests (Files): Likewise.
39462         * modules/unictype/property-composite-tests (Files): Likewise.
39463         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39464         * modules/unictype/property-dash-tests (Files): Likewise.
39465         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39466         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39467         Likewise.
39468         * modules/unictype/property-deprecated-tests (Files): Likewise.
39469         * modules/unictype/property-diacritic-tests (Files): Likewise.
39470         * modules/unictype/property-extender-tests (Files): Likewise.
39471         * modules/unictype/property-format-control-tests (Files): Likewise.
39472         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39473         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39474         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39475         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39476         * modules/unictype/property-hyphen-tests (Files): Likewise.
39477         * modules/unictype/property-id-continue-tests (Files): Likewise.
39478         * modules/unictype/property-id-start-tests (Files): Likewise.
39479         * modules/unictype/property-ideographic-tests (Files): Likewise.
39480         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39481         * modules/unictype/property-ids-trinary-operator-tests (Files):
39482         Likewise.
39483         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39484         * modules/unictype/property-iso-control-tests (Files): Likewise.
39485         * modules/unictype/property-join-control-tests (Files): Likewise.
39486         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39487         * modules/unictype/property-line-separator-tests (Files): Likewise.
39488         * modules/unictype/property-logical-order-exception-tests (Files):
39489         Likewise.
39490         * modules/unictype/property-lowercase-tests (Files): Likewise.
39491         * modules/unictype/property-math-tests (Files): Likewise.
39492         * modules/unictype/property-non-break-tests (Files): Likewise.
39493         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39494         * modules/unictype/property-numeric-tests (Files): Likewise.
39495         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39496         * modules/unictype/property-other-default-ignorable-code-point-tests
39497         (Files): Likewise.
39498         * modules/unictype/property-other-grapheme-extend-tests (Files):
39499         Likewise.
39500         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39501         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39502         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39503         * modules/unictype/property-other-math-tests (Files): Likewise.
39504         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39505         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39506         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39507         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39508         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39509         * modules/unictype/property-private-use-tests (Files): Likewise.
39510         * modules/unictype/property-punctuation-tests (Files): Likewise.
39511         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39512         * modules/unictype/property-radical-tests (Files): Likewise.
39513         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39514         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39515         * modules/unictype/property-space-tests (Files): Likewise.
39516         * modules/unictype/property-terminal-punctuation-tests (Files):
39517         Likewise.
39518         * modules/unictype/property-test-tests (Files): Likewise.
39519         * modules/unictype/property-titlecase-tests (Files): Likewise.
39520         * modules/unictype/property-unassigned-code-value-tests (Files):
39521         Likewise.
39522         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39523         * modules/unictype/property-uppercase-tests (Files): Likewise.
39524         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39525         * modules/unictype/property-white-space-tests (Files): Likewise.
39526         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39527         * modules/unictype/property-xid-start-tests (Files): Likewise.
39528         * modules/unictype/property-zero-width-tests (Files): Likewise.
39529         * modules/unictype/scripts-tests (Files): Likewise.
39530         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39531         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39532         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39533         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39534         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39535         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39536         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39537         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39538         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39539         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39540         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39541         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39542         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39543         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39544         * modules/uninorm/composition-tests (Files): Likewise.
39545         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39546         * modules/uninorm/decomposition-tests (Files): Likewise.
39547         * modules/uninorm/filter-tests (Files): Likewise.
39548         * modules/uninorm/nfc-tests (Files): Likewise.
39549         * modules/uninorm/nfd-tests (Files): Likewise.
39550         * modules/uninorm/nfkc-tests (Files): Likewise.
39551         * modules/uninorm/nfkd-tests (Files): Likewise.
39552         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39553         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39554         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39555         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39556         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39557         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39558         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39559         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39560         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39561         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39562         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39563         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39564         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39565         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39566         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39567         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39568         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39569         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39570         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39571         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39572         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39573         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39574         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39575         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39576         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39577         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39578         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39579         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39580         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39581         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39582         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39583         * modules/uniwidth/u8-width-tests (Files): Likewise.
39584         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39585         * modules/uniwidth/u16-width-tests (Files): Likewise.
39586         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39587         * modules/uniwidth/u32-width-tests (Files): Likewise.
39588         * modules/uniwidth/width-tests (Files): Likewise.
39589         * modules/unlink-tests (Files): Likewise.
39590         * modules/unsetenv-tests (Files): Likewise.
39591         * modules/usleep-tests (Files): Likewise.
39592         * modules/utimens-tests (Files): Likewise.
39593         * modules/utimensat-tests (Files): Likewise.
39594         * modules/vasnprintf-posix-tests (Files): Likewise.
39595         * modules/vasnprintf-tests (Files): Likewise.
39596         * modules/vasprintf-posix-tests (Files): Likewise.
39597         * modules/vasprintf-tests (Files): Likewise.
39598         * modules/vdprintf-posix-tests (Files): Likewise.
39599         * modules/vfprintf-posix-tests (Files): Likewise.
39600         * modules/vprintf-posix-tests (Files): Likewise.
39601         * modules/vsnprintf-posix-tests (Files): Likewise.
39602         * modules/vsnprintf-tests (Files): Likewise.
39603         * modules/vsprintf-posix-tests (Files): Likewise.
39604         * modules/wcrtomb-tests (Files): Likewise.
39605         * modules/wcsnrtombs-tests (Files): Likewise.
39606         * modules/wcsrtombs-tests (Files): Likewise.
39607         * modules/wctype-tests (Files): Likewise.
39608         * modules/wcwidth-tests (Files): Likewise.
39609         * modules/xmemdup0-tests (Files): Likewise.
39610         * modules/xprintf-posix-tests (Files): Likewise.
39611         * modules/xvasprintf-tests (Files): Likewise.
39612
39613 2009-12-24  Eric Blake  <ebb9@byu.net>
39614
39615         test-nanosleep: fix typo
39616         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39617         patch.
39618         Reported by Bruno Haible.
39619
39620 2009-12-24  Bruno Haible  <bruno@clisp.org>
39621
39622         Reduce namespace pollution on glibc systems.
39623         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39624         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39625         systems.
39626         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39627         <getopt.h> on glibc systems.
39628         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39629         systems.
39630         * lib/fcntl.c: Include <unistd.h> here instead.
39631
39632 2009-12-24  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39635
39636 2009-12-24  Eric Blake  <ebb9@byu.net>
39637
39638         tests: add signature checks
39639         * tests/signature.h (SIGNATURE_CHECK): New file.
39640         * modules/atexit-tests (Files): Use it.
39641         * modules/btowc-tests (Files): Likewise.
39642         * modules/canonicalize-lgpl-tests (Files): Likewise.
39643         * modules/ceilf-tests (Files): Likewise.
39644         * modules/ceill-tests (Files): Likewise.
39645         * modules/chown-tests (Files): Likewise.
39646         * modules/dprintf-posix-tests (Files): Likewise.
39647         * modules/dup2-tests (Files): Likewise.
39648         * modules/dup3-tests (Files): Likewise.
39649         * modules/duplocale-tests (Files): Likewise.
39650         * modules/fchdir-tests (Files): Likewise.
39651         * modules/fcntl-tests (Files): Likewise.
39652         * modules/fdopendir-tests (Files): Likewise.
39653         * modules/fflush-tests (Files): Likewise.
39654         * modules/flock-tests (Files): Likewise.
39655         * modules/floorf-tests (Files): Likewise.
39656         * modules/floorl-tests (Files): Likewise.
39657         * modules/fnmatch-tests (Files): Likewise.
39658         * modules/fopen-tests (Files): Likewise.
39659         * modules/fprintf-posix-tests (Files): Likewise.
39660         * modules/freopen-tests (Files): Likewise.
39661         * modules/frexp-nolibm-tests (Files): Likewise.
39662         * modules/frexp-tests (Files): Likewise.
39663         * modules/frexpl-nolibm-tests (Files): Likewise.
39664         * modules/frexpl-tests (Files): Likewise.
39665         * modules/fseek-tests (Files): Likewise.
39666         * modules/fseeko-tests (Files): Likewise.
39667         * modules/fsync-tests (Files): Likewise.
39668         * modules/ftell-tests (Files): Likewise.
39669         * modules/ftello-tests (Files): Likewise.
39670         * modules/futimens-tests (Files): Likewise.
39671         * modules/getaddrinfo-tests (Files): Likewise.
39672         * modules/getcwd-tests (Files): Likewise.
39673         * modules/getdelim-tests (Files): Likewise.
39674         * modules/getdtablesize-tests (Files): Likewise.
39675         * modules/getgroups-tests (Files): Likewise.
39676         * modules/gethostname-tests (Files): Likewise.
39677         * modules/getline-tests (Files): Likewise.
39678         * modules/getopt-posix-tests (Files): Likewise.
39679         * modules/gettimeofday-tests (Files): Likewise.
39680         * modules/glob-tests (Files): Likewise.
39681         * modules/iconv-tests (Files): Likewise.
39682         * modules/inet_ntop-tests (Files): Likewise.
39683         * modules/inet_pton-tests (Files): Likewise.
39684         * modules/isblank-tests (Files): Likewise.
39685         * modules/lchown-tests (Files): Likewise.
39686         * modules/ldexpl-tests (Files): Likewise.
39687         * modules/link-tests (Files): Likewise.
39688         * modules/linkat-tests (Files): Likewise.
39689         * modules/lseek-tests (Files): Likewise.
39690         * modules/lstat-tests (Files): Likewise.
39691         * modules/mbrtowc-tests (Files): Likewise.
39692         * modules/mbsinit-tests (Files): Likewise.
39693         * modules/mbsnrtowcs-tests (Files): Likewise.
39694         * modules/mbsrtowcs-tests (Files): Likewise.
39695         * modules/memchr-tests (Files): Likewise.
39696         * modules/memcmp-tests (Files): Likewise.
39697         * modules/memmem-tests (Files): Likewise.
39698         * modules/memrchr-tests (Files): Likewise.
39699         * modules/mkdir-tests (Files): Likewise.
39700         * modules/mkfifo-tests (Files): Likewise.
39701         * modules/mkfifoat-tests (Files): Likewise.
39702         * modules/mknod-tests (Files): Likewise.
39703         * modules/nanosleep-tests (Files): Likewise.
39704         * modules/nl_langinfo-tests (Files): Likewise.
39705         * modules/obstack-printf-tests (Files): Likewise.
39706         * modules/open-tests (Files): Likewise.
39707         * modules/openat-tests (Files): Likewise.
39708         * modules/perror-tests (Files): Likewise.
39709         * modules/pipe2-tests (Files): Likewise.
39710         * modules/poll-tests (Files): Likewise.
39711         * modules/popen-tests (Files): Likewise.
39712         * modules/posix_spawn-tests (Files): Likewise.
39713         * modules/posix_spawnp-tests (Files): Likewise.
39714         * modules/pread-tests (Files): Likewise.
39715         * modules/printf-posix-tests (Files): Likewise.
39716         * modules/pty-tests (Files): Likewise.
39717         * modules/random_r-tests (Files): Likewise.
39718         * modules/rawmemchr-tests (Files): Likewise.
39719         * modules/readlink-tests (Files): Likewise.
39720         * modules/remove-tests (Files): Likewise.
39721         * modules/rename-tests (Files): Likewise.
39722         * modules/renameat-tests (Files): Likewise.
39723         * modules/rmdir-tests (Files): Likewise.
39724         * modules/round-tests (Files): Likewise.
39725         * modules/roundf-tests (Files): Likewise.
39726         * modules/roundl-tests (Files): Likewise.
39727         * modules/select-tests (Files): Likewise.
39728         * modules/setenv-tests (Files): Likewise.
39729         * modules/sigaction-tests (Files): Likewise.
39730         * modules/sleep-tests (Files): Likewise.
39731         * modules/snprintf-posix-tests (Files): Likewise.
39732         * modules/snprintf-tests (Files): Likewise.
39733         * modules/sprintf-posix-tests (Files): Likewise.
39734         * modules/stat-tests (Files): Likewise.
39735         * modules/strcasestr-tests (Files): Likewise.
39736         * modules/strchrnul-tests (Files): Likewise.
39737         * modules/strerror-tests (Files): Likewise.
39738         * modules/strsignal-tests (Files): Likewise.
39739         * modules/strstr-tests (Files): Likewise.
39740         * modules/strtod-tests (Files): Likewise.
39741         * modules/strverscmp-tests (Files): Likewise.
39742         * modules/symlink-tests (Files): Likewise.
39743         * modules/symlinkat-tests (Files): Likewise.
39744         * modules/times-tests (Files): Likewise.
39745         * modules/trunc-tests (Files): Likewise.
39746         * modules/truncf-tests (Files): Likewise.
39747         * modules/truncl-tests (Files): Likewise.
39748         * modules/tsearch-tests (Files): Likewise.
39749         * modules/uname-tests (Files): Likewise.
39750         * modules/unlink-tests (Files): Likewise.
39751         * modules/unsetenv-tests (Files): Likewise.
39752         * modules/usleep-tests (Files): Likewise.
39753         * modules/utimensat-tests (Files): Likewise.
39754         * modules/vasprintf-tests (Files): Likewise.
39755         * modules/vdprintf-posix-tests (Files): Likewise.
39756         * modules/vfprintf-posix-tests (Files): Likewise.
39757         * modules/vprintf-posix-tests (Files): Likewise.
39758         * modules/vsnprintf-posix-tests (Files): Likewise.
39759         * modules/vsnprintf-tests (Files): Likewise.
39760         * modules/vsprintf-posix-tests (Files): Likewise.
39761         * modules/wcrtomb-tests (Files): Likewise.
39762         * modules/wcsnrtombs-tests (Files): Likewise.
39763         * modules/wcsrtombs-tests (Files): Likewise.
39764         * modules/wcwidth-tests (Files): Likewise.
39765         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39766         * tests/test-isinf.c (isinf): Likewise.
39767         * tests/test-isnan.c (isnan): Likewise.
39768         * tests/test-signbit.c (signbit): Likewise.
39769         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39770         declaration, either as macro or with correct signature.
39771         (select): Ensure function under test is declared with correct
39772         signature in correct header.
39773         * tests/test-atexit.c (atexit): Likewise.
39774         * tests/test-btowc.c (btowc): Likewise.
39775         * tests/test-canonicalize-lgpl.c (realpath)
39776         (canonicalize_file_name): Likewise.
39777         * tests/test-ceilf1.c (ceilf): Likewise.
39778         * tests/test-ceill.c (ceill): Likewise.
39779         * tests/test-chown.c (chown): Likewise.
39780         * tests/test-dprintf-posix.c (dprintf): Likewise.
39781         * tests/test-dup2.c (dup2): Likewise.
39782         * tests/test-dup3.c (dup3): Likewise.
39783         * tests/test-duplocale.c (duplocale): Likewise.
39784         * tests/test-fchdir.c (fchdir): Likewise.
39785         * tests/test-fchownat.c (fchownat): Likewise.
39786         * tests/test-fcntl.c (fcntl): Likewise.
39787         * tests/test-fdopendir.c (fdopendir): Likewise.
39788         * tests/test-fflush.c (fflush): Likewise.
39789         * tests/test-flock.c (flock): Likewise.
39790         * tests/test-floorf1.c (floorf): Likewise.
39791         * tests/test-floorl.c (floorl): Likewise.
39792         * tests/test-fnmatch.c (fnmatch): Likewise.
39793         * tests/test-fopen.c (fopen): Likewise.
39794         * tests/test-fprintf-posix.c (fprintf): Likewise.
39795         * tests/test-freopen.c (freopen): Likewise.
39796         * tests/test-frexp.c (frexp): Likewise.
39797         * tests/test-frexpl.c (frexpl): Likewise.
39798         * tests/test-fseek.c (fseek): Likewise.
39799         * tests/test-fseeko.c (fseeko): Likewise.
39800         * tests/test-fstatat.c (fstatat): Likewise.
39801         * tests/test-fsync.c (fsync): Likewise.
39802         * tests/test-ftell.c (ftell): Likewise.
39803         * tests/test-ftello.c (ftello): Likewise.
39804         * tests/test-futimens.c (futimens): Likewise.
39805         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39806         (gai_strerror): Likewise.
39807         * tests/test-getcwd.c (getcwd): Likewise.
39808         * tests/test-getdelim.c (getdelim): Likewise.
39809         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39810         * tests/test-getgroups.c (getgroups): Likewise.
39811         * tests/test-gethostname.c (gethostname): Likewise.
39812         * tests/test-getline.c (getline): Likewise.
39813         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39814         Likewise.
39815         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39816         * tests/test-glob.c (glob, globfree): Likewise.
39817         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39818         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39819         * tests/test-inet_pton.c (inet_pton): Likewise.
39820         * tests/test-isblank.c (isblank): Likewise.
39821         * tests/test-lchown.c (lchown): Likewise.
39822         * tests/test-ldexpl.c (ldexpl): Likewise.
39823         * tests/test-link.c (link): Likewise.
39824         * tests/test-linkat.c (linkat): Likewise.
39825         * tests/test-lseek.c (lseek): Likewise.
39826         * tests/test-lstat.c (lstat): Likewise.
39827         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39828         * tests/test-mbsinit.c (mbsinit): Likewise.
39829         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39830         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39831         * tests/test-memchr.c (memchr): Likewise.
39832         * tests/test-memcmp.c (memcmp): Likewise.
39833         * tests/test-memmem.c (memmem): Likewise.
39834         * tests/test-memrchr.c (memrchr): Likewise.
39835         * tests/test-mkdir.c (mkdir): Likewise.
39836         * tests/test-mkdirat.c (mkdirat): Likewise.
39837         * tests/test-mkfifo.c (mkfifo): Likewise.
39838         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39839         * tests/test-mknod.c (mknod): Likewise.
39840         * tests/test-nanosleep.c (nanosleep): Likewise.
39841         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39842         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39843         Likewise.
39844         * tests/test-open.c (open): Likewise.
39845         * tests/test-openat.c (openat): Likewise.
39846         * tests/test-perror.c (perror): Likewise.
39847         * tests/test-pipe2.c (pipe2): Likewise.
39848         * tests/test-poll.c (poll): Likewise.
39849         * tests/test-popen.c (popen, pclose): Likewise.
39850         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39851         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39852         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39853         (posix_spawn_file_actions_destroy)
39854         (posix_spawn_file_actions_addclose)
39855         (posix_spawn_file_actions_addopen)
39856         (posix_spawn_file_actions_adddup2): Likewise.
39857         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39858         * tests/test-pread.c (pread): Likewise.
39859         * tests/test-printf-posix.c (printf): Likewise.
39860         * tests/test-pty.c (openpty, forkpty): Likewise.
39861         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39862         (random_r): Likewise.
39863         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39864         * tests/test-readlink.c (readlink): Likewise.
39865         * tests/test-remove.c (remove): Likewise.
39866         * tests/test-rename.c (rename): Likewise.
39867         * tests/test-renameat.c (renameat): Likewise.
39868         * tests/test-rmdir.c (rmdir): Likewise.
39869         * tests/test-round1.c (round): Likewise.
39870         * tests/test-roundf1.c (roundf): Likewise.
39871         * tests/test-roundl.c (roundl): Likewise.
39872         * tests/test-setenv.c (setenv): Likewise.
39873         * tests/test-sigaction.c (sigaction): Likewise.
39874         * tests/test-sleep.c (sleep): Likewise.
39875         * tests/test-snprintf.c (snprintf): Likewise.
39876         * tests/test-sprintf-posix.c (sprintf): Likewise.
39877         * tests/test-stat.c (stat): Likewise.
39878         * tests/test-stpncpy.c (stpncpy): Likewise.
39879         * tests/test-strcasestr.c (strcasestr): Likewise.
39880         * tests/test-strchrnul.c (strchrnul): Likewise.
39881         * tests/test-strerror.c (strerror): Likewise.
39882         * tests/test-strsignal.c (strsignal): Likewise.
39883         * tests/test-strstr.c (strstr): Likewise.
39884         * tests/test-strtod.c (strtod): Likewise.
39885         * tests/test-strverscmp.c (strverscmp): Likewise.
39886         * tests/test-symlink.c (symlink): Likewise.
39887         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39888         * tests/test-times.c (times): Likewise.
39889         * tests/test-trunc1.c (trunc): Likewise.
39890         * tests/test-truncf1.c (truncf): Likewise.
39891         * tests/test-truncl.c (truncl): Likewise.
39892         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39893         Likewise.
39894         * tests/test-uname.c (uname): Likewise.
39895         * tests/test-unlink.c (unlink): Likewise.
39896         * tests/test-unlinkat.c (unlinkat): Likewise.
39897         * tests/test-unsetenv.c (unsetenv): Likewise.
39898         * tests/test-usleep.c (usleep): Likewise.
39899         * tests/test-utimensat.c (utimensat): Likewise.
39900         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39901         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39902         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39903         * tests/test-vprintf-posix.c (vprintf): Likewise.
39904         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39905         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39906         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39907         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39908         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39909         * tests/test-wcwidth.c (wcwidth): Likewise.
39910
39911         build: pull in conditional headers during GNULIB_POSIXCHECK
39912         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39913         definitions from any conditionally-included headers.
39914         * lib/stdlib.in.h (includes): Likewise.
39915         * lib/unistd.in.h (includes): Likewise.
39916
39917 2009-12-24  Bruno Haible  <bruno@clisp.org>
39918
39919         * tests/test-argv-iter.c: Include header file being tested immediately
39920         after config.h.
39921         * tests/test-base64.c: Likewise.
39922         * tests/test-flock.c: Likewise.
39923         * tests/test-fsync.c: Likewise.
39924         * tests/test-getdate.c: Likewise.
39925         * tests/test-getndelim2.c: Likewise.
39926         * tests/test-isfinite.c: Likewise.
39927         * tests/test-isinf.c: Likewise.
39928         * tests/test-strerror.c: Likewise.
39929         * tests/test-strsignal.c: Likewise.
39930
39931 2009-12-23  Eric Blake  <ebb9@byu.net>
39932
39933         unistd: work around cygwin bug
39934         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39935         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39936         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39937
39938 2009-12-23  Bruno Haible  <bruno@clisp.org>
39939
39940         localename: More tests.
39941         * tests/test-localename.c (SIZEOF): New macro.
39942         (categories): New variable.
39943         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39944         test_locale_name_default): Add test w.r.t. thread locale.
39945         (test_locale_name_thread): New function.
39946         (main): Invoke it.
39947
39948         localename: Make aware of thread locale.
39949         * lib/localename.h (gl_locale_name_thread): New declaration.
39950         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39951         behaviour with respect to thread locale.
39952         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39953         <langinfo.h>, glthread/lock.h.
39954         (SIZE_BITS): New macro.
39955         (string_hash): New function.
39956         (struct hash_node): New type.
39957         (HASH_TABLE_SIZE): New macro.
39958         (struniq_hash_table, struniq_lock): New variables.
39959         (struniq): New function.
39960         (gl_locale_name_thread): New function.
39961         (gl_locale_name): Invoke it.
39962         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39963         * modules/localename (Depends-on): Add lock.
39964         Reported by Mike Gran <spk121@yahoo.com>.
39965
39966 2009-12-23  Eric Blake  <ebb9@byu.net>
39967
39968         va-args: new module
39969         * modules/va-args: New file.
39970         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39971         * MODULES.html.sh (Core language properties): Mention it.
39972
39973         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39974         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39975         named alias for __attribute__((__unused__)).
39976         * lib/chown.c: Update client.
39977         * lib/fchmodat.c: Likewise.
39978         * lib/fts.c: Likewise.
39979         * lib/getdate.y: Likewise.
39980         * lib/getgroups.c: Likewise.
39981         * lib/getopt.c: Likewise.
39982         * lib/getugroups.c: Likewise.
39983         * lib/mkdir.c: Likewise.
39984         * lib/mkfifo.c: Likewise.
39985         * lib/mkfifoat.c: Likewise.
39986         * lib/mknod.c: Likewise.
39987         * lib/mknodat.c: Likewise.
39988         * lib/readlink.c: Likewise.
39989         * lib/se-context.in.h: Likewise.
39990         * lib/se-selinux.in.h: Likewise.
39991         * lib/sockets.c: Likewise.
39992         * lib/symlink.c: Likewise.
39993         * lib/symlinkat.c: Likewise.
39994         * lib/unicodeio.c: Likewise.
39995         * lib/unistr.h: Likewise.
39996         * tests/test-areadlink.c: Likewise.
39997         * tests/test-areadlinkat.c: Likewise.
39998         * tests/test-filenamecat.c: Likewise.
39999         * tests/test-fseeko.c: Likewise.
40000         * tests/test-ftello.c: Likewise.
40001         * tests/test-getdate.c: Likewise.
40002         * tests/test-getgroups.c: Likewise.
40003         * tests/test-gethostname.c: Likewise.
40004         * tests/test-quotearg.c: Likewise.
40005         * tests/test-version-etc.c: Likewise.
40006         * tests/test-xalloc-die.c: Likewise.
40007         * tests/test-xfprintf-posix.c: Likewise.
40008         * tests/test-xprintf-posix.c: Likewise.
40009         * tests/test-xvasprintf.c: Likewise.
40010
40011         tests: avoid compiler warnings
40012         * tests/test-fcntl.c (main): Delete unused parameters.
40013         * tests/test-freopen-safer.c (main): Likewise.
40014         * tests/test-xalloc-die.c (main): Mark unused parameters.
40015         * tests/test-fseeko.c (main): Likewise.
40016         * tests/test-ftello.c (main): Likewise.
40017         * tests/test-nanosleep.c (main): Avoid declaration warning.
40018         * tests/test-sleep.c (main): Likewise.
40019         * tests/test-unsetenv.c (main): Silence warning about string
40020         literal.
40021         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40022
40023 2009-12-23  Bruno Haible  <bruno@clisp.org>
40024
40025         * tests/test-localename.c (test_locale_name): New function, extracted
40026         from main. Also test mixed situations.
40027         (test_locale_name_posix, test_locale_name_environ,
40028         test_locale_name_default): New functions.
40029         (main): Invoke them all.
40030         * modules/localename-tests (configure.ac): Test for newlocale.
40031
40032 2009-12-23  Bruno Haible  <bruno@clisp.org>
40033
40034         unistd: Ensure getcwd gets declared before being overridden.
40035         * lib/unistd.in.h: Conditionally include <io.h>.
40036
40037 2009-12-22  Bruno Haible  <bruno@clisp.org>
40038
40039         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40040         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40041         (gl_WCHAR_H): Invoke it.
40042         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40043         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40044         Reported by Karl Berry <karl@freefriends.org>.
40045
40046 2009-12-22  Eric Blake  <ebb9@byu.net>
40047
40048         math, unistd: avoid redundant includes
40049         * lib/math.in.h (isnan): No need to re-include <math.h>.
40050         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40051
40052         getsubopt: work around cygwin bug
40053         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40054         avoid conflicting with system getsubopt.
40055         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40056         bug.
40057
40058         getopt: synchronize from glibc
40059         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40060         parameter order.  Adjust all callers.
40061         (_getopt_internal_r, main): Adjust quoting in error messages.
40062         Drop considerations for outdated POSIX 1003.2 error message.
40063         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40064         callers.
40065         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40066
40067         test-getopt: test stderr behavior
40068         * modules/getopt-posix-tests (Depends-on): Add dup2.
40069         * tests/test-getopt.c (ASSERT): Avoid stderr.
40070         (main): Move stderr to a temporary file.
40071         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40072         Instead, add parameter to inform caller if output occurred.
40073         (test_getopt): Adjust all existing tests to expect silence, and
40074         add new tests of leading ":".
40075         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40076         glibc shortcomings with leading "-:" or "+:" in optstring.
40077         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40078         Likewise.
40079         * doc/posix-functions/getopt.texi (getopt): Likewise.
40080
40081         test-getopt: enhance test
40082         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40083         supports optind=0.
40084         * tests/test-getopt.c (OPTIND_MIN): Move...
40085         * tests/test-getopt.h (OPTIND_MIN): ...here.
40086         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40087         Require that optind=0 works, since modern BSD supports it in
40088         addition to optreset, and since coreutils expects it.
40089         (test_getopt_long_only): New test.
40090         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40091         glibc shortcomings with 'W;', and enforcement of optind=0.
40092         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40093         Likewise.
40094
40095 2009-12-21  Bruno Haible  <bruno@clisp.org>
40096
40097         localename: Improvements for MacOS X and Cygwin.
40098         * lib/localename.h (gl_locale_name_environ): New declaration.
40099         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40100         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40101         (gl_locale_name_posix): Invoke it.
40102         (gl_locale_name_default): Add comments. Use Windows native API also on
40103         Cygwin.
40104
40105 2009-12-21  Bruno Haible  <bruno@clisp.org>
40106
40107         Update list of Win32 locale ids.
40108         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40109         (LANG_SAMI): Renamed from LANG_SAAMI.
40110         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40111         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40112         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40113         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40114         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40115         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40116         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40117         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40118         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40119         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40120         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40121         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40122         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40123         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40124         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40125         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40126         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40127         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40128         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40129         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40130         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40131         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40132         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40133         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40134         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40135         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40136         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40137         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40138         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40139         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40140         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40141         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40142         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40143         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40144         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40145         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40146         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40147         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40148         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40149         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40150         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40151         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40152         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40153         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40154         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40155         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40156         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40157         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40158         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40159         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40160         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40161         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40162         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40163         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40164         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40165         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40166         Add more languages and countries for Sami, Sorbian. Add more countries
40167         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40168         for Pashto. Change country for Syriac, Tswana.
40169
40170 2009-12-21  Eric Blake  <ebb9@byu.net>
40171
40172         test-utimens: avoid spurious failure
40173         * tests/test-chown.h (nap): Factor...
40174         * tests/nap.h: ...into new file.
40175         * tests/test-lchown.h (nap): Avoid duplication.
40176         * tests/test-utimens-common.h (nap): Use shared implementation,
40177         necessary on file systems with 1-second resolution.
40178         * modules/chown-tests (Files): Include new file.
40179         * modules/fdutimensat-tests (Files): Likewise.
40180         * modules/futimens-tests (Files): Likewise.
40181         * modules/lchown-tests (Files): Likewise.
40182         * modules/openat-tests (Files): Likewise.
40183         * modules/utimens-tests (Files): Likewise.
40184         * modules/utimensat-tests (Files): Likewise.
40185
40186 2009-12-19  Eric Blake  <ebb9@byu.net>
40187
40188         futimens, utimensat: work around Linux bug
40189         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40190         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40191         * lib/utimensat.c (rpl_utimensat): Work around it.
40192         * lib/futimens.c (rpl_futimens): Adjust comment.
40193
40194         utimens: work around Linux ctime bug
40195         * lib/utimens.c (detect_ctime_bug): New helper function.
40196         (update_timespec): Differentiate between workaround needed for
40197         this bug vs. what is needed for systems that lack utimensat.
40198         (fdutimens, lutimens): Work around bug.
40199
40200         utimens: check for ctime update
40201         * tests/test-utimens-common.h (check_ctime): Define.
40202         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40203         * tests/test-futimens.h (test_futimens): Likewise.
40204         * tests/test-lutimens.h (test_lutimens): Likewise.
40205         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40206         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40207
40208 2009-12-19  Bruno Haible  <bruno@clisp.org>
40209
40210         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40211         * tests/test-dprintf-posix2.sh: New file.
40212         * tests/test-dprintf-posix2.c: New file.
40213         * modules/dprintf-posix-tests (Files): Add them.
40214         (configure.ac): Check for getrlimit and setrlimit.
40215         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40216
40217 2009-12-19  Bruno Haible  <bruno@clisp.org>
40218
40219         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40220         * tests/test-fprintf-posix3.sh: New file.
40221         * tests/test-fprintf-posix3.c: New file.
40222         * modules/fprintf-posix-tests (Files): Add them.
40223         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40224
40225 2009-12-19  Eric Blake  <ebb9@byu.net>
40226
40227         dirfd: fix prototype
40228         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40229         * lib/dirfd.c (dirfd): Likewise.
40230
40231         canonicalize: reduce memory usage
40232         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40233         allocation to size.
40234         Reported by Solar Designer <solar@openwall.com>.
40235
40236 2009-12-19  Bruno Haible  <bruno@clisp.org>
40237
40238         New module attribute 'Applicability'.
40239         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40240         * gnulib-tool: New option --extract-applicability.
40241         (func_usage): Document it.
40242         (sed_extract_prog): Recognize it.
40243         (func_get_applicability): New function.
40244         (func_import): Generalize handling of 'link-warning' module.
40245         * modules/link-warning (Applicability): New section.
40246         * modules/arg-nonnull (Applicability): New section.
40247         Repoted by Simon Josefsson <simon@josefsson.org>.
40248
40249 2009-12-19  Bruno Haible  <bruno@clisp.org>
40250
40251         fflush: tweak
40252         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40253         * lib/fseeko.c (rpl_fseeko): Likewise.
40254
40255 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40256
40257         * lib/gl_list.h: Fix typo in comment.
40258
40259 2009-12-16  Eric Blake  <ebb9@byu.net>
40260
40261         fcntl: use to simplify other modules
40262         * modules/cloexec (Depends-on): Add fcntl.
40263         * modules/fchdir (Depends-on): Likewise.
40264         * modules/fd-safer-flag (Depends-on): Likewise.
40265         * modules/unistd-safer (Depends-on): Likewise.
40266         * modules/dup3 (configure.ac): Set module indicator.
40267         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40268         missing.
40269         * lib/fchdir.c (_gl_register_dup): Fix comment.
40270         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40271         * lib/dup-safer.c (dup_safer): Likewise.
40272         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40273         * lib/dup3.c (dup3): Likewise.
40274         * tests/test-fchdir.c (main): Enhance test.
40275         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40276
40277         fcntl: port portions of fcntl to mingw
40278         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40279         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40280         replacement for mingw.
40281         * modules/fcntl (Description): Update.
40282         (Depends-on): Add dup2.
40283         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40284         * modules/fcntl-h (Makefile.am): Substitute it.
40285         * lib/fcntl.in.h (fcntl): Update declaration.
40286         (F_DUPFD, F_GETFD): New macros, when needed.
40287         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40288         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40289         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40290         we now guarantee.
40291
40292         fcntl: work around cygwin bug in F_DUPFD
40293         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40294         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40295         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40296         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40297         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40298
40299         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40300         * modules/fcntl (Files): List new files.
40301         (configure.ac): Run a test.
40302         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40303         * lib/fcntl.c (rpl_fcntl): Likewise.
40304         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40305         (gl_FCNTL_H): Always replace fcntl.h.
40306         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40307         * lib/fcntl.in.h (fcntl): Declare replacement.
40308         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40309         needed, plus a witness.
40310         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40311         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40312         * tests/test-fcntl.c: New file.
40313         * modules/fcntl-tests: Likewise.
40314
40315         binary-io: avoid potential compilation warning
40316         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40317         directives.
40318
40319         fflush: avoid compilation error on NetBSD
40320         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40321         between off_t and fpos_t, since the latter is sometimes a struct.
40322         * lib/fseeko.c (rpl_fseeko): Likewise.
40323         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40324
40325 2009-12-15  Eric Blake  <ebb9@byu.net>
40326
40327         fcntl-h, stdio, sys_ioctl: fix declarations
40328         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40329         function must not take arguments.
40330         * lib/sys_ioctl.in.h (ioctl): Likewise.
40331         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40332         (open): Add a link warning.
40333
40334 2009-12-15  Jim Meyering  <meyering@redhat.com>
40335
40336         areadlink, areadlink-with-size: relax license to LGPLv2+
40337         * modules/areadlink (License): Relax to LGPLv2+.
40338         * modules/areadlink-with-size (License): Likewise.
40339
40340 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40341             Bruno Haible  <bruno@clisp.org>
40342
40343         *printf: Fix memory leak.
40344         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40345         * lib/vfprintf.c (vfprintf): Likewise.
40346         * lib/dprintf.c (dprintf): Likewise.
40347         * lib/vdprintf.c (vdprintf): Likewise.
40348
40349 2009-12-14  Eric Blake  <ebb9@byu.net>
40350
40351         accept4: adjust module dependencies
40352         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40353
40354         utimens: one more try at avoiding compiler warning
40355         * lib/utimens.c (lutimens): Lower scope of result.
40356
40357 2009-12-13  Bruno Haible  <bruno@clisp.org>
40358
40359         Move the malloc checking from module 'list' to new module 'xlist'.
40360         * modules/xlist: New file.
40361         * lib/gl_xlist.h: New file.
40362         * lib/gl_xlist.c: New file.
40363         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40364         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40365         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40366         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40367         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40368         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40369         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40370         gl_sortedlist_nx_add): New declarations.
40371         (struct gl_list_implementation): Rename and change methods accordingly.
40372         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40373         (gl_list_nx_create): Renamed from gl_list_create.
40374         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40375         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40376         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40377         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40378         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40379         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40380         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40381         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40382         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40383         gl_list_create_empty.
40384         (gl_list_nx_create): Renamed from gl_list_create.
40385         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40386         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40387         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40388         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40389         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40390         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40391         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40392         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40393         * lib/gl_array_list.c: Don't include xalloc.h.
40394         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40395         NULL upon out-of-memory.
40396         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40397         out-of-memory.
40398         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40399         Change return type to 'int'.
40400         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40401         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40402         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40403         upon out-of-memory.
40404         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40405         upon out-of-memory.
40406         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40407         upon out-of-memory.
40408         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40409         upon out-of-memory.
40410         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40411         out-of-memory.
40412         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40413         Update.
40414         (gl_array_list_implementation): Update.
40415         * lib/gl_carray_list.c: Don't include xalloc.h.
40416         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40417         Return NULL upon out-of-memory.
40418         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40419         out-of-memory.
40420         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40421         Change return type to 'int'.
40422         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40423         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40424         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40425         upon out-of-memory.
40426         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40427         upon out-of-memory.
40428         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40429         out-of-memory.
40430         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40431         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40432         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40433         Update.
40434         (gl_carray_list_implementation): Update.
40435         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40436         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40437         gl_linked_create_empty. Return NULL upon out-of-memory.
40438         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40439         out-of-memory.
40440         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40441         Change return type to 'int'. Return -1 upon out-of-memory.
40442         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40443         out-of-memory.
40444         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40445         upon out-of-memory.
40446         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40447         upon out-of-memory.
40448         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40449         NULL upon out-of-memory.
40450         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40451         upon out-of-memory.
40452         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40453         out-of-memory.
40454         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40455         Update.
40456         * lib/gl_linked_list.c: Don't include xalloc.h.
40457         (gl_linked_list_implementation): Update.
40458         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40459         (add_to_bucket): Change return type to 'int'.
40460         (gl_linkedhash_list_implementation): Update.
40461         * lib/gl_anytree_list1.h (free_subtree): New function.
40462         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40463         gl_tree_create_empty. Return NULL upon out-of-memory.
40464         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40465         Change return type to 'int'. Return -1 upon out-of-memory.
40466         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40467         out-of-memory.
40468         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40469         (gl_tree_remove_node): New function, moved here from
40470         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40471         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40472         Update.
40473         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40474         malloc, not xmalloc. Return NULL upon out-of-memory.
40475         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40476         out-of-memory.
40477         (gl_tree_remove_node_from_tree): New function, extracted from
40478         gl_tree_remove_node.
40479         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40480         upon out-of-memory.
40481         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40482         out-of-memory.
40483         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40484         upon out-of-memory.
40485         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40486         upon out-of-memory.
40487         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40488         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40489         not xmalloc. Return NULL upon out-of-memory.
40490         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40491         out-of-memory.
40492         (gl_tree_remove_node_from_tree): New function, extracted from
40493         gl_tree_remove_node.
40494         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40495         upon out-of-memory.
40496         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40497         out-of-memory.
40498         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40499         upon out-of-memory.
40500         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40501         upon out-of-memory.
40502         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40503         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40504         gl_anytree_list1.h before gl_anyavltree_list2.h.
40505         (gl_avltree_list_implementation): Update.
40506         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40507         gl_anytree_list1.h before gl_anyavltree_list2.h.
40508         (gl_rbtree_list_implementation): Update.
40509         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40510         Change return type to 'int'. Return -1 upon out-of-memory. Use
40511         __builtin_expect.
40512         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40513         (gl_avltreehash_list_implementation): Update.
40514         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40515         (gl_rbtreehash_list_implementation): Update.
40516         * modules/array-list (Depends-on): Remove xalloc.
40517         * modules/carray-list (Depends-on): Likewise.
40518         * modules/linked-list (Depends-on): Likewise.
40519         * modules/linkedhash-list (Depends-on): Likewise.
40520         * modules/avltree-list (Depends-on): Likewise.
40521         * modules/rbtree-list (Depends-on): Likewise.
40522         * modules/avltreehash-list (Depends-on): Likewise.
40523         * modules/rbtreehash-list (Depends-on): Likewise.
40524
40525         * modules/xsublist: New file.
40526         * lib/gl_xsublist.h: New file.
40527         * lib/gl_xsublist.c: New file.
40528         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40529         (gl_sublist_nx_create): New declaration.
40530         * lib/gl_sublist.c: Don't include xalloc.h.
40531         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40532         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40533         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40534         Change return type to 'int'. Return -1 upon out-of-memory.
40535         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40536         upon out-of-memory.
40537         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40538         NULL upon out-of-memory.
40539         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40540         upon out-of-memory.
40541         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40542         NULL upon out-of-memory.
40543         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40544         NULL upon out-of-memory.
40545         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40546         upon out-of-memory.
40547         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40548         (gl_sublist_list_implementation): Update.
40549         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40550         upon out-of-memory.
40551         * modules/sublist (Depends-on): Remove xalloc.
40552
40553         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40554         * tests/test-carray_list.c: Likewise.
40555         * tests/test-linked_list.c: Likewise.
40556         * tests/test-linkedhash_list.c: Likewise.
40557         * tests/test-avltree_list.c: Likewise.
40558         * tests/test-rbtree_list.c: Likewise.
40559         * tests/test-avltreehash_list.c: Likewise.
40560         * tests/test-rbtreehash_list.c: Likewise.
40561         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40562         * modules/carray-list-tests (Makefile.am): Likewise.
40563         * modules/linked-list-tests (Makefile.am): Likewise.
40564         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40565         * modules/avltree-list-tests (Makefile.am): Likewise.
40566         * modules/rbtree-list-tests (Makefile.am): Likewise.
40567         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40568         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40569
40570         * NEWS: Mention the changes.
40571
40572         * lib/clean-temp.c: Include gl_xlist.h.
40573         * modules/clean-temp (Depends-on): Add xlist.
40574
40575         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40576         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40577
40578         * tests/test-array_oset.c: Include gl_xlist.h.
40579         * modules/array-oset-tests (Depends-on): Add xlist.
40580
40581         Reported by José E. Marchesi <jemarch@gnu.org>.
40582
40583 2009-12-13  Bruno Haible  <bruno@clisp.org>
40584
40585         Move the malloc checking from module 'oset' to new module 'xoset'.
40586         * modules/xoset: New file.
40587         * lib/gl_xoset.h: New file.
40588         * lib/gl_xoset.c: New file.
40589         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40590         declarations.
40591         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40592         (struct gl_oset_implementation): Rename and change methods accordingly.
40593         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40594         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40595         'int'. Mark as __warn_unused_result__.
40596         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40597         gl_oset_create_empty.
40598         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40599         'int'.
40600         * lib/gl_array_oset.c: Don't include xalloc.h.
40601         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40602         malloc, not xmalloc.
40603         (grow): Change return type to 'int'. Don't call xalloc_die.
40604         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40605         to 'int'.
40606         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40607         'int'.
40608         (gl_array_oset_implementation): Update.
40609         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40610         gl_tree_create_empty.
40611         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40612         'int'.
40613         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40614         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40615         xmalloc.
40616         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40617         not xmalloc.
40618         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40619         xmalloc.
40620         (gl_avltree_oset_implementation): Update.
40621         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40622         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40623         xmalloc.
40624         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40625         not xmalloc.
40626         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40627         xmalloc.
40628         (gl_rbtree_oset_implementation): Update.
40629         * modules/array-oset (Depends-on): Remove xalloc.
40630         * modules/avltree-oset (Depends-on): Likewise.
40631         * modules/rbtree-oset (Depends-on): Likewise.
40632         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40633         * tests/test-avltree_oset.c: Likewise.
40634         * tests/test-rbtree_oset.c: Likewise.
40635         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40636         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40637         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40638         * NEWS: Mention the change.
40639
40640 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40641
40642         maint.mk: allow a project to override release-prep commands
40643         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40644         commands into a new rule.
40645         (release-prep): New rule.
40646         (release-prep-hook): New overridable variable.
40647
40648 2009-12-13  Bruno Haible  <bruno@clisp.org>
40649
40650         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40651
40652 2009-12-13  Jim Meyering  <meyering@redhat.com>
40653
40654         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40655         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40656
40657 2009-12-12  Bruno Haible  <bruno@clisp.org>
40658
40659         duplocale: Tweak.
40660         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40661
40662 2009-12-12  Karl Berry  <karl@gnu.org>
40663
40664         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40665
40666 2009-12-12  Bruno Haible  <bruno@clisp.org>
40667
40668         * m4/po.m4: Undo incorrect untabification.
40669
40670 2009-12-12  Bruno Haible  <bruno@clisp.org>
40671
40672         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40673         * modules/c-strtod (Depends-on): Add locale.
40674         * modules/c-strtold (Depends-on): Likewise.
40675
40676 2009-12-12  Bruno Haible  <bruno@clisp.org>
40677
40678         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40679
40680 2009-12-11  Eric Blake  <ebb9@byu.net>
40681
40682         setenv: relax requirement in light of POSIX ruling
40683         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40684         not NULL.
40685         * tests/test-setenv.c (main): Relax test.
40686         * tests/test-unsetenv.c (main): Likewise.
40687         * doc/posix-functions/setenv.texi (setenv): Document this.
40688         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40689
40690 2009-12-11  Bruno Haible  <bruno@clisp.org>
40691
40692         New module 'fd-safer-flag'.
40693         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40694         * lib/dup-safer.c (dup_safer_flag): Remove function.
40695         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40696         * lib/fd-safer.c (fd_safer_flag): Remove function.
40697         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40698         * modules/cloexec (configure.ac): Drop indicator macro.
40699         * modules/fd-safer-flag: New file.
40700         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40701         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40702         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40703
40704 2009-12-11  Bruno Haible  <bruno@clisp.org>
40705
40706         Tests for module 'nl_langinfo'.
40707         * modules/nl_langinfo-tests: New file.
40708         * tests/test-nl_langinfo.sh: New file.
40709         * tests/test-nl_langinfo.c: New file.
40710
40711         New module 'nl_langinfo'.
40712         * lib/nl_langinfo.c: New file.
40713         * m4/nl_langinfo.m4: New file.
40714         * modules/nl_langinfo: New file.
40715         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40716
40717 2009-12-11  Bruno Haible  <bruno@clisp.org>
40718
40719         Tests for module 'langinfo'.
40720         * modules/langinfo-tests: New file.
40721         * tests/test-langinfo.c: New file.
40722
40723         New module 'langinfo'.
40724         * lib/langinfo.in.h: New file.
40725         * m4/langinfo_h.m4: New file.
40726         * modules/langinfo: New file.
40727         * doc/posix-headers/langinfo.texi: Mention the new module.
40728
40729 2009-12-11  Bruno Haible  <bruno@clisp.org>
40730
40731         * lib/config.charset: Untabify.
40732
40733 2009-12-11  Bruno Haible  <bruno@clisp.org>
40734
40735         * modules/unistd-safer (configure.ac): Drop indicator macro.
40736
40737 2009-12-11  Bruno Haible  <bruno@clisp.org>
40738
40739         Move pipe2-safer code to its own file.
40740         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40741         * lib/pipe-safer.c (pipe2_safer): Remove function.
40742         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40743         (Makefile.am): Add it to lib_SOURCES.
40744
40745 2009-12-10  Bruno Haible  <bruno@clisp.org>
40746
40747         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40748
40749 2009-12-10  Bruno Haible  <bruno@clisp.org>
40750
40751         Declare which arguments expect non-NULL values, for GCC and clang.
40752         * build-aux/arg-nonnull.h: New file.
40753         * modules/arg-nonnull: New file.
40754         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40755         (inet_ntop, inet_pton): Use it.
40756         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40757         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40758         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40759         (open, openat): Use it.
40760         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40761         (fnmatch): Use it.
40762         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40763         (getopt, getopt_long, getopt_long_only): Use it.
40764         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40765         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40766         Use it.
40767         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40768         (iconv_open): Use it.
40769         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40770         (strtoimax, strtoumax): Use it.
40771         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40772         (duplocale): Use it.
40773         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40774         (frexp, frexpl): Use it.
40775         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40776         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40777         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40778         (tsearch, tfind, tdelete, twalk): Use it.
40779         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40780         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40781         sigpending): Use it.
40782         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40783         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40784         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40785         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40786         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40787         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40788         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40789         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40790         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40791         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40792         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40793         Use it.
40794         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40795         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40796         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40797         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40798         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40799         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40800         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40801         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40802         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40803         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40804         strtoull, unsetenv): Use it.
40805         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40806         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40807         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40808         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40809         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40810         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40811         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40812         (strcasecmp, strncasecmp): Use it.
40813         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40814         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40815         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40816         rpl_setsockopt): Use it.
40817         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40818         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40819         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40820         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40821         (gettimeofday): Use it.
40822         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40823         (times): Use it.
40824         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40825         (uname): Use it.
40826         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40827         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40828         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40829         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40830         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40831         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40832         unlinkat, write): Use it.
40833         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40834         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40835         * lib/argv-iter.h: Include arg-nonnull.h.
40836         (_ATTRIBUTE_NONNULL_): Remove macro.
40837         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40838         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40839         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40840         optimization.
40841         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40842         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40843         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40844         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40845         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40846         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40847         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40848         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40849         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40850         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40851         * modules/dirent (Depends-on): Add arg-nonnull.
40852         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40853         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40854         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40855         * modules/fnmatch (Depends-on): Add arg-nonnull.
40856         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40857         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40858         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40859         * modules/glob (Depends-on): Add arg-nonnull.
40860         (Makefile.am): Insert arg-nonnull.h into glob.h.
40861         * modules/iconv_open (Depends-on): Add arg-nonnull.
40862         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40863         * modules/inttypes (Depends-on): Add arg-nonnull.
40864         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40865         * modules/locale (Depends-on): Add arg-nonnull.
40866         (Makefile.am): Insert arg-nonnull.h into locale.h.
40867         * modules/math (Depends-on): Add arg-nonnull.
40868         (Makefile.am): Insert arg-nonnull.h into math.h.
40869         * modules/netdb (Depends-on): Add arg-nonnull.
40870         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40871         * modules/search (Depends-on): Add arg-nonnull.
40872         (Makefile.am): Insert arg-nonnull.h into search.h.
40873         * modules/signal (Depends-on): Add arg-nonnull.
40874         (Makefile.am): Insert arg-nonnull.h into signal.h.
40875         * modules/spawn (Depends-on): Add arg-nonnull.
40876         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40877         * modules/stdio (Depends-on): Add arg-nonnull.
40878         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40879         * modules/stdlib (Depends-on): Add arg-nonnull.
40880         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40881         * modules/string (Depends-on): Add arg-nonnull.
40882         (Makefile.am): Insert arg-nonnull.h into string.h.
40883         * modules/strings (Depends-on): Add arg-nonnull.
40884         (Makefile.am): Insert arg-nonnull.h into strings.h.
40885         * modules/sys_socket (Depends-on): Add arg-nonnull.
40886         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40887         * modules/sys_stat (Depends-on): Add arg-nonnull.
40888         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40889         * modules/sys_time (Depends-on): Add arg-nonnull.
40890         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40891         * modules/sys_times (Depends-on): Add arg-nonnull.
40892         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40893         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40894         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40895         * modules/time (Depends-on): Add arg-nonnull.
40896         (Makefile.am): Insert arg-nonnull.h into time.h.
40897         * modules/unistd (Depends-on): Add arg-nonnull.
40898         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40899         * modules/wchar (Depends-on): Add arg-nonnull.
40900         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40901         * modules/argv-iter (Depends-on): Add arg-nonnull.
40902         * tests/test-canonicalize.c (null_ptr): New function.
40903         (main): Use it.
40904         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40905         (main): Use it.
40906         * tests/test-memmem.c (null_ptr): New function.
40907         (main): Use it.
40908         Reported by Jim Meyering.
40909
40910 2009-12-10  Bruno Haible  <bruno@clisp.org>
40911
40912         Use spaces for indentation, not tabs.
40913         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40914         * m4/*.m4: Untabify.
40915         * build-aux/*.h: Untabify.
40916         * tests/**/*.[hc]: Untabify.
40917         * README: New section "Indent with spaces, not TABs", based on
40918         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40919         * NEWS: Mention the change.
40920
40921 2009-12-10  Bruno Haible  <bruno@clisp.org>
40922
40923         pty test: Fix link error.
40924         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40925         test_pty_LDADD.
40926
40927 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40928
40929         * modules/pty: New file.
40930         * modules/pty-tests: New file.
40931         * m4/pty.m4: New file.
40932         * tests/test-pty.c: New file.
40933         * doc/glibc-headers/pty.texi: Modified.
40934         * doc/glibc-functions/forkpty.texi: Modified.
40935         * doc/glibc-functions/openpty.texi: Modified.
40936
40937 2009-12-10  Bruno Haible  <bruno@clisp.org>
40938
40939         Avoid syntax error in C++ mode.
40940         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40941
40942 2009-12-10  Bruno Haible  <bruno@clisp.org>
40943
40944         Use sed with option -e.
40945         * gnulib-tool (func_version, func_emit_copyright_notice,
40946         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40947         option -e to sed.
40948         * modules/link-warning (Makefile.am): Likewise.
40949
40950 2009-12-10  Jim Meyering  <meyering@redhat.com>
40951
40952         mgetgroups: do not write bytes beyond end of malloc'd buffer
40953         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40954         username, we call getgroups with a one-element-shorter buffer,
40955         but still told it the length was original, max_n_groups.
40956
40957 2009-12-09  Eric Blake  <ebb9@byu.net>
40958
40959         cloexec: relax license
40960         * modules/cloexec (Maintainer): Add myself.
40961         (License): Use LGPL, not GPL.
40962
40963         link-warning: optimize generation
40964         * modules/link-warning (Makefile.am): Reduce process usage.
40965
40966 2009-12-09  Bruno Haible  <bruno@clisp.org>
40967
40968         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40969         workaround was added on 2009-11-17.
40970
40971 2009-12-09  Jim Meyering  <meyering@redhat.com>
40972             Bruno Haible  <bruno@clisp.org>
40973
40974         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40975         * modules/link-warning (Makefile.am): Make the comment-removing sed
40976         command more robust in the face of bootstrap-prepended comment lines.
40977
40978 2009-12-09  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40981         most one group.
40982
40983 2009-12-09  Simon Josefsson <simon@josefsson.org>
40984             Bruno Haible  <bruno@clisp.org>
40985
40986         * build-aux/link-warning.h: Add copyright notice.
40987         * modules/link-warning (Makefile.am): Generate link-warning.h from
40988         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40989         * NEWS: Mention change in link-warning module.
40990         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40991         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40992         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40993         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40994         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40995         * modules/math (Makefile.am): Add dependency to math.h.
40996         * modules/search (Makefile.am): Add dependency to search.h.
40997         * modules/signal (Makefile.am): Add dependency to signal.h.
40998         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40999         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41000         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41001         * modules/string (Makefile.am): Add dependency to string.h.
41002         * modules/strings (Makefile.am): Add dependency to strings.h.
41003         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41004         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41005         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41006         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41007         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41008         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41009         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41010         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41011         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41012
41013 2009-12-09  Bruno Haible  <bruno@clisp.org>
41014
41015         fchdir: Optimize away rpl_fstat when possible.
41016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41017         REPLACE_OPEN_DIRECTORY.
41018         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41019
41020 2009-12-09  Bruno Haible  <bruno@clisp.org>
41021
41022         * lib/fchdir.c: Update comment.
41023
41024 2009-12-09  Bruno Haible  <bruno@clisp.org>
41025
41026         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41027
41028 2009-12-08  Eric Blake  <ebb9@byu.net>
41029
41030         fchdir: avoid memory leak on re-registration.
41031         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41032
41033 2009-12-08  Jim Meyering  <meyering@redhat.com>
41034
41035         init.sh: avoid Solaris 10 /bin/sh portability problem
41036         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41037         sourced script:
41038           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41039           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41040           bar
41041         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41042         and two tests used that idiom.
41043         * tests/init.sh: Update suggested usage comments.
41044         (path_prepend_): New function, to be used in place
41045         of the --src-path=DIR option.
41046         (setup_): Move PATH-prepending code into path_prepend_.
41047         * tests/test-pread.sh: Adapt to new usage.
41048         * tests/test-xalloc-die.sh: Likewise.
41049
41050 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41051
41052         * doc/gnulib.texi (Glibc pty.h): Add.
41053         * doc/glibc-functions/forkpty.texi: Add.
41054         * doc/glibc-functions/openpty.texi: Add.
41055         Suggested by Bruno Haible.
41056
41057 2009-12-08  Eric Blake  <ebb9@byu.net>
41058
41059         fchdir: fix logic bugs
41060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41061         * tests/test-fchdir.c (main): Enhance test.
41062         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41063         is in use.
41064
41065         dup2: fix logic bugs
41066         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41067         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41068         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41069         exists.
41070         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41071
41072 2009-12-07  Eric Blake  <ebb9@byu.net>
41073
41074         unlink: fix m4 detection
41075         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41076
41077         unistd-safer: add unit test
41078         * modules/unistd-safer-tests: New file.
41079         * tests/test-dup-safer.c: Likewise.
41080         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41081         * tests/test-dup2.c (setmode): Likewise.
41082         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41083
41084         cloexec: preserve text vs. binary across dup_cloexec
41085         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41086         mode.
41087         * modules/dup2-tests (Depends-on): Add binary-io.
41088         * modules/cloexec-tests (Depends-on): Likewise.
41089         * tests/test-dup2.c (setmode, is_mode): New helpers.
41090         (main): Add tests that translation mode is preserved.
41091         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41092         Reported by Bruno Haible.
41093
41094         mgetgroups: reduce duplicate listings
41095         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41096         resulting array.
41097         * tests/test-chown.h (test_chown): Simplify client.
41098         * tests/test-lchown.h (test_lchown): Likewise.
41099
41100 2009-12-06  Bruno Haible  <bruno@clisp.org>
41101
41102         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41103         value.
41104
41105 2009-12-06  Bruno Haible  <bruno@clisp.org>
41106
41107         * lib/progname.c: Include stdio.h, stdlib.h.
41108         (set_program_name): Reject a NULL argument.
41109
41110 2009-12-05  Eric Blake  <ebb9@byu.net>
41111
41112         pipe2-safer: new module
41113         * modules/pipe2-safer: New file.
41114         * lib/unistd-safer.h (pipe2_safer): New prototype.
41115         * lib/unistd--.h (pipe2): New wrapper.
41116         * lib/pipe-safer.c (pipe2_safer): New function.
41117         * modules/pipe (Depends-on): Add pipe2-safer.
41118         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41119
41120         stdlib-safer: preserve cloexec flag for mkostemp[s]
41121         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41122         fd_safer_flag.
41123
41124         unistd-safer: allow preservation of cloexec status via flag
41125         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41126         prototypes.
41127         * lib/dup-safer.c (dup_safer_flag): New function.
41128         * lib/fd-safer.c (fd_safer_flag): Likewise.
41129         * modules/cloexec (configure.ac): Set witness.
41130
41131         test-dup2: enhance test
41132         * modules/dup2-tests (Depends-on): Add cloexec.
41133         * tests/test-dup2.c (main): Enhance test.
41134
41135         cloexec: add dup_cloexec
41136         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41137         header and comments.
41138         * lib/cloexec.c (set_cloexec_flag): Add comments.
41139         (dup_cloexec): New function, with mingw implementation borrowed
41140         from...
41141         * lib/w32spawn.h (dup_noinherit): ...here.
41142         * modules/execute (Depends-on): Add cloexec.
41143         * modules/pipe (Depends-on): Likewise.
41144         * modules/cloexec (Depends-on): Add dup2.
41145         * modules/cloexec-tests (Files): New file.
41146         * tests/test-cloexec.c: Likewise.
41147
41148         test-xalloc-die: fix test for mingw
41149         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41150         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41151         directory and .exe suffix off argv[0] output.
41152
41153         test-fseeko: fix test for mingw
41154         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41155         than undefining fseek, so test will pass on mingw.
41156
41157 2009-12-05  Bruno Haible  <bruno@clisp.org>
41158
41159         * lib/progname.h (set_program_name): Clarify specification.
41160         * lib/progname.c (set_program_name): Likewise.
41161         Reported by Jim Meyering.
41162
41163 2009-12-05  Jim Meyering  <meyering@redhat.com>
41164
41165         maint.mk: backslash-escape parens in default regexp
41166         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41167         backslash-escape the literal parentheses.
41168
41169         maint.mk: news-date-check: use grep -E
41170         * top/maint.mk (today): Define a Make variable, not a...
41171         (news-date-check): ...shell variable.
41172         (news-date-regexp): Use the Make variable.
41173         Use grep's -E option.  Change the failing diagnostic to mention
41174         the variable, $(news-date-regexp).
41175
41176 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41177
41178         maintainer-makefile: allow customization of NEWS entry format
41179         * top/maint.mk (news-date-regexp): New overridable variable.
41180         (news-date-check): Use it.
41181
41182 2009-12-04  Eric Blake  <ebb9@byu.net>
41183
41184         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41185         * lib/mgetgroups.h (xgetgroups): New prototype.
41186         * lib/mgetgroups.c (xgetgroups): New wrapper.
41187         (mgetgroups): Handle ENOSYS.
41188         * modules/mgetgroups (Depends-on): Add realloc.
41189         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41190
41191         mgetgroups: avoid argument promotion issues with -1
41192         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41193         for invalid gid_t.
41194         * tests/test-chown.h (getegid, test_chown): Likewise.
41195         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41196
41197 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41198
41199         exclude: Fix header file problems.
41200         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41201
41202 2009-12-01  Jim Meyering  <meyering@redhat.com>
41203
41204         fts: fts_open: do not let an empty string cause immediate failure
41205         This is required in support of GNU rm, for which the command
41206         "rm A '' B" must process and remove both A and B, in spite of
41207         the empty string argument.
41208         * lib/fts.c (fts_open): Do not let the presence of an empty string
41209         cause fts_open to fail immediately.  Most fts-using tools must be
41210         able to process all arguments, in order, and can be expected to
41211         diagnose such arguments themselves.
41212
41213 2009-11-30  Eric Blake  <ebb9@byu.net>
41214
41215         utimens: fix compilation error
41216         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41217         Declare variable at right scope.
41218
41219 2009-11-29  Jim Meyering  <meyering@redhat.com>
41220
41221         bootstrap: handle perl-5.11's changed --version output
41222         * build-aux/bootstrap (get_version): Handle perl separately,
41223         since perl-5.11's --version output is different.
41224
41225 2009-11-28  Jim Meyering  <meyering@redhat.com>
41226
41227         userspec: depend on the inttostr module, too
41228         * modules/userspec (Depends-on): Add inttostr.
41229
41230         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41231         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41232         number of MAXUID when it evaluates to (uid_t) -1.
41233         Likewise for group ID.  Reported by Matt McCutchen in
41234         <http://savannah.gnu.org/bugs/?28113>
41235
41236         userspec: reformat to use spaces, not TABs
41237         * lib/userspec.c: Expand TABs to spaces.
41238         Add Emacs' "indent-tabs-mode: nil" hint.
41239
41240 2009-11-27  Eric Blake  <ebb9@byu.net>
41241
41242         getopt-gnu: flush out another BSD bug
41243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41244         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41245         flush out BSD bug.
41246         * tests/test-getopt.h (test_getopt): End lists with NULL.
41247         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41248         (test_getopt_long_posix): Enhance test.
41249         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41250         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41251         getopt-gnu.
41252         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41253         Likewise.
41254
41255 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41256
41257         * modules/idpriv-droptemp-tests (Notice): Fix text.
41258
41259 2009-11-27  Jim Meyering  <meyering@redhat.com>
41260
41261         test-xalloc-die: avoid spurious failure due to libtool argv difference
41262         In a libtool-enabled project, this test would fail due to a difference
41263         in the emitted program name, e.g.,
41264         -test-xalloc-die: memory exhausted
41265         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41266         Use program to avoid that.
41267         * modules/xalloc-die-tests (Depends-on): Add progname.
41268         * tests/test-xalloc-die.c: Include progname.h".
41269         (program_name): Remove decl.
41270         (main): Call set_program_name.
41271         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41272
41273 2009-11-26  Richard Jones  <rjones@redhat.com>
41274
41275         w32sock: leave win32 error in place.
41276         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41277
41278 2009-11-26  Eric Blake  <ebb9@byu.net>
41279
41280         init.sh: suggest to use skip_ and fail_ functions in comments
41281         * tests/init.sh: Add a sentence.
41282
41283 2009-11-25  Bruno Haible  <bruno@clisp.org>
41284
41285         init.sh: add documentation in comments
41286         * tests/init.sh: Add some developer and user documentation.
41287
41288 2009-11-26  Jim Meyering  <meyering@redhat.com>
41289
41290         init.sh: accommodate even those who specify bogus srcdir manually
41291         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41292         configure-time tests to be sanitized, so that there is no need to
41293         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41294         (with no double quotes) suffices.  However, since tests may be
41295         invoked manually, and since you may explicitly set srcdir to the
41296         name of a directory containing spaces, do quote its uses here.
41297         * tests/test-pread.sh: Likewise.
41298         Suggested by Bruno Haible.
41299
41300         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41301         * tests/test-pread.sh: Write no data into the pipe, because
41302         test-pread actually reads none.  This avoids a diagnostic,
41303         "bash: echo: write error: Broken pipe", that arises in the unusual
41304         event something is ignoring SIGPIPE, and might be interpreted
41305         as some sort of failure.  Reported by Bruno Haible.
41306
41307 2009-11-25  Jim Meyering  <meyering@redhat.com>
41308
41309         test-pread: cover failure with ESPIPE and EINVAL
41310         * tests/test-pread.c (main): Test for failure, too.
41311         * tests/test-pread.sh: Invoke with stdin on a pipe.
41312         Suggested by Eric Blake.
41313
41314         pread: improvement and fix
41315         * modules/pread (Depends-on): Depend on lseek, for portability to
41316         e.g., mingw.  Suggested by Eric Blake.
41317         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41318
41319         unistd.in.h: correct declaration of pread
41320         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41321         Reported by Richard W.M. Jones.
41322
41323         test-pread.sh: distribute the test script
41324         * modules/pread-tests (Files): Include test-pread.sh.
41325
41326         test-pread.sh: clean up
41327         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41328         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41329         That is unnecessary, since it's always ".".
41330         Suggestion from Eric Blake.
41331
41332         test-pread.sh: make executable
41333         * tests/test-pread.sh: Set executable bit.
41334         Reported by Eric Blake.
41335
41336         correct typo in test-pread.sh
41337         * tests/test-pread.sh: Add #! line.
41338
41339         test pread
41340         * tests/test-pread.c: New file.
41341         * tests/test-pread.sh: Likewise.
41342         * modules/pread-tests: Likewise.
41343
41344         pread: new module
41345         * modules/pread: New file.
41346         * lib/unistd.in.h (pread): Define/declare.
41347         * lib/pread.c (pread): New file.
41348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41349         * modules/unistd (Makefile.am): Substitute witnesses.
41350         * doc/posix-functions/pread.texi (pread): Update.
41351         * MODULES.html.sh: Add pread.
41352
41353 2009-11-25  Jim Meyering  <meyering@redhat.com>
41354
41355         tests/init.sh: new file to be used via most *.sh tests
41356         * tests/init.sh: New file.
41357
41358 2009-11-25  Eric Blake  <ebb9@byu.net>
41359
41360         utimens: work around older Linux failure with symlinks
41361         * lib/utimens.c (lutimensat_works_really): New variable.
41362         (fdutimens, lutimens): Use it to manage kernels that support
41363         nanosecond times on files, but not on symlinks.
41364         Reported by OndÅ™ej Vašík.
41365
41366         utimes: fix configure grammar
41367         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41368
41369 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41370
41371         regex: Fix fastmap for multibyte character ranges.
41372         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41373         characters when a multibyte character range is included.
41374
41375 2009-11-22  Andy Wingo  <wingo@pobox.com>
41376
41377         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41378         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41379
41380 2009-11-24  Bruno Haible  <bruno@clisp.org>
41381
41382         doc: Most *_l functions exist in MacOS X 10.5.
41383         * doc/posix-functions/duplocale.texi: Update platforms list.
41384         * doc/posix-functions/freelocale.texi: Likewise.
41385         * doc/posix-functions/newlocale.texi: Likewise.
41386         * doc/posix-functions/uselocale.texi: Likewise.
41387         * doc/posix-functions/isalnum_l.texi: Likewise.
41388         * doc/posix-functions/isalpha_l.texi: Likewise.
41389         * doc/posix-functions/isblank_l.texi: Likewise.
41390         * doc/posix-functions/iscntrl_l.texi: Likewise.
41391         * doc/posix-functions/isdigit_l.texi: Likewise.
41392         * doc/posix-functions/isgraph_l.texi: Likewise.
41393         * doc/posix-functions/islower_l.texi: Likewise.
41394         * doc/posix-functions/isprint_l.texi: Likewise.
41395         * doc/posix-functions/ispunct_l.texi: Likewise.
41396         * doc/posix-functions/isspace_l.texi: Likewise.
41397         * doc/posix-functions/isupper_l.texi: Likewise.
41398         * doc/posix-functions/iswalnum_l.texi: Likewise.
41399         * doc/posix-functions/iswalpha_l.texi: Likewise.
41400         * doc/posix-functions/iswblank_l.texi: Likewise.
41401         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41402         * doc/posix-functions/iswctype_l.texi: Likewise.
41403         * doc/posix-functions/iswdigit_l.texi: Likewise.
41404         * doc/posix-functions/iswgraph_l.texi: Likewise.
41405         * doc/posix-functions/iswlower_l.texi: Likewise.
41406         * doc/posix-functions/iswprint_l.texi: Likewise.
41407         * doc/posix-functions/iswpunct_l.texi: Likewise.
41408         * doc/posix-functions/iswspace_l.texi: Likewise.
41409         * doc/posix-functions/iswupper_l.texi: Likewise.
41410         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41411         * doc/posix-functions/isxdigit_l.texi: Likewise.
41412         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41413         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41414         * doc/posix-functions/strcoll_l.texi: Likewise.
41415         * doc/posix-functions/strfmon_l.texi: Likewise.
41416         * doc/posix-functions/strftime_l.texi: Likewise.
41417         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41418         * doc/posix-functions/strxfrm_l.texi: Likewise.
41419         * doc/posix-functions/tolower_l.texi: Likewise.
41420         * doc/posix-functions/toupper_l.texi: Likewise.
41421         * doc/posix-functions/towctrans_l.texi: Likewise.
41422         * doc/posix-functions/towlower_l.texi: Likewise.
41423         * doc/posix-functions/towupper_l.texi: Likewise.
41424         * doc/posix-functions/wcscoll_l.texi: Likewise.
41425         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41426         * doc/posix-functions/wctrans_l.texi: Likewise.
41427         * doc/posix-functions/wctype_l.texi: Likewise.
41428         * doc/glibc-functions/strptime_l.texi: Likewise.
41429         * doc/glibc-functions/strtod_l.texi: Likewise.
41430         * doc/glibc-functions/strtof_l.texi: Likewise.
41431         * doc/glibc-functions/strtol_l.texi: Likewise.
41432         * doc/glibc-functions/strtold_l.texi: Likewise.
41433         * doc/glibc-functions/strtoll_l.texi: Likewise.
41434         * doc/glibc-functions/strtoul_l.texi: Likewise.
41435         * doc/glibc-functions/strtoull_l.texi: Likewise.
41436         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41437         * doc/glibc-functions/wcstod_l.texi: Likewise.
41438         * doc/glibc-functions/wcstof_l.texi: Likewise.
41439         * doc/glibc-functions/wcstol_l.texi: Likewise.
41440         * doc/glibc-functions/wcstold_l.texi: Likewise.
41441         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41442         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41443         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41444
41445 2009-11-24  Bruno Haible  <bruno@clisp.org>
41446
41447         duplocale: Fix logic bug.
41448         * lib/duplocale.c: Don't include <langinfo.h>.
41449         (_NL_LOCALE_NAME): Remove macro.
41450         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41451         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41452
41453 2009-11-23  Jim Meyering  <meyering@redhat.com>
41454
41455         test-update-copyright: don't hard-code /usr/bin/perl
41456         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41457         perl to print the current year.  Gilles Espinasse reported that
41458         the replaced use of perl was hard-coded as /usr/bin/perl.
41459
41460 2009-11-23  Bruno Haible  <bruno@clisp.org>
41461
41462         duplocale: Add support for glibc 2.3.x.
41463         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41464
41465 2009-11-22  Bruno Haible  <bruno@clisp.org>
41466
41467         vasnprintf: Tiny optimization.
41468         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41469         MacOS X.
41470
41471 2009-11-22  Bruno Haible  <bruno@clisp.org>
41472
41473         Tests for module 'duplocale'.
41474         * modules/duplocale-tests: New file.
41475         * tests/test-duplocale.c: New file.
41476
41477         New module 'duplocale'.
41478         * m4/duplocale.m4: New file.
41479         * lib/locale.in.h (duplocale): New declaration.
41480         * lib/duplocale.c: New file.
41481         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41482         gl_LOCALE_H_DEFAULTS): New macros.
41483         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41484         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41485         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41486         REPLACE_DUPLOCALE.
41487         * modules/duplocale: New file.
41488         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41489
41490 2009-11-22  Bruno Haible  <bruno@clisp.org>
41491
41492         * modules/locale-tests (configure.ac): Test for newlocale function.
41493         * tests/test-locale.c: When the system has extended locale functions,
41494         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41495
41496         locale: Make locale_t available when possible.
41497         * lib/locale.in.h: Include <xlocale.h> when it exists.
41498         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41499         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41500         * modules/locale (Depends-on): Add extensions.
41501         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41502         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41503
41504 2009-11-22  Bruno Haible  <bruno@clisp.org>
41505
41506         Add comments.
41507         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41508         invocation.
41509         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41510         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41511         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41512
41513 2009-11-22  Bruno Haible  <bruno@clisp.org>
41514
41515         error: account for the possibility of freopen (stdout).
41516         * lib/error.c: Include <unistd.h>.
41517         (flush_stdout): New function, extracted from error and error_at_line.
41518         Determine stdout's fd dynamically.
41519         (error, error_at_line): Invoke flush_stdout.
41520         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41521         * modules/error (Depends-on): Add unistd.
41522
41523 2009-11-22  Bruno Haible  <bruno@clisp.org>
41524
41525         diffseq: Add comment.
41526         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41527
41528 2009-11-22  Jim Meyering  <meyering@redhat.com>
41529
41530         c-stack: avoid defining an unused static function
41531         * lib/c-stack.c (find_stack_direction): Do not define this function
41532         when it will not be used.
41533
41534         diffseq: avoid spurious gcc warnings
41535         * lib/diffseq.h (IF_LINT2): Define.
41536         (compareseq): Use it to initialize two members of "part".
41537         This avoids two used-uninitialized warnings.
41538
41539 2009-11-21  Jim Meyering  <meyering@redhat.com>
41540
41541         c-stack: avoid "ignoring return value of `write'" warning
41542         * lib/c-stack.c: Include "ignore-value.h".
41543         (die): Explicitly ignore each write return value.
41544         * modules/c-stack (Depends-on): Add ignore-value.
41545
41546 2009-11-21  Bruno Haible  <bruno@clisp.org>
41547
41548         diffseq: reduce scope of variable 'best'.
41549         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41550         variable, earlier used for two different purposes.
41551
41552 2009-11-21  Jim Meyering  <meyering@redhat.com>
41553
41554         diffseq: remove useless assignment to "best"
41555         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41556         assignment.  At that point "best" is already guaranteed to be zero.
41557
41558 2009-11-20  Eric Blake  <ebb9@byu.net>
41559
41560         build: mention ftp redirector in release announcements
41561         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41562         values that used to come from cfg.mk; mention FTP redirect URL.
41563         * build-aux/announce-gen: Mention the mirror list.
41564         Suggested by Karl Berry.
41565
41566         nanosleep: improve port to mingw
41567         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41569         LIB_NANOSLEEP, but only when needed.
41570         * modules/select (Link): Document LIBSOCKET.
41571         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41572         enough.
41573
41574         nanosleep: work around cygwin bug
41575         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41576         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41577         bug.
41578         (getnow): Delete, not needed.
41579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41580         LIB_CLOCK_GETTIME.
41581         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41582         clock-time, gettime.
41583         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41584         bug.
41585         * modules/nanosleep-tests: New test.
41586         * tests/test-nanosleep.c: New file.
41587
41588         sleep: work around cygwin bug
41589         * lib/sleep.c (rpl_sleep): Work around the bug.
41590         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41591         (gl_PREREQ_SLEEP): Delete unused macro.
41592         * modules/sleep (Depends-on): Add verify.
41593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41594         * modules/unistd (Makefile.am): Substitute witness.
41595         * lib/unistd.in.h (sleep): Update prototype.
41596         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41597         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41598         * modules/sleep-tests (Depends-on): Check for alarm.
41599
41600 2009-11-20  Jim Meyering  <meyering@redhat.com>
41601
41602         maint.mk: improve sc_prohibit_magic_number_exit
41603         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41604         so it does not match uses like System.exit(1).
41605         Add comments showing how to correct all offenders.
41606
41607 2009-11-19  Eric Blake  <ebb9@byu.net>
41608
41609         xalloc-die-tests: add missing library
41610         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41611
41612         test-xvasprintf: silence compiler warnings
41613         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41614         empty string from gcc.
41615
41616 2009-11-19  Jim Meyering  <meyering@redhat.com>
41617
41618         xfreopen: new module, from coreutils
41619         * modules/xfreopen: New module.
41620         * lib/xfreopen.c: New file.
41621         * lib/xfreopen.h: New file.
41622         * MODULES.html.sh (File stream based Input/Output"): Add it.
41623
41624 2009-11-19  Eric Blake  <ebb9@byu.net>
41625
41626         manywarnings: depend on warnings
41627         * modules/manywarnings (Depends-on): Add warnings.
41628
41629         build: avoid compiler warnings
41630         * lib/select.c (rpl_select): Delete unused variable.
41631         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41632
41633 2009-11-18  Eric Blake  <ebb9@byu.net>
41634
41635         tests: avoid false negative with --with-packager
41636         * tests/test-version-etc.sh: Discard packager information.
41637         * tests/test-argp-version-etc-1.sh: Likewise.
41638         Reported by Mike Frysinger.
41639
41640         utimens: fix regression on Solaris
41641         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41642         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41643         can only change fd timestamps via futimesat.  Instead, use an
41644         additional witness macro to avoid BSD bug.
41645         Reported by Jim Meyering.
41646
41647 2009-11-17  Eric Blake  <ebb9@byu.net>
41648
41649         usleep: use it to simplify tests
41650         * modules/stat-time-tests (Depends-on): Add usleep.
41651         (configure.ac): Drop usleep check.
41652         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41653         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41654         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41655         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41656         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41657         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41658         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41659         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41660         Likewise.
41661         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41662         * tests/test-lchown.h (nap): Likewise.
41663         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41664         * tests/test-stat-time.c (nap): Likewise.
41665         * tests/test-utimens-common.h (nap): Update comments.
41666
41667         usleep: new module
41668         * modules/usleep: New file.
41669         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41670         * lib/usleep.c (usleep): Likewise.
41671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41672         * modules/unistd (Makefile.am): Substitute witnesses.
41673         * lib/unistd.in.h (usleep): Add declaration.
41674         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41675         * MODULES.html.sh (Date and time): Likewise.
41676         * modules/usleep-tests (Depends-on): New test.
41677         * tests/test-usleep.c: New file.
41678
41679         chown: work around OpenBSD bug
41680         * lib/chown.c (rpl_chown): Work around the bug.
41681         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41682         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41683         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41684         * modules/chown (Depends-on): Add stdbool.
41685         * modules/lchown (Depends-on): Likewise.
41686         * doc/posix-functions/chown.texi (chown): Document the bug.
41687         * doc/posix-functions/lchown.texi (lchown): Likewise.
41688         * tests/test-lchown.h (test_chown): Relax test.
41689
41690         mkstemp: avoid conflict with C++ keyword template
41691         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41692         * lib/mkostemp.c (mkostemp): Likewise.
41693         * lib/mkostemps.c (mkostemps): Likewise.
41694         * lib/mkstemp.c (mkstemp): Likewise.
41695         * lib/mkstemps.c (mkstemps): Likewise.
41696
41697         xalloc-die-tests: optimize
41698         * tests/test-xalloc-die.sh: Reduce number of processes.
41699
41700 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41701
41702         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41703         patch from ludo@gnu.org (Ludovic Courtès).
41704
41705 2009-11-17  Jim Meyering  <meyering@redhat.com>
41706
41707         version-etc: use proper license string
41708         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41709         * modules/version-etc-fsf: Likewise.
41710
41711 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41712
41713         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41714         printed to stdout.  Deal with EOL differences.
41715
41716 2009-11-17  Eric Blake  <ebb9@byu.net>
41717
41718         unsetenv: work around Solaris bug
41719         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41720         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41721         Reported by Jim Meyering.
41722
41723         vasnprintf: avoid compiler warnings
41724         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41725         variables.
41726         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41727
41728 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41729
41730         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41731         settings since xalloc-die is no longer the self test,
41732         xalloc-die.sh is.
41733
41734 2009-11-17  Jim Meyering  <meyering@redhat.com>
41735
41736         test-xalloc-die.sh: make the code agree with the commit log
41737         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41738         at the end, just in case you happen to have a test-xalloc-die
41739         program in some other PATH directory.
41740
41741         test-xalloc-die.sh: fix a portability bug
41742         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41743         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41744         Otherwise, argv[0] (as often seen in diagnostics) would be too
41745         system-dependent, sometimes with, and sometimes without the leading "./".
41746
41747         version-etc-fsf: relax license to LGPLv3+
41748         * modules/version-etc-fsf (License): Relax license.
41749
41750 2009-11-16  Eric Blake  <ebb9@byu.net>
41751
41752         xalloc-die-tests: avoid printing null pointer
41753         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41754         shell script.
41755         * tests/test-xalloc-die.c (program_name): Declare.
41756         * tests/test-xalloc-die.sh (tmpfiles): New file.
41757
41758         setenv, unsetenv: work around various bugs
41759         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41760         (setenv) [HAVE_SETENV]: Work around bugs.
41761         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41762         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41763         for bugs.
41764         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41765         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41766         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41767         * modules/stdlib (Makefile.am): Update substitutions.
41768         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41769         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41770         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41771         * modules/setenv-tests: New test.
41772         * modules/unsetenv-tests: Likewise.
41773         * tests/test-setenv.c: New file.
41774         * tests/test-unsetenv.c: Likewise.
41775
41776 2009-11-16  Jim Meyering  <meyering@redhat.com>
41777
41778         version-etc: relax license to LGPLv3+
41779         * modules/version-etc (License): Relax license.
41780
41781         better AC_REQUIRE expanded-before-required-warning avoidance
41782         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41783         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41784         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41785         which is no longer needed.
41786
41787 2009-11-16  Eric Blake  <ebb9@byu.net>
41788
41789         test-freading: clean up temporary file
41790         * tests/test-freading.c (main): Remove file on success, and use
41791         ASSERT more liberally.
41792         Reported by Jim Meyering.
41793
41794 2009-11-16  Jim Meyering  <meyering@redhat.com>
41795
41796         avoid new AC_REQUIRE expanded-before-required warnings
41797         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41798         merely using it.
41799         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41800         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41801
41802 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41803
41804         * tests/test-xalloc-die.c: New file.
41805         * modules/xalloc-die-tests: New file.
41806         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41807         XFAIL_TESTS so it can be appended by modules.
41808
41809 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41810
41811         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41812         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41813
41814 2009-11-14  Eric Blake  <ebb9@byu.net>
41815
41816         fnmatch: avoid compiler warning
41817         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41818         to silence compiler warning about mismatch signedness in ?:.
41819         Reported by Robert Millan.
41820
41821         intprops: add double-inclusion guard
41822         * lib/intprops.h: Allow idempotent includes.
41823         Suggested by Bruce Korb.
41824
41825         openat: detect Solaris fchownat bug
41826         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41827         penalizing glibc chownat when only lchownat is broken.
41828         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41829         trailing slash bugs.
41830         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41831         * modules/openat-tests (Files): Include more files.
41832         (Depends-on): Add mgetgroups, sleep, stat-time.
41833         (configure.ac): Add additional checks.
41834         (Makefile.am): Build new test.
41835         * tests/test-fchownat.c: New file.
41836
41837         lchown: detect Solaris and FreeBSD bug
41838         * lib/lchown.c (rpl_lchown): Work around bug.
41839         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41841         * modules/unistd (Makefile.am): Populate it.
41842         * lib/unistd.in.h (lchown): Update declaration.
41843         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41844         * modules/lchown-tests: New file.
41845         * tests/test-lchown.h (test_lchown): Likewise.
41846         * tests/test-lchown.c (main): Likewise.
41847
41848         chown: detect Solaris and FreeBSD bug
41849         * lib/chown.c (rpl_chown): Work around bug.
41850         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41851         (gl_PREREQ_CHOWN): Delete.
41852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41853         * modules/unistd (Makefile.am): Populate it.
41854         * lib/unistd.in.h (chown): Update declaration.
41855         * lib/lchown.c (chown): Update client.
41856         * modules/lchown (Depends-on): Add lstat.
41857         * doc/posix-functions/chown.texi (chown): Document the bug.
41858         * doc/posix-functions/getgroups.texi (getgroups): Document
41859         getgroups pitfall.
41860         * modules/chown-tests: New file.
41861         * tests/test-chown.h (test_chown): Likewise.
41862         * tests/test-chown.c (main): Likewise.
41863
41864 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41865
41866         gnulib-tool: correctly detect absence of m4 directories
41867         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41868
41869 2009-11-14  Jim Meyering  <meyering@redhat.com>
41870
41871         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41872         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41873
41874 2009-11-14  John W. Eaton  <jwe@gnu.org>
41875
41876         strftime.h: wrap function declaration in extern "C" block
41877         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41878
41879 2009-11-13  Eric Blake  <ebb9@byu.net>
41880
41881         getgroups: avoid compiler warning
41882         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41883
41884         getgroups: work around FreeBSD bug
41885         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41886         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41887         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41888         * tests/test-getgroups.c (main): Fix buffer overrun.
41889
41890         getgroups: avoid compilation failure
41891         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41892         * modules/getgroups (Depends-on): Add stdint.
41893
41894 2009-11-13  Jim Meyering  <meyering@redhat.com>
41895
41896         test-getgroups: avoid compilation failure
41897         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41898
41899 2009-11-13  Eric Blake  <ebb9@byu.net>
41900
41901         mgetgroups: new module, taken from coreutils
41902         * modules/mgetgroups: New file.
41903         * lib/mgetgroups.h: Likewise.
41904         * lib/mgetgroups.c (mgetgroups): Likewise.
41905         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41906         * MODULES.html.sh (Users and groups): Mention it.
41907
41908         getgroups: don't expose GETGROUPS_T to user
41909         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41910         an element at a time if GETGROUPS_T is wrong size.
41911         * lib/getugroups.h (getugroups): Change signature.
41912         * lib/unistd.in.h (getgroups): Likewise.
41913         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41914         signature needs fixing.
41915         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41916         AC_TYPE_GETGROUPS.
41917         * modules/group-member (Depends-on): Add getgroups.
41918         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41919         (group_member): Rely on getgroups replacement.
41920         * lib/getugroups.c (getugroups): Use gid_t.
41921         * tests/test-getgroups.c (main): Likewise.
41922         * NEWS: Mention the signature change.
41923         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41924         problem with signature.
41925         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41926         GETGROUPS_T is still useful for setgroups.
41927
41928         getgroups, getugroups: provide stubs for mingw
41929         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41930         * lib/getugroups.c (getugroups): Likewise.
41931         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41932         function.  Modernize replacement scheme.
41933         (gl_PREREQ_GETGROUPS): Delete.
41934         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41935         * modules/getgroups (configure.ac): Declare witness.
41936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41937         * modules/unistd (Depends-on): Substitute witness.
41938         * lib/unistd.in.h (getgroups): Declare replacement.
41939
41940         getgroups: avoid calling exit
41941         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41942         drop xalloc.
41943         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41944         dependencies.
41945         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41946         exiting, in the rare case of malloc failure.
41947
41948         getgroups: fix logic error
41949         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41950         has more than 20 groups.
41951         * modules/getgroups-tests: New test.
41952         * tests/test-getgroups.c: New file.
41953
41954 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41955
41956         * tests/test-base64.c: Improve.
41957
41958 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41959
41960         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41961         Blake <ebb9@byu.net>.
41962
41963 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41964
41965         * tests/test-xvasprintf.c: Add %s%s related checks.
41966
41967 2009-11-12  Eric Blake  <ebb9@byu.net>
41968
41969         version-etc: match standards.texi style
41970         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41971         and use <> only for URLs.
41972
41973 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41974
41975         fts: do not fail on a submount during traversal
41976         * lib/fts.c (fts_build): Read the stat info again after opening
41977         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41978         Original report at http://bugzilla.redhat.com/501848.
41979
41980 2009-11-12  Jim Meyering  <meyering@redhat.com>
41981
41982         bootstrap: sync from coreutils
41983         * build-aux/bootstrap (bootstrap_epilogue): New function.
41984         Use git_modules_config in one more place.  This make bootstrap's
41985         --gnulib-srcdir option more useful for testing.
41986
41987         bootstrap: generalize autoheader check
41988         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41989         AC_CONFIG_HEADERS.
41990
41991 2009-11-11  Eric Blake  <ebb9@byu.net>
41992
41993         mkfifoat: use new modules for Solaris and BSD bugs
41994         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41995         * lib/mkfifoat.c (mknodat): Split...
41996         * lib/mknodat.c (mknodat): ...into new file.
41997         * modules/mkfifoat (Files): Ship new file.
41998         (Depends-on): Add mkfifo, mknod.
41999         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42000         (Depends-on): Add symlink.
42001         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42002         redundant with test_mkfifo.h.
42003         (do_mkfifoat, do_mknodat): New helpers.
42004
42005         mknod: new module
42006         * modules/mknod: New file.
42007         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42008         * lib/mknod.c (mknod): Likewise.
42009         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42010         defaults.
42011         * modules/sys_stat (Makefile.am): Substitute them.
42012         * lib/sys_stat.in.h (mknod): Declare replacement.
42013         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42014         Document it.
42015         * doc/posix-functions/mknod.texi (mknod): Likewise.
42016         * modules/mknod-tests: New test.
42017         * tests/test-mknod.c: Likewise.
42018
42019         mkfifo: new module
42020         * modules/mkfifo: New file.
42021         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42022         * lib/mkfifo.c (mkfifo): Likewise.
42023         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42024         defaults.
42025         * modules/sys_stat (Makefile.am): Substitute them.
42026         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42027         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42028         Document it.
42029         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42030         * modules/mkfifo-tests: New test.
42031         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42032         from test-mkfifoat.c.
42033         * tests/test-mkfifo.c: New file.
42034
42035         readlink: detect FreeBSD bug
42036         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42037         slash on symlink.
42038         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42039         * tests/test-readlink.h (test_readlink): Enhance test.
42040
42041         symlink: detect FreeBSD bug
42042         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42043         slash on symlink.
42044         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42045         * tests/test-symlink.h (test_symlink): Enhance test.
42046
42047 2009-11-10  Eric Blake  <ebb9@byu.net>
42048
42049         link: detect FreeBSD bug
42050         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42051         symlink.
42052         * doc/posix-functions/link.texi (link): Document the bug.
42053         * tests/test-link.h (test_link): Enhance test.
42054         * tests/test-linkat.c (main): Update caller.
42055
42056         unlink, remove: detect FreeBSD bug
42057         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42058         slash on symlink.
42059         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42060         * doc/posix-functions/remove.texi (remove): Likewise.
42061         * tests/test-unlink.h (test_unlink): Enhance test.
42062         * tests/test-remove.c (main): Likewise.
42063
42064 2009-11-09  Eric Blake  <ebb9@byu.net>
42065
42066         rename: detect FreeBSD bug
42067         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42068         slash on symlink.
42069         * modules/renameat-tests (Depends-on): Add filenamecat.
42070         * tests/test-rename.h (test_rename): Allow one more errno.
42071         * tests/test-renameat.c (main): Likewise.
42072         * doc/posix-functions/rename.texi (rename): Document the bug.
42073
42074         open: detect FreeBSD bug
42075         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42076         symlink.
42077         * doc/posix-functions/open.texi (open): Document the bug.
42078         * doc/posix-functions/utimes.texi (utimes): Likewise.
42079         * tests/test-open.h (test_open): Add parameters, and test symlink
42080         handling.
42081         * tests/test-open.c (main): Adjust caller.
42082         * tests/test-fcntl-safer.c (main): Likewise.
42083         * modules/open-tests (Depends-on): Add stdbool, symlink.
42084         * modules/fcntl-safer-tests (Depends-on): Likewise.
42085         * tests/test-openat.c (main): Add test-open tests.
42086
42087         stat: detect FreeBSD bug
42088         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42089         symlink.
42090         * doc/posix-functions/stat.texi (stat): Document the bug.
42091         * tests/test-stat.h (test_stat_func): Add argument.
42092         * tests/test-stat.c (main): Adjust caller.
42093         * tests/test-fstatat.c (main): Likewise.
42094         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42095         Reported by Jim Meyering.
42096
42097 2009-11-09  James Youngman  <jay@gnu.org>
42098
42099         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42100         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42101
42102 2009-11-08  Jim Meyering  <meyering@redhat.com>
42103
42104         utimens: remove invalid futimesat call
42105         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42106         It used the file descriptor of the target file as the DIR_FD
42107         parameter and NULL as the file name.  That caused failure with
42108         errno == EFAULT on FreeBSD-8.0-rc2
42109
42110 2009-11-07  Eric Blake  <ebb9@byu.net>
42111
42112         fflush, freadseek: use fseeko, not fseek
42113         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42114         (clear_ungetc_buffer): Avoid potential problems on large files.
42115         * lib/freadseek.c (freadseek): Likewise.
42116         * modules/freadseek (Depends-on): Add fseeko.
42117         * modules/fseek (configure.ac): Set a witness.
42118         * tests/test-fflush.c (main): Use fseeko.
42119         * tests/test-fpurge.c (fseek): Disable link warning.
42120         * tests/test-freadable.c (fseek): Likewise.
42121         * tests/test-freading.c (fseek): Likewise.
42122         * tests/test-fseeko.c (fseek): Likewise.
42123         * tests/test-ftell.c (fseek): Likewise.
42124         * tests/test-ftello.c (fseek): Likewise.
42125         * tests/test-fwritable.c (fseek): Likewise.
42126         * tests/test-fwriting.c (fseek): Likewise.
42127
42128 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42129
42130         * modules/memchr (Depends-on): Drop getpagesize dependency.
42131
42132 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42133
42134         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42135         Reported by Ludovic Courtès.
42136         * build-aux/pmccabe2html: Improve example usage.
42137         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42138
42139 2009-11-06  Jim Meyering  <meyering@redhat.com>
42140
42141         do-release-commit-and-tag: New module.
42142         Automate the release-commit and tag process.
42143         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42144         * modules/do-release-commit-and-tag: New file.
42145         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42146
42147 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42148
42149         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42150         because test-select.c uses inet_pton.
42151
42152 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42153
42154         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42155         GETADDRINFO_LIB.  Bump serial number.
42156         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42157         Suggested by Eric Blake <ebb9@byu.net>.
42158
42159 2009-11-05  Eric Blake  <ebb9@byu.net>
42160
42161         strtod: detect darwin bug
42162         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42163         Reported by Leo Davis.
42164
42165         freopen-safer: new module
42166         * modules/freopen-safer: New module.
42167         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42168         * lib/freopen-safer.c (freopen_safer): New file.
42169         * lib/stdio-safer.h (freopen_safer): New declaration.
42170         * lib/stdio--.h (freopen): New override.
42171         * MODULES.html.sh (File stream based Input/Output): Mention it.
42172         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42173         freopen-safer module.
42174         * doc/posix-functions/stderr.texi (stderr): Likewise.
42175         * doc/posix-functions/stdin.texi (stdin): Likewise.
42176         * doc/posix-functions/stdout.texi (stdout): Likewise.
42177         * modules/freopen-safer-tests: New test.
42178         * tests/test-reopen-safer.c: New file.
42179
42180 2009-11-05  Jim Meyering  <meyering@redhat.com>
42181
42182         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42183         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42184
42185 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42186
42187         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42188
42189 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42190
42191         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42192
42193 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42194
42195         Fix link error.
42196         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42197         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42198
42199 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42200
42201         * tests/test-func.c: Also test value of __func__.
42202
42203 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42204
42205         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42206         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42207
42208 2009-11-05  Bruno Haible  <bruno@clisp.org>
42209
42210         Fix link error.
42211         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42212         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42213         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42214
42215 2009-11-05  Bruno Haible  <bruno@clisp.org>
42216
42217         Tests for module 'inet_pton'.
42218         * modules/inet_pton-tests: New file.
42219         * tests/test-inet_pton.c: New file.
42220
42221 2009-11-05  Bruno Haible  <bruno@clisp.org>
42222
42223         Tests for module 'inet_ntop'.
42224         * modules/inet_ntop-tests: New file.
42225         * tests/test-inet_ntop.c: New file.
42226
42227 2009-11-04  Eric Blake  <ebb9@byu.net>
42228
42229         stdlib-safer: wrap all mkstemp variants
42230         * modules/mkostemp (configure.ac): Set witness.
42231         * modules/mkostemps (configure.ac): Likewise.
42232         * modules/mkstemps (configure.ac): Likewise.
42233         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42234         (mkstemps_safer): Wrap more functions.
42235         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42236         wrapping.
42237         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42238         (mkstemps_safer): Implement the wrappers.
42239
42240         mkstemps, mkostemps: new modules
42241         * modules/mkostemps: New module.
42242         * modules/mkstemps: Likewise.
42243         * lib/mkostemps.c (mkostemps): New file.
42244         * lib/mkstemps.c (mkstemps): Likewise.
42245         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42246         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42248         * modules/stdlib (Makefile.am): Substitute them.
42249         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42250         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42251         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42252         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42253         * MODULES.html.sh (File system functions): Mention them.
42254
42255         tempname: resync from glibc
42256         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42257         same values for __GT_FILE as glibc.  Abort even when assertions
42258         are disabled.
42259         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42260         match its value otherwise.  Allow idempotent inclusion.
42261         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42262         * lib/mkostemp.c (mkostemp): Likewise.
42263         * lib/mkstemp.c (mkstemp): Likewise.
42264         * lib/tmpfile.c (tmpfile): Likewise.
42265         * NEWS: Document this.
42266
42267         utimens: fix use of futimens on older Linux
42268         * lib/utimens.c (fdutimens): Use updated, rather than original,
42269         timespec to avoid bug in older Linux kernel.
42270         Reported by Simon Josefsson.
42271
42272 2009-11-04  Bruno Haible  <bruno@clisp.org>
42273
42274         Make num_processors more flexible and consistent.
42275         * lib/nproc.h (enum nproc_query): New type.
42276         (num_processors): Add a 'query' argument.
42277         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42278         (num_processors): Add a 'query' argument. Test the value of the
42279         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42280         mingw, count the number of CPUs available for the current process.
42281         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42282         Check for sched_getaffinity and sched_getaffinity_np.
42283         * modules/nproc (Depends-on): Add c-ctype, extensions.
42284         * NEWS: Mention the change.
42285
42286 2009-11-03  Bruno Haible  <bruno@clisp.org>
42287
42288         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42289
42290 2009-11-03  Jim Meyering  <meyering@redhat.com>
42291
42292         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42293         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42294         if it is defined.
42295
42296 2009-11-02  Eric Blake  <ebb9@byu.net>
42297
42298         mktime, timegm: share common declaration
42299         * lib/mktime-internal.h: New file.
42300         * lib/mktime.c: Use it rather than open-coding a declaration.
42301         * lib/timegm.c: Likewise.
42302         * modules/mktime (Files): Ship it.
42303         * modules/timegm (Files): Likewise.
42304         Suggested by Bruno Haible.
42305
42306         test-update-copyright: update test to match script changes
42307         * tests/test-update-copyright.sh: Avoid hard-coding perl
42308         location.  Don't update *.bak created by earlier runs.
42309
42310 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42311             Simon Josefsson  <simon@josefsson.org>
42312             Bruno Haible  <bruno@clisp.org>
42313
42314         Fix link error on Solaris 8.
42315         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42316         also in libnsl. Define also INET_PTON_LIB.
42317         * modules/inet_pton (Link): New section.
42318
42319 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42320             Bruno Haible  <bruno@clisp.org>
42321
42322         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42323         * modules/inet_ntop (Link): New section.
42324         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42325
42326 2009-11-02  Eric Blake  <ebb9@byu.net>
42327
42328         maint: avoid compiler warnings in m4 macros
42329         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42330         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42331
42332 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42333
42334         * m4/pmccabe2html.m4: Remove file.
42335         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42336         function.  Change maintainer.
42337         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42338         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42339         Courtès).
42340
42341 2009-10-31  Eric Blake  <ebb9@byu.net>
42342
42343         fseeko: fix m4 regression
42344         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42345         regression from 2009-10-27.
42346         Reported by Ralf Wildenhues.
42347
42348 2009-10-31  Jim Meyering  <meyering@redhat.com>
42349
42350         inttostr: aesthetics and improved (compile-time) safety
42351         Define inttype_is_signed rather than inttype_is_unsigned,
42352         since the sole use is via "#if inttype_is_signed".
42353         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42354         inttype_is_unsigned.
42355         * lib/offtostr.c (inttype_is_signed): Likewise.
42356         * lib/uinttostr.c (inttype_is_signed): Likewise.
42357         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42358         * lib/inttostr.c (inttostr): Use verify to cross-check the
42359         inttype_is_signed value and the signedness of the actual type.
42360         * modules/inttostr (Depends-on): Add verify.
42361
42362 2009-10-30  Eric Blake  <ebb9@byu.net>
42363
42364         build: avoid compiler warnings
42365         * lib/fchmodat.c (lchmod): Mark unused variables.
42366         * lib/getopt.c (_getopt_initialize): Likewise.
42367         * lib/mktime.c (__mktime_internal): Provide prototype.
42368         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42369         older gcc that do not understand #pragma GCC diagnostic.
42370         * lib/uinttostr.c (inttype_is_unsigned): Define.
42371         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42372
42373 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42374
42375         stat: fix compilation on AIX
42376         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42377         only see struct stat64.
42378
42379 2009-10-30  Eric Blake  <ebb9@byu.net>
42380
42381         exclude: make more robust
42382         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42383         rather than masking a coding bug.
42384         Suggested by Bruno Haible.
42385
42386 2009-10-30  Jim Meyering  <meyering@redhat.com>
42387
42388         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42389         Rather than putting #!/usr/bin/perl on the first line,
42390         start with a variant of what's recommended by "man perlrun" that
42391         invokes the first "perl" program from your shell's search path.
42392         * build-aux/gitlog-to-changelog: Replace #!... as above.
42393         Add a "Local Variables" perl mode setting.
42394         Prompted by a patch from Ludovic Courtès.
42395         Improved by Eric Blake.
42396         * build-aux/useless-if-before-free: Likewise.
42397         * build-aux/announce-gen: Likewise.
42398         * build-aux/update-copyright: Likewise.
42399
42400 2009-10-29  Eric Blake  <ebb9@byu.net>
42401
42402         filenamecat-lgpl: adjust clients
42403         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42404         filenamecat.
42405         * modules/renameat (Depends-on): Likewise.
42406
42407         filenamecat: split into filenamecat-lgpl
42408         * modules/filenamecat-lgpl: New module.
42409         * modules/filenamecat (Files): Move library-safe files into
42410         filenamecat-lgpl.
42411         (Depends-on): Add filenamecat-lgpl.
42412         (configure.ac): Declare witness.
42413         * lib/filenamecat.h (file_name_concat): Only declare when using
42414         GPL module.
42415         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42416         Move...
42417         * lib/filenamecat-lgpl.c: ...into new file.
42418         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42419         (gl_FILE_NAME_CONCAT): Use it.
42420         * MODULES.html.sh (File system functions): Mention new module.
42421
42422         argp: avoid memory leak
42423         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42424         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42425         base_name, since the latter malloc()s and can call exit().
42426         Leak introduced 2006-07-03.
42427
42428         dirname-lgpl: adjust clients that don't need full dirname
42429         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42430         * modules/filenamecat (Depends-on): Likewise.
42431         * modules/linkat (Depends-on): Likewise.
42432         * modules/mkancesdirs (Depends-on): Likewise.
42433         * modules/mkdir (Depends-on): Likewise.
42434         * modules/openat (Depends-on): Likewise.
42435         * modules/savewd (Depends-on): Likewise.
42436         * modules/rename (Depends-on): Likewise.
42437         (License): Relax license.
42438         * modules/mkdir-tests (Depends-on): Drop progname.
42439         (Makefile.am): Delete unneeded LDADD.
42440         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42441
42442         dirname: split into dirname-lgpl
42443         * modules/dirname-lgpl: New module.
42444         * modules/dirname (Files): Move library-safe files into
42445         dirname-lgpl.
42446         (Depends-on): Add dirname-lgpl.
42447         (configure.ac): Declare witness.
42448         * modules/double-slash-root (License): Relax license.
42449         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42450         module.
42451         * lib/dirname.c (dir_len, mdir_name): Move...
42452         * lib/dirname-lgpl.c: ...into new file.
42453         * lib/basename.c (last_component, base_len): Move...
42454         * lib/basename-lgpl.c: ...into new file.
42455         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42456         (gl_DIRNAME): Use it.
42457         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42458         Mention new module.
42459         * modules/dirname-tests (Depends-on): Add progname.
42460         * tests/test-dirname.c (program_name): Delete.
42461
42462         mkdir: make safe for libraries
42463         * modules/mkdir (Depends-on): Drop xalloc.
42464         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42465         exit.
42466
42467         tests: avoid some compiler warnings
42468         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42469         literals.
42470         * tests/test-memchr.c (main): Avoid type mismatch.
42471         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42472         * tests/test-base64.c (main): Likewise.
42473         * tests/test-getdelim.c (main): Likewise.
42474         * tests/test-gethostname.c (main): Likewise.
42475         * tests/test-getline.c (main): Likewise.
42476         * tests/test-netinet_in.c (main): Likewise.
42477         * tests/test-select.c (open_server_socket, main): Likewise.
42478         * tests/test-select-stdin.c (main): Likewise.
42479         * tests/test-sockets.c (main): Likewise.
42480         * tests/test-strsignal.c (main): Likewise.
42481         * tests/test-sys_select.c (main): Likewise.
42482         * tests/test-sys_socket.c (main): Likewise.
42483         * tests/test-u64.c (main): Likewise.
42484         * tests/test-xfprintf-posix.c (main): Likewise.
42485         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42486
42487         sockets: avoid compiler warning
42488         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42489
42490         maint: detect usage(1) and other suspicious exits
42491         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42492
42493 2009-10-29  Jim Meyering  <meyering@redhat.com>
42494
42495         timespec: long-to-int truncation could make timespec_cmp malfunction
42496         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42497         a multiple of 2^32 nanoseconds as no difference.
42498
42499 2009-10-28  Jim Meyering  <meyering@redhat.com>
42500
42501         fprintftime: wrap macro code argument in "do {...} while(0)"
42502         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42503         cpy macro must be a statement that can be followed by a semicolon.
42504         Now that the else clause contains a comment and is hence longer
42505         than one line, I require curly braces.  That in turn requires
42506         that we wrap this code block in the standard do...while(0).
42507
42508         fprintftime: remove stray semicolon from previous change
42509         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42510
42511         fprintftime: avoid a warning about ignored fwrite return value
42512         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42513         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42514         that is unsafe.
42515         * modules/fprintftime (Depends-on): Add ignore-value.
42516
42517         exclude: avoid an unwarranted warning
42518         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42519
42520 2009-10-27  Eric Blake  <ebb9@byu.net>
42521
42522         fseek: avoid compilation failure when fflush is replaced
42523         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42524         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42525         module is in use.
42526         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42527         module is not in use; since REPLACE_FSEEK worked otherwise.
42528         (GNULIB_FTELLO): Likewise for ftell.
42529         Reported by Ian Beckwith and others.
42530
42531 2009-10-27  Bruno Haible  <bruno@clisp.org>
42532
42533         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42534         Reported by Jim Meyering.
42535
42536 2009-10-27  Jim Meyering  <jim@meyering.net>
42537             Bruno Haible  <bruno@clisp.org>
42538
42539         Avoid warning despite dropping the return value of fwrite.
42540         * lib/unicodeio.c: Include ignore-value.h.
42541         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42542         * modules/unicodeio (Depends-on): Add ignore-value.
42543
42544 2009-10-26  Eric Blake  <ebb9@byu.net>
42545
42546         areadlinkat: fix fallback path
42547         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42548         pointer and zero.
42549
42550 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42551
42552         Use a better IO block size for modern systems
42553         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42554         * lib/md2.c: Likewise.
42555         * lib/md4.c: Likewise.
42556         * lib/md5.c: Likewise.
42557         * lib/sha1.c: Likewise.
42558         * lib/sha256.c: Likewise.
42559         * lib/sha512.c: Likewise.
42560
42561 2009-10-22  Eric Blake  <ebb9@byu.net>
42562
42563         tests: avoid several compiler warnings
42564         * tests/test-getcwd.c (main): Avoid buffer underflow.
42565         * tests/test-getdate.c (main): String literals are not safe with
42566         putenv, so use setenv.  Declare unused argument.
42567         * modules/getdate-tests (Depends-on): Add setenv.
42568         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42569         problems with string literals in char *.
42570         * tests/test-hash.c (main): Avoid shadowing declaration.
42571         (insert_new): Treat string literals as char const *.
42572         * tests/test-getopt.h (test_getopt): Likewise.
42573         (getopt_loop): Alter types to minimize casting elsewhere.
42574         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42575         (test_getopt_long_posix): Likewise.
42576         (do_getopt_long): Add wrapper to minimize casting.
42577         * tests/test-atexit.c (clear_temp_file): Use void.
42578         * tests/test-areadlink-with-size.c (main): Declare unused
42579         arguments.
42580         * tests/test-areadlink.c (main): Likewise.
42581         * tests/test-areadlinkat-with-size.c (main): Likewise.
42582         * tests/test-areadlinkat.c (main): Likewise.
42583         * tests/test-canonicalize-lgpl.c (main): Likewise.
42584         * tests/test-canonicalize.c (main): Likewise.
42585         * tests/test-dirent-safer.c (main): Likewise.
42586         * tests/test-dirname.c (main): Likewise.
42587         * tests/test-dup2.c (main): Likewise.
42588         * tests/test-fchdir.c (main): Likewise.
42589         * tests/test-fcntl-h.c (main): Likewise.
42590         * tests/test-fcntl-safer.c (main): Likewise.
42591         * tests/test-fdopendir.c (main): Likewise.
42592         * tests/test-fdutimensat.c (main): Likewise.
42593         * tests/test-fflush.c (main): Likewise.
42594         * tests/test-filenamecat.c (main): Likewise.
42595         * tests/test-filevercmp.c (main): Likewise.
42596         * tests/test-fopen-safer.c (main): Likewise.
42597         * tests/test-fopen.c (main): Likewise.
42598         * tests/test-fpending.c (main): Likewise.
42599         * tests/test-fpurge.c (main): Likewise.
42600         * tests/test-freading.c (main): Likewise.
42601         * tests/test-fstatat.c (main): Likewise.
42602         * tests/test-fsync.c (main): Likewise.
42603         * tests/test-futimens.c (main): Likewise.
42604         * tests/test-getndelim2.c (main): Likewise.
42605         * tests/test-gettimeofday.c (main): Likewise.
42606         * tests/test-getopt.c (main): Likewise.
42607         * tests/test-i-ring.c (main): Likewise.
42608         * tests/test-inttypes.c (main): Likewise.
42609         * tests/test-link.c (main): Likewise.
42610         * tests/test-lstat.c (main): Likewise.
42611         * tests/test-math.c (main): Likewise.
42612         * tests/test-md5.c (main): Likewise.
42613         * tests/test-memchr2.c (main): Likewise.
42614         * tests/test-memrchr.c (main): Likewise.
42615         * tests/test-mkdir.c (main): Likewise.
42616         * tests/test-mkdirat.c (main): Likewise.
42617         * tests/test-mkfifoat.c (main): Likewise.
42618         * tests/test-open.c (main): Likewise.
42619         * tests/test-openat-safer.c (main): Likewise.
42620         * tests/test-openat.c (main): Likewise.
42621         * tests/test-quotearg.c (main): Likewise.
42622         * tests/test-rawmemchr.c (main): Likewise.
42623         * tests/test-readlink.c (main): Likewise.
42624         * tests/test-remove.c (main): Likewise.
42625         * tests/test-rename.c (main): Likewise.
42626         * tests/test-renameat.c (main): Likewise.
42627         * tests/test-rmdir.c (main): Likewise.
42628         * tests/test-sha1.c (main): Likewise.
42629         * tests/test-signal.c (main): Likewise.
42630         * tests/test-sigaction.c (main): Likewise.
42631         * tests/test-stat.c (main): Likewise.
42632         * tests/test-stat-time.c (main): Likewise.
42633         * tests/test-stddef.c (main): Likewise.
42634         * tests/test-stdint.c (main): Likewise.
42635         * tests/test-stdio.c (main): Likewise.
42636         * tests/test-stdlib.c (main): Likewise.
42637         * tests/test-strchrnul.c (main): Likewise.
42638         * tests/test-strerror.c (main): Likewise.
42639         * tests/test-string.c (main): Likewise.
42640         * tests/test-strtod.c (main): Likewise.
42641         * tests/test-strverscmp.c (main): Likewise.
42642         * tests/test-symlink.c (main): Likewise.
42643         * tests/test-symlinkat.c (main): Likewise.
42644         * tests/test-sys_stat.c (main): Likewise.
42645         * tests/test-sys_time.c (main): Likewise.
42646         * tests/test-time.c (main): Likewise.
42647         * tests/test-unistd.c (main): Likewise.
42648         * tests/test-unlink.c (main): Likewise.
42649         * tests/test-unlinkat.c (main): Likewise.
42650         * tests/test-utimens.c (main): Likewise.
42651         * tests/test-utimensat.c (main): Likewise.
42652         * tests/test-version-etc.c (main): Likewise.
42653         * tests/test-wchar.c (main): Likewise.
42654         * tests/test-wctype.c (main): Likewise.
42655         * tests/test-xprintf-posix.c (main): Likewise.
42656         * tests/test-posixtm.c (main): Likewise.
42657         (STREQ): Delete unused macro.
42658         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42659         shadowed variables.
42660         * tests/test-memchr.c (main): Likewise.
42661
42662 2009-10-21  Eric Blake  <ebb9@byu.net>
42663
42664         areadlinkat: avoid failure on older glibc
42665         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42666         rather than mis-comparing 0 against FUNC_RESULT of char*.
42667
42668 2009-10-21  Bruno Haible  <bruno@clisp.org>
42669
42670         * modules/stpncpy (License): Relicense under LGPLv2+.
42671         Reported by David Lutterkort <lutter@redhat.com>.
42672
42673 2009-10-20  Eric Blake  <ebb9@byu.net>
42674
42675         utimensat: work around Solaris 9 bug
42676         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42677         has trailing slash bugs.
42678         * tests/test-lutimens.h (test_lutimens): Enhance test.
42679         * tests/test-utimens.h (test_utimens): Likewise.
42680         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42681         * doc/posix-functions/utimes.texi (utimes): Likewise.
42682         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42683         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42684         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42685         * doc/posix-functions/futimens.texi (futimens): Likewise.
42686
42687         fdutimensat: new module
42688         * modules/fdutimensat: New file.
42689         * lib/fdutimensat.c (fdutimensat): Likewise.
42690         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42691         * MODULES.html.sh (File system functions): Mention module.
42692         * modules/fdutimensat-tests: New test.
42693         * tests/test-fdutimensat.c: Likewise.
42694
42695         doc: regenerate INSTALL
42696         * doc/INSTALL: Reflect recent autoconf update.
42697         * doc/INSTALL.ISO: Likewise.
42698         * doc/INSTALL.UTF-8: Likewise.
42699
42700 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42701
42702         acl: warn if ACL support is not detected
42703         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42704
42705 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42706
42707         * lib/nproc.h: Add extern "C" block for C++.
42708
42709 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42710             Bruno Haible  <bruno@clisp.org>
42711
42712         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42713         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42714         * doc/posix-functions/isalpha.texi: Likewise.
42715         * doc/posix-functions/isblank.texi: Likewise.
42716         * doc/posix-functions/iscntrl.texi: Likewise.
42717         * doc/posix-functions/isdigit.texi: Likewise.
42718         * doc/posix-functions/isgraph.texi: Likewise.
42719         * doc/posix-functions/islower.texi: Likewise.
42720         * doc/posix-functions/isprint.texi: Likewise.
42721         * doc/posix-functions/ispunct.texi: Likewise.
42722         * doc/posix-functions/isspace.texi: Likewise.
42723         * doc/posix-functions/isupper.texi: Likewise.
42724         * doc/posix-functions/isxdigit.texi: Likewise.
42725
42726 2009-10-18  Bruno Haible  <bruno@clisp.org>
42727
42728         Tests for module 'isblank'.
42729         * modules/isblank-tests: New file.
42730         * tests/test-isblank.c: New file.
42731
42732         New module 'isblank'.
42733         * lib/isblank.c: New file.
42734         * m4/isblank.m4: New file.
42735         * modules/isblank: New file.
42736         * doc/posix-functions/isblank.texi: Mention the new module.
42737
42738 2009-10-18  Bruno Haible  <bruno@clisp.org>
42739
42740         New module 'ctype'.
42741         * lib/ctype.in.h: New file.
42742         * m4/ctype.m4: New file.
42743         * modules/ctype: New file.
42744         * doc/posix-headers/ctype.texi: Mention the new module.
42745
42746 2009-10-18  Jim Meyering  <meyering@redhat.com>
42747
42748         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42749         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42750         right after its initialization, rather than farther down.
42751         Keeping these in close proximity makes it easier to ensure
42752         that each such variable is initialized.  E.g.,
42753
42754             LIB_CLOCK_GETTIME=
42755             AC_SUBST([LIB_CLOCK_GETTIME])
42756
42757         This change also increments these serial numbers.
42758         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42759         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42760         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42761
42762 2009-10-18  Bruno Haible  <bruno@clisp.org>
42763
42764         Don't let environment variables perturb build.
42765         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42766         (gl_PREREQ_GETHRXTIME): ... not here.
42767
42768 2009-10-18  Bruno Haible  <bruno@clisp.org>
42769
42770         Avoid symlink attack in localcharset module.
42771         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42772         (O_NOFOLLOW): Define fallback.
42773         (get_charset_aliases): Don't open the file if it is a symbolic link.
42774         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42775         gl_FCNTL_H.
42776         (gl_FCNTL_H): Require it.
42777         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42778         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42779         Reported by Fergal Glynn <fglynn@veracode.com>.
42780
42781 2009-10-18  Bruno Haible  <bruno@clisp.org>
42782
42783         Implement nproc for mingw.
42784         * lib/nproc.c: Include <windows.h>
42785         (num_processors): On native Windows platforms, try GetSystemInfo.
42786
42787 2009-10-18  Bruno Haible  <bruno@clisp.org>
42788
42789         Implement nproc for IRIX.
42790         * lib/nproc.c: Include <sys/sysmp.h>.
42791         (num_processors): On IRIX systems, try sysmp.
42792         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42793
42794 2009-10-18  Bruno Haible  <bruno@clisp.org>
42795
42796         Implement nproc for HP-UX.
42797         * lib/nproc.c: Include <sys/pstat.h>
42798         (num_processors): On HP-UX systems, try pstat_getdynamic.
42799         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42800         pstat_getdynamic.
42801
42802 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42803             Bruno Haible  <bruno@clisp.org>
42804
42805         Implement nproc for NetBSD, OpenBSD.
42806         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42807         (ARRAY_SIZE): New macro.
42808         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42809         * m4/nproc.m4: New file.
42810         * modules/nproc (Files): Add m4/nproc.m4.
42811         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42812         (Makefile.am): Instead, augment lib_SOURCES.
42813
42814 2009-10-18  Bruno Haible  <bruno@clisp.org>
42815
42816         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42817         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42818         sys/param.h.
42819
42820 2009-10-16  Eric Blake  <ebb9@byu.net>
42821
42822         utimensat: new module
42823         * modules/utimensat: New file.
42824         * lib/utimensat.c (utimensat): Likewise.
42825         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42826         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42827         so we can work around Linux bugs.
42828         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42829         * modules/sys_stat (Makefile.am): Substitute them.
42830         * lib/sys_stat.in.h (utimensat): Declare it.
42831         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42832         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42833         * modules/utimensat-tests: New test.
42834         * tests/test-utimensat.c: Likewise.
42835
42836         utimens: let lutimens work on non-symlinks
42837         * lib/utimens.c (lutimens): Fall back to utimens rather than
42838         failing with ENOSYS, when file is not a symlink.
42839         (utimens): Reduce redirection.
42840         * tests/test-lutimens.h (test_lutimens): Update test to cover
42841         non-symlinks.
42842         * tests/test-utimens.h (test_utimens): Update test to cover
42843         symlinks.
42844         * tests/test-utimens.c (main): Update caller.
42845
42846         utimens: cache whether utimensat syscall works
42847         * lib/utimens.c (utimensat_works_really): New cache variable.
42848         (fdutimens, lutimens): Use it to avoid failing syscall.
42849
42850         test-stat-time, test-utimens: improve portability
42851         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42852         ext4 on alpha, and for cygwin.
42853         * tests/test-utimens-common.h: New file.
42854         (nap): Factor delays into single function.
42855         * tests/test-lutimens.h (test_lutimens): Use new header.
42856         * tests/test-futimens.h (test_futimens): Likewise.
42857         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42858         timestamps to occur from same machine, as was done previously for
42859         test_utimens.
42860         * modules/utimens-tests (Files): Ship new file.
42861         * modules/futimens-tests (Files): Likewise.
42862         Reported in part by Jim Meyering.
42863
42864         sys_stat: sort replacement declarations
42865         * lib/sys_stat.in.h: Sort declarations.
42866         * lib/futimens.c (futimens): Fix typo.
42867
42868 2009-10-15  Jim Meyering  <meyering@redhat.com>
42869
42870         don't let environment settings perturb build
42871         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42872         could cause a configure-time and/or build-time malfunction.
42873         Typically, a configure-time function-in-library test is performed
42874         via code like this:
42875
42876           LIB_VAR=
42877           AC_SUBST([LIB_VAR])
42878           prefix_saved_LIBS=$LIBS
42879             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42880                        [test "$ac_cv_search_FUNC" = "none required" ||
42881                         LIB_VAR=$ac_cv_search_FUNC])
42882           LIBS=$prefix_saved_LIBS
42883
42884         However, in each of the files affected by this change, the LIB_VAR=
42885         initialization was omitted.  Thus, when set in the environment, its
42886         value would propagate into generated Makefiles when FUNC is not found
42887         in LIB_NAME.
42888         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42889         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42890         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42891
42892 2009-10-14  Eric Blake  <ebb9@byu.net>
42893
42894         fchdir: avoid infinite recursion in mingw
42895         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42896         recursing.
42897
42898         test-stat-time: port to mingw
42899         * tests/test-stat-time.c (force_unlink): Return a value.
42900         (test_ctime) [W32]: Fix compilation error.
42901         (nap): Don't call usleep with too large an argument.  Use
42902         force_unlink.
42903         * doc/pastposix-functions/usleep.texi (usleep): Document the
42904         portability issue.
42905
42906 2009-10-13  Jim Meyering  <meyering@redhat.com>
42907
42908         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42909         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42910         * modules/pipe-filter-ii: Likewise.
42911         * modules/sys_socket-tests: Likewise.
42912         * modules/tsearch-tests: Likewise.
42913         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42914         (check): Depend on it.
42915
42916 2009-10-12  Eric Blake  <ebb9@byu.net>
42917
42918         utimens-tests: port to NFS file systems
42919         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42920         comparisons to avoid spurious failures from timestamp drift
42921         between NFS machines.
42922
42923 2009-10-12  Eric Blake  <ebb9@byu.net>
42924
42925         stat-time-tests: minor cleanups
42926         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42927         * tests/test-stat-time.c (nap): Separate assignment from call.
42928         Suggested by Paolo Bonzini and Bruno Haible.
42929
42930         sys_stat: guarantee struct timespec
42931         * lib/sys_stat.in.h (includes): Always include <time.h>
42932         * modules/sys_stat (Depends-on): Add time.
42933         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42934         mode_t permission values.
42935         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42936         get at subsecond timestamps.
42937
42938 2009-10-10  Eric Blake  <ebb9@byu.net>
42939
42940         futimens: new module
42941         * modules/futimens: New file.
42942         * lib/futimens.c (futimens): Likewise.
42943         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42944         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42945         we can work around Linux bugs.
42946         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42947         * modules/sys_stat (Makefile.am): Substitute them.
42948         * lib/sys_stat.in.h (futimens): Declare it.
42949         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42950         * doc/posix-functions/futimens.texi (futimens): Likewise.
42951         * modules/futimens-tests: New test.
42952         * tests/test-futimens.c: Likewise.
42953
42954         utimens: introduce fdutimens
42955         * lib/utimens.h (fdutimens): New prototype.
42956         * lib/utimens.c (gl_futimens): Move guts...
42957         (fdutimens): ...to new interface.
42958         * tests/test-utimens.c (do_fdutimens): Use it.
42959
42960         utimens: add UTIME_NOW and UTIME_OMIT support
42961         * lib/utimens.c (validate_timespec, update_timespec): New helper
42962         functions.
42963         (gl_futimens, lutimens): Use them.
42964         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42965         stdbool, sys_stat.
42966         (Link): Mention resulting library dependency.
42967         * modules/utimecmp (Link): Likewise.
42968         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42969         (Makefile.am): Pick up library dependency.
42970         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42971         definition.
42972         * tests/test-sys_stat.c: Test the definitions.
42973         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42974         * NEWS: Document library dependency.
42975
42976         utimecmp: support symlink timestamps
42977         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42978         hashing when possible.  Use pathconf when available.
42979         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42980         * modules/utimecmp (Depends-on): Add lstat.
42981
42982         utimens: add lutimens interface
42983         * lib/utimens.c (lutimens): New function.
42984         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42985         * lib/utimens.h (lutimens): Declare new interface.
42986         * tests/test-utimens.c (main): Enhance test.
42987         * tests/test-lutimens.h (test_lutimens): New file.
42988         * modules/utimens-tests (Files): Distribute it.
42989         (Depends-on): Add symlink.
42990         (configure.ac): Check for usleep.
42991
42992         utimens: validate futimens usage
42993         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42994         fewer syscalls on failure later on.  Avoid compiler warning on
42995         mingw.
42996         * modules/utimens (Depends-on): Add dup2.
42997
42998         utimens: add test
42999         * modules/utimens-tests: New test.
43000         * tests/test-utimens.h: New file.
43001         * tests/test-futimens.h: Likewise.
43002         * tests/test-utimens.c: Likewise.
43003
43004         doc: mention timestamp portability issues
43005         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43006         instead.
43007         * doc/posix-functions/utime.texi (utime): Likewise.
43008         * doc/posix-functions/utimes.texi (utimes): Likewise.
43009         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43010         instead.
43011         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43012         module.
43013         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43014         Mention weakness with symlink timestamps.
43015         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43016         to utimensat/futimens instead.
43017         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43018
43019         test-dup2: enhance test
43020         * tests/test-dup2.c (main): Also check AT_FDCWD.
43021
43022         test-stat-time: avoid more spurious failures
43023         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43024         xfs; and avoid race if the two timestamps cross quantization edge.
43025
43026         relocatable: prefer 'file system' over 'filesystem'
43027         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43028         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43029         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43030         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43031         * lib/relocatable.c (compute_curr_prefix): Likewise.
43032
43033 2009-10-10  Jim Meyering  <meyering@redhat.com>
43034
43035         stat-time-tests: check for the usleep function
43036         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43037
43038 2009-10-10  Bruno Haible  <bruno@clisp.org>
43039
43040         * modules/xnanosleep: Put the Link section after the Include section.
43041
43042 2009-10-09  Eric Blake  <ebb9@byu.net>
43043
43044         dup2: work around FreeBSD 6.1 bug
43045         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43046         * doc/posix-functions/dup2.texi (dup2): Document it.
43047         Reported by Nelson H. F. Beebe and Jim Meyering.
43048
43049         test-stat-time: port to buggy NFS clients
43050         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43051         (test_ctime): Also skip test if mtime and ctime are skewed.
43052
43053         maint: prefer 'file system' over 'filesystem'
43054         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43055         * doc/posix-functions/lstat.texi (lstat): Likewise.
43056         * lib/file-has-acl.c (file_has_acl): Likewise.
43057         * lib/fwriteerror.c [TEST]: Likewise.
43058         * tests/test-areadlink.h (test_areadlink): Likewise.
43059         * tests/test-areadlinkat-with-size.c (main): Likewise.
43060         * tests/test-areadlinkat.c (main): Likewise.
43061         * tests/test-canonicalize-lgpl.c (main): Likewise.
43062         * tests/test-canonicalize.c (main): Likewise.
43063         * tests/test-fstatat.c (main): Likewise.
43064         * tests/test-linkat.c (main): Likewise.
43065         * tests/test-lstat.h (test_lstat_func): Likewise.
43066         * tests/test-mkdir.h (test_mkdir): Likewise.
43067         * tests/test-readlink.h (test_readlink): Likewise.
43068         * tests/test-remove.c (main): Likewise.
43069         * tests/test-rename.h (test_rename): Likewise.
43070         * tests/test-renameat.c (main): Likewise.
43071         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43072         * tests/test-symlink.h (test_symlink): Likewise.
43073         * tests/test-symlinkat.c (main): Likewise.
43074         * tests/test-unlink.h (test_unlink_func): Likewise.
43075         * tests/test-unlinkat.c (main): Likewise.
43076
43077         maint: make realtime library usage explicit
43078         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43079         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43080         * modules/settime (Link): Likewise.
43081         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43082
43083         test-stat-time: speed up execution
43084         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43085         warning on mingw.
43086         (nap): New helper function.
43087         (prepare_test): Use it to reduce sleep time.
43088         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43089         execution.
43090         * modules/stat-time-tests (configure.ac): Check for usleep.
43091
43092 2009-10-09  Jim Meyering  <meyering@redhat.com>
43093
43094         selinux-h: always use getfilecon wrappers
43095         * lib/getfilecon.c: New file.
43096         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43097         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43098         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43099         (fgetfilecon): Provide a stub.
43100         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43101         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43102         file unconditionally.
43103         When <selinux/selinux.h> is found, arrange to use wrappers.
43104         * modules/selinux-h (Files): Add getfilecon.c.
43105         (Makefile.am): Substitute include-next-related bits
43106         into the now-always-generated selinux/selinux.h file.
43107         * doc/glibc-functions/lgetfilecon.texi: New file.
43108         * doc/glibc-functions/fgetfilecon.texi: New file.
43109         * doc/glibc-functions/getfilecon.texi: New file.
43110         * doc/glibc-functions/getfilecon-desc.texi: New file.
43111         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43112         which to pull in the new files.
43113         * MODULES.html.sh (Misc): Add selinux-h.
43114
43115 2009-10-08  Jim Meyering  <meyering@redhat.com>
43116
43117         unistd: fix comment typo
43118         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43119
43120 2009-10-08  Eric Blake  <ebb9@byu.net>
43121
43122         areadlink: use SIZE_MAX consistently
43123         * modules/areadlink (Depends-on): Add stdint.
43124         * modules/areadlink-with-size (Depends-on): Likewise.
43125         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43126         gives NULL; drop sys/types, since unistd gives size_t; and add
43127         stdint for SIZE_MAX.
43128         (SIZE_MAX): Rely on headers.
43129         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43130         and add stdint.
43131         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43132         (SIZE_MAX): Likewise.
43133         (INITIAL_BUF_SIZE): Turn into enum.
43134         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43135
43136 2009-10-08  Jim Meyering  <meyering@redhat.com>
43137
43138         areadlinkat: avoid compilation failure
43139         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43140         Fix typo in comment.
43141
43142 2009-10-07  Eric Blake  <ebb9@byu.net>
43143
43144         areadlinkat-with-size: new module
43145         * modules/areadlinkat-with-size: New module.
43146         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43147         * lib/areadlink.h (areadlinkat): Declare it.
43148         * MODULES.html.sh (File system functions): Mention it.
43149         * modules/areadlinkat-with-size-tests: New test.
43150         * tests/test-areadlinkat-with-size.c: New file.
43151
43152         xreadlinkat: new module
43153         * modules/xreadlinkat: New module.
43154         * lib/xreadlinkat.c (xreadlinkat): New file.
43155         * lib/xreadlink.h (xreadlinkat): Declare it.
43156         * MODULES.html.sh (File system functions): Mention it.
43157
43158         areadlinkat: new module
43159         * lib/at-func.c (FUNC_FAIL): New define.
43160         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43161         * modules/areadlinkat: New module.
43162         * lib/linkat.c (areadlinkat): Move...
43163         * lib/areadlinkat.c (areadlinkat): ...to new file.
43164         * lib/areadlink.h (areadlinkat): Declare it.
43165         * modules/linkat (Depends-on): Add areadlinkat.
43166         * MODULES.html.sh (File system functions): Mention it.
43167         * modules/areadlinkat-tests: New test.
43168         * tests/test-areadlinkat.c: New file.
43169
43170         areadlink, areadlink-with-size: add tests
43171         * modules/areadlink-tests: New test.
43172         * modules/areadlink-with-size-tests: Likewise.
43173         * tests/test-areadlink.h: New file.
43174         * tests/test-areadlink.c: Likewise.
43175         * tests/test-areadlink-with-size.c: Likewise.
43176
43177         maint: minor cleanups
43178         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43179         _UNUSED_PARAMETER_ instead.
43180         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43181         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43182         * modules/linkat-tests (Files): Distribute test-link.h.
43183
43184         openat, utimens: whitespace cleanup
43185         * lib/openat.c: Prefer space throughout, rather than mix of 8
43186         spaces vs. tabs.
43187         * lib/at-func.c: Likewise.
43188         * lib/utimens.c: Likewise.
43189
43190         openat: avoid using wrong fd
43191         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43192         working directory chooses same fd.
43193         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43194
43195         mkdir, mkdirat: fix cygwin 1.5.x bug
43196         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43197         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43198         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43199         bug.
43200         (gl_PREREQ_MKDIR): Delete unused macro.
43201         * modules/mkdir (Files): Track file rename.
43202         (configure.ac): Update macro name.
43203         * modules/openat (Depends-on): Add mkdir.
43204         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43205
43206         mkdir, mkdirat: add tests
43207         * modules/mkdir-tests: New test.
43208         * tests/test-mkdir.h: New file.
43209         * tests/test-mkdir.c: Likewise.
43210         * tests/test-mkdirat.c: Likewise.
43211         * modules/openat-tests (Files): Add new files.
43212         (Makefile.am): Run new test.
43213
43214 2009-10-06  Eric Blake  <ebb9@byu.net>
43215
43216         doc: tweak *at function documentation
43217         * doc/posix-functions/faccessat.texi (faccessat): Mention
43218         known issue with replacement.
43219         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43220         * doc/posix-functions/linkat.texi (linkat): Likewise.
43221         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43222         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43223         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43224         * doc/posix-functions/renameat.texi (renameat): Likewise.
43225         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43226
43227         openat: fix GNU/Hurd bug in unlinkat
43228         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43229         broken.
43230         * doc/posix-functions/unlink.texi (unlink): Document this.
43231         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43232
43233         fdopendir: fix GNU/Hurd bug
43234         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43235         allowing non-directory fds.
43236         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43237         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43238         * modules/dirent (Makefile.am): Substitute it.
43239         * lib/dirent.in.h (fdopendir): Declare replacement.
43240         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43241         * tests/test-fdopendir.c (main): Test something other than
43242         /dev/null, since on Hurd that behaves like a directory.
43243
43244         test-symlink: port to GNU/Hurd
43245         * tests/test-symlink.h (test_symlink): Relax expected errno.
43246
43247         doc: tweak more cygwin information
43248         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43249         now compatible with glibc.
43250         * doc/posix-functions/getopt.texi (getopt): Likewise.
43251
43252         getopt-gnu: add another test
43253         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43254         guarantee behavior relied on by m4.
43255         * tests/test-getopt.c (main): Use it.
43256         * modules/getopt-posix-tests (Depends-on): Add setenv.
43257         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43258
43259         getopt: fix compilation on darwin
43260         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43261         include.
43262         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43263         Reported by Ludovic Courtès.
43264
43265 2009-10-06  Bruno Haible  <bruno@clisp.org>
43266
43267         * modules/size_max (Description): Discourage its use.
43268         Reported by Simon Josefsson.
43269
43270 2009-10-06  Jim Meyering  <meyering@redhat.com>
43271
43272         linkat: avoid compilation failure
43273         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43274
43275 2009-10-05  Eric Blake  <ebb9@byu.net>
43276
43277         linkat: support Linux 2.6.17
43278         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43279         linkat on Linux, but allow cache variable override.
43280         * lib/linkat.c (rpl_linkat): Define override.
43281         * modules/linkat (Depends-on): Add symlinkat.
43282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43283         * modules/unistd (Makefile.am): Substitute it.
43284         * lib/unistd.in.h (linkat): Declare replacement.
43285         Reported by Pádraig Brady.
43286
43287         quotearg: port test to systems with C.UTF-8 locale
43288         * tests/test-quotearg.c (struct result_strings): Add another
43289         member, differentiating between C.ASCII and C.UTF-8 handling.
43290         (compare_strings): Add parameter.
43291         (main): Adjust all callers.
43292
43293         getopt: avoid clash with FreeBSD _getopt_internal
43294         * lib/getopt.in.h (_getopt_internal): Override the name.
43295         * lib/getopt_int.h (includes): Pick up any overrides.
43296         Reported by Reuben Thomas.
43297
43298         hash: allow C89 compilation
43299         * lib/hash.c (check_tuning): Move declaration before statement.
43300         Reported by Reuben Thomas.
43301
43302 2009-10-05  Karl Berry  <karl@gnu.org>
43303
43304         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43305
43306 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43307             Bruno Haible  <bruno@clisp.org>
43308
43309         * lib/uname.c (uname): Use a table-driven algorithm to compute
43310         Windows NT versions.
43311
43312 2009-10-04  Bruno Haible  <bruno@clisp.org>
43313
43314         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43315         program_invocation_short_name.
43316         * modules/progname (configure.ac): Test for presence of
43317         program_invocation_short_name.
43318         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43319
43320 2009-10-04  Bruno Haible  <bruno@clisp.org>
43321
43322         * lib/progname.c (set_program_name): Fix comment.
43323         Reported by Jim Meyering.
43324
43325 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43326             Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/uname.c: Include <string.h>.
43329         (uname): Do only one call to GetVersionEx in the common case.
43330
43331 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43332             Bruno Haible  <bruno@clisp.org>
43333
43334         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43335         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43336         (uname): Add support for Windows CE and various non-x86 CPU types.
43337
43338 2009-10-03  Bruno Haible  <bruno@clisp.org>
43339
43340         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43341         invocation to tests/configure.ac.
43342         Reported by Ian Beckwith <ianb@erislabs.net>.
43343
43344 2009-10-02  Eric Blake  <ebb9@byu.net>
43345
43346         fchdir: avoid compiler warning
43347         * lib/fchdir.c (canonicalize_file_name)
43348         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43349
43350         test-open: support mingw errno values
43351         * tests/test-open.h (test_open): Relax test.
43352         * tests/test-fopen.h (test_fopen): Likewise.
43353         * tests/test-openat-safer.c (main): Likewise.
43354
43355         open: fix opening directory on mingw
43356         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43357
43358         test-open: on GNU/Hurd, /dev/null is a directory
43359         * tests/test-fopen.h (main): Rename...
43360         (test_fopen): ...to this.  Use a guaranteed non-directory when
43361         confirming open behavior on trailing slash.
43362         * tests/test-openat-safer.c (main): Likewise.
43363         * tests/test-open.h (main): Likewise....
43364         (test_open): ...to this.
43365         * tests/test-fopen.c (main): Adjust caller.
43366         * tests/test-fopen-safer.c (main): Likewise.
43367         * tests/test-open.c (main): Likewise.
43368         * tests/test-fcntl-safer.c (main): Likewise.
43369         Reported by Samuel Thibault.
43370
43371         rename, fchdir: don't ignore chdir failure
43372         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43373         * lib/rename.c (rpl_rename) [W32]: Likewise.
43374         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43375         an empty destination directory if source cannot be renamed,
43376         although there is still possibility for failure.
43377         * doc/posix-functions/rename.texi (rename): Document the race.
43378         Reported by Jim Meyering.
43379
43380         maint: cleanup whitespace in recent commits
43381         * lib/rename.c (rpl_rename): Remove tabs.
43382         * tests/test-link.h (test_link): Likewise.
43383         * lib/fchdir.c (get_name): Likewise.
43384         Reported by Jim Meyering.
43385
43386 2009-10-02  Ben Pfaff  <blp@gnu.org>
43387
43388         relocatable-prog-wrapper: Add missing dependency on
43389         double-slash-root.
43390         * modules/relocatable-prog-wrapper: Add dependency.
43391         Reported by Ian Beckwith <ianb@erislabs.net>.
43392
43393 2009-10-02  Eric Blake  <ebb9@byu.net>
43394
43395         renameat: fix Solaris bugs
43396         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43397         needed fixing.
43398         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43399         * modules/stdio (Makefile.am): Substitute it.
43400         * lib/stdio.in.h (renameat): Declare replacement.
43401         * lib/renameat.c (rpl_renameat): Implement fix.
43402
43403         renameat: new module
43404         * modules/renameat: New file.
43405         * lib/renameat.c (renameat): Likewise.
43406         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43408         * modules/stdio (Makefile.am): Substitute them.
43409         * lib/stdio.in.h (renameat): Declare it.
43410         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43411         * doc/posix-functions/renameat.texi (renameat): Likewise.
43412         * modules/renameat-tests: New test.
43413         * tests/test-renameat.c: Likewise.
43414
43415         rename: fix mingw bugs
43416         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43417         directory overwrite bugs.
43418
43419         rename: fix another cygwin 1.5 bug
43420         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43421         checks.
43422         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43423         unnecessary cygwin workarounds.  Also work around bug with moving
43424         full directory onto an empty one.
43425         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43426
43427         rename-dest-slash: merge into rename module
43428         * modules/rename-dest-slash (Status): Mark obsolete.
43429         (Depends-on): Add rename.
43430         (Files): Let rename do it all.
43431         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43432         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43433         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43434         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43435         * lib/rename.c (rpl_rename): Update comments.
43436
43437         rename: fix cygwin 1.5.x bugs
43438         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43439         * lib/rename.c (rpl_rename): Work around them.
43440         * modules/rename (Depends-on): Add same-inode.
43441
43442         rename: fix Solaris 10 bug
43443         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43444         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43445         was the only bug.
43446
43447         rename: fix Solaris 9 bug
43448         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43449         on non-directory.  Avoid calling exit.
43450         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43451         strdup.
43452         * modules/rename-tests (Depends-on): Drop lstat.
43453         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43454         (gl_PREREQ_RENAME): Delete unused macro.
43455
43456         rename-dest-slash: fix NetBSD bug
43457         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43458         links.
43459         * modules/rename-dest-slash (Depends-on): Add same-inode.
43460
43461         rename-tests: new test, exposes several platform bugs
43462         * modules/rename-tests: New file.
43463         * tests/test-rename.h: Likewise.
43464         * tests/test-rename.c: Likewise.
43465         * doc/posix-functions/rename.texi (rename): Improve documentation,
43466         including bugs that will eventually be fixed in gnulib.
43467
43468 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43469
43470         * lib/uname.c: Include <stdlib.h>
43471         (uname): Assume version info is available.
43472
43473 2009-10-02  Jim Meyering  <meyering@redhat.com>
43474
43475         gnu-web-doc-update: correct --help output
43476         * build-aux/gnu-web-doc-update: Make --help output relevant.
43477
43478         gnu-web-doc-update: add standard options
43479         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43480
43481         gnu-web-doc-update: New module.
43482         Use this script to automatically update the on-line web documentation
43483         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43484         * modules/gnu-web-doc-update: New file, from coreutils.
43485         * build-aux/gnu-web-doc-update: New script.
43486
43487 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43488
43489         link: LoadLibrary is not needed.
43490         * lib/link.c: Use GetModuleHandle.
43491
43492 2009-10-01  Eric Blake  <ebb9@byu.net>
43493
43494         getopt: bump serial number
43495         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43496         change.
43497
43498         tests: tighten link, rmdir, and remove tests
43499         * tests/test-link.h (includes): No need to use <config.h> here.
43500         Clean up if directory hard link was created, otherwise test for
43501         trailing '.'.
43502         * tests/test-linkat.c (main): Simplify.
43503         * tests/test-remove.c (main): Enhance test for trailing '.'.
43504         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43505
43506 2009-10-01  Jim Meyering  <meyering@redhat.com>
43507
43508         maint.mk: requiring "make major" was annoying, for a "minor" release.
43509         What is intended is "stable", to contrast with alpha and beta,
43510         so require "make stable", not "make major".
43511         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43512         (get_tool_versions): Likewise.
43513         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43514
43515 2009-09-30  Ben Pfaff  <blp@gnu.org>
43516
43517         Fix broken build of replacement for Windows tmpfile().
43518         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43519         flags argument added along with the 'mkostemp' module.
43520
43521 2009-09-28  Bruno Haible  <bruno@clisp.org>
43522
43523         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43524         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43525         to 'remove_elt'.
43526         (gl_list_remove): Update.
43527         * lib/gl_list.c (gl_list_remove): Update.
43528         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43529         to 'remove_elt'.
43530         (gl_oset_remove): Update.
43531         * lib/gl_list.c (gl_oset_remove): Update.
43532         Reported by Eric Blake.
43533
43534 2009-09-28  Eric Blake  <ebb9@byu.net>
43535
43536         doc: mention yet more cygwin 1.7 status
43537         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43538         cygwin.
43539         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43540         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43541
43542         argp: fix test failure
43543         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43544         that are not upper-case.  Pass correct range to tolower.
43545
43546 2009-09-27  Jim Meyering  <meyering@redhat.com>
43547
43548         test-yesno: work around sparc-dash here-document infelicity
43549         Without this change, the literal \177 byte in a here document
43550         would make dash 0.5.5.1-3 access uninitialized memory.
43551         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43552         Instead, use a marker, "@", and filter through tr to create the desired
43553         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43554
43555 2009-09-27  Bruno Haible  <bruno@clisp.org>
43556
43557         Disable untested support for new flavours of ACLs on AIX.
43558         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43559         progress.
43560         * lib/set-mode-acl.c (qset_acl): Likewise.
43561
43562 2008-12-07  Bruno Haible  <bruno@clisp.org>
43563
43564         Add support for new flavours of ACLs on AIX. (Untested.)
43565         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43566         (file_has_acl): Add support for newer AIX.
43567         * lib/set-mode-acl.c (qset_acl): Likewise.
43568         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43569         Rainer Tammer <tammer@tammer.net>.
43570
43571 2009-09-26  Eric Blake  <ebb9@byu.net>
43572
43573         argp: fix compilation of getopt
43574         * lib/getopt.in.h (includes): Use different guard than glibc.
43575         Reported by Sergey Poznyakoff.
43576
43577         doc: mention more cygwin 1.7 status
43578         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43579         bug.
43580         * doc/posix-functions/execl.texi (execl): Likewise.
43581         * doc/posix-functions/execle.texi (execle): Likewise.
43582         * doc/posix-functions/execlp.texi (execlp): Likewise.
43583         * doc/posix-functions/execv.texi (execv): Likewise.
43584         * doc/posix-functions/execve.texi (execve): Likewise.
43585         * doc/posix-functions/execvp.texi (execvp): Likewise.
43586         * doc/glibc-functions/canonicalize_file_name.texi
43587         (canonicalize_file_name): Cygwin 1.7 now provides this.
43588         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43589         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43590         on AT_SYMLINK_NOFOLLOW.
43591
43592 2009-09-24  Eric Blake  <ebb9@byu.net>
43593
43594         test-linkat: make test more robust
43595         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43596
43597         getopt: fix inclusion guards for cygwin
43598         * modules/getopt-posix (Depends-on): Add include-next.
43599         (Makefile.am): Substitute more items in replacement header.
43600         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43601         <getopt.h>.
43602         * lib/getopt.in.h (includes): Use split inclusion guard, and
43603         prefer <getopt.h> over include <unistd.h> when one is present.
43604         (option): Also override name of 'struct option'.
43605
43606         same-inode: revert prior change; it is not yet ready
43607         * NEWS: Undo mention of this change.
43608         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43609         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43610         * lib/cycle-check.c (cycle_check): Likewise.
43611         * lib/same.c (same_name): Likewise.
43612         * lib/at-func2.c (at_func2): Likewise.
43613
43614 2009-09-23  Eric Blake  <ebb9@byu.net>
43615
43616         linkat: new module
43617         * modules/linkat: New file.
43618         * lib/at-func2.c (at_func2): Likewise.
43619         * lib/linkat.c (linkat): Likewise.
43620         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43621         * lib/openat-priv.h (at_func2): Add declaration.
43622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43623         * modules/unistd (Makefile.am): Substitute them.
43624         * lib/unistd.in.h (linkat): Declare it.
43625         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43626         * doc/posix-functions/linkat.texi (linkat): Likewise.
43627         * doc/posix-functions/link.texi (link): Tweak wording.
43628         * tests/test-link.c (main): Move guts...
43629         * tests/test-link.h (test_link): ...into new file.
43630         * modules/linkat-tests: New test.
43631         * tests/test-linkat.c: Likewise.
43632         * modules/link-tests (Files): Ship new file.
43633         (Depends-on): Add stdbool.
43634
43635         dirname: add library-safe mdir_name
43636         * lib/dirname.h (mdir_name): New prototype.
43637         * lib/dirname.c (dir_name): Move guts...
43638         (mdir_name): ...to new function that avoids xalloc_die.
43639
43640         fchdir: another mingw fix
43641         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43642         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43643         on mingw (where it has not yet been ported), and make it optional
43644         elsewhere.
43645         (_gl_register_fd): Use it.
43646
43647         same-inode: make SAME_INODE tri-state, to port to mingw
43648         * NEWS: Mention this change.
43649         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43650         st_ino always being 0.
43651         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43652         * lib/cycle-check.c (cycle_check): Likewise.
43653         * lib/same.c (same_name): Likewise.
43654
43655         lstat: avoid mingw compilation error
43656         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43657         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43658         lstat ourselves.
43659         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43660         was adequate.
43661         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43662         the checks for lstat.
43663         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43664
43665         link: fix test failure on Solaris 9
43666         * lib/link.c (rpl_link): Don't assume link will catch bogus
43667         trailing slash on source.
43668
43669         test-symlinkat: enhance test
43670         * tests/test-readlink.c (main): Move guts...
43671         * tests/test-readlink.h (test_readlink): ...into new file.
43672         * tests/test-symlink.c (main): Move guts...
43673         * tests/test-symlink.h (test_symlink): ...into new file.
43674         * tests/test-symlinkat.c (main): Use new files for further
43675         coverage.
43676         (do_symlink, do_readlink): New helper functions.
43677         * modules/symlink-tests (Files): Ship new file.
43678         (Depends-on): Add stdbool.
43679         * modules/readlink-tests (Files): Ship new file.
43680         (Depends-on): Add stdbool.
43681         * modules/symlinkat-tests (Files): Use new files.
43682
43683 2009-09-23  Eric Blake  <ebb9@byu.net>
43684
43685         readlink: document portability issue with symlink length
43686         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43687         systems have bogus st_size on symlinks, and mention the
43688         areadlink-with-size module.
43689         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43690         * doc/posix-functions/readlink.texi (readlink): Mention the
43691         areadlink module, and ERANGE failure.
43692         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43693         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43694
43695         readlink: fix Solaris 9 bug with trailing slash
43696         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43697         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43698         * doc/posix-functions/readlink.texi (readlink): Document this.
43699         * modules/readlink-tests: New test.
43700         * tests/test-readlink.c: Likewise.
43701
43702         readlink: fix cygwin 1.5.x bug with return type
43703         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43704         * lib/unistd.in.h (readlink): Use ssize_t.
43705         * lib/readlink.c (readlink): Likewise.
43706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43707         * modules/unistd (Makefile.am): Substitute it.
43708         * lib/unistd.in.h (readlink): Declare replacement.
43709         * doc/posix-functions/readlink.texi (readlink): Document this.
43710
43711         symlink: use throughout gnulib
43712         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43713         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43714         symlink is not used.
43715         * modules/symlinkat (Depends-on): Add symlink.
43716         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43717         * modules/canonicalize-tests (Depends-on): Likewise.
43718         * modules/lstat-tests (Depends-on): Likewise.
43719         * modules/openat-tests (Depends-on): Likewise.
43720         * modules/remove-tests (Depends-on): Likewise.
43721         * modules/rmdir-tests (Depends-on): Likewise.
43722         * modules/unlink-tests (Depends-on): Likewise.
43723         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43724         * tests/test-canonicalize.c (symlink): Likewise.
43725         * tests/test-fstatat.c (symlink): Likewise.
43726         * tests/test-lstat.c (symlink): Likewise.
43727         * tests/test-remove.c (symlink): Likewise.
43728         * tests/test-rmdir.c (symlink): Likewise.
43729         * tests/test-unlink.c (symlink): Likewise.
43730         * tests/test-unlinkat.c (symlink): Likewise.
43731
43732         symlink: new module, for Solaris 9 bug
43733         * modules/symlink: New file.
43734         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43735         * lib/symlink.c: Likewise.
43736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43737         * modules/unistd (Makefile.am): Substitute them.
43738         * lib/unistd.in.h (symlink): Declare replacement.
43739         * MODULES.html.sh (File system functions): Mention it.
43740         * doc/posix-functions/symlink.texi (symlink): Likewise.
43741         * modules/symlink-tests: New test.
43742         * tests/test-symlink.c: Likewise.
43743
43744 2009-09-23  Bruno Haible  <bruno@clisp.org>
43745
43746         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43747         when needed.
43748         Test case: gnulib-tool --import --with-tests atexit inttypes.
43749         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43750
43751 2009-09-23  Bruno Haible  <bruno@clisp.org>
43752
43753         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43754         subcommand, not in a subshell.
43755
43756 2009-09-22  Eric Blake  <ebb9@byu.net>
43757
43758         unistd: sort replacement declarations
43759         * lib/unistd.in.h: Sort declarations.
43760
43761         open, openat: minor optimization
43762         * lib/open.c (open): If open succeeded, len is non-zero.
43763         * lib/openat.c (rpl_openat): Likewise.
43764
43765         link-follow: ensure correct result
43766         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43767         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43768         distinguish between possible failures.
43769
43770 2009-09-21  Eric Blake  <ebb9@byu.net>
43771
43772         fts: avoid compiler warning
43773         * lib/fts.c (dirent_inode_sort_may_be_useful)
43774         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43775
43776 2009-09-19  Bruno Haible  <bruno@clisp.org>
43777
43778         * lib/progreloc.c (canonicalize_file_name): New declaration.
43779
43780 2009-09-19  Eric Blake  <ebb9@byu.net>
43781
43782         link: fix quoting
43783         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43784
43785         openat: fix openat bugs on Solaris 9
43786         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43787         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43788         * modules/openat (Depends-on): Add open.
43789         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43790         * modules/fcntl-h (Makefile.am): Substitute it.
43791         * lib/fcntl.in.h (openat): Declare replacement.
43792         * doc/posix-functions/openat.texi (openat): Document this.
43793
43794         openat: move fstatat and unlinkat into correct files
43795         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43796         compiled.
43797         * lib/openat.c (fstatat, unlinkat): Move...
43798         * lib/fstatat.c (fstatat): ...into correct files.
43799         * lib/unlinkat.c (unlinkat): Likewise.
43800
43801         openat: fix unlinkat bugs on Solaris 9
43802         * lib/unlinkat.c (unlinkat): New file.
43803         * modules/openat (Depends-on): Add unlink.
43804         (Files): Distribute it.
43805         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43806         trailing slash behavior is broken.
43807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43808         * modules/unistd (Makefile.am): Substitute it.
43809         * lib/unistd.in.h (unlinkat): Declare replacement.
43810         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43811
43812         openat: fix fstatat bugs on Solaris 9
43813         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43814         stat.
43815         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43816
43817         test-unlinkat: enhance test, to expose Solaris 9 bug
43818         * tests/test-unlink.c (main): Factor guts...
43819         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43820         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43821         * tests/test-rmdir.c (main): Adjust caller.
43822         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43823         (unlinker): New helper function.
43824         (rmdirat): Enhance check.
43825         * modules/rmdir-tests (Depends-on): Add stdbool.
43826         * modules/unlink-tests (Depends-on): Likewise.
43827         (Files): Add test-unlink.h.
43828         * modules/openat-tests (Files): Likewise.
43829         (Depends-on): Add unlinkdir.
43830
43831         test-fstatat: new test, to expose Solaris 9 bugs
43832         * tests/test-stat.c (main): Factor guts...
43833         * tests/test-stat.h (test_stat_func): ...into new file.
43834         * tests/test-lstat.c (main): Factor guts...
43835         * tests/test-lstat.h (test_lstat_func): ...into new file.
43836         * tests/test-fstatat.c: New file.
43837         * modules/stat-tests (Files): Add test-stat.h.
43838         * modules/lstat-tests (Files): Add test-lstat.h.
43839         (Depends-on): Add stdbool.
43840         * modules/openat-tests (Depends-on): Add pathmax.
43841         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43842         (Makefile.am): Run new test.
43843
43844         remove: new module, for mingw and Solaris 9 bugs
43845         * modules/remove: New file.
43846         * lib/remove.c: Likewise.
43847         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43848         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43849         * modules/stdio (Makefile.am): Use them.
43850         * lib/stdio.in.h (remove): Declare replacement.
43851         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43852         * doc/posix-functions/remove.texi (remove): Likewise.
43853         * modules/remove-tests: New test.
43854         * tests/test-remove.c: Likewise.
43855
43856         unlink: new module, for Solaris 9 bug
43857         * modules/unlink: New file.
43858         * lib/unlink.c: Likewise.
43859         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43860         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43861         * modules/unistd (Makefile.am): Use them.
43862         * lib/unistd.in.h (stat): Declare replacement.
43863         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43864         * doc/posix-functions/unlink.texi (unlink): Likewise.
43865         * modules/unlink-tests: New test.
43866         * tests/test-unlink.c: Likewise.
43867
43868         lstat: fix Solaris 9 bug
43869         * lib/lstat.c (lstat): Also check for trailing slash on
43870         non-symlink, non-directories.  Use stat module to simplify logic.
43871         * doc/posix-functions/lstat.texi (lstat): Document it.
43872         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43873         (configure.ac): Check for symlink.
43874         * tests/test-lstat.c (main): Add more tests.
43875
43876         stat: add as dependency to other modules
43877         * modules/chown (Depends-on): Add stat.
43878         * modules/euidaccess (Depends-on): Likewise.
43879         * modules/fchdir (Depends-on): Likewise.
43880         * modules/isdir (Depends-on): Likewise.
43881         * modules/link (Depends-on): Likewise.
43882         * modules/lstat (Depends-on): Likewise.
43883         * modules/mkdir-p (Depends-on): Likewise.
43884         * modules/modechange (Depends-on): Likewise.
43885         * modules/open (Depends-on): Likewise.
43886         * modules/readlink (Depends-on): Likewise.
43887         * modules/same (Depends-on): Likewise.
43888
43889         stat: fix Solaris 9 bug
43890         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43891         slash.
43892         * lib/stat.c (rpl_stat): Work around it.
43893         * doc/posix-functions/stat.texi (stat): Update documentation.
43894
43895         stat: new module, for mingw bug
43896         * modules/stat: New file.
43897         * lib/stat.c: Likewise.
43898         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43899         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43900         * modules/sys_stat (Makefile.am): Use them.
43901         * lib/sys_stat.in.h (stat): Declare replacement.
43902         * lib/openat.c (fstatat): Deal with lstat and stat being function
43903         macros.
43904         * modules/openat (Depends-on): Add inline.
43905         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43906         * doc/posix-functions/stat.texi (stat): Likewise.
43907         * modules/stat-tests: New test.
43908         * tests/test-stat.c: Likewise.
43909
43910 2009-09-19  Jim Meyering  <meyering@redhat.com>
43911
43912         syntax-check: detect unnecessary inclusion of canonicalize.h
43913         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43914
43915 2009-09-19  Eric Blake  <ebb9@byu.net>
43916
43917         canonicalize-lgpl: adjust clients to use correct header
43918         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43919         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43920         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43921         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43922         * lib/progreloc.c (includes): Likewise.
43923
43924 2009-09-19  Jim Meyering  <meyering@redhat.com>
43925
43926         test-posixtm.c: correct a comment
43927         * tests/test-posixtm.c: Correct first-line comment.
43928         Spotted by Eric Blake.
43929
43930 2009-09-16  Jim Meyering  <meyering@redhat.com>
43931
43932         posixtm-tests: make T const-correct; add a test case
43933         * tests/test-posixtm.c (T): Declare const.
43934         Add a test for -(2^31+1).
43935         Remove useless can-succeed-only-in-2002 test.
43936
43937         posixtm-tests: adjust the sole failing test
43938         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43939         expected output matches what mktime now produces.  Cross-checked via
43940         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43941
43942         posixtm: move #ifdef'd tests into a new module
43943         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43944         * tests/test-posixtm.c: ... this new file.
43945         * modules/posixtm-tests: New module.
43946
43947 2009-09-19  Eric Blake  <ebb9@byu.net>
43948
43949         openat: simplify use of at-func.c
43950         * lib/at-func.c (includes): Include prerequisites here, to
43951         simplify requirements on client files.
43952         * lib/openat-priv.h: Add double-inclusion guard.
43953         * lib/faccessat.c (includes): Simplify.
43954         * lib/fchmodat.c (includes): Likewise.
43955         * lib/fchownat.c (includes): Likewise.
43956         * lib/mkdirat.c (includes): Likewise.
43957         * lib/mkfifoat.c (includes): Likewise.
43958         * lib/symlinkat.c (includes): Likewise.
43959
43960         openat: allow return of fd 0
43961         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43962         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43963         unistd-safer.
43964         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43965         <fcntl.h>; this module does not leak fds.
43966         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43967         must be allowed to return 0, leaving openat_safer to add the
43968         safety.
43969         (openat_permissive): Avoid writing to just-opened fd 2 if
43970         restoring the current directory fails.
43971         * lib/openat-die.c (openat_restore_fail): Add comment.
43972         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43973         (save_cwd): Guarantee safe fd, but without use of open_safer.
43974         * tests/test-openat.c: New test.
43975         * modules/openat-tests (Files, Makefile.am): Distribute and build
43976         new file.
43977
43978         relocatable-prog-wrapper: fix build
43979         * modules/relocatable-prog-wrapper (Files): Update name of
43980         canonicalize m4 file, broken on 2009-09-17.
43981         Reported by emad hajjar <aleppos@hotmail.com>.
43982
43983 2009-09-19  Bruno Haible  <bruno@clisp.org>
43984
43985         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43986         * lib/safe-alloc.c: Likewise.
43987         Reported by Ian Beckwith <ianb@erislabs.net>.
43988
43989 2009-09-18  Bruno Haible  <bruno@clisp.org>
43990
43991         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43992         Reported by <erobles@sensacd.com.mx>.
43993
43994 2009-09-17  Eric Blake  <ebb9@byu.net>
43995
43996         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43997         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43998         slashes when checking if last component is missing.
43999         * tests/test-canonicalize.c (main): Test this.
44000
44001         canonicalize, canonicalize-lgpl: honor // if distinct from /
44002         * modules/canonicalize (Files): Add double-slash-root.m4.
44003         * modules/canonicalize-lgpl (Files): Likewise.
44004         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44005         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44006         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44007         fallback definition.
44008         (canonicalize_filename_mode): Use it to protect //.
44009         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44010         (__realpath): Likewise.
44011         * tests/test-canonicalize.c (main): Test this.
44012         * tests/test-canonicalize-lgpl.c (main): Likewise.
44013         * modules/canonicalize-tests (Depends-on): Add same-inode.
44014         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44015
44016         canonicalize-lgpl: fix glibc bug with trailing slash
44017         * m4/canonicalize-lgpl.m4: Move contents...
44018         * m4/canonicalize.m4: ...here.
44019         (gl_CANONICALIZE_LGPL): Factor realpath check...
44020         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44021         glibc 2.3.5 bug, fixed 2005-04-27.
44022         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44023         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44024         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44025         * modules/canonicalize-lgpl (Files): Manage file rename.
44026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44027         * modules/stdlib (Makefile.am): Substitute witness.
44028         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44029         is needed.
44030         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44031         replacement is required.
44032         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44033         * doc/glibc-functions/canonicalize_file_name.texi
44034         (canonicalize_file_name): Document this.
44035         * doc/posix-functions/realpath.texi (realpath): Likewise.
44036
44037         canonicalize-lgpl: reject non-directory with trailing slash
44038         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44039         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44040         catches failures in glibc 2.3.5.
44041         * tests/test-canonicalize.c (main): Likewise.
44042
44043         canonicalize-lgpl: use native realpath if it works
44044         * lib/canonicalize-lgpl.c (realpath): Guard with
44045         FUNC_REALPATH_WORKS.
44046         * lib/stdlib.in.h (realpath): Make declaration optional based on
44047         HAVE_REALPATH.
44048         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44049         native realpath works.
44050         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44051         * modules/stdlib (Makefile.am): Substitute witness.
44052
44053         canonicalize, canonicalize-lgpl: use <stdlib.h>
44054         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44055         (Include): Mention <stdlib.h>.
44056         (configure.ac): Mention functions we provide.
44057         * modules/canonicalize (configure.ac): Likewise.
44058         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44059         realpath if canonicalize_file_name is missing.
44060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44061         * modules/stdlib (Makefile.am): Substitute witnesses.
44062         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44063         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44064         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44065         * NEWS: Document this.
44066         * doc/glibc-functions/canonicalize_file_name.texi
44067         (canonicalize_file_name): Likewise.
44068         * doc/posix-functions/realpath.texi (realpath): Likewise.
44069         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44070
44071         test-canonicalize: consolidate into single C program
44072         * tests/test-canonicalize.sh: Delete; move setup into...
44073         * tests/test-canonicalize.c (main): ...the program, making it
44074         easier to run in debugger.  Add some tests.
44075         * modules/canonicalize-tests (Files): Remove unused file.
44076         (Depends-on): Add progname.
44077         (configure.ac, Makefile.am): Simplify.
44078
44079         test-canonicalize-lgpl: consolidate into single C program
44080         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44081         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44082         easier to run in debugger.  Add some tests.
44083         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44084         (configure.ac, Makefile.am): Simplify.
44085
44086         canonicalize: avoid resolvepath
44087         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44088         unnecessary checks.
44089         * lib/canonicalize.c (includes): Simplify.
44090         (canonicalize_file_name): Drop resolvepath implementation.
44091         * modules/canonicalize (Depends-on): Drop filenamecat.
44092
44093         canonicalize: don't lose errno
44094         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44095         over calls to free.
44096
44097         canonicalize: simplify errno handling
44098         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44099         assignment.
44100
44101         canonicalize, canonicalize-lgpl: update module dependencies
44102         * modules/canonicalize (Depends-on): Add extensions, lstat,
44103         pathmax, stdlib.
44104         (Files): Drop pathmax.h.
44105         (configure.ac): Adjust macro name.
44106         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44107         lstat, stdlib, sys_stat.
44108         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44109         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44110         extensions.
44111         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44112         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44113         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44114         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44115         declaration, if available.
44116         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44117         we can rely on the readlink module.
44118         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44119         (includes): Use <unistd.h> unconditionally.
44120
44121 2009-09-17  Eric Blake  <ebb9@byu.net>
44122
44123         maint: make Include sections of modules consistent
44124         * modules/alloca: Use only header name; no need to list #include.
44125         * modules/alloca-opt: Likewise.
44126         * modules/arpa_inet: Likewise.
44127         * modules/canon-host: Likewise.
44128         * modules/configmake: Likewise.
44129         * modules/dirent: Likewise.
44130         * modules/eealloc: Likewise.
44131         * modules/environ: Likewise.
44132         * modules/fchdir: Likewise.
44133         * modules/fcntl: Likewise.
44134         * modules/fcntl-h: Likewise.
44135         * modules/gethrxtime: Likewise.
44136         * modules/gettime: Likewise.
44137         * modules/ignore-value: Likewise.
44138         * modules/inet_ntop: Likewise.
44139         * modules/inet_pton: Likewise.
44140         * modules/inttypes: Likewise.
44141         * modules/isnand-nolibm: Likewise.
44142         * modules/isnanf-nolibm: Likewise.
44143         * modules/mbchar: Likewise.
44144         * modules/mbfile: Likewise.
44145         * modules/mbiter: Likewise.
44146         * modules/mbuiter: Likewise.
44147         * modules/netdb: Likewise.
44148         * modules/netinet_in: Likewise.
44149         * modules/nproc: Likewise.
44150         * modules/pagealign_alloc: Likewise.
44151         * modules/poll: Likewise.
44152         * modules/printf-frexp: Likewise.
44153         * modules/pthread: Likewise.
44154         * modules/putenv: Likewise.
44155         * modules/random_r: Likewise.
44156         * modules/relocatable-prog: Likewise.
44157         * modules/search: Likewise.
44158         * modules/select: Likewise.
44159         * modules/selinux-h: Likewise.
44160         * modules/settime: Likewise.
44161         * modules/signal: Likewise.
44162         * modules/size_max: Likewise.
44163         * modules/socklen: Likewise.
44164         * modules/ssize_t: Likewise.
44165         * modules/stdarg: Likewise.
44166         * modules/stdbool: Likewise.
44167         * modules/stddef: Likewise.
44168         * modules/stdint: Likewise.
44169         * modules/stdio: Likewise.
44170         * modules/stdlib: Likewise.
44171         * modules/string: Likewise.
44172         * modules/strings: Likewise.
44173         * modules/sys_file: Likewise.
44174         * modules/sys_ioctl: Likewise.
44175         * modules/sys_select: Likewise.
44176         * modules/sys_socket: Likewise.
44177         * modules/sys_stat: Likewise.
44178         * modules/sys_time: Likewise.
44179         * modules/sys_times: Likewise.
44180         * modules/sys_utsname: Likewise.
44181         * modules/sys_wait: Likewise.
44182         * modules/sysexits: Likewise.
44183         * modules/time: Likewise.
44184         * modules/times: Likewise.
44185         * modules/tmpfile: Likewise.
44186         * modules/trim: Likewise.
44187         * modules/unistd: Likewise.
44188         * modules/wchar: Likewise.
44189         * modules/wctype: Likewise.
44190
44191 2009-09-17  Bruno Haible  <bruno@clisp.org>
44192
44193         Make getdate.y compile on QNX and NetBSD 5 / i386.
44194         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44195         TIME_T_FITS_IN_LONG_INT.
44196         * lib/getdate.y (long_time_t): New type.
44197         (relative_time): Change type of 'seconds' field to long_time_t.
44198         (get_date): Update types of local variables. Check against overflow
44199         during conversion from long_time_t to time_t.
44200         Reported by Matt Kraai <kraai@ftbfs.org>
44201         and Hasso Tepper <hasso@netbsd.org>.
44202
44203 2009-09-17  Bruno Haible  <bruno@clisp.org>
44204
44205         * modules/COPYING: Update copyright years.
44206         * modules/README: Likeiwse.
44207         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44208         Reported by Ian Beckwith <ianb@erislabs.net>.
44209
44210 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44211
44212         * users.txt: Update references for gnuit package.
44213
44214 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44215
44216         * m4/getdelim.m4: Fix typo in copyright line.
44217
44218 2009-09-17  Bruno Haible  <bruno@clisp.org>
44219
44220         * lib/atoll.c: Use the standard header with GPL copyright.
44221         * lib/argz.in.h: Likewise.
44222         * lib/glob.c: Likewise.
44223         * lib/glob-libc.h: Likewise.
44224         * lib/random_r.c: Likewise.
44225         * lib/siglist.h: Likewise.
44226         * lib/strsignal.c: Likewise.
44227         Reported by Ian Beckwith <ianb@erislabs.net>.
44228
44229 2009-09-17  Eric Blake  <ebb9@byu.net>
44230
44231         rmdir: ensure correct dependency order
44232         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44233
44234 2009-09-17  Bruno Haible  <bruno@clisp.org>
44235
44236         Disable assertion that fails on NetBSD 5 / i386.
44237         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44238         Reported by Sam Steingold <sds@gnu.org>
44239         and Hasso Tepper <hasso@netbsd.org>.
44240
44241 2009-09-16  Eric Blake  <ebb9@byu.net>
44242
44243         unlinkdir: port to mingw
44244         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44245         on which no one can unlink a directory.
44246
44247         stdlib: sort witness names
44248         * modules/stdlib (Makefile.am): Sort replacements.
44249         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44250         * lib/stdlib.in.h: Likewise.
44251
44252         parse-duration-tests: avoid link failure
44253         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44254         LIBINTL.
44255         Reported by Tom G. Christensen.
44256
44257         openat-tests: ensure unlinkat behaves like rmdir
44258         * tests/test-rmdir.c (main): Factor guts...
44259         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44260         * modules/rmdir-tests (Files): Ship new file.
44261         * modules/openat-tests: New test.
44262         * tests/test-unlinkat.c: Likewise.
44263
44264         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44265         * modules/rmdir-errno (Status, Notice): Now obsolete.
44266
44267         rmdir: work around cygwin 1.5.x and mingw bugs
44268         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44269         * lib/rmdir.c (rmdir): Work around it.
44270         * modules/rmdir (Status, Notice): No longer obsolete.
44271         (Files): Add dos.m4.
44272         (Depends-on): Add unistd.
44273         (configure.ac): Set witnesses.
44274         (License): Relax to LGPLv2+.
44275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44276         * modules/unistd (Makefile.am): Substitute witnesses.
44277         * lib/unistd.in.h (rmdir): Declare replacement.
44278         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44279         * modules/rmdir-tests: New tests.
44280         * tests/test-rmdir.c: Likewise.
44281
44282 2009-09-15  Eric Blake  <ebb9@byu.net>
44283
44284         fchdir: improve use of replacement functions
44285         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44286         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44287         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44288         REPLACE_CLOSEDIR.
44289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44290         * modules/sys_stat (Makefile.am): Substitute correct witness.
44291         * modules/dirent (Makefile.am): Likewise.
44292         * modules/unistd (Makefile.am): Likewise.
44293         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44294         * lib/unistd.in.h (dup): Likewise.
44295         * lib/sys_stat.in.h (fstat): Likewise.
44296
44297         maint: ignore gnulib-tool temp files
44298         * .gitignore: Ignore files created during gnulib-tool --test.
44299
44300 2009-09-13  Jim Meyering  <meyering@redhat.com>
44301
44302         posixtm: don't reject a time that specify "60" as the number of seconds
44303         * lib/posixtm.c (posixtime): The code to reject invalid dates
44304         would also reject a time specified with the .60 suffix.
44305         But POSIX allows that, in order to accommodate leap seconds.
44306         So don't reject it.
44307         (main): Adjust tests accordingly.
44308         * modules/posixtm (Depends-on): Add stpcpy.
44309
44310 2009-09-11  Jim Meyering  <meyering@redhat.com>
44311
44312         announce-gen: include [$release_type] in emitted Subject:
44313         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44314         e.g., [stable] in the emitted Subject: line.
44315
44316 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44317
44318         Remove obsolete macros from several modules.
44319         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44320         obsolete Autoconf macros with their modern counterparts.
44321         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44322         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44324         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44325         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44326         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44327         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44328         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44329         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44330         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44331         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44332         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44333         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44334         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44335         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44336         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44337         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44338         * m4/time_r.m4 (gl_TIME_R): Likewise.
44339         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44340         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44341         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44342
44343         Fix copyright header in build-aux scripts.
44344         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44345         recommendation.
44346         * build-aux/ncftpput-ftp: Likewise.
44347         * build-aux/update-copyright: Likewise.
44348
44349 2009-09-09  Eric Blake  <ebb9@byu.net>
44350
44351         test-link: allow Linux choice of errno
44352         * tests/test-link.c (main): Relax test for alternate error.
44353
44354         strndup: fix improper m4 caching
44355         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44356         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44357         (gl_PREREQ_STRNDUP): Delete.
44358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44359         * modules/string (Makefile.am): Substitute it.
44360         * lib/string.in.h (strndup): Modernize prototype.
44361
44362         getcwd: port to mingw
44363         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44364         different from the POSIX assumptions made throughout the getcwd
44365         module; fortunately, the mingw getcwd does not need replacement.
44366         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44367         * modules/getcwd-tests: New test.
44368         * tests/test-getcwd.c: Likewise.
44369
44370         link: fix platform bugs
44371         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44372         * lib/link.c (link): Work around them.  Fix related mingw bug.
44373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44374         * modules/unistd (Makefile.am): Substitute it.
44375         * lib/unistd.in.h (link): Declare replacement.
44376         * doc/posix-functions/link.texi (link): Document this.
44377         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44378
44379         test-link: consolidate into single C program, test more cases
44380         * tests/test-link.sh: Delete.
44381         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44382         at least Cygwin and Solaris.
44383         * modules/link-tests (Files): Remove unused file.
44384         (Depends-on): Add errno, sys_stat.
44385         (Makefile.am): Simplify.
44386
44387 2009-09-08  Bruno Haible  <bruno@clisp.org>
44388
44389         Work around towlower, towupper bug on mingw.
44390         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44391         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44392         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44393         * doc/posix-functions/towupper.texi: Likewise.
44394         Reported by Eric Blake.
44395
44396 2009-09-08  Jim Meyering  <meyering@redhat.com>
44397
44398         build: don't try to run autoheader if we don't use it
44399         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44400         is not used in configure.ac.
44401
44402 2009-09-08  Eric Blake  <ebb9@byu.net>
44403
44404         euidaccess: fix compilation error
44405         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44406
44407         rawmemchr: relax license
44408         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44409         okay.
44410         Reported by Jim Meyering.
44411
44412         mkfifoat: new module
44413         * modules/mkfifoat: New file.
44414         * lib/mkfifoat.c: Likewise.
44415         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44416         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44417         * modules/sys_stat (Makefile.am): Use them.
44418         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44419         * MODULES.html.sh (File system functions): Mention module.
44420         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44421         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44422         * modules/mkfifoat-tests: New test.
44423         * tests/test-mkfifoat.c: Likewise.
44424
44425         strchrnul: relax license
44426         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44427         okay.
44428         Reported by Jim Meyering.
44429
44430 2009-09-08  Eric Blake  <ebb9@byu.net>
44431
44432         fstatat: fix compilation on Solaris
44433         * lib/fstatat.c (includes): Add fcntl.h.
44434         Reported by Pádraig Brady.
44435
44436 2009-09-07  Eric Blake  <ebb9@byu.net>
44437
44438         rename: modernize replacement
44439         * modules/rename (Depends-on): Add stdio.
44440         (configure.ac): Declare witness.
44441         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44442         stdio take care of replacement.
44443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44444         * modules/stdio (Makefile.am): Substitute them.
44445         * lib/stdio.in.h (rename): Declare replacement.
44446         * lib/rename.c (includes): Allow cross-compilation to non-windows
44447         machines.
44448         * doc/posix-functions/rename.texi (rename): Improve
44449         documentation.
44450
44451         stdio: sort witness names
44452         * modules/stdio (Makefile.am): Sort replacements.
44453         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44454         * lib/stdio.in.h: Likewise.
44455
44456         getcwd: minor cleanups
44457         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44458         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44459
44460         openat: provide more convenience names
44461         * modules/faccessat (configure.ac): Add C witness.
44462         * lib/unistd.in.h (readlinkat): Fix typo.
44463         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44464         convenience wrappers.
44465         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44466         wrappers in syntax checks.
44467
44468 2009-09-06  Eric Blake  <ebb9@byu.net>
44469
44470         doc: fix comments in recent patches
44471         * lib/faccessat.c: Mention correct function.
44472         * lib/fchmodat.c: Likewise.
44473         * lib/fchownat.c: Likewise.
44474         * lib/symlinkat.c: Likewise.
44475         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44476         constants.
44477
44478         faccessat, symlinkat: continue cleanup of previous patch
44479         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44480         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44481         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44483         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44484         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44485         set.
44486
44487 2009-09-06  Bruno Haible  <bruno@clisp.org>
44488
44489         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44490         (fstatat): Declare if GNULIB_FSTATAT is set.
44491         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44492         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44493         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44494         * modules/fcntl-h (Files): Remove m4/openat.m4.
44495         * modules/sys_stat (Files): Remove m4/openat.m4.
44496         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44497         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44498         * modules/unistd (Files): Remove m4/openat.m4.
44499         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44500         GNULIB_OPENAT.
44501         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44502         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44504         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44505         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44506         gl_OPENAT_DEFAULTS.
44507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44508         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44509         Don't require gl_OPENAT_DEFAULTS.
44510         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44511         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44512         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44513         (gl_OPENAT_DEFAULTS): Remove macro.
44514
44515 2009-09-06  Bruno Haible  <bruno@clisp.org>
44516
44517         * modules/openat (configure.ac): Remove unneeded witness.
44518
44519 2009-09-06  Bruno Haible  <bruno@clisp.org>
44520
44521         Set errno to ENOSYS when a function is entirely unsupported.
44522         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44523         EOPNOTSUPP.
44524         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44525         * modules/chown (Depends-on): Remove errno.
44526
44527 2009-09-06  Bruno Haible  <bruno@clisp.org>
44528
44529         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44530
44531 2009-09-06  Bruno Haible  <bruno@clisp.org>
44532
44533         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44534
44535 2009-09-06  Ben Pfaff  <blp@gnu.org>
44536             Bruno Haible  <bruno@clisp.org>
44537
44538         Work around a glibc bug in strtok_r.
44539         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44540         Undefine if UNDEFINE_STRTOK_R is set.
44541         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44543         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44544         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44545         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44546         UNDEFINE_STRTOK_R.
44547         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44548
44549 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44550
44551         exclude: minor fix
44552         * lib/exclude.c: Include wctype.h
44553
44554 2009-09-06  Akim Demaille  <demaille@gostai.com>
44555
44556         bootstrap: improve error message
44557         * build-aux/bootstrap (find_tool): Upon failure, report the list
44558         of candidates.
44559         Honor the initial value of the envvar.
44560
44561 2009-09-05  Eric Blake  <ebb9@byu.net>
44562
44563         symlinkat: new module
44564         * modules/symlinkat: New file.
44565         * lib/symlinkat.c: Likewise.
44566         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44568         * modules/unistd (Makefile.am): Use them.
44569         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44570         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44571         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44572         * MODULES.html.sh (File system functions): Mention module.
44573         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44574         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44575         * modules/symlinkat-tests: New test.
44576         * tests/test-symlinkat.c: Likewise.
44577
44578         test-openat-safer: add more checks
44579         * tests/test-openat-safer.c (main): Check more code paths.
44580
44581 2009-09-05  Jim Meyering  <meyering@redhat.com>
44582
44583         syntax-check: detect unnecessary inclusion of openat.h
44584         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44585
44586 2009-09-05  Bruno Haible  <bruno@clisp.org>
44587
44588         Support towlower, towupper.
44589         * doc/posix-functions/towlower.texi: Mention module wctype.
44590         * doc/posix-functions/towupper.texi: Likewise.
44591         * lib/wctype.in.h (towlower, towupper): New functions.
44592         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44593         (ASSERT): New macro.
44594         (e): New variable.
44595         (main): Test also towlower, towupper. Test WEOF argument.
44596         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44597
44598 2009-09-05  Bruno Haible  <bruno@clisp.org>
44599
44600         Fix conversion behaviour when the input is invalid.
44601         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44602         mark occurring in first pass of indirect conversion.
44603         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44604         input.
44605         Found by clang's static analyzer.
44606
44607 2009-09-05  Bruno Haible  <bruno@clisp.org>
44608
44609         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44610         where direct conversion is possible.
44611
44612 2009-09-04  Eric Blake  <ebb9@byu.net>
44613
44614         openat: fail with ENOENT on empty name
44615         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44616         buffer.
44617
44618         link-follow: fix logic bug in prior patch
44619         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44620         reversed sense of yes and no in prior patch.  Avoid confusing
44621         compilation failure with desired semantics.
44622
44623         link-follow: accommodate mingw and cross-compilation
44624         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44625         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44626         cross-compilation results to -1, to make linkat easier to
44627         implement when cross-compiling.  Trivially support mingw.
44628         * modules/link-follow (configure.ac): Call new name.
44629         * NEWS: Mention this.
44630
44631 2009-09-03  Eric Blake  <ebb9@byu.net>
44632
44633         faccessat: compile replacement
44634         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44635         needed.
44636
44637         fts: fix compilation error
44638         * lib/fts.c (includes): Re-add "openat.h", for
44639         openat_needs_fchdir.
44640
44641         faccessat: new module
44642         * modules/faccessat: New file.
44643         * lib/faccessat.c: Likewise.
44644         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44646         * modules/unistd (Makefile.am): Use it.
44647         * lib/unistd.in.h (faccessat): Declare it.
44648         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44649         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44650         * MODULES.html.sh (File system functions): Mention it.
44651         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44652         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44653
44654         euidaccess: prefer POSIX over non-standard implementation
44655         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44656         * lib/euidaccess.c (euidaccess): Use it if available.
44657
44658         openat: make template easier to use
44659         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44660         AT_FUNC_F2 to be undefined.
44661         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44662         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44663         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44664         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44665         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44666         Likewise.
44667         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44668         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44669         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44670         Likewise.
44671
44672         openat: declare in POSIX headers
44673         * NEWS: Mention this.
44674         * modules/openat (configure.ac): Declare witnesses.
44675         (Depends-on): Add fcntl-h, sys_stat, unistd.
44676         (Include): Mention correct headers.
44677         * modules/fcntl-h (Depends-on): Add link-warning.
44678         (Files): Add openat.m4.
44679         (Makefile.am): Substitute witnesses.
44680         * modules/sys_stat (Files, Makefile.am): Likewise.
44681         * modules/unistd (Files, Makefile.am): Likewise.
44682         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44683         (gl_OPENAT_DEFAULTS): New macro.
44684         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44686         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44687         (SYS_STAT_H): Remove unused variable.
44688         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44689         * lib/fcntl--.h (includes): Remove unneeded header.
44690         * lib/openat-safer.c (includes): Likewise.
44691         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44692         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44693         appropriate headers.
44694         (__OPENAT_PREFIX): Delete.
44695         * lib/fcntl.in.h (openat): Provide declaration.
44696         (AT_FDCWD): Fix Solaris bug.
44697         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44698         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44699         * lib/fchmodat.c (includes):  Adjust to find declaration.
44700         * lib/fchownat.c (includes): Likewise.
44701         * lib/mkdirat.c (includes): Likewise.
44702         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44703         still visible.
44704
44705 2009-09-02  Eric Blake  <ebb9@byu.net>
44706
44707         errno: use consistently
44708         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44709         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44710         * lib/canonicalize.c (ELOOP): Likewise.
44711         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44712         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44713         * lib/lchown.c (EOPNOTSUPP): Likewise.
44714         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44715         * lib/savewd.c (ESTALE): Likewise.
44716         * lib/settime.c (ENOSYS): Likewise.
44717         * lib/utimens.c (ENOSYS): Likewise.
44718         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44719         * lib/chdir-safer.c (ELOOP): Likewise.
44720         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44721         * modules/c-stack (Depends-on): Add errno.
44722         * modules/canonicalize (Depends-on): Likewise.
44723         * modules/chdir-safer (Depends-on): Likewise.
44724         * modules/fdopendir (Depends-on): Likewise.
44725         * modules/inet_ntop (Depends-on): Likewise.
44726         * modules/inet_pton (Depends-on): Likewise.
44727         * modules/lchown (Depends-on): Likewise.
44728         * modules/openat (Depends-on): Likewise.
44729         * modules/savewd (Depends-on): Likewise.
44730         * modules/settime (Depends-on): Likewise.
44731         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44732
44733         fts: avoid leaking fds
44734         * modules/fts (Depends-on): Add cloexec.
44735         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44736         flag.
44737
44738         fts: make directory fds more robust
44739         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44740         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44741
44742         backupfile, chdir-long, fts, savedir: make safer
44743         * lib/backupfile.c (includes): Use "dirent--.h", since
44744         numbered_backup can write to stderr during readdir.
44745         * lib/savedir.c (includes): Likewise.
44746         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44747         emulation can write to stderr on failure.
44748         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44749         * lib/getcwd.c: Document why opendir_safer is unused.
44750         * lib/glob.c: Likewise.
44751         * lib/scandir.c: Likewise.
44752         * lib/openat-proc.c: Likewise, for open_safer.
44753         * modules/backupfile (Depends-on): Add dirent-safer.
44754         * modules/savedir (Depends-on): Likewise.
44755         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44756         * modules/chdir-long (Depends-on): Add openat-safer.
44757
44758         openat-safer: new module
44759         * modules/openat-safer: New file.
44760         * lib/openat-safer.c: Likewise.
44761         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44762         * lib/fcntl-safer.h (openat_safer): Declare.
44763         * lib/fcntl--.h (openat): Override.
44764         * MODULES.html.sh (File descriptor based I/O): Mention it.
44765         * lib/openat.h: Add double-inclusion guards.
44766         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44767         "fcntl--.h", so we can implement openat.
44768         * modules/openat-safer-tests: New test.
44769         * tests/test-openat-safer.c: New file.
44770
44771         dirent-safer: new module
44772         * modules/dirent-safer: New file.
44773         * lib/dirent--.h: Likewise.
44774         * lib/dirent-safer.h: Likewise.
44775         * lib/opendir-safer.c: Likewise.
44776         * m4/dirent-safer.m4: Likewise.
44777         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44778         * modules/dirent-safer-tests: New test.
44779         * tests/test-dirent-safer.c: New file.
44780         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44781
44782         fdopendir: optimize on mingw
44783         * lib/unistd.in.h (_gl_directory_name): New prototype.
44784         * lib/fchdir.c (_gl_directory_name): Implement it.
44785         (fchdir): Use it to simplify implementation.
44786         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44787         fchdir, when available, to avoid calling [f]chdir().
44788
44789         fdopendir: split into its own module
44790         * lib/openat.c (fdopendir): Move...
44791         * lib/fdopendir.c: ...into new file.
44792         * modules/fdopendir: New module.
44793         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44794         * modules/openat (Depends-on): Add fdopendir.
44795         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44796         fdopendir here.
44797         * modules/savedir (Depends-on): Only need fdopendir, not full
44798         openat.
44799         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44800         * lib/openat.h (fdopendir): Drop prototype.
44801         * lib/dirent.in.h (fdopendir): Provide prototype.
44802         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44803         * modules/dirent (Makefile.am): Substitute them.
44804         * MODULES.html.sh (File system functions): Mention it.
44805         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44806         * modules/fdopendir-tests: New file.
44807         * tests/test-fdopendir.c: Likewise.
44808
44809         fchdir: use more consistent macro convention
44810         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44811         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44812         REPLACE_FCHDIR, rather than relying on config.h macros.
44813         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44814         inside a single make-time REPLACE_FCHDIR block, rather than using
44815         the config.h FCHDIR_REPLACEMENT.
44816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44817         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44818         Manage fstat replacement.
44819         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44820         REPLACE_FCHDIR.
44821         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44822         (Makefile.am): Substitute REPLACE_FCHDIR.
44823         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44824         FCHDIR_REPLACEMENT.
44825         * lib/dup-safer.c (dup_safer): Likewise.
44826         * lib/dup2.c (rpl_dup2): Likewise.
44827         * lib/dup3.c (rpl_dup3): Likewise.
44828         * lib/open.c (rpl_open): Likewise.
44829
44830         fchdir: simplify error handling, and support dup3
44831         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44832         stdbool, malloc-posix, realloc-posix.
44833         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44834         (ensure_dirs_slot): Return false on allocation failure.
44835         (rpl_dup2): Delete.
44836         (_gl_register_dup): New function.
44837         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44838         (_gl_register_fd): Close fd on allocation failure.
44839         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44840         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44841         prototype.
44842         (rpl_dup2_fchdir): Delete prototype.
44843         * lib/open.c (open): Update caller.
44844         * lib/dup2.c (dup2): Track fchdir metadata.
44845         * lib/dup3.c (dup3): Likewise.
44846         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44847         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44848
44849 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44850
44851         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44852         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44853         don't pass arguments to AC_OUTPUT.
44854
44855 2009-09-02  Bruno Haible  <bruno@clisp.org>
44856
44857         * modules/mkdtemp (License): Relicense under LGPLv2+.
44858         Reported by Paolo Bonzini.
44859
44860 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44861
44862         Replace uses of obsolete autoconf macros in Jim's modules.
44863         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44864         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44865         can evoke a warning from autoconf when run with -Wobsolete
44866         enabled.  They were declared obsolete for good reasons (see
44867         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44868         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44869         should not continue using the deprecated macros.
44870         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44871         obsolete Autoconf macros with modern counterparts.
44872         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44873         * m4/dos.m4 (gl_AC_DOS): Likewise.
44874         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44875         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44876         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44877         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44878         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44879         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44880         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44881         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44882         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44883         Likewise.
44884         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44885         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44886         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44887         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44888         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44889         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44890
44891 2009-09-01  Eric Blake  <ebb9@byu.net>
44892
44893         fchdir: fix off-by-one bug in previous patch
44894         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44895         (_gl_unregister_fd): Delete useless if.
44896
44897 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44898
44899         maint.mk: sort the list of syntax-check rules
44900         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44901         easier to get a sense of progress when the rules are run sequentially
44902         and take a long time.
44903
44904 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44905
44906         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44907         * modules/netinet_in: Likewise.
44908         * modules/sys_file: Likewise.
44909         * modules/sys_ioctl: Likewise.
44910         * modules/sys_select: Likewise.
44911         * modules/sys_socket: Likewise.
44912         * modules/sys_stat: Likewise.
44913         * modules/sys_time: Likewise.
44914         * modules/sys_times: Likewise.
44915         * modules/sys_utsname: Likewise.
44916         * modules/sys_wait: Likewise.
44917
44918 2009-09-01  Jim Meyering  <meyering@redhat.com>
44919
44920         fts: help ensure that return values are not ignored
44921         * lib/fts_.h (__GNUC_PREREQ): Define.
44922         (__attribute_warn_unused_result__): Define.
44923         (fts_children, fts_close, fts_open, fts_read): Declare with
44924         __attribute_warn_unused_result__.
44925
44926         fts: fts_close now fails also when closing a dir file descriptor fails
44927         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44928         and propagate to caller, along with errno.
44929
44930         announce-gen: correct formatting in --help output
44931         * build-aux/announce-gen (usage): Move the one-line description in
44932         --help output "up", to where it belongs, just after Usage:.
44933
44934 2009-08-31  Eric Blake  <ebb9@byu.net>
44935
44936         fchdir: port to mingw
44937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44938         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44939         opened, then use a substitute.
44940         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44941         replacement.
44942         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44943         (_gl_register_fd): No need to check stat if open already filters
44944         all directories.
44945         (fchdir): Fix error condition to match POSIX.
44946         * modules/fchdir (Depends-on): Add sys_stat.
44947         * doc/posix-functions/open.texi (open): Document the limitation.
44948         * modules/fchdir-tests: New file.
44949         * tests/test-fchdir.c: Likewise.
44950
44951         canonicalize: allow cross-testing from cygwin to mingw
44952         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44953         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44954         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44955         Likewise.
44956         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44957         target does not support symlinks.
44958         * tests/test-canonicalize-lgpl.sh: Likewise.
44959
44960         chown: avoid compilation warning on mingw
44961         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44962         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44963         mingw.
44964         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44965         * modules/chown (Depends-on): Add errno.
44966
44967 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44968
44969         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44970         command.
44971
44972 2009-08-31  Jim Meyering  <meyering@redhat.com>
44973
44974         canonicalize: remove useless initialization
44975         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44976         initialization of local, "end".
44977
44978 2009-08-30  Bruno Haible  <bruno@clisp.org>
44979
44980         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44981         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44982         ENOSYS.
44983
44984 2009-08-30  Bruno Haible  <bruno@clisp.org>
44985
44986         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44987         /usr/xpg4/bin/tr when it exists.
44988         * tests/test-pipe-filter-gi1.sh: Likewise.
44989
44990 2009-08-30  Bruno Haible  <bruno@clisp.org>
44991
44992         Work around deficient /usr/bin/id program on Solaris.
44993         * tests/test-file-has-acl.sh (ID): New variable.
44994         * tests/test-set-mode-acl.sh (ID): Likewise.
44995         * tests/test-copy-acl.sh (ID): Likewise.
44996         * tests/test-copy-file.sh (ID): Likewise.
44997
44998 2009-08-30  Bruno Haible  <bruno@clisp.org>
44999
45000         New module 'xstriconveh'.
45001         * lib/xstriconveh.h: New file.
45002         * lib/xstriconveh.c: New file.
45003         * modules/xstriconveh: New file.
45004
45005 2009-08-30  Bruno Haible  <bruno@clisp.org>
45006
45007         Make it easier to use mem_cd_iconveh.
45008         * lib/striconveh.h (iconveh_t): New type.
45009         (iconveh_open, iconveh_close): New declarations.
45010         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45011         with a single 'const iconveh_t *' argument.
45012         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45013         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45014         with a single 'const iconveh_t *' argument.
45015         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45016         * tests/test-striconveh.c (main): Update.
45017         * NEWS: Mention the change.
45018
45019 2009-08-30  Bruno Haible  <bruno@clisp.org>
45020
45021         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45022         problem.
45023
45024 2009-08-30  Bruno Haible  <bruno@clisp.org>
45025
45026         Work around iconv_open problem on Solaris.
45027         * lib/iconv_open-solaris.gperf: New file.
45028         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45029         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45030         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45031         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45032         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45033         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45034
45035 2009-08-29  Jim Meyering  <meyering@redhat.com>
45036
45037         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45038         * top/maint.mk (cvs-check): Remove target; it was just an alias
45039         to the better-named vc-diff-check.
45040         (maintainer-distcheck): Remove rule.  It was used only from
45041         the (alpha/beta/major) target, and all of its commands but one
45042         were coreutils-specific.
45043         (vc-dist): Remove rule.
45044         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45045         Run vc-diff-check, not vc-dist.
45046         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45047
45048 2009-08-27  Bruno Haible  <bruno@clisp.org>
45049
45050         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45051         of 0.
45052
45053 2009-08-27  Bruno Haible  <bruno@clisp.org>
45054
45055         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45056         compilers.
45057         * doc/func.texi: Document the SunPRO C bug.
45058
45059 2009-08-27  Bruno Haible  <bruno@clisp.org>
45060
45061         Fix link error on Solaris.
45062         * tests/test-parse-duration.c (xstrdup): Remove function.
45063
45064 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45065
45066         ignore-value: handle pointer types, too
45067         * lib/ignore-value.h (__attribute__): Remove definition.
45068         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45069         of a more concise and more-often effective "(void) i" statement.
45070         (ignore_ptr): New function to suppress warnings from functions that
45071         return pointers, and to make it explicit that one function doesn't
45072         handle all cases.
45073
45074 2009-08-25  Bruno Haible  <bruno@clisp.org>
45075
45076         dup2: work around a Linux bug.
45077         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45078         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45079         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45080         Reported by Simon Josefsson.
45081
45082 2009-08-25  Jim Meyering  <meyering@redhat.com>
45083
45084         libguestfs uses gnulib
45085         * users.txt: Add libguestfs.
45086
45087 2009-08-24  Eric Blake  <ebb9@byu.net>
45088
45089         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45090         * lib/pipe2.c (includes): Add binary-io.h.
45091         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45092
45093 2009-08-24  Bruno Haible  <bruno@clisp.org>
45094
45095         Tolerate declared but missing accept4 syscall.
45096         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45097         available.
45098         * lib/sys_socket.in.h (accept4): If the function is already present,
45099         override it.
45100         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45101         * modules/accept4 (Makefile.am): Compile accept4.c always.
45102         Reported by Paolo Bonzini and Eric Blake.
45103
45104 2009-08-23  Bruno Haible  <bruno@clisp.org>
45105
45106         New module 'accept4'.
45107         * lib/sys_socket.in.h (accept4): New declaration.
45108         * lib/accept4.c: New file.
45109         * m4/accept4.m4: New file.
45110         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45111         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45112         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45113         HAVE_ACCEPT4.
45114         * modules/accept4: New file.
45115         * doc/glibc-functions/accept4.texi: Mention the new module.
45116
45117 2009-08-24  Jim Meyering  <meyering@redhat.com>
45118
45119         progname: also set global program_invocation_name, when possible
45120         Before this change, a libtool-enabled program that calls glibc's
45121         error function would report the program name as
45122         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45123         * modules/progname (configure.ac): Check for a declaration of
45124         program_invocation_name.
45125         * lib/progname.c:  Include <errno.h>.
45126         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45127         Set program_invocation_name.
45128
45129 2009-08-23  Bruno Haible  <bruno@clisp.org>
45130
45131         * lib/dup3.c: Include <string.h>.
45132
45133 2009-08-23  Bruno Haible  <bruno@clisp.org>
45134
45135         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45136         * lib/pipe2.c (pipe2): Likewise.
45137         Suggested by Eric Blake.
45138
45139 2009-08-23  Bruno Haible  <bruno@clisp.org>
45140
45141         Tolerate declared but missing dup3 syscall.
45142         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45143         * lib/unistd.in.h (dup3): If the function is already present,
45144         override it.
45145         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45146         * modules/dup3 (Makefile.am): Compile dup3.c always.
45147         Reported by Paolo Bonzini.
45148
45149 2009-08-23  Bruno Haible  <bruno@clisp.org>
45150
45151         Tolerate declared but missing pipe2 syscall.
45152         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45153         available.
45154         * lib/unistd.in.h (pipe2): If the function is already present,
45155         override it.
45156         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45157         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45158         Reported by Paolo Bonzini.
45159
45160 2009-08-23  Bruno Haible  <bruno@clisp.org>
45161
45162         * lib/pipe2.c (pipe2): Move #ifs inside function.
45163
45164 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45165
45166         quotearg: document limitations of quote_these_too
45167         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45168         those limitations are created.
45169         * lib/quotearg.h (set_char_quoting): Document that digits and
45170         letters that are special after backslash are not permitted.
45171         (quotearg_char): Cross-reference set_char_quoting documentation.
45172
45173 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45174
45175         quotearg: implement custom_quoting_style
45176         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45177         right_quote fields.
45178         (set_custom_quoting): New public function.
45179         (quotearg_buffer_restyled): Add left_quote and right_quote
45180         arguments, handle them very much like locale quoting, and update
45181         all uses.
45182         (quotearg_n_custom): New public function.
45183         (quotearg_n_custom_mem): New public function.
45184         (quotearg_custom): New public function.
45185         (quotearg_custom_mem): New public function.
45186         * lib/quotearg.h: Prototype and document new public functions.
45187         (enum quoting_style): For escape_quoting_style and
45188         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45189         ignored even though they're otherwise like c_quoting_style.
45190         Add custom_quoting_style member and document with comparison to
45191         clocale_quoting_style.
45192         * tests/test-quotearg.c (custom_quotes): New array.
45193         (custom_results): New array.
45194         (main): Extend to test custom quoting.
45195
45196 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45197
45198         quotearg: fix right quote escaping when it's in quote_these_too
45199         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45200         quote, be sure to prepend only one backslash.
45201         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45202         (main): Test it.
45203
45204 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45205
45206         quotearg-tests: test escaping of embedded locale quotes
45207         * tests/test-quotearg.c (struct result_strings): Add member for
45208         new input.
45209         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45210         (inputs): Add new input.
45211         (results_g): Add expected results.
45212         (flag_results): Likewise.
45213         (locale_results): Likewise.
45214         (compare_strings): Check those.
45215
45216 2009-08-23  Bruno Haible  <bruno@clisp.org>
45217
45218         Tests for module 'dup3'.
45219         * modules/dup3-tests: New file.
45220         * tests/test-dup3.c: New file.
45221
45222         New module 'dup3'.
45223         * lib/unistd.in.h (dup3): New declaration.
45224         * lib/dup3.c: New file.
45225         * m4/dup3.m4: New file.
45226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45227         HAVE_DUP3.
45228         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45229         * modules/dup3: New file.
45230         * doc/glibc-functions/dup3.texi: Mention the new module.
45231
45232 2009-08-23  Bruno Haible  <bruno@clisp.org>
45233
45234         Tweak the dup2 test.
45235         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45236         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45237         the test file is still empty. Fix argument order of lseek.
45238
45239 2009-08-23  Bruno Haible  <bruno@clisp.org>
45240
45241         Avoid test link errors when the modules getopt-gnu, gettext are used.
45242         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45244
45245 2009-08-23  Bruno Haible  <bruno@clisp.org>
45246
45247         Fix getdtablesize() on mingw.
45248         * lib/getdtablesize.c (getdtablesize): Implement differently.
45249         * lib/unistd.in.h (getdtablesize): Improve comment.
45250
45251 2009-08-23  Bruno Haible  <bruno@clisp.org>
45252
45253         New module 'mkostemp'.
45254         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45255         * lib/stdlib.in.h (mksotemp): New declaration.
45256         * lib/mkostemp.c: New file, from glibc with modifications.
45257         * lib/tempname.h (GT_FILE): Remove outdated comment.
45258         (gen_tempname): Add flags argument.
45259         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45260         (__GT_FILE): Map to 1.
45261         (small_open, large_open): Remove macros.
45262         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45263         * lib/mkstemp.c (mkstemp): Update.
45264         * lib/mkdtemp.c (mkdtemp): Likewise.
45265         * m4/mkostemp.m4: New file.
45266         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45267         HAVE_MKOSTEMP.
45268         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45269         HAVE_MKOSTEMP.
45270         * modules/mkostemp: New file, based on modules/mkstemp.
45271         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45272         * NEWS: Mention the change.
45273
45274 2009-08-23  Bruno Haible  <bruno@clisp.org>
45275
45276         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45277         Reported by Eric Blake.
45278
45279 2009-08-23  Bruno Haible  <bruno@clisp.org>
45280
45281         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45282         Reported by Eric Blake.
45283
45284 2009-08-23  Bruno Haible  <bruno@clisp.org>
45285
45286         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45287         * modules/pipe2 (Depends-on): Likewise.
45288
45289 2009-08-23  Eric Blake  <ebb9@byu.net>
45290
45291         fcntl-h: add O_TTY_INIT support
45292         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45293         * tests/test-fcntl-h.c (o): Test it.
45294         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45295
45296         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45297         * modules/fcntl: Move <fcntl.h> header replacement...
45298         * modules/fcntl-h: ...to new name, so as not to collide with
45299         like-named function.
45300         * tests/test-fcntl.c: Rename...
45301         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45302         * modules/fcntl-tests: Rename...
45303         * modules/fcntl-h-tests: ...to this.  Update test file name.
45304         * modules/chdir-long (Depends-on): Update clients.
45305         * modules/chdir-safer (Depends-on): Likewise.
45306         * modules/fcntl-safer (Depends-on): Likewise.
45307         * modules/fts (Depends-on): Likewise.
45308         * modules/mkancesdirs (Depends-on): Likewise.
45309         * modules/mkdir-p (Depends-on): Likewise.
45310         * modules/open (Depends-on): Likewise.
45311         * modules/savewd (Depends-on): Likewise.
45312         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45313         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45314
45315 2009-08-22  Bruno Haible  <bruno@clisp.org>
45316
45317         * modules/binary-io (License): Relicense under LGPL.
45318         * modules/pipe2 (License): Likewise.
45319
45320 2009-08-22  Bruno Haible  <bruno@clisp.org>
45321
45322         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45323         return value.
45324         * lib/pipe-filter-gi.c (filter_init): Likewise.
45325         Reported by Eric Blake.
45326
45327 2009-08-22  Bruno Haible  <bruno@clisp.org>
45328
45329         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45330         * modules/pipe (Depends-on): Add pipe2.
45331
45332 2009-08-22  Bruno Haible  <bruno@clisp.org>
45333
45334         Tests for module 'pipe2'.
45335         * modules/pipe2-tests: New file.
45336         * tests/test-pipe2.c: New file.
45337
45338         New module 'pipe2'.
45339         * lib/unistd.in.h (pipe2): New declaration.
45340         * lib/pipe2.c: New file.
45341         * m4/pipe2.m4: New file.
45342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45343         HAVE_PIPE2.
45344         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45345         * modules/pipe2: New file.
45346         * doc/glibc-functions/pipe2.texi: Mention the new module.
45347
45348 2009-08-22  Bruno Haible  <bruno@clisp.org>
45349
45350         Reference some new glibc functions.
45351         * doc/glibc-functions/accept4.texi: New file.
45352         * doc/glibc-functions/dup3.texi: New file.
45353         * doc/glibc-functions/mkostemp.texi: New file.
45354         * doc/glibc-functions/pipe2.texi: New file.
45355         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45356         (Glibc sys/socket.h): Refer to accept4.
45357         (Glibc unistd.h): Refer to dup3, pipe2.
45358         Reported by Eric Blake.
45359
45360 2009-08-22  Jim Meyering  <meyering@redhat.com>
45361             Bruno Haible  <bruno@clisp.org>
45362
45363         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45364         This makes it so packages using automake-1.11's silent-rules option
45365         can print e.g., a single "GEN    configmake.h" line, rather than
45366         the 30+ statements that perform the job.  If you want to see the
45367         actual commands, you can still run "make V=1".
45368         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45369         so that make output is abbreviated when those variables are defined
45370         appropriately.
45371         * modules/argz: Likewise.
45372         * modules/arpa_inet: Likewise.
45373         * modules/byteswap: Likewise.
45374         * modules/configmake: Likewise.
45375         * modules/dirent: Likewise.
45376         * modules/errno: Likewise.
45377         * modules/fcntl: Likewise.
45378         * modules/float: Likewise.
45379         * modules/fnmatch: Likewise.
45380         * modules/getopt-posix: Likewise.
45381         * modules/glob: Likewise.
45382         * modules/iconv_open: Likewise.
45383         * modules/inttypes: Likewise.
45384         * modules/localcharset: Likewise.
45385         * modules/locale: Likewise.
45386         * modules/math: Likewise.
45387         * modules/netdb: Likewise.
45388         * modules/netinet_in: Likewise.
45389         * modules/poll: Likewise.
45390         * modules/posix_spawnp-tests: Likewise.
45391         * modules/sched: Likewise.
45392         * modules/search: Likewise.
45393         * modules/selinux-h: Likewise.
45394         * modules/signal: Likewise.
45395         * modules/spawn: Likewise.
45396         * modules/stdarg: Likewise.
45397         * modules/stdbool: Likewise.
45398         * modules/stddef: Likewise.
45399         * modules/stdint: Likewise.
45400         * modules/stdio: Likewise.
45401         * modules/stdlib: Likewise.
45402         * modules/string: Likewise.
45403         * modules/strings: Likewise.
45404         * modules/sys_file: Likewise.
45405         * modules/sys_ioctl: Likewise.
45406         * modules/sys_select: Likewise.
45407         * modules/sys_socket: Likewise.
45408         * modules/sys_stat: Likewise.
45409         * modules/sys_time: Likewise.
45410         * modules/sys_times: Likewise.
45411         * modules/sys_utsname: Likewise.
45412         * modules/sys_wait: Likewise.
45413         * modules/sysexits: Likewise.
45414         * modules/time: Likewise.
45415         * modules/unistd: Likewise.
45416         * modules/wchar: Likewise.
45417         * modules/wctype: Likewise.
45418
45419 2009-08-22  Jim Meyering  <meyering@redhat.com>
45420
45421         announce-gen: detect write failure
45422         * build-aux/announce-gen: Add Coda at end.
45423         Remove equivalent-but-more-verbose block at top.
45424
45425 2009-08-19  Akim Demaille  <demaille@gostai.com>
45426
45427         bootstrap: --help to stdout.
45428         * bootstrap (usage): Don't send --help to stderr.
45429         Use a here doc instead of a long string.
45430
45431 2009-08-21  Eric Blake  <ebb9@byu.net>
45432
45433         test-popen-safer: split from test-popen
45434         * tests/test-popen.c (main): Move...
45435         * tests/test-popen.h: ...into new file.
45436         * tests/test-popen-safer2.c: New file.
45437         * modules/popen-tests (Files): Add test-popen.h.
45438         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45439         Suggested by Bruno Haible.
45440
45441         test-fcntl-safer: split from test-open
45442         * tests/test-open.c (main): Move...
45443         * tests/test-open.h: ...into new file.
45444         * tests/test-fcntl-safer.c: New file.
45445         * modules/open-tests (Files): Add test-open.h.
45446         * modules/fcntl-safer-tests: New file.
45447         Suggested by Bruno Haible.
45448
45449         test-fopen-safer: split from test-fopen
45450         * tests/test-fopen.c (main): Move...
45451         * tests/test-fopen.h: ...into new file.
45452         * tests/test-fopen-safer.c: New file.
45453         * modules/fopen-tests (Files): Add test-fopen.h.
45454         * modules/fopen-safer-tests: New file.
45455         Suggested by Bruno Haible.
45456
45457 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45458
45459         popen-safer: test O_CLOEXEC at run-time.
45460         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45461
45462 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45463
45464         fcntl: move more flags to the header
45465         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45466         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45467         * lib/fcntl.in.h: Do both things here.
45468
45469 2009-08-21  Jim Meyering  <meyering@redhat.com>
45470
45471         consistently remove $@-t before redirecting to it
45472         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45473         * modules/alloca-opt: Likewise.
45474         * modules/byteswap: Likewise.
45475         * modules/fnmatch: Likewise.
45476         * modules/getopt-posix: Likewise.
45477         * modules/glob: Likewise.
45478         * modules/poll: Likewise.
45479         * modules/posix_spawnp-tests: Likewise.
45480         * modules/sys_socket: Likewise.
45481         * modules/sysexits: Likewise.
45482
45483 2009-08-21  Eric Blake  <ebb9@byu.net>
45484
45485         popen: simplify access to original popen
45486         * lib/popen.c (rpl_popen): No need to worry about popen being a
45487         macro.
45488         Reported by Bruno Haible.
45489
45490 2009-08-20  Eric Blake  <ebb9@byu.net>
45491
45492         build: avoid some compiler warnings
45493         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45494         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45495         type.
45496         (new_exclude_segment, excluded_file_pattern_p)
45497         (excluded_file_name_p): Reduce scope.
45498         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45499         old-style declaration.
45500
45501 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45502
45503         * tests/test-exclude1.sh: Handle Windows EOL.
45504         * tests/test-exclude2.sh: Likewise.
45505         * tests/test-exclude3.sh: Likewise.
45506         * tests/test-exclude4.sh: Likewise.
45507         * tests/test-exclude5.sh: Likewise.
45508         * tests/test-exclude6.sh: Likewise.
45509         * tests/test-exclude7.sh: Likewise.
45510
45511 2009-08-19  Akim Demaille  <demaille@gostai.com>
45512
45513         bootstrap: find sha1sum when named gsha1sum.
45514         * bootstrap (find_tool): New.
45515         ($SHA1SUM): New.
45516         Use it.
45517
45518 2009-08-20  Jim Meyering  <meyering@redhat.com>
45519
45520         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45521         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45522         expression that converts "." in a file name to "\." in the resulting
45523         regexp.  Start with a dummy statement, so that prior shell variable
45524         definitions are expanded portably.  Reported by Simon Josefsson.
45525
45526 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45527
45528         Fix polling for writeability of a screen buffer.
45529         * lib/poll.c: Distinguish input and screen buffers for the
45530         Win32 implementation.
45531         * lib/select.c: Likewise.
45532
45533 2009-08-19  Eric Blake  <ebb9@byu.net>
45534
45535         popen-safer: prevent popen from clobbering std descriptors
45536         * modules/popen-safer: New file.
45537         * lib/popen-safer.c: Likewise.
45538         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45539         * lib/stdio--.h (popen): Provide override.
45540         * lib/stdio-safer.h (popen_safer): Provide declaration.
45541         * tests/test-popen.c (includes): Partially test this.
45542         * modules/popen-safer-tests: New file, for more tests.
45543         * tests/test-popen-safer.c: Likewise.
45544         * MODULES.html.sh (file stream based Input/Output): Mention it.
45545
45546         tests: test some of the *-safer modules
45547         * modules/fopen-safer (Depends-on): Add fopen.
45548         * modules/fcntl-safer (Depends-on): Add fcntl.
45549         * modules/stdlib-safer (Depends-on): Add stdlib.
45550         (configure.ac): Set indicator.
45551         * modules/unistd-safer (configure.ac): Likewise.
45552         * modules/tmpfile-safer (configure.ac): Likewise.
45553         (Depends-on): Add tmpfile.
45554         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45555         active.
45556         * tests/test-fopen.c (includes): Test safer versions when they are
45557         in use.
45558         * tests/test-open.c (includes): Likewise.
45559
45560         popen: fix cygwin 1.5 bug when stdin closed
45561         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45562         * modules/popen: New file.
45563         * modules/popen-tests: Likewise.
45564         * tests/test-popen.c: Likewise.
45565         * m4/popen.m4: Likewise.
45566         * lib/popen.c: Likewise.
45567         * lib/stdio.in.h (popen): New declaration.
45568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45569         * modules/stdio (Makefile.am): Likewise.
45570         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45571
45572 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45573
45574         maint.mk: give full control over update-copyright exclusions
45575         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45576         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45577         (update-copyright): Don't force inclusion of top-level
45578         ChangeLog.  Don't force exclusion of all COPYING files, but make
45579         them the default exclusion instead.
45580
45581 2009-08-16  Bruno Haible  <bruno@clisp.org>
45582
45583         Fix test failures on Solaris 10.
45584         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45585         tests when Solaris iconv() is used.
45586         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45587         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45588         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45589         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45590         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45591
45592 2009-08-16  Bruno Haible  <bruno@clisp.org>
45593
45594         Fix test failures on Solaris 10.
45595         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45596         'tr' program and pass it as first argument.
45597         * tests/test-pipe-filter-gi1.sh: Likewise.
45598         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45599         program as first argument.
45600         * tests/test-pipe-filter-gi1.c (main): Likewise.
45601
45602 2009-08-16  Eric Blake  <ebb9@byu.net>
45603
45604         fpurge: fix previous commits
45605         * modules/fpurge (Makefile.am): Make replacement conditional,
45606         partially reverting 2007-04-29 change; missed in previous
45607         attempt.
45608         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45609         is missing.
45610
45611 2009-08-16  Bruno Haible  <bruno@clisp.org>
45612
45613         Clarify fpurge's effect on the file position.
45614         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45615         * tests/test-fpurge.c (main): Make a second pass for checking the file
45616         position.
45617
45618 2009-08-16  Bruno Haible  <bruno@clisp.org>
45619
45620         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45621         declaration of fpurge is missing.
45622         * tests/test-fpurge.c (main): Check that the file has not more contents
45623         than expected. Close the file before removing it.
45624
45625 2009-08-15  Eric Blake  <ebb9@byu.net>
45626
45627         fpurge: don't wrap working cygwin implementation
45628         * lib/fpurge.c (fpurge): Fix comment typo.
45629         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45630         1.7 to avoid replacement.
45631         * tests/test-fpurge.c (main): Enhance test.
45632
45633 2009-08-15  Eric Blake  <ebb9@byu.net>
45634         and Jim Meyering  <meyering@redhat.com>
45635
45636         test-update-copyright: skip if perl is insufficient
45637         * tests/test-update-copyright.sh: Failure to run maintainer tool
45638         should not cause testsuite failure on cygwin 1.5.
45639
45640 2009-08-14  Eric Blake  <ebb9@byu.net>
45641
45642         doc: mention more functions added in cygwin 1.7.0
45643         * doc/posix-headers/limits.texi (limits.h): Update for recent
45644         cygwin additions.
45645         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45646         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45647         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45648         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45649         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45650
45651 2009-08-14  Eric Blake  <ebb9@byu.net>
45652
45653         maint.mk: simplify update-copyright rule
45654         * top/maint.mk (update-copyright-local): Delete, and document how
45655         to do it in cfg.mk instead.
45656         (update-copyright-exclude-regexp): Delete, and document how to do
45657         it in .x-update-copyright instead.
45658         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45659         exclude ChangeLog.
45660
45661 2009-08-14  Bruno Haible  <bruno@clisp.org>
45662
45663         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45664
45665 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45666
45667         maint.mk: support update-copyright-env
45668         * top/maint.mk (update-copyright-env): Define place-holder.
45669         (update-copyright): Expand $(update-copyright-env) before
45670         invoking update-copyright.
45671
45672 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45673
45674         update-copyright: implement forced reformatting
45675         * build-aux/update-copyright: Implement and document
45676         UPDATE_COPYRIGHT_FORCE.
45677         * tests/test-update-copyright.sh: Test it.
45678
45679 2009-08-14  Eric Blake  <ebb9@byu.net>
45680         and Bruno Haible  <bruno@clisp.org>
45681
45682         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45683         * tests/test-locale.c: Revert previous patch related to NULL.
45684         * tests/test-stdio.c: Likewise.
45685         * tests/test-stdlib.c: Likewise.
45686         * tests/test-string.c: Likewise.
45687         * tests/test-unistd.c: Likewise.
45688         * modules/time-tests (Depends-on): Add verify.
45689         * modules/wchar-tests (Depends-on): Likewise.
45690         * tests/test-time.c: Test for NULL compliance.
45691         * tests/test-wchar.c: Likewise.
45692         * modules/locale (Depends-on): Add stddef.
45693         * modules/stdio (Depends-on): Likewise.
45694         * modules/stdlib (Depends-on): Likewise.
45695         * modules/string (Depends-on): Likewise.
45696         * modules/time (Depends-on): Likewise.
45697         * modules/unistd (Depends-on): Likewise.
45698         * modules/wchar (Depends-on): Likewise.
45699         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45700         * lib/stdlib.in.h (includes): Likewise.
45701         * lib/string.in.h (includes): Likewise.
45702         * lib/time.in.h (includes): Likewise.
45703         * lib/unistd.in.h (includes): Likewise.
45704         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45705         replaced.
45706         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45707         * m4/stddef_h.m4: New file.
45708         * modules/stddef: Likewise.
45709         * lib/stddef.in.h: Likewise.
45710         * modules/stddef-tests: Likewise.
45711         * tests/test-stddef.c: Likewise.
45712         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45713         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45714         * doc/posix-headers/locale.texi (locale.h): Likewise.
45715         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45716         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45717         * doc/posix-headers/string.texi (string.h): Likewise.
45718         * doc/posix-headers/time.texi (time.h): Likewise.
45719         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45720         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45721
45722 2009-08-14  Eric Blake  <ebb9@byu.net>
45723
45724         doc: improve git diff of texinfo files
45725         * .gitattributes: Add rule for *.texi files, with hint on how to
45726         use it.
45727         Copied from m4, and based on a report by Bruno Haible.
45728
45729 2009-08-14  Bruno Haible  <bruno@clisp.org>
45730
45731         Disable multithread support by default on Cygwin 1.5.x for real.
45732         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45733
45734 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45735
45736         update-copyright: much ado about intervals
45737         * build-aux/update-copyright: Implement and document
45738         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45739         of copyright year intervals.
45740         Also, document UPDATE_COPYRIGHT_YEAR.
45741         * tests/test-update-copyright.sh: Test it.
45742
45743         update-copyright: convert 2-digit to 4-digit years
45744         * build-aux/update-copyright: Implement and document.
45745         * tests/test-update-copyright.sh: Update.
45746
45747 2009-08-14  Jim Meyering  <meyering@redhat.com>
45748
45749         test-exclude: avoid coreutils "make check" failure
45750         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45751         just as in test-argmatch.c.
45752
45753 2009-08-13  Eric Blake  <ebb9@byu.net>
45754
45755         test-dup2: fix bad assumption
45756         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45757         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45758
45759         test-version-etc: fix CRLF portability issue
45760         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45761         recognize \r.
45762         * tests/test-argp-version-etc-1.sh: Likewise.
45763
45764         getopt: update client modules
45765         * modules/argp (Depends-on): Use getopt-gnu.
45766         * modules/git-merge-changelog (Depends-on): Likewise.
45767         * modules/long-options (Depends-on): Likewise.
45768         * modules/xstrtol (Depends-on): Likewise.
45769
45770 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45771
45772         * tests/test-version-etc.sh: Don't fail on different
45773         project/version.  Don't fail on CRLF differences.  Rewrite to use
45774         multiple -e instead of multiple sed forks, suggested by Eric Blake
45775         <ebb9@byu.net>.
45776         * tests/test-argp-version-etc-1.sh: Likewise.
45777
45778 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45779
45780         * tests/test-version-etc.sh: Don't fail on different
45781         project/version.
45782
45783 2009-08-12  Bruno Haible  <bruno@clisp.org>
45784
45785         Tests for modules 'getopt-posix', 'getopt-gnu'.
45786         * modules/getopt-posix-tests: New file.
45787         * tests/test-getopt.c: New file.
45788         * tests/test-getopt.h: New file.
45789         * tests/test-getopt_long.h: New file.
45790
45791         New modules 'getopt-posix', 'getopt-gnu'.
45792         * modules/getopt-gnu: New file, renamed from modules/getopt.
45793         * modules/getopt-posix: New file.
45794         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45795         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45796         (gl_GETOPT): Remove macro.
45797         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45798         Disable the test against BSD systems that declare optreset. Test
45799         against mingw bug. Test against lack of support of optional arguments
45800         on many platforms.
45801         * doc/glibc-headers/getopt.texi: Update module name and list of
45802         relevant platforms.
45803         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45804         'getopt-gnu' and more portability problems.
45805         * NEWS: Mention the changes.
45806
45807 2009-08-12  Bruno Haible  <bruno@clisp.org>
45808
45809         Ensure that optarg etc. get declared by <unistd.h>.
45810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45811         AC_USE_SYSTEM_EXTENSIONS.
45812         * modules/getopt (Depends-on): Add 'extensions'.
45813
45814 2009-08-12  Bruno Haible  <bruno@clisp.org>
45815
45816         Avoid test link errors.
45817         * modules/pipe-filter-ii-tests (Makefile.am): Define
45818         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45819         * modules/pipe-filter-gi-tests (Makefile.am): Define
45820         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45821         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45822
45823 2009-08-12  Bruno Haible  <bruno@clisp.org>
45824
45825         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45826         gl_GETOPT_SUBSTITUTE before.
45827         (gl_GETOPT): Use it.
45828         * m4/argp.m4 (gl_ARGP): Update.
45829         Reported by Sergey Poznyakoff.
45830
45831         * m4/getopt.m4: Reorder macros.
45832         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45833         (gl_GETOPT_SUBSTITUTE): Remove macro.
45834
45835 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45836
45837         Minor improvement in gitlog-to-changelog
45838
45839         * build-aux/gitlog-to-changelog: New option `--format' makes
45840         output format string configurable.
45841
45842 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45843
45844         Optimize exclude: use hash tables for non-wildcard patterns.
45845
45846         * lib/exclude.c: Include hash.h and mbuiter.h
45847         (struct exclude_pattern, exclude_segment): New data types.
45848         (struct exclude): Rewrite.
45849         (fnmatch_pattern_has_wildcards): New function.
45850         (new_exclude_segment, free_exclude_segment): New functions.
45851         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45852         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45853         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45854         * modules/exclude: Depend on hash and mbuiter.
45855
45856         * modules/exclude-tests: New file.
45857         * tests/test-exclude.c: New file.
45858         * tests/test-exclude1.sh: New file.
45859         * tests/test-exclude2.sh: New file.
45860         * tests/test-exclude3.sh: New file.
45861         * tests/test-exclude4.sh: New file.
45862         * tests/test-exclude5.sh: New file.
45863         * tests/test-exclude6.sh: New file.
45864         * tests/test-exclude7.sh: New file.
45865
45866 2009-08-12  Bruno Haible  <bruno@clisp.org>
45867
45868         Ensure that getopt() gets declared by <unistd.h>.
45869         * lib/unistd.in.h: Conditionally include getopt.h.
45870         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45871         Set GNULIB_UNISTD_H_GETOPT.
45872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45873         GNULIB_UNISTD_H_GETOPT.
45874         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45875
45876 2009-08-12  Bruno Haible  <bruno@clisp.org>
45877
45878         Clarify logic.
45879         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45880         gl_replace_getopt instead of GETOPT_H.
45881
45882 2009-08-12  Bruno Haible  <bruno@clisp.org>
45883
45884         * m4/getopt.m4: Add comments.
45885
45886 2009-08-12  Bruno Haible  <bruno@clisp.org>
45887
45888         Disable multithread support by default on Cygwin 1.5.x.
45889         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45890         set gl_use_threads=no if not specified otherwise.
45891
45892 2009-08-11  Bruno Haible  <bruno@clisp.org>
45893
45894         Avoid compilation error on NetBSD 5.0.
45895         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45896         * tests/test-stdio.c: Likewise.
45897         * tests/test-stdlib.c: Likewise.
45898         * tests/test-string.c: Likewise.
45899         * tests/test-unistd.c: Likewise.
45900         Reported by Greg Troxel <gdt@ir.bbn.com>
45901         at <https://savannah.gnu.org/support/?106973>.
45902
45903 2009-08-11  Bruno Haible  <bruno@clisp.org>
45904
45905         * modules/dup2-tests (Depends-on): Remove close.
45906
45907         Undo 2009-07-19 commit.
45908         * modules/acl-tests (Depends-on): Remove close.
45909         * modules/binary-io-tests (Depends-on): Likewise.
45910         * modules/closein-tests (Depends-on): Likewise.
45911         * modules/flock-tests (Depends-on): Likewise.
45912         * modules/fsync-tests (Depends-on): Likewise.
45913         * modules/lseek-tests (Depends-on): Likewise.
45914         * modules/pipe-tests (Depends-on): Likewise.
45915         * modules/posix_spawn-tests (Depends-on): Likewise.
45916         * modules/posix_spawnp-tests (Depends-on): Likewise.
45917         * modules/stat-time-tests (Depends-on): Likewise.
45918         * modules/yesno-tests (Depends-on): Likewise.
45919
45920 2009-08-10  Bruno Haible  <bruno@clisp.org>
45921
45922         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45923
45924 2009-08-10  Bruno Haible  <bruno@clisp.org>
45925
45926         Fix a gcc warning.
45927         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45928
45929 2009-08-10  Bruno Haible  <bruno@clisp.org>
45930
45931         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45932         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45933         not only the first time.
45934         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45935         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45936         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45937         is 1, not only the the first time.
45938
45939 2009-08-10  Bruno Haible  <bruno@clisp.org>
45940
45941         Make it possible to use module 'gethostname' without module 'close'.
45942         * lib/unistd.in.h (close): Evoke a link error only if
45943         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45944         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45945         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45946         * modules/unistd (Makefile.am): Substitute
45947         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45948         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45949         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45950         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45951         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45952         * modules/sys_ioctl (Makefile.am): Substitute
45953         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45954         * modules/socket (configure.ac): On native Windows, set
45955         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45956         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45957         Reported by Sam Steingold <sds@gnu.org>.
45958
45959 2009-08-10  Bruno Haible  <bruno@clisp.org>
45960
45961         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45962         * modules/ioctl (configure.ac): Likewise.
45963
45964 2009-08-10  Bruno Haible  <bruno@clisp.org>
45965
45966         Avoid collision between gnulib wrapper and libintl wrapper.
45967         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45968         already defined in intl/printf.c.
45969         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45970         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45971
45972 2009-08-09  Bruno Haible  <bruno@clisp.org>
45973
45974         Make <sys/select.h> really self-contained, also on Solaris 10.
45975         * lib/sys_select.in.h: Include <string.h>.
45976         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45977         Solaris 10 problem.
45978         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45979         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45980         Reported by Jim Meyering.
45981
45982 2009-08-09  Bruno Haible  <bruno@clisp.org>
45983
45984         Avoid warnings from 'aclocal' that are due to a use of macro name
45985         AM_XGETTEXT_OPTION that is not defined in automake.
45986         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45987         automake.
45988         * modules/error (configure.ac): Likewise.
45989         * modules/propername (configure.ac): Likewise.
45990         * modules/vasprintf (configure.ac): Likewise.
45991         * modules/verror (configure.ac): Likewise.
45992         * modules/xprintf (configure.ac): Likewise.
45993         * modules/xvasprintf (configure.ac): Likewise.
45994
45995 2009-08-08  Bruno Haible  <bruno@clisp.org>
45996
45997         Avoid compilation error in C++ mode.
45998         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45999         Reported by Sam Steingold <sds@gnu.org>.
46000
46001 2009-08-08  Bruno Haible  <bruno@clisp.org>
46002
46003         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46004         for the various Unix platforms.
46005         * doc/posix-headers/limits.texi: Update platforms list regarding
46006         HOST_NAME_MAX.
46007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46008
46009 2009-08-07  Jim Meyering  <meyering@redhat.com>
46010
46011         selinux-at: fix typo in a comment
46012         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46013         Spotted by Paolo Bonzini.
46014
46015         selinux-at: remove redundant m4 code, add documentation
46016         * modules/selinux-at (configure.ac): Remove redundant code.
46017         LIB_SELINUX is already set via the dependent module, selinux-h.
46018         (Include): Add quotes around selinux-at.h.
46019         * lib/selinux-at.h: Add documentation.
46020         Reported by Bruno Haible in
46021         http://marc.info/?l=gnulib-bug&m=124958988300749
46022
46023 2009-08-07  Bruno Haible  <bruno@clisp.org>
46024
46025         Avoid link error on MacOS X 10.3 and 10.4.
46026         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46027         on non-ELF systems.
46028         * lib/argp-pv.c (argp_program_version): Likewise.
46029         Reported by Simon Josefsson.
46030
46031 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46032
46033         * tests/test-version-etc.sh: Use $EXEEXT.
46034
46035 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46036
46037         update-copyright: update documentation to point to maint.mk
46038         * build-aux/update-copyright: Here.
46039
46040 2009-08-06  Jim Meyering  <meyering@redhat.com>
46041
46042         maint.mk: support update-copyright-local
46043         * top/maint.mk (update-copyright-local): Define place-holder.
46044         (update-copyright): Depend on $(update-copyright-local).
46045
46046 2009-08-06  Jim Meyering  <meyering@redhat.com>
46047
46048         selinux-at: new module
46049         Initially written for coreutils, this module will soon be
46050         used by findutils, too.
46051         * MODULES.html.sh [Misc]: Add selinux-at.
46052         * lib/selinux-at.h: New file, from coreutils.
46053         * lib/selinux-at.c: Likewise.
46054         * modules/selinux-at: Likewise.
46055         (License): Change from LGPL to GPL, since it depends
46056         on the GPL'd openat module.
46057
46058         doc: update README
46059         * README: Remove references to cogito.
46060         Remove cvs-repo-updating instructions from 2007.
46061         Don't imply that CVS is better if you have limited disk space.
46062
46063 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46064
46065         update-copyright: support C-style comments
46066         * build-aux/update-copyright: Implement and document.
46067         * tests/test-update-copyright.sh: Test.
46068
46069 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46070
46071         update-copyright: support omitted "(C)"
46072         * build-aux/update-copyright: Implement and document.  Also,
46073         allow variable whitespace before "(C)".
46074         * tests/test-update-copyright.sh: Test.
46075
46076 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46077
46078         update-copyright: don't trip on non-FSF copyright statements
46079         * build-aux/update-copyright: Fix so that the first correctly
46080         formatted FSF copyright statement is recognized no matter what
46081         appears before it.  Update documentation.
46082         * tests/test-update-copyright.sh: Test that.
46083
46084 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46085
46086         update-copyright: clean up code a little
46087         * build-aux/update-copyright: Append "_re" to the name of any
46088         variable holding a regular expression.
46089         Replace "old" and "new" with "stmt" in variable names.
46090         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46091         handled correctly.
46092         Format code more consistently.
46093
46094 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46095
46096         update-copyright-tests: improve portability
46097         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46098         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46099
46100 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46101
46102         update-copyright: support @copyright{} and &copy;
46103         * build-aux/update-copyright: Implement and document.
46104         * tests/test-update-copyright.sh: Test.
46105
46106 2009-08-04  Jim Meyering  <meyering@redhat.com>
46107
46108         update-copyright-tests: correctly test EOL=\r\n handling
46109         * tests/test-update-copyright.sh: Put \r at the end of some lines
46110         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46111
46112         maint.mk: make update-copyright exclusion list more configurable
46113         * top/maint.mk (update-copyright): Default to excluding COPYING,
46114         but allow an override, in case someone does want to update that file.
46115
46116         maint.mk: don't update copyright date in COPYING
46117         * top/maint.mk (update-copyright): Exclude COPYING.
46118
46119         maint.mk: add a copyright-updating rule
46120         * top/maint.mk (update-copyright): New rule.
46121         Derived from coreutils/Makefile.am.
46122
46123         update-copyright: rename some variables
46124         * build-aux/update-copyright: Rename a few variables for clarity.
46125         Tweak syntax.  List Joel E. Denny as coauthor.
46126
46127 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46128
46129         update-copyright: fix bug for 2-digit last year and add tests
46130         * build-aux/update-copyright: Fix bug.
46131         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46132         specified.
46133         * modules/update-copyright-tests: New
46134         * tests/test-update-copyright.sh: New.
46135
46136 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46137
46138         update-copyright: handle leading tabs in line prefix
46139         * build-aux/update-copyright: Count leading tabs as 8 spaces
46140         when computing margin.  This helps with the formatting of
46141         ChangeLogs, for example.
46142         Fix documentation a little.
46143
46144 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46145
46146         update-copyright: support EOL=\r\n
46147         * build-aux/update-copyright: Implement that.
46148
46149 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46150
46151         update-copyright: automatically format copyright statements
46152         * build-aux/update-copyright: Implement that.
46153         Also, be a little more predictable and safer by always failing
46154         when the full copyright format is not perfectly recognized as an
46155         unbroken whole.  Discussed at
46156         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46157         Rewrite documentation.
46158
46159 2009-08-03  Bruno Haible  <bruno@clisp.org>
46160
46161         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46162
46163 2009-08-02  Bruno Haible  <bruno@clisp.org>
46164
46165         Tests for module 'uname'.
46166         * modules/uname-tests: New file.
46167         * tests/test-uname.c: New file.
46168
46169         New module 'uname'.
46170         * lib/uname.c: New file.
46171         * m4/uname.m4: New file.
46172         * modules/uname: New file.
46173         * doc/posix-functions/uname.texi: Mention the new module.
46174
46175 2009-08-02  Bruno Haible  <bruno@clisp.org>
46176
46177         Tests for module 'sys_utsname'.
46178         * modules/sys_utsname-tests: New file.
46179         * tests/test-sys_utsname.c: New file.
46180
46181         New module 'sys_utsname'.
46182         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46183         * m4/sys_utsname_h.m4: New file.
46184         * modules/sys_utsname: New file.
46185         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46186
46187 2009-08-02  Bruno Haible  <bruno@clisp.org>
46188
46189         Implicitly initialize the sockets library.
46190         * lib/gethostname.c: Include sockets.h.
46191         (rpl_gethostname): Invoke gl_sockets_startup.
46192         * lib/socket.c: Include sockets.h.
46193         (rpl_socket): Invoke gl_sockets_startup.
46194         * modules/gethostname (Depends-on): Add sockets.
46195         * modules/socket (Depends-on): Likewise.
46196         * tests/test-poll.c: Don't include sockets.h.
46197         (main): Don't invoke gl_sockets_startup.
46198         * tests/test-select.c: Don't include sockets.h.
46199         (main): Don't invoke gl_sockets_startup.
46200
46201 2009-08-02  Bruno Haible  <bruno@clisp.org>
46202
46203         Allow multiple calls to gl_sockets_startup.
46204         * lib/sockets.c (initialized_sockets_version): New variable.
46205         (gl_sockets_startup): Do nothing if already called for this or a higher
46206         version.
46207         (gl_sockets_cleanup): Reset initialized_sockets_version.
46208
46209 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46210
46211         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46212         different project/version.
46213
46214 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46215             Bruno Haible  <bruno@clisp.org>
46216
46217         Tests for module 'pipe-filter-gi'.
46218         * modules/pipe-filter-gi-tests: New file.
46219         * tests/test-pipe-filter-gi1.sh: New file.
46220         * tests/test-pipe-filter-gi1.c: New file.
46221         * tests/test-pipe-filter-gi2.sh: New file.
46222         * tests/test-pipe-filter-gi2-main.c: New file.
46223         * tests/test-pipe-filter-gi2-child.c: New file.
46224
46225         New module 'pipe-filter-gi'.
46226         * lib/pipe-filter-gi.c: New file.
46227         * modules/pipe-filter-gi: New file.
46228
46229 2009-08-02  Bruno Haible  <bruno@clisp.org>
46230             Paolo Bonzini  <bonzini@gnu.org>
46231
46232         Tests for module 'pipe-filter-ii'.
46233         * modules/pipe-filter-ii-tests: New file.
46234         * tests/test-pipe-filter-ii1.sh: New file.
46235         * tests/test-pipe-filter-ii1.c: New file.
46236         * tests/test-pipe-filter-ii2.sh: New file.
46237         * tests/test-pipe-filter-ii2-main.c: New file.
46238         * tests/test-pipe-filter-ii2-child.c: New file.
46239
46240         New module 'pipe-filter-ii'.
46241         * lib/pipe-filter.h: New file.
46242         * lib/pipe-filter-ii.c: New file.
46243         * lib/pipe-filter-aux.h: New file.
46244         * modules/pipe-filter-ii: New file.
46245
46246 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46247
46248         * lib/gc-libgcrypt.c: Change copyright to FSF.
46249         * lib/gc-gnulib.c: Likewise.
46250
46251 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46252
46253         * lib/gethostname.c: Include limits.h.
46254
46255 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46256             Bruno Haible  <bruno@clisp.org>
46257
46258         Ensure HOST_NAME_MAX as part of the gethostname module.
46259         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46260         define also HOST_NAME_MAX.
46261         * tests/test-gethostname.c: Include <limits.h>.
46262         (main): Check also HOST_NAME_MAX.
46263         * doc/posix-headers/limits.texi: Document the mingw problem.
46264
46265 2009-08-02  Bruno Haible  <bruno@clisp.org>
46266
46267         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46268         Add comments.
46269
46270 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46271
46272         * lib/gethostname.c: Add Windows wrapper.
46273         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46274         * modules/gethostname: Depend on sys_socket & errno, for also
46275         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46276         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46277
46278 2009-07-31  Jim Meyering  <meyering@redhat.com>
46279
46280         getloadavg: fix symbol name in comment
46281         * lib/getloadavg.c: Correct a typo I introduced when adding
46282         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46283         Matt Kraai spotted the problem.
46284
46285 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46286
46287         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46288         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46289         code also if ! defined N_NAME_POINTER.
46290         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46291         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46292         but the n_name member is a 12-byte array.
46293
46294 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46295
46296         update-copyright: generalize comment handling
46297         * build-aux/update-copyright: Handle copyright statements
46298         within more comment styles.
46299         Document usage.
46300         Report any file with an external copyright holder or parse failure.
46301
46302 2009-07-29  Jim Meyering  <meyering@redhat.com>
46303
46304         mktime: correct setting of REPLACE_MKTIME
46305         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46306
46307         update-copyright: new module
46308         * modules/update-copyright: New file.
46309         * build-aux/update-copyright: New file.
46310         * MODULES.html.sh (maint+release support): Add update-copyright.
46311
46312 2009-07-27  Bruno Haible  <bruno@clisp.org>
46313
46314         Fix compilation error when <ctime> is used and mktime is replaced.
46315         * lib/time.in.h (mktime): New declaration.
46316         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46317         REPLACE_MKTIME instead of defining mktime in config.h.
46318         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46319         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46320         Reported by Ross McFarland <rwmcfa1@neces.com>.
46321
46322 2009-07-27  Bruno Haible  <bruno@clisp.org>
46323
46324         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46325         Reported by Matt Kraai <mkraai@beckman.com>.
46326
46327 2009-07-25  Jim Meyering  <meyering@redhat.com>
46328
46329         maint.mk: avoid warnings about missing files
46330         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46331         diagnostic when .prev-version does not exist.
46332         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46333         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46334         nonexistent cfg.mk.
46335         Suggestions from Simon Josefsson.
46336
46337 2009-07-25  Bruno Haible  <bruno@clisp.org>
46338
46339         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46340         defined as macros. Needed on QNX 6.4.1.
46341         Reported by Matt Kraai <mkraai@beckman.com>.
46342
46343 2009-07-23  Jim Meyering  <meyering@redhat.com>
46344
46345         maint.mk: invoke "make dist" with a working value of XZ_OPT
46346         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46347
46348 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46349
46350         Make fseeko.c compile on QNX.
46351         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46352
46353 2009-07-22  Peter Simons  <simons@cryp.to>
46354
46355         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46356         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46357         * lib/md4.h: Likewise.
46358         * lib/md5.h: Likewise.
46359         * lib/sha1.h: Likewise.
46360         * lib/sha256.h: Likewise.
46361         * lib/sha512.h: Likewise.
46362
46363         tests-sha1: don't assign literal string to 'char *' variable
46364         * tests/test-sha1.c (main): Declare locals with "const" to match
46365         attributes of the right hand side.
46366
46367 2009-07-21  Eric Blake  <ebb9@byu.net>
46368
46369         dup2: fix more mingw problems
46370         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46371         fd to itself.
46372         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46373         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46374         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46375         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46376         care of mingw bugs.
46377
46378 2009-07-21  Jim Meyering  <meyering@redhat.com>
46379
46380         vc-list-files: avoid failure when /bin/sh is dash
46381         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46382         On some Debian based systems, /bin/sh is a symlink to dash, and running
46383         this command would omit the "/" following each 'tests' prefix:
46384           dash -x build-aux/vc-list-files -C . tests
46385         That is because bash and dash work differently:
46386           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46387           bash ok
46388           dash odd
46389
46390 2009-07-21  Eric Blake  <ebb9@byu.net>
46391
46392         dup2-tests: test previous patch
46393         * modules/dup2-tests: New file.
46394         * tests/test-dup2.c: Likewise.
46395         * tests/test-open.c (main): Avoid unspecified behavior.
46396         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46397         test.
46398
46399         dup2: work around mingw and cygwin 1.5 bug
46400         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46402         * modules/unistd (Makefile.am): Substitute it.
46403         * lib/unistd.in.h (dup2): Declare the replacement.
46404         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46405         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46406         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46407         * modules/execute (Depends-on): Add dup2.
46408         * modules/fseterr (Depends-on): Likewise.
46409         * modules/pipe (Depends-on): Likewise.
46410         * modules/posix_spawn-internal (Depends-on): Likewise.
46411
46412 2009-07-21  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/.gitattributes: New file.
46415
46416 2009-07-20  Bruno Haible  <bruno@clisp.org>
46417
46418         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46419         (main): Use it.
46420
46421 2009-07-20  Eric Blake  <ebb9@byu.net>
46422
46423         test-pipe: make a bit more robust.
46424         * tests/test-pipe.c (myerr): Allow error messages regardless of
46425         what we do to stderr.
46426         (test_pipe): Rearrange to avoid deadlock.
46427         (child_main): Try a larger read, to ensure we avoided deadlock.
46428         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46429         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46430         if misused.
46431
46432 2009-07-19  Jim Meyering  <meyering@redhat.com>
46433
46434         fts: avoid false-positive cycle-detection
46435         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46436         for each new command line argument.
46437
46438 2009-07-19  Bruno Haible  <bruno@clisp.org>
46439
46440         Fix build error on mingw with the modules sys_select and unistd.
46441         * modules/acl-tests (Depends-on): Add close.
46442         * modules/binary-io-tests (Depends-on): Likewise.
46443         * modules/closein-tests (Depends-on): Likewise.
46444         * modules/flock-tests (Depends-on): Likewise.
46445         * modules/fsync-tests (Depends-on): Likewise.
46446         * modules/lseek-tests (Depends-on): Likewise.
46447         * modules/pipe-tests (Depends-on): Likewise.
46448         * modules/posix_spawn-tests (Depends-on): Likewise.
46449         * modules/posix_spawnp-tests (Depends-on): Likewise.
46450         * modules/stat-time-tests (Depends-on): Likewise.
46451         * modules/yesno-tests (Depends-on): Likewise.
46452
46453 2009-07-19  Bruno Haible  <bruno@clisp.org>
46454
46455         Unify conditionals.
46456         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46457         macros, not at the compiler macros.
46458         * lib/pipe.c: Likewise.
46459         * lib/execute.c: Likewise.
46460         * lib/spawni.c: Likewise.
46461
46462 2009-07-19  Bruno Haible  <bruno@clisp.org>
46463
46464         Fix handling of closed stdin/stdout/stderr on mingw.
46465         * lib/w32spawn.h: Include unistd.h.
46466         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46467         file descriptor with O_NOINHERIT flag.
46468         (fd_safer_noinherit): New function, based on fd-safer.c.
46469         (dup_safer_noinherit): New function, based on dup-safer.c.
46470         (undup_safer_noinherit): New function.
46471         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46472         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46473         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46474         instead of fd_safer.
46475         * tests/test-pipe.c: Include <windows.h>.
46476         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46477         result.
46478
46479         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46480         from main.
46481         (test_pipe): Pass an extra argument for disambiguation.
46482         (main): Invoke parent_main or child_main.
46483
46484         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46485         consistently.
46486
46487 2009-07-18  Eric Blake  <ebb9@byu.net>
46488
46489         test-pipe: fix mingw build
46490         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46491
46492 2009-07-18  Bruno Haible  <bruno@clisp.org>
46493
46494         * modules/pipe-tests (Makefile.am): Fix typo.
46495
46496 2009-07-18  Eric Blake  <ebb9@byu.net>
46497
46498         error: fix mingw build
46499         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46500         Reported by Bruno Haible.
46501
46502         error: avoid undefined use of stdout
46503         * lib/error.c (error, error_at_line): Check that fd 1 is open
46504         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46505         is handling faults and the close_stdout module wants to report the
46506         detection of closed stdout as an error.
46507
46508 2009-07-17  Eric Blake  <ebb9@byu.net>
46509
46510         pipe: be robust in face of closed fds
46511         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46512         should cause child to misbehave.
46513         * modules/pipe-tests: New module.
46514         * tests/test-pipe.c: New file.
46515         * tests/test-pipe.sh: New file.
46516         Reported by Akim Demaille.
46517
46518 2009-07-14  Bruno Haible  <bruno@clisp.org>
46519
46520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46521         Reported by anonymous kc.
46522
46523 2009-07-07  Jim Meyering  <meyering@redhat.com>
46524
46525         maint.mk: don't look for translatable strings in *.m4 or *.mk
46526         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46527         when searching for translatable strings.
46528
46529 2009-07-05  Jim Meyering  <meyering@redhat.com>
46530
46531         remove superfluous parentheses in STREQ definition
46532         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46533         * lib/getugroups.c (STREQ): Likewise.
46534         * lib/fnmatch.c (STREQ): Likewise.
46535         Spotted by Bruno Haible.
46536
46537 2009-07-04  Jim Meyering  <meyering@redhat.com>
46538
46539         argv-iter: new module
46540         * MODULES.html.sh: Add argv-iter.
46541         * lib/argv-iter.c, lib/argv-iter.h: New files.
46542         * modules/argv-iter: New file.
46543         * modules/argv-iter-tests: New file.
46544         * tests/test-argv-iter.c: Test it.
46545
46546 2009-07-04  Bruno Haible  <bruno@clisp.org>
46547
46548         Fix assertion.
46549         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46550         contains more exact copies of a given entry than file2, leave the extra
46551         copies unpaired rather than aborting.
46552         Reported by Eric Blake.
46553
46554 2009-07-02  Bruno Haible  <bruno@clisp.org>
46555
46556         Speedup git-merge-changelog for git cherry-pick.
46557         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46558         (entries_mapping_get): New function, extracted from compute_mapping.
46559         (entries_mapping_reverse_get): New function.
46560         (compute_mapping): Add a 'full' argument. Return the result in a
46561         'struct entries_mapping'.
46562         (main): Update. Access the mappings through entries_mapping_get.
46563         Reported by Eric Blake.
46564
46565 2009-07-02  Bruno Haible  <bruno@clisp.org>
46566
46567         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46568         best_i.
46569
46570 2009-07-02  Bruno Haible  <bruno@clisp.org>
46571
46572         Speed up approximate search for matching ChangeLog entries.
46573         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46574         argument. Call fstrcmp_bounded instead of fstrcmp.
46575         (compute_mapping, try_split_merged_entry, main): Update callers.
46576
46577 2009-07-02  Bruno Haible  <bruno@clisp.org>
46578
46579         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46580
46581 2009-06-30  Bruno Haible  <bruno@clisp.org>
46582
46583         Reduce the number of uc_is_cased calls.
46584         * lib/unicase.h (casing_suffix_context_t): Add
46585         'first_char_except_ignorable' field.
46586         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46587         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46588         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46589         Update initializer.
46590         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46591         case-ignorable characters.
46592         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46593         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46594         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46595         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46596         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46597
46598 2009-06-30  Bruno Haible  <bruno@clisp.org>
46599
46600         Tests for module 'unicase/ignorable'.
46601         * modules/unicase/ignorable-tests: New file.
46602         * tests/unicase/test-ignorable.c: New file, generated by
46603         gen-uni-tables.
46604
46605         Tests for module 'unicase/cased'.
46606         * modules/unicase/cased-tests: New file.
46607         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46608         * tests/unicase/test-predicate-part1.h: New file, derived from
46609         tests/unictype/test-predicate-part1.h.
46610         * tests/unicase/test-predicate-part2.h: New file, same as
46611         tests/unictype/test-predicate-part2.h.
46612
46613         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46614         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46615         (output_casing_properties): New function.
46616         (main): Call it.
46617         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46618         * lib/unicase/cased.c: Include unictype/bitmap.h.
46619         (uc_is_cased): Define through a bitmap lookup.
46620         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46621         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46622         (uc_is_case_ignorable): Define through a bitmap lookup.
46623         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46624         lib/unictype/bitmap.h.
46625         (Depends-on): Add inline. Clean up.
46626         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46627         lib/unictype/bitmap.h.
46628         (Depends-on): Add inline. Clean up.
46629         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46630         recognition.
46631         * tests/unicase/test-u16-tolower.c (main): Likewise.
46632         * tests/unicase/test-u32-tolower.c (main): Likewise.
46633
46634 2009-06-30  Bruno Haible  <bruno@clisp.org>
46635
46636         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46637         * lib/unicase/u16-casemap.c: Likewise.
46638         * lib/unicase/u32-casemap.c: Likewise.
46639
46640 2009-06-29  Bruno Haible  <bruno@clisp.org>
46641
46642         Define u32_casefold as a wrapper around u32_ct_casefold.
46643         * lib/unicase/u32-casefold.c: Update.
46644         * modules/unicase/u32-casefold (Depends-on): Add
46645         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46646         unicase/empty-suffix-context. Clean up.
46647
46648         Define u16_casefold as a wrapper around u16_ct_casefold.
46649         * lib/unicase/u16-casefold.c: Update.
46650         * modules/unicase/u16-casefold (Depends-on): Add
46651         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46652         unicase/empty-suffix-context. Clean up.
46653
46654         Define u8_casefold as a wrapper around u8_ct_casefold.
46655         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46656         * lib/unicase/u8-casefold.c: Update.
46657         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46658         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46659
46660         Define u32_totitle as a wrapper around u32_ct_totitle.
46661         * lib/unicase/u32-totitle.c: Update.
46662         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46663         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46664
46665         Define u16_totitle as a wrapper around u16_ct_totitle.
46666         * lib/unicase/u16-totitle.c: Update.
46667         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46668         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46669
46670         Define u8_totitle as a wrapper around u8_ct_totitle.
46671         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46672         functions.
46673         (FUNC): Delegate to U_CT_TOTITLE.
46674         * lib/unicase/u8-totitle.c: Update.
46675         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46676         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46677
46678         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46679         invocation.
46680         * modules/unicase/u32-tolower (Depends-on): Add
46681         unicase/empty-prefix-context, unicase/empty-suffix-context.
46682
46683         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46684         invocation.
46685         * modules/unicase/u16-tolower (Depends-on): Add
46686         unicase/empty-prefix-context, unicase/empty-suffix-context.
46687
46688         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46689         * modules/unicase/u8-tolower (Depends-on): Add
46690         unicase/empty-prefix-context, unicase/empty-suffix-context.
46691
46692         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46693         invocation.
46694         * modules/unicase/u32-toupper (Depends-on): Add
46695         unicase/empty-prefix-context, unicase/empty-suffix-context.
46696
46697         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46698         invocation.
46699         * modules/unicase/u16-toupper (Depends-on): Add
46700         unicase/empty-prefix-context, unicase/empty-suffix-context.
46701
46702         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46703         * modules/unicase/u8-toupper (Depends-on): Add
46704         unicase/empty-prefix-context, unicase/empty-suffix-context.
46705
46706         New module 'unicase/u32-ct-casefold'.
46707         * lib/unicase/u32-ct-casefold.c: New file.
46708         * modules/unicase/u32-ct-casefold: New file.
46709
46710         New module 'unicase/u16-ct-casefold'.
46711         * lib/unicase/u16-ct-casefold.c: New file.
46712         * modules/unicase/u16-ct-casefold: New file.
46713
46714         New module 'unicase/u8-ct-casefold'.
46715         * lib/unicase/u8-ct-casefold.c: New file.
46716         * lib/unicase/u-ct-casefold.h: New file, derived from
46717         lib/unicase/u-casefold.h.
46718         * modules/unicase/u8-ct-casefold: New file.
46719
46720         New module 'unicase/u32-ct-totitle'.
46721         * lib/unicase/u32-ct-totitle.c: New file.
46722         * modules/unicase/u32-ct-totitle: New file.
46723
46724         New module 'unicase/u16-ct-totitle'.
46725         * lib/unicase/u16-ct-totitle.c: New file.
46726         * modules/unicase/u16-ct-totitle: New file.
46727
46728         New module 'unicase/u8-ct-totitle'.
46729         * lib/unicase/u8-ct-totitle.c: New file.
46730         * lib/unicase/u-ct-totitle.h: New file, derived from
46731         lib/unicase/u-totitle.h.
46732         * modules/unicase/u8-ct-totitle: New file.
46733
46734         New module 'unicase/u32-ct-tolower'.
46735         * lib/unicase/u32-ct-tolower.c: New file.
46736         * modules/unicase/u32-ct-tolower: New file.
46737
46738         New module 'unicase/u16-ct-tolower'.
46739         * lib/unicase/u16-ct-tolower.c: New file.
46740         * modules/unicase/u16-ct-tolower: New file.
46741
46742         New module 'unicase/u8-ct-tolower'.
46743         * lib/unicase/u8-ct-tolower.c: New file.
46744         * modules/unicase/u8-ct-tolower: New file.
46745
46746         New module 'unicase/u32-ct-toupper'.
46747         * lib/unicase/u32-ct-toupper.c: New file.
46748         * modules/unicase/u32-ct-toupper: New file.
46749
46750         New module 'unicase/u16-ct-toupper'.
46751         * lib/unicase/u16-ct-toupper.c: New file.
46752         * modules/unicase/u16-ct-toupper: New file.
46753
46754         New module 'unicase/u8-ct-toupper'.
46755         * lib/unicase/u8-ct-toupper.c: New file.
46756         * modules/unicase/u8-ct-toupper: New file.
46757
46758         Add context arguments to u*_casemap functions.
46759         * lib/unicase/unicasemap.h: Include unicase.h.
46760         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46761         suffix_context arguments.
46762         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46763         functions.
46764         (FUNC): Add prefix_context and suffix_context arguments. Use
46765         uc_is_cased and uc_is_case_ignorable.
46766         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46767         * lib/unicase/u16-casemap.c: Likewise.
46768         * lib/unicase/u32-casemap.c: Likewise.
46769         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46770         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46771         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46772         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46773         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46774         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46775
46776         New module 'unicase/u32-suffix-context'.
46777         * lib/unicase/u32-suffix-context.c: New file.
46778         * modules/unicase/u32-suffix-context: New file.
46779
46780         New module 'unicase/u16-suffix-context'.
46781         * lib/unicase/u16-suffix-context.c: New file.
46782         * modules/unicase/u16-suffix-context: New file.
46783
46784         New module 'unicase/u8-suffix-context'.
46785         * lib/unicase/u8-suffix-context.c: New file.
46786         * lib/unicase/u-suffix-context.h: New file.
46787         * modules/unicase/u8-suffix-context: New file.
46788
46789         New module 'unicase/empty-suffix-context'.
46790         * lib/unicase/empty-suffix-context.c: New file.
46791         * modules/unicase/empty-suffix-context: New file.
46792
46793         New module 'unicase/u32-prefix-context'.
46794         * lib/unicase/u32-prefix-context.c: New file.
46795         * modules/unicase/u32-prefix-context: New file.
46796
46797         New module 'unicase/u16-prefix-context'.
46798         * lib/unicase/u16-prefix-context.c: New file.
46799         * modules/unicase/u16-prefix-context: New file.
46800
46801         New module 'unicase/u8-prefix-context'.
46802         * lib/unicase/u8-prefix-context.c: New file.
46803         * lib/unicase/u-prefix-context.h: New file.
46804         * lib/unicase/context.h: New file.
46805         * modules/unicase/u8-prefix-context: New file.
46806
46807         New module 'unicase/empty-prefix-context'.
46808         * lib/unicase/empty-prefix-context.c: New file.
46809         * modules/unicase/empty-prefix-context: New file.
46810
46811         New module 'unicase/ignorable'.
46812         * lib/unicase/ignorable.c: New file.
46813         * modules/unicase/ignorable: New file.
46814
46815         New module 'unicase/cased'.
46816         * lib/unicase/caseprop.h: New file.
46817         * lib/unicase/cased.c: New file.
46818         * modules/unicase/cased: New file.
46819
46820         New functions for case mapping of substrings.
46821         * lib/unicase.h (casing_prefix_context_t): New type.
46822         (unicase_empty_prefix_context): New variable.
46823         (u8_casing_prefix_context, u16_casing_prefix_context,
46824         u32_casing_prefix_context, u8_casing_prefixes_context,
46825         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46826         declarations.
46827         (casing_suffix_context_t): New type.
46828         (unicase_empty_suffix_context): New variable.
46829         (u8_casing_suffix_context, u16_casing_suffix_context,
46830         u32_casing_suffix_context, u8_casing_suffixes_context,
46831         u16_casing_suffixes_context, u32_casing_suffixes_context,
46832         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46833         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46834         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46835         declarations.
46836
46837 2009-06-28  Jim Meyering  <meyering@redhat.com>
46838
46839         boostrap: indent only with spaces
46840         * build-aux/bootstrap: Indent only with spaces, never TABs.
46841
46842         bootstrap: split long lines
46843         * build-aux/bootstrap: Keep line length < 80.
46844
46845         bootstrap: sync from coreutils
46846         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46847         just as autoreconf does.  Verify a list of prerequisite
46848         package-name,version-number pairs if defined in bootstrap.conf.
46849         Refer to README-prereq, if prerequisites are not satisfied.
46850
46851 2009-06-27  Eric Blake  <ebb9@byu.net>
46852
46853         tests: add test for bogus NULL definition
46854         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46855         * tests/test-stdlib.c: Likewise.
46856         * tests/test-string.c: Likewise.
46857         * tests/test-locale.c: Likewise.
46858         * tests/test-unistd.c: Likewise.
46859         * modules/stdio-tests (Depends-on): Add verify.
46860         * modules/stdlib-tests (Depends-on): Likewise.
46861         * modules/string-tests (Depends-on): Likewise.
46862         * modules/locale-tests (Depends-on): Likewise.
46863         * modules/unistd-tests (Depends-on): Likewise.
46864
46865 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46866
46867         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46868         self-explaining comment.
46869         * m4/selinux-selinux-h: Update serial.
46870         (gl_LIBSELINUX): New macro, adding a warning for missing development
46871         packages to code extracted from...
46872         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46873         Add warning for missing development packages here, too.
46874
46875 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46876
46877         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46878
46879 2009-06-25  Eric Blake  <ebb9@byu.net>
46880
46881         version-etc: fix regression
46882         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46883         gcc.
46884         (version_etc): Use it, to catch bugs with trailing NULL.
46885         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46886         (version_etc_va): Fix logic bug.
46887         * modules/version-etc-tests: Add test.
46888         * tests/test-version-etc.c: New file.
46889         * tests/test-version-etc.sh: Likewise.
46890
46891 2009-06-25  Sam Steingold  <sds@gnu.org>
46892
46893         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46894         mbtowc declaration.
46895
46896 2009-06-25  Eric Blake  <ebb9@byu.net>
46897
46898         fpurge: migrate into <stdio.h>
46899         * lib/fpurge.h: Delete...
46900         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46901         * lib/fpurge.c (fpurge): Change declaring header.
46902         * modules/fpurge (Files): Drop deleted file.
46903         (Depends-on): Add stdio.
46904         (configure.ac): Set witness.
46905         * modules/stdio (Makefile.am): Support fpurge macros.
46906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46907         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46908         * lib/fflush.c: Update client.
46909         * tests/test-fpurge.c: Likewise.
46910         * NEWS: Mention the change.
46911
46912 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46913
46914         * lib/argp-version-etc.c (program_authors): Add const
46915         qualifier.
46916         * lib/version-etc.c: Fix typos in the comments.
46917         * modules/argp-version-etc: Depends on version-etc.
46918
46919 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46920
46921         argp-version-etc: new module.
46922
46923         * lib/argp-version-etc.c: New file.
46924         * lib/argp-version-etc.h: New file.
46925         * modules/argp-version-etc: New file.
46926         * modules/argp-version-etc-tests: New file.
46927         * tests/test-argp-version-etc.c: New test.
46928         * tests/test-argp-version-etc-1.sh: New test.
46929
46930 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46931
46932         Provide additional interfaces and documentation for version-etc
46933         module.
46934
46935         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46936         interfaces.
46937         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46938         prototypes.
46939
46940 2009-06-24  Bruno Haible  <bruno@clisp.org>
46941
46942         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46943         HAVE_LIB${NAME} macro.
46944         Reported by Sam Steingold <sds@gnu.org>.
46945
46946 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46947
46948         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46949         needed.
46950
46951 2009-06-21  Bruno Haible  <bruno@clisp.org>
46952
46953         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46954         work.
46955         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46956         together with LIB${NAME}, LTLIB${NAME}.
46957         Reported by Sam Steingold <sds@gnu.org>.
46958
46959 2009-06-20  Jim Meyering  <meyering@redhat.com>
46960
46961         tests: make sc_require_test_exit_idiom more generic
46962         * top/maint.mk (Exit_witness_file): New overridable variable.
46963         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46964         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46965
46966 2009-06-19  Jim Meyering  <meyering@redhat.com>
46967
46968         hash: reverse order of src/dst parameters in an internal interface
46969         * lib/hash.c (transfer_entries): Reverse order of parameters to
46970         put DST before SRC.  Adjust callers.
46971
46972         tests: test-hash: avoid wholesale duplication
46973         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46974         Instead, use a loop and add a single conditional.
46975
46976         tests: test-hash: allow seed selection via a command line argument
46977         * tests/test-hash.c (get_seed): New function.
46978         (main): Use it.
46979
46980 2009-06-19  Eric Blake  <ebb9@byu.net>
46981
46982         hash: avoid memory leak on allocation failure
46983         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46984         failure.  Factor repeated algorithm...
46985         (transfer_entries): ...into new helper routine.
46986         (hash_delete): React to hash_rehash return value.
46987
46988         hash: reduce memory pressure in hash_rehash no-op case
46989         * lib/hash.c (next_prime): Avoid overflow.
46990         (hash_initialize): Factor bucket size computation...
46991         (compute_bucket_size): ...into new helper function.
46992         (hash_rehash): Use new function and open coding to reduce memory
46993         pressure, and avoid a memory leak in USE_OBSTACK code.
46994         Reported by Jim Meyering.
46995
46996 2009-06-18  Eric Blake  <ebb9@byu.net>
46997
46998         hash: make rotation more obvious
46999         * modules/hash (Depends-on): Add bitrotate and stdint.
47000         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47001         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47002         (SIZE_MAX): Rely on headers for definition.
47003         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47004         (raw_hasher): Use rotr_sz.
47005         Suggested by Jim Meyering.
47006
47007         hash: fix memory leak in last patch
47008         * lib/hash.c (hash_rehash): Avoid memory leak.
47009
47010         hash: avoid no-op rehashing
47011         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47012
47013         hash: provide default callback functions
47014         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47015         (hash_initialize): Use them as defaults.
47016         * tests/test-hash.c (main): Test this.
47017
47018         hash: minor optimization
47019         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47020         when possible.
47021         (hash_initialize): Document this promise.
47022         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47023         * tests/test-hash.c (hash_compare_strings): Test this.
47024
47025 2009-06-18  Bruno Haible  <bruno@clisp.org>
47026
47027         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47028         going to be replaced anyway.
47029
47030 2009-06-18  Bruno Haible  <bruno@clisp.org>
47031
47032         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47033         in one place.
47034         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47035         be replaced anyway.
47036
47037 2009-06-18  Eric Blake  <ebb9@byu.net>
47038
47039         hash: check for resize before insertion
47040         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47041         threshold before insertion, so that a pathological hash_rehash
47042         that fills every bucket can still trigger another rehash.
47043
47044 2009-06-18  Jim Meyering  <meyering@redhat.com>
47045
47046         hash-tests: add a loop around the small tests
47047         * tests/test-hash.c (main): Repeat small tests with selected
47048         small initial table sizes.
47049
47050 2009-06-17  Eric Blake  <ebb9@byu.net>
47051
47052         hash: minor cleanups
47053         * lib/hash.h (hash_entry): Make opaque, by moving...
47054         * lib/hash.c (hash_entry): ...here.
47055         (hash_insert): Clarify restrictions on what can be inserted.
47056         (hash_get_next): Clarify when it is safe to remove an element
47057         during traversal.
47058         (check_tuning): Skip verification when tuning is known safe.
47059         (hash_initialize): Clarify restrictions on tuning.
47060
47061 2009-06-17  Jim Meyering  <jim@meyering.net>
47062         and Eric Blake  <ebb9@byu.net>
47063
47064         hash-tests: new module
47065         * modules/hash-tests: New file.
47066         * tests/test-hash.c: New file.
47067
47068 2009-06-17  Eric Blake  <ebb9@byu.net>
47069
47070         strstr-simple: document new module
47071         * MODULES.html.sh: Document new module.
47072
47073         strstr, strcasestr: replace on platforms with broken memchr
47074         * modules/strstr: Split into...
47075         * modules/strstr-simple: ...new module that does not care about
47076         performance, but does care about glibc bug.
47077         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47078         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47079         if platform memchr is broken, per Debian bug 521737.
47080         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47081         memchr.
47082         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47083         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47084         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47085         * modules/mountlist (Depends-on): Add strstr-simple.
47086         * modules/gen-uni-tables (Depends-on): Likewise.
47087         * modules/argz (Depends-on): Add strstr.
47088
47089 2009-06-17  Bruno Haible  <bruno@clisp.org>
47090
47091         * modules/posix_spawn-internal (Depends-on): Add errno.
47092
47093 2009-06-17  Bruno Haible  <bruno@clisp.org>
47094
47095         Define missing ESTALE on Interix 3.5.
47096         * lib/errno.in.h (ESTALE): Assign a value if missing.
47097         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47098         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47099         missing.
47100         * doc/posix-headers/errno.texi: Mention the Interix bug.
47101         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47102
47103 2009-06-15  Eric Blake  <ebb9@byu.net>
47104
47105         memchr, memchr2: add valgrind exception
47106         * lib/memchr.valgrind: New file.
47107         * lib/memchr2.valgrind: New file.
47108         * modules/memchr (Files): Distribute valgrind file.
47109         * modules/memchr2 (Files): Likewise.
47110
47111         docs: memchr is no longer obsolete
47112         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47113         * lib/string.in.h (memchr): Simplify logic.
47114
47115 2009-06-14  Jim Meyering  <meyering@redhat.com>
47116
47117         link-follow: fix the "checking..." message to not mention trailing slash
47118         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47119         never considered trailing slashes.
47120
47121 2009-06-14  Bruno Haible  <bruno@clisp.org>
47122
47123         * m4/memchr.m4: Mention also the bug on IA-64.
47124         * doc/posix-functions/memchr.texi: Likewise.
47125
47126 2009-06-12  Eric Blake  <ebb9@byu.net>
47127
47128         memchr: detect broken x86_64 and alpha implementations
47129         * modules/memchr-tests (Depends-on): Move mmap detection...
47130         * modules/memchr (Depends-on): ...here.
47131         (configure.ac): Set indicator.
47132         * lib/string.in.h (memchr): Declare replacement.
47133         * modules/string (Makefile.am): Trigger replacement.
47134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47135         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47136         bugs.
47137         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47138         * modules/getpagesize (License): Relax license.
47139
47140 2009-06-11  Bruno Haible  <bruno@clisp.org>
47141
47142         * lib/idpriv.h: Add more references.
47143
47144 2009-06-08  Bruno Haible  <bruno@clisp.org>
47145
47146         Tests for module 'idpriv-droptemp'.
47147         * modules/idpriv-droptemp-tests: New file.
47148         * tests/test-idpriv-droptemp.sh: New file.
47149         * tests/test-idpriv-droptemp.su.sh: New file.
47150         * tests/test-idpriv-droptemp.c: New file.
47151
47152         New module 'idpriv-droptemp'.
47153         * lib/idpriv-droptemp.c: New file.
47154         * modules/idpriv-droptemp: New file.
47155
47156 2009-06-08  Bruno Haible  <bruno@clisp.org>
47157
47158         Tests for module 'idpriv-drop'.
47159         * modules/idpriv-drop-tests: New file.
47160         * tests/test-idpriv-drop.sh: New file.
47161         * tests/test-idpriv-drop.su.sh: New file.
47162         * tests/test-idpriv-drop.c: New file.
47163
47164         New module 'idpriv-drop'.
47165         * lib/idpriv.h: New file.
47166         * lib-idpriv-drop.c: New file.
47167         * m4/idpriv.m4: New file.
47168         * modules/idpriv-drop: New file.
47169
47170 2009-06-08  Bruno Haible  <bruno@clisp.org>
47171
47172         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47173         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47174         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47175         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47176         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47177         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47178         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47179
47180 2009-06-08  Eric Blake  <ebb9@byu.net>
47181
47182         test-strstr: use memory fence, when possible
47183         * tests/test-strstr.c (main): Use memory fence, in order to be
47184         more likely to trigger Debian bug 521737.
47185         * modules/strstr-tests (Files): Pull in additional files.
47186
47187         memchr: no longer obsolete, for wider field testing
47188         * modules/memchr (Status, Notice): Delete, this module is no
47189         longer obsolete.
47190         * modules/vasnprintf (Depends-on): Add memchr.
47191
47192 2009-06-07  Jim Meyering  <meyering@redhat.com>
47193
47194         hash: declare some functions with the warn_unused_result attribute
47195         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47196
47197 2009-06-07  Bruno Haible  <bruno@clisp.org>
47198
47199         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47200         Reported by Eric Blake.
47201
47202 2009-06-06  Eric Blake  <ebb9@byu.net>
47203
47204         test-alignof: fix typo with long double
47205         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47206         compiler error.
47207
47208 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47209
47210         Escape non-texinfo { and }s.
47211         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47212         markup error.
47213
47214 2009-06-04  Jim Meyering  <meyering@redhat.com>
47215
47216         gitlog-to-changelog: don't infloop on an empty commit log
47217         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47218         Reported by Boris Petersen <transacid@centerim.org>.
47219
47220 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47221
47222         version-etc: extend for packagers
47223         Add three new configure options, intended for packagers:
47224           --with-packager="packager name"
47225           --with-packager-version="packager-specific version"
47226           --with-packager-bug-reports="packager bug reporting"
47227         An example with coreutils:
47228           $ ./configure \
47229             --with-packager=Gentoo \
47230             --with-packager-bug-report=http://bugs.gentoo.org/ \
47231             --with-packager-version="patchset 1.6"
47232           $ ./src/ls --version | head -n2
47233           ls (GNU coreutils) 7.1-dirty
47234           Packaged by Gentoo (patchset 1.6)
47235         Note that the bug reporting info via --help doesn't show up because
47236         coreutils uses its own custom emit_bug_reporting_address() implementation
47237         in src/system.h.  If it didn't, it'd look like:
47238           $ ./src/ls --help | tail -n4
47239           Report bugs to <bug-coreutils@gnu.org>.
47240           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47241           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47242           General help using GNU software: <http://www.gnu.org/gethelp/>.
47243         * lib/version-etc.c: Print new information, if provided.
47244         * m4/version-etc.m4: New file.
47245         * modules/version-etc (Files): Add m4/version-etc.m4.
47246         (configure.ac): Add gl_VERSION_ETC.
47247
47248 2009-05-31  Bruno Haible  <bruno@clisp.org>
47249
47250         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47251         and 'int64_t'.
47252         * modules/alignof-tests (Dependencies): Add stdint.
47253         Reported by Eric Blake.
47254
47255 2009-05-31  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47258         restriction due to compiler bugs.
47259         Reported by Eric Blake.
47260
47261 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47262             Bruno Haible  <bruno@clisp.org>
47263
47264         Fix test-alignof failure.
47265         * lib/alignof.h (alignof_slot): New macro.
47266         (alignof_type): New macro, with the same semantics as the previous
47267         'alignof'.
47268         (alignof): Alias to alignof_slot.
47269         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47270         check that the results are usable as constant expressions.
47271
47272 2009-05-31  Bruno Haible  <bruno@clisp.org>
47273
47274         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47275         * tests/test-memchr.c (main): Check that memchr does not read past the
47276         first occurrence of the byte.
47277         * tests/test-strstr.c (main): Update comment.
47278         Suggested by Eric Blake.
47279
47280 2009-05-30  Bruno Haible  <bruno@clisp.org>
47281
47282         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47283         detail how to use dumpbin.
47284         Reported by David Byron <dbyron@dbyron.com>.
47285
47286 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47287
47288         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47289
47290 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47291
47292         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47293
47294 2009-05-28  Bruno Haible  <bruno@clisp.org>
47295
47296         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47297         build-aux/ files.
47298
47299 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47300
47301         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47302
47303 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47304
47305         * gnulib-tool (sed_transform_main_lib_file)
47306         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47307         regexps.
47308
47309 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47310
47311         * tests/test-strstr.c: Add another self-test.
47312         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47313         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47314
47315 2009-05-23  Bruno Haible  <bruno@clisp.org>
47316
47317         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47318         change.
47319
47320 2009-05-21  Bruno Haible  <bruno@clisp.org>
47321
47322         Simplify use of mode_t varargs.
47323         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47324         uses 'mode_t' or 'int'.
47325         * lib/openat.c (openat): Likewise.
47326         * lib/open-safer.c (open_safer): Likewise.
47327         * m4/mode_t.m4: New file.
47328         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47329         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47330         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47331         * modules/open (Files): Add m4/mode_t.m4.
47332         * modules/openat (Files): Likewise.
47333         * modules/fcntl-safer (Files): Likewise.
47334         Suggested by Eric Blake.
47335
47336 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47337
47338         * doc/glibc-functions/fallocate.texi: New file.
47339         * doc/gnulib.texi: Include it.
47340
47341 2009-05-21  Eric Blake  <ebb9@byu.net>
47342             Bruno Haible  <bruno@clisp.org>
47343
47344         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47345         invocations.
47346         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47347
47348 2009-05-21  Eric Blake  <ebb9@byu.net>
47349             Bruno Haible  <bruno@clisp.org>
47350
47351         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47352         include_next. Fix of 2008-11-20 commit.
47353         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47354         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47355         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47356         NEXT_MATH_H.
47357         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47358         instead of NEXT_MATH_H.
47359
47360 2009-05-21  Bruno Haible  <bruno@clisp.org>
47361
47362         Avoid redefinition warnings for SIZE_MAX.
47363         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47364         Reported by Simon Josefsson.
47365
47366 2009-05-21  Bruno Haible  <bruno@clisp.org>
47367
47368         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47369         AC_CACHE_VAL.
47370
47371 2009-05-20  Bruno Haible  <bruno@clisp.org>
47372
47373         Make zeroptr.h work on mingw.
47374         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47375         mprotect.
47376         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47377         * modules/memchr2-tests (configure.ac): Likewise.
47378         * modules/memcmp-tests (configure.ac): Likewise.
47379         * modules/memmem-tests (configure.ac): Likewise.
47380         * modules/memrchr-tests (configure.ac): Likewise.
47381         Reported by Simon Josefsson.
47382
47383 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47384
47385         * tests/test-glob.c: Include string.h for strcmp prototype.
47386
47387 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47388
47389         * modules/getdelim (Depends-on): Add explicit stdint, although it
47390         was implicitly already pulled in via realloc-posix.
47391         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47392
47393 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47394
47395         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47396         G. Christensen" <tgc@jupiterrise.com>.
47397         * m4/sys_socket_h.m4: Check for sa_family_t.
47398         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47399         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47400         * tests/test-sys_socket.c: Check that sa_family_t works.
47401
47402 2009-05-18  Eric Blake  <ebb9@byu.net>
47403
47404         maint.mk: allow gnulib_dir in VPATH build
47405         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47406
47407 2009-05-15  Jim Meyering  <meyering@redhat.com>
47408
47409         maint.mk: Give gnulib_dir a default definition.
47410         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47411         Thus, most packages no longer need to specify this variable in cfg.mk
47412
47413 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47414
47415         rename.m4: fix typos that would make non-mingw cross-configure fail
47416         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47417
47418 2009-05-13  Eric Blake  <ebb9@byu.net>
47419
47420         mmap-anon: avoid out-of-order autoconf expansion
47421         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47422         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47423         * modules/memchr-tests (Depends-on): Add extensions.
47424         * modules/memchr2-tests (Depends-on): Add extensions.
47425         * modules/memcmp-tests (Depends-on): Add extensions.
47426         * modules/memmem-tests (Depends-on): Add extensions.
47427         * modules/memrchr-tests (Depends-on): Add extensions.
47428
47429 2009-05-13  Bruno Haible  <bruno@clisp.org>
47430
47431         Make some tests ISO C 99 compliant.
47432         * tests/zerosize-ptr.h: New file.
47433         * tests/test-memchr.c: Include zerosize-ptr.h.
47434         (main): Use a zero-size object pointer instead of NULL.
47435         * tests/test-memchr2.c: Include zerosize-ptr.h.
47436         (main): Use a zero-size object pointer instead of NULL.
47437         * tests/test-memcmp.c: Include zerosize-ptr.h.
47438         (main): Use a zero-size object pointer instead of NULL.
47439         * tests/test-memmem.c: Include zerosize-ptr.h.
47440         (main): Use a zero-size object pointer instead of NULL.
47441         * tests/test-memrchr.c: Include zerosize-ptr.h.
47442         (main): Use a zero-size object pointer instead of NULL.
47443         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47444         m4/mmap-anon.m4.
47445         (Depends-on): Add getpagesize.
47446         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47447         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47448         m4/mmap-anon.m4.
47449         (Depends-on): Add getpagesize.
47450         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47451         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47452         m4/mmap-anon.m4.
47453         (Depends-on): Add getpagesize.
47454         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47455         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47456         m4/mmap-anon.m4.
47457         (Depends-on): Add getpagesize.
47458         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47459         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47460         m4/mmap-anon.m4.
47461         (Depends-on): Add getpagesize.
47462         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47463
47464 2009-05-12  Bruno Haible  <bruno@clisp.org>
47465
47466         Tests for module 'alignof'.
47467         * modules/alignof-tests: New file.
47468         * tests/test-alignof.c: New file.
47469
47470 2009-05-12  Bruno Haible  <bruno@clisp.org>
47471
47472         Fix alignof macro.
47473         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47474         vendor compilers that are always correct.
47475
47476 2009-05-12  Bruno Haible  <bruno@clisp.org>
47477
47478         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47479         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47480         not whether its fully works.
47481
47482 2009-05-12  Bruno Haible  <bruno@clisp.org>
47483
47484         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47485
47486 2009-05-12  Jim Meyering  <meyering@redhat.com>
47487
47488         * top/maint.mk: Adjust backslash alignment.
47489
47490 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47491
47492         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47493
47494 2009-05-11  Eric Blake  <ebb9@byu.net>
47495
47496         argp: avoid undefined behavior
47497         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47498         macros.
47499
47500 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47501
47502         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47503         user.name to prevent git commit from complaining.
47504
47505 2009-05-10  Bruno Haible  <bruno@clisp.org>
47506
47507         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47508         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47509         it rewrites every file name only once.
47510         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47511
47512 2009-05-08  Bruno Haible  <bruno@clisp.org>
47513
47514         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47515         instead of 'max'.
47516
47517 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47518
47519         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47520         sockaddr_storage test.
47521
47522 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47523
47524         * modules/sys_socket (Makefile.am): Substitute
47525         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47526         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47527         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47528         * tests/test-sys_socket.c: Check sockaddr_storage.
47529
47530 2009-05-08  Bruno Haible  <bruno@clisp.org>
47531
47532         New module 'alignof'.
47533         * lib/alignof.h: New file.
47534         * modules/alignof: New file.
47535
47536 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47537             Bruno Haible  <bruno@clisp.org>
47538
47539         Fix test-file-has-acl on FreeBSD.
47540         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47541         mask is implicitly added.
47542         * tests/test-file-has-acl.c: Include <signal.h>.
47543         (main): Terminate the test after 5 seconds.
47544         * modules/acl-tests (configure.ac): Check for alarm function.
47545
47546 2009-05-04  Bruno Haible  <bruno@clisp.org>
47547
47548         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47549         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47550         * modules/errno (configure.ac): Drop AC_REQUIRE.
47551         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47552         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47553
47554 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47555
47556         * modules/glob-tests: New module.
47557         * tests/test-glob.c: Add.
47558
47559 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47560
47561         * modules/fnmatch-tests: New module.
47562         * tests/test-fnmatch.c: Add.
47563
47564 2009-05-04  Eric Blake  <ebb9@byu.net>
47565
47566         maint: make the new no-submodule-changes rule VPATH-safe
47567         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47568
47569 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47570             Bruno Haible  <bruno@clisp.org>
47571
47572         acl: Fix infinite loop on FreeBSD.
47573         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47574         of return value from acl_get_entry.
47575         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47576         Likewise.
47577
47578 2009-05-03  Bruno Haible  <bruno@clisp.org>
47579
47580         * lib/acl-internal.h (acl_entries): Clarify return value.
47581         * lib/acl_entries.c (acl_entries): Likewise.
47582
47583 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47584
47585         Bug fix in acl module.
47586         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47587
47588 2009-05-03  Bruno Haible  <bruno@clisp.org>
47589
47590         Create gperf-generated file in the source dir, not in the build dir.
47591         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47592         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47593         * modules/unicase/locale-language (unicase/locale-languages.h):
47594         Likewise.
47595         * modules/unicase/special-casing (unicase/special-casing-table.h):
47596         Likewise.
47597         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47598         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47599         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47600         Reported by Ralf Wildenhues.
47601
47602 2009-05-03  Bruno Haible  <bruno@clisp.org>
47603
47604         * modules/fnmatch (Description, configure.ac): Taken from
47605         fnmatch-posix.
47606         * modules/fnmatch-posix: Turn into a symbolic reference to the
47607         'fnmatch' module, and deprecate.
47608         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47609
47610 2009-05-03  Bruno Haible  <bruno@clisp.org>
47611
47612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47613         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47614         Reported by Ralf Wildenhues.
47615
47616 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47617
47618         * m4/fnmatch.m4: Fix fnmatch re-define.
47619
47620 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47621
47622         priv-set: new module and tests; adapt write-any-file
47623         * lib/priv-set.c: New file.
47624         * lib/priv-set.h: New file.
47625         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47626         * lib/write-any-file.c: Simplify by using priv-set module.
47627         * m4/priv-set.m4: New file.
47628         * modules/priv-set: New file.
47629         * modules/unlinkdir: Add dependency on priv-set module.
47630         * modules/write-any-file: Likewise.
47631
47632         Tests for module 'priv-set'.
47633         * modules/priv-set-tests: New file.
47634         * tests/test-priv-set.c: New file.
47635
47636 2009-05-03  Jim Meyering  <meyering@redhat.com>
47637             Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47640         use the converted UTF-8 variant of the name instead.
47641
47642 2009-05-03  Jim Meyering  <meyering@redhat.com>
47643
47644         tests: tighten some getdate tests
47645         * tests/test-getdate.c (main): Tighten tests: require equality,
47646         not just greater than.  Set TZ envvar to UTC0.
47647
47648 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47649
47650         getdate: correctly interpret "next monday" when run on a Monday
47651         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47652         that e.g., "next tues" (when run on a tuesday) results in a date
47653         that is one week in the future, and not today's date.
47654         I.e., add a week when the wday is the same as the current one.
47655         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47656         and earlier by Martin Bernreuther and Jan Minář.
47657         * tests/test-getdate.c (main): Check that "next DAY" is always in
47658         the future and that "last DAY" is always in the past.
47659
47660 2009-05-02  Jim Meyering  <meyering@redhat.com>
47661
47662         build: ensure that a release build fails when a submodule is unclean
47663         * top/maint.mk (no-submodule-changes): New rule.
47664         (alpha beta major): Depend on it.
47665
47666 2009-05-02  Bruno Haible  <bruno@clisp.org>
47667
47668         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47669         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47670         shell variable gl_fnmatch_required to detect which variant is
47671         requested.
47672         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47673         gl_FUNC_FNMATCH_POSIX.
47674         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47675         exclude fnmatch-posix.
47676
47677 2009-05-02  Bruno Haible  <bruno@clisp.org>
47678
47679         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47680         * modules/mbsrtowcs (License): Change to LGPLv2+.
47681         * modules/strnlen1 (License): Likewise.
47682         Reported by Simon Josefsson.
47683
47684 2009-05-02  Bruno Haible  <bruno@clisp.org>
47685
47686         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47687         "cross".
47688         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47689         gnulib-tool was called with option --source-base=lib.
47690
47691 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47692
47693         Use automake *-local hooks without commands, for extensibility.
47694         * modules/localcharset (Makefile.am): Rename install-exec-local
47695         rule to install-exec-localcharset, and make it a prerequisite of
47696         install-exec-local.  Likewise, rename the uninstall-local rule to
47697         uninstall-localcharset, and make it a prerequisite of the former.
47698
47699 2009-05-01  Bruno Haible  <bruno@clisp.org>
47700
47701         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47702         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47703         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47704         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47705         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47706         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47707         m4/locale-zh.m4, m4/codeset.m4.
47708
47709         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47710         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47711         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47712         m4/locale-zh.m4.
47713
47714         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47715         REPLACE_WCRTOMB if mbstate_t must be replaced.
47716         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47717         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47718
47719 2009-05-01  Bruno Haible  <bruno@clisp.org>
47720
47721         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47722         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47723         dngettext, dcngettext, textdomain, bindtextdomain,
47724         bind_textdomain_codeset): Undefine before redefining.
47725
47726 2009-04-30  Bruno Haible  <bruno@clisp.org>
47727
47728         Fix bug introduced on 2009-04-25.
47729         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47730         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47731         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47732         is defined.
47733         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47734         is defined.
47735         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47736         is defined.
47737         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47738
47739 2009-04-28  Bruno Haible  <bruno@clisp.org>
47740
47741         Comment tweaks.
47742         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47743         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47744         * lib/unicase.h (u*_casexfrm): Likewise.
47745         Reported by Paolo Bonzini.
47746
47747 2009-04-28  Bruno Haible  <bruno@clisp.org>
47748
47749         Fix a compilation error.
47750         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47751         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47752         Reported by Jim Meyering.
47753
47754 2009-04-27  Bruno Haible  <bruno@clisp.org>
47755
47756         New module 'libunistring'.
47757         * modules/libunistring: New file.
47758         * m4/libunistring.m4: New file.
47759         * MODULES.html.sh (Unicode string functions): Add it.
47760
47761 2009-04-27  Eric Blake  <ebb9@byu.net>
47762
47763         maint.mk: allow package-specific header to provide <config.h>
47764         * top/maint.mk (sc_require_config_h): New variable.
47765         (sc_require_config_h, sc_require_config_h_first): Use it.
47766
47767 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47768
47769         * top/maint.mk (sc_avoid_if_before_free): Except
47770         useless-if-before-free script.
47771
47772 2009-04-27  Eric Blake  <ebb9@byu.net>
47773
47774         maintainer-makefile: depend on all required helper scripts
47775         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47776         useless-if-before-free.
47777         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47778         version, rather than assuming gnulib checkout is available.
47779         Reported by Simen Josefsson.
47780
47781 2009-04-26  Bruno Haible  <bruno@clisp.org>
47782
47783         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47784         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47785         "../" or "..".
47786
47787 2009-04-26  Bruno Haible  <bruno@clisp.org>
47788
47789         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47790         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47791         AC_LIB_HAVE_LINKFLAGS.
47792
47793 2009-04-26  Bruno Haible  <bruno@clisp.org>
47794
47795         Simplify calling convention of u*_conv_from_encoding.
47796         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47797         u32_conv_from_encoding): Expect a resultbuf argument and return the
47798         result directly as a pointer.
47799         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47800         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47801         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47802         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47803         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47804         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47805         Update.
47806         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47807         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47808         * lib/vasnprintf.c (VASNPRINTF): Update.
47809         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47810         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47811         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47812         * NEWS: Mention the change.
47813
47814 2009-04-26  Bruno Haible  <bruno@clisp.org>
47815
47816         Simplify calling convention of u*_conv_to_encoding.
47817         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47818         u32_conv_to_encoding): Expect a resultbuf argument and return the
47819         result directly as a pointer.
47820         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47821         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47822         freeing scaled_offsets if mem_iconveha failed.
47823         * lib/unicase/u-casexfrm.h (FUNC): Update.
47824         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47825         * lib/vasnprintf.c (VASNPRINTF): Update.
47826         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47827         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47828         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47829         * NEWS: Mention the change.
47830
47831 2009-04-26  Bruno Haible  <bruno@clisp.org>
47832
47833         Avoid test failures on AIX and OSF/1.
47834         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47835         malloc(0).
47836         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47837         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47838         Likewise.
47839         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47840         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47841         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47842         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47843         * doc/posix-functions/malloc.texi: Document the portability problem
47844         related to malloc(0).
47845
47846 2009-04-26  Bruno Haible  <bruno@clisp.org>
47847
47848         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47849         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47850         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47851
47852 2009-04-25  Bruno Haible  <bruno@clisp.org>
47853
47854         Avoid link error when creating a namespace clean library.
47855         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47856         as macro with arguments if already defined as an alias.
47857         * lib/signbitf.c (gl_signbitf): Don't undefine.
47858         * lib/signbitd.c (gl_signbitd): Don't undefine.
47859         * lib/signbitl.c (gl_signbitl): Don't undefine.
47860
47861 2009-04-25  Jim Meyering  <meyering@redhat.com>
47862
47863         vc-list-files: fix another quoting bug
47864         * build-aux/vc-list-files: Avoid sed backslash expansion
47865         of pathological directory names.
47866
47867 2009-04-25  Eric Blake  <ebb9@byu.net>
47868
47869         vc-list-files: fix shell quoting error
47870         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47871         timestamp.
47872
47873 2009-04-25  Jim Meyering  <meyering@redhat.com>
47874
47875         vc-list-files: restore lost functionality with subdir argument
47876         * build-aux/vc-list-files: When given a non-"." sub-directory
47877         argument, substitute the $dir/ prefix back onto each resulting name.
47878         Otherwise, coreutils' root_tests check would fail.
47879
47880 2009-04-24  Eric Blake  <ebb9@byu.net>
47881
47882         vc-list-files: ignore git symlinks
47883         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47884         than ls-files, to ignore git symlinks.
47885
47886         maint.mk: import improvements from m4
47887         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47888         (move_if_change): Delete unused macro.
47889         (news-date-check, vc-diff-check): Support VPATH builds.
47890         (announcement): Likewise.  Split --bootstrap-tools list...
47891         (boostrap-tools): ...into separate list, which can be overridden
47892         in cfg.mk.
47893         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47894         requiring dependency on useless-if-before-free module.
47895         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47896         Support VPATH builds.
47897
47898 2009-04-24  Jim Meyering  <meyering@redhat.com>
47899
47900         maint.mk: remove coreutils-specific rules and variables
47901         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47902         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47903         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47904
47905         maint.mk: remove obsolete rule
47906         * top/maint.mk (rel-check): Remove rule.
47907         (WGET, WGETFLAGS): Remove now-unused variables.
47908
47909 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47910
47911         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47912         consistency.
47913
47914         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47915         '$(PATH_SEPARATOR)' instead of ':'.
47916
47917 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47918
47919         * lib/getopt1.c (main): Use 'const' for static array.
47920
47921 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47922
47923         * top/maint.mk: Sync with coreutils.
47924         * NEWS: Explain incompatibilities.
47925
47926 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47927             Bruno Haible  <bruno@clisp.org>
47928
47929         Fix cross-compilation results.
47930         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47931         statement, as third argument of AC_TRY_RUN.
47932         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47933         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47934         Likewise.
47935         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47936         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47937         Likewise.
47938         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47939         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47940         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47941
47942 2009-04-20  Bruno Haible  <bruno@clisp.org>
47943
47944         Avoid test failure on mingw.
47945         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47946
47947 2009-04-20  Bruno Haible  <bruno@clisp.org>
47948
47949         Avoid compilation error on mingw.
47950         * modules/localename-tests (Depends-on): Add locale.
47951
47952 2009-04-19  Bruno Haible  <bruno@clisp.org>
47953
47954         Support for building a shared library on Windows platforms.
47955         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47956         (main): Test the presence of UNINORM_NFC here.
47957         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47958         (main): Test the presence of UNINORM_NFD here.
47959         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47960         (main): Test the presence of UNINORM_NFKC here.
47961         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47962         (main): Test the presence of UNINORM_NFKD here.
47963
47964 2009-04-19  Bruno Haible  <bruno@clisp.org>
47965
47966         Avoid a compiler warning.
47967         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47968         Change type of variable 'sequence'.
47969
47970 2009-04-19  Bruno Haible  <bruno@clisp.org>
47971
47972         * modules/configmake (Makefile.am): When the contents of configmake.h
47973         does not change, arrange to preserve its modification time.
47974
47975 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47976
47977         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47978         gettext domain.
47979
47980 2009-04-16  Jim Meyering  <meyering@redhat.com>
47981
47982         useless-if-before-free: improve conversion code
47983         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47984         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47985
47986 2009-04-14  Bruno Haible  <bruno@clisp.org>
47987
47988         * modules/fcntl (Depends-on): Add extensions.
47989         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47990
47991 2009-04-12  Ben Pfaff  <blp@gnu.org>
47992
47993         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47994         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47995
47996 2009-03-20  Ben Pfaff  <blp@gnu.org>
47997
47998         Make rename replace existing destinations on Windows.
47999         * m4/rename.m4: Add test for Mingw.
48000         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48001         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48002         * doc/posix-functions/rename.texi: Document.
48003
48004 2009-04-10  Bruno Haible  <bruno@clisp.org>
48005
48006         New include file "iconveh.h".
48007         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48008         * lib/striconveh.h: Include it.
48009         (enum iconv_ilseq_handler): Remove definition.
48010         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48011         striconveh.h.
48012         * lib/striconveha.c: Include striconveh.h.
48013         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48014         * modules/striconveh (Files): Add lib/iconveh.h.
48015         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48016         lib/striconveh.h.
48017
48018 2009-04-10  Bruno Haible  <bruno@clisp.org>
48019
48020         * lib/uniconv.h: Update comment.
48021
48022 2009-04-10  Bruno Haible  <bruno@clisp.org>
48023
48024         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48025         always.
48026         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48027         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48028         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48029         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48030         "unistring-notinline.h", so that the function gets defined always.
48031         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48032         * lib/unistr/u8-uctomb.c: Likewise.
48033         * lib/unistr/u16-mbtouc.c: Likewise.
48034         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48035         * lib/unistr/u16-uctomb.c: Likewise.
48036         * lib/unistr/u32-mbtouc.c: Likewise.
48037         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48038         * lib/unistr/u32-uctomb.c: Likewise.
48039
48040 2009-04-10  Bruno Haible  <bruno@clisp.org>
48041
48042         Mark 'utime' obsolete.
48043         * modules/utime (Status, Notice): New sections.
48044         Suggested by Jim Meyering.
48045
48046         Fix cross-compile guess for utime test.
48047         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48048         autoconf.
48049         * doc/posix-functions/utime.texi: Give more precisions.
48050         Reported by Jan <ipif@ymail.com>.
48051
48052 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48053
48054         filevercmp: correct today's change
48055         * lib/filevercmp.c: Also handle coreutils' test inputs.
48056         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48057
48058         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48059         for reporting it.
48060         * lib/filevercmp.c: Special handle for "", "." and "..".
48061         * tests/test-filevercmp.c: Enlarge the set suite.
48062
48063 2009-04-07  Jim Meyering  <meyering@redhat.com>
48064
48065         useless-if-before-free: show how to remove braced useless free, too
48066         * build-aux/useless-if-before-free: still only in a comment, though.
48067
48068 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48069
48070         maint.mk: import changes to syntax-check macros from coreutils
48071         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48072         Use them in the relevant macros.
48073
48074 2009-04-06  Bruno Haible  <bruno@clisp.org>
48075
48076         Fix unportable use of bit-fields.
48077         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48078         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48079         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48080
48081 2009-04-06  Bruno Haible  <bruno@clisp.org>
48082
48083         Avoid test failures on AIX and OSF/1.
48084         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48085         that malloc(0) = NULL.
48086         * tests/unicase/test-u8-tolower.c (check): Likewise.
48087         * tests/unicase/test-u8-totitle.c (check): Likewise.
48088         * tests/unicase/test-u8-toupper.c (check): Likewise.
48089         * tests/unicase/test-u16-casefold.c (check): Likewise.
48090         * tests/unicase/test-u16-tolower.c (check): Likewise.
48091         * tests/unicase/test-u16-totitle.c (check): Likewise.
48092         * tests/unicase/test-u16-toupper.c (check): Likewise.
48093         * tests/unicase/test-u32-casefold.c (check): Likewise.
48094         * tests/unicase/test-u32-tolower.c (check): Likewise.
48095         * tests/unicase/test-u32-totitle.c (check): Likewise.
48096         * tests/unicase/test-u32-toupper.c (check): Likewise.
48097         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48098         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48099         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48100         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48101         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48102         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48103         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48104         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48105         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48106         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48107         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48108         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48109
48110 2009-04-05  Bruno Haible  <bruno@clisp.org>
48111
48112         Work around an autoconf limitation.
48113         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48114         comment line if it would be longer than 3 KB.
48115
48116 2009-04-05  Bruno Haible  <bruno@clisp.org>
48117
48118         Avoid test failure with libiconv-1.13.
48119         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48120         of the expected test results.
48121
48122 2009-04-05  Bruno Haible  <bruno@clisp.org>
48123
48124         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48125         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48126         that it should be installed.
48127
48128 2009-04-05  Bruno Haible  <bruno@clisp.org>
48129
48130         * gnulib-tool: New option --copy-file.
48131         (func_usage): Document it.
48132         (func_dest_tmpfilename): Moved out of func_import.
48133         (func_add_file, func_update_file): New functions, extracted from
48134         func_import.
48135         (func_import): Update.
48136
48137 2009-04-05  Karl Berry  <karl@gnu.org>
48138
48139         * README: prominently mention gnulib-tool.
48140         Rearrange sections so getting the code is near the top.
48141
48142 2009-04-05  Bruno Haible  <bruno@clisp.org>
48143
48144         * lib/unicase.h: Mention u*_cmp2.
48145         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48146         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48147         * lib/unicase/ulc-casecmp.c: Likewise.
48148         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48149         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48150         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48151         unistr/u8-cmp.
48152         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48153         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48154         unistr/u16-cmp.
48155         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48156         unistr/u32-cmp.
48157
48158         * lib/uninorm.h: Mention u*_cmp2.
48159         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48160         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48161         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48162         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48163         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48164         unistr/u8-cmp.
48165         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48166         unistr/u16-cmp.
48167         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48168         unistr/u32-cmp.
48169
48170         New module 'unistr/u32-cmp2'.
48171         * lib/unistr/u32-cmp2.c: New file.
48172         * modules/unistr/u32-cmp2: New file.
48173
48174         New module 'unistr/u16-cmp2'.
48175         * lib/unistr/u16-cmp2.c: New file.
48176         * modules/unistr/u16-cmp2: New file.
48177
48178         New module 'unistr/u8-cmp2'.
48179         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48180         * lib/unistr/u8-cmp2.c: New file.
48181         * lib/unistr/u-cmp2.h: New file.
48182         * modules/unistr/u8-cmp2: New file.
48183
48184 2009-04-05  Bruno Haible  <bruno@clisp.org>
48185
48186         * lib/unictype.h (uc_property_is_valid): New macro.
48187         * tests/unictype/test-pr_byname.c (main): Use it.
48188
48189         * lib/unistr.h: Doc fixes.
48190         * lib/uniconv.h: Doc fixes.
48191         * lib/unictype.h: Doc fixes.
48192
48193 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48194
48195         Port coreutils 7.2 to Solaris 8.
48196
48197         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48198         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48199         for Solaris 8.  This is a bit of a hack, as it means it's the
48200         caller's responsibility to add -lnsl if needed, but most likely it
48201         won't be needed since only getaddrinfo uses this and getaddrinfo
48202         isn't needed on Solaris 8.
48203
48204         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48205         problem to Solaris 8 encountered with coreutils 7.2, which
48206         resulted in a message "fnmatch.c:292: warning: passing argument 4
48207         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48208         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48209
48210 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48211
48212         * m4/ld-version-script.m4: Add FIXME comment.
48213
48214 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48215
48216         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48217         SOVERSION variable.
48218
48219 2009-04-02  Bruno Haible  <bruno@clisp.org>
48220
48221         * Makefile (info, html, dvi, pdf): Combine the rules.
48222         Suggested by Jim Meyering.
48223
48224 2009-04-01  Bruno Haible  <bruno@clisp.org>
48225
48226         * Makefile (info, html, dvi, pdf): New targets.
48227         Reported by Reuben Thomas <rrt@sc3d.org>.
48228
48229 2009-04-01  Bruno Haible  <bruno@clisp.org>
48230
48231         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48232         can be put into PATH.
48233         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48234
48235 2009-04-01  Bruno Haible  <bruno@clisp.org>
48236
48237         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48238
48239 2009-04-01  Bruno Haible  <bruno@clisp.org>
48240
48241         Rename module 'visibility'.
48242         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48243         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48244         * doc/gnulib.texi: Update.
48245         * MODULES.html.sh (Misc): Update.
48246         * NEWS: Mention the change.
48247
48248 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48249
48250         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48251         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48252         Eric Blake <ebb9@byu.net> for review.
48253         * MODULES.html.sh: Add lib-msvc-compat.
48254         * doc/gnulib.texi: Link to new section.
48255         * m4/ld-output-def.m4: New file.
48256         * doc/ld-output-def.texi: New file.
48257
48258 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48259
48260         Rename ld-version-script to lib-symbol-versions.  Suggested by
48261         Bruno Haible <bruno@clisp.org>.
48262         * modules/ld-version-script: Renamed to lib-symbol-versions.
48263         * doc/ld-version-script.texi: Fix module name.
48264         * MODULES.html.sh: Add lib-symbol-versions.
48265
48266 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48267
48268         * modules/u64-tests: New file.
48269         * tests/test-u64.c: New file.
48270
48271 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48272
48273         * MODULES.html.sh: Mention u64.
48274         * modules/u64: New module.
48275         * modules/crypto/sha512: Depend on u64 module instead of providing
48276         u64.h.
48277
48278 2009-03-27  Eric Blake  <ebb9@byu.net>
48279
48280         test-strerror: make debugging EAI_SYSTEM easier
48281         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48282         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48283         failure was EAI_SYSTEM.
48284
48285 2009-03-25  Bruno Haible  <bruno@clisp.org>
48286
48287         Fix a problem with --enable-relocatable on Solaris 7.
48288         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48289         since 2008-02-24.
48290
48291 2009-03-25  Eric Blake  <ebb9@byu.net>
48292
48293         test-sockets: avoid gcc warning
48294         * tests/test-sockets.c (main): Silence compiler warning.
48295
48296 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48297
48298         New modules nproc, pthread, contributed by Glen Lenker.
48299
48300         * MODULES.html.sh: Add pthread, nproc.
48301         * lib/nproc.c: New file.
48302         * lib/nproc.h: New file.
48303         * lib/pthread.in.h: New file.
48304         * m4/pthread.m4: New file.
48305         * modules/nproc: New file.
48306         * modules/pthread: New file.
48307
48308 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48309
48310         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48311         New variable.
48312
48313 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48314
48315         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48316         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48317         * tests/test-filevercmp.c: Add tests for backup suffixes.
48318
48319 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48320
48321         * modules/stdlib (Depends-on): Add stdint, needed when defining
48322         struct random_data on, for example, HP-UX 10.20.  Reported by
48323         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48324
48325 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48326
48327         * lib/readline.c (readline): Call fflush on stdout after printing
48328         prompt.
48329
48330 2009-03-20  Bruno Haible  <bruno@clisp.org>
48331
48332         Remove dependency from 'close' module to -lws2_32 on native Windows.
48333         * lib/close-hook.h: New file.
48334         * lib/close-hook.c: New file.
48335         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48336         w32sock.h.
48337         (_gl_close_fd_maybe_socket): Remove function.
48338         (rpl_close): Invoke execute_all_close_hooks instead of
48339         _gl_close_fd_maybe_socket.
48340         * lib/sockets.c: Include close-hook.h, w32sock.h.
48341         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48342         (close_sockets_hook): New variable.
48343         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48344         (gl_sockets_cleanup): Unregister it.
48345         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48346         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48347         * modules/close-hook: New file.
48348         * modules/close (Files): Remove lib/w32sock.h.
48349         (Depends-on): Add close-hook.
48350         (Link): Remove section.
48351         * modules/sockets (Files): Add lib/w32sock.h.
48352         (Depends-on): Add close-hook.
48353         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48354         invocation.
48355         * NEWS: Mention that LIB_CLOSE is gone.
48356
48357 2009-03-23  Eric Blake  <ebb9@byu.net>
48358
48359         signal-tests: test previous patch
48360         * tests/test-signal.c: New file.
48361         * modules/signal-tests: Likewise.
48362
48363         signal.h: always support 'volatile sig_atomic_t'
48364         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48365         (gl_SIGNAL_H_DEFAULTS): Add a default.
48366         * modules/signal (Makefile.am): Substitute if needed.
48367         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48368         users can blindly add volatile.
48369         * doc/posix-headers/signal.texi (signal.h): Document it.
48370         Reported by Matthew Woehlke.
48371
48372 2009-03-23  Jim Meyering  <meyering@redhat.com>
48373
48374         pathmax: PATH_MAX: use pathconf only when available
48375         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48376         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48377         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48378         This avoids a link failure in a PSP cross-compilation environment
48379         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48380
48381         * lib/vasnprintf.c (divide): Fix typo in comment.
48382
48383 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48384
48385         * gnulib-tool (func_filter_filelist): Fix comment.
48386
48387 2009-03-20  Bruno Haible  <bruno@clisp.org>
48388
48389         Make sockets.h self-contained.
48390         * lib/sockets.c: Include sockets.h first.
48391         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48392
48393 2009-03-19  Eric Blake  <ebb9@byu.net>
48394
48395         doc: mention more functions added in cygwin 1.7.0
48396         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48397         addition.
48398         * doc/posix-functions/log2f.texi: Likewise.
48399
48400 2009-03-19  Jim Meyering  <meyering@redhat.com>
48401
48402         fsusage: avoid syntax error due to statement-before-declaration
48403         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48404         after all declarations.  Reported by Matthew Woehlke in
48405         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48406
48407 2009-03-18  Eric Blake  <ebb9@byu.net>
48408
48409         build-aux/compile: sync from automake
48410         * build-aux/compile: New file, from automake.
48411         * config/srclist.txt: Mention build-aux/compile.
48412
48413 2009-03-17  Bruno Haible  <bruno@clisp.org>
48414
48415         * lib/git-merge-changelog.c: Fix typo in comment.
48416         Reported by Reuben Thomas <rrt@sc3d.org>.
48417
48418 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48419
48420         * m4/regex.m4: update and improve help for
48421         --without-included-regex.
48422
48423 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48424
48425         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48426         failure on missing include files.
48427
48428 2009-03-17  Eric Blake  <ebb9@byu.net>
48429
48430         doc: mention more functions added in cygwin 1.7.0
48431         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48432         addition.
48433         * doc/posix-functions/fwscanf.texi: Likewise.
48434         * doc/posix-functions/swprintf.texi: Likewise.
48435         * doc/posix-functions/swscanf.texi: Likewise.
48436         * doc/posix-functions/vfwprintf.texi: Likewise.
48437         * doc/posix-functions/vfwscanf.texi: Likewise.
48438         * doc/posix-functions/vswprintf.texi: Likewise.
48439         * doc/posix-functions/vswscanf.texi: Likewise.
48440         * doc/posix-functions/vwprintf.texi: Likewise.
48441         * doc/posix-functions/vwscanf.texi: Likewise.
48442         * doc/posix-functions/wcscasecmp.texi: Likewise.
48443         * doc/posix-functions/wcsdup.texi: Likewise.
48444         * doc/posix-functions/wcsftime.texi: Likewise.
48445         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48446         * doc/posix-functions/wprintf.texi: Likewise.
48447         * doc/posix-functions/wscanf.texi: Likewise.
48448         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48449
48450 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48451
48452         maint.mk: really add $(AM_MAKEFLAGS)
48453         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48454         was inadvertently omitted in the last commit.
48455         Spotted by Bruno Haible.
48456
48457         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48458         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48459         $(AM_MAKEFLAGS)' rather than plain `make'.
48460
48461         gnulib-tool: execute $MAKE not make
48462         * gnulib-tool: Default $MAKE to 'make'.
48463         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48464         than make.  Initialize $MAKE in the do-autobuild script.
48465
48466         gnulib-tool: use $MAKE not make in generated files
48467         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48468         make, in generated files.  Initialize $MAKE in the do-autobuild
48469         script.
48470
48471         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48472
48473         GNUmakefile: disable parallelism only for multiple, recursive targets
48474         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48475         additions in the Makefile.
48476         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48477         by Automake.
48478         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48479         are listed on the command line and at least one of them is
48480         listed in $(ALL_RECURSIVE_TARGETS).
48481
48482 2009-03-14  Bruno Haible  <bruno@clisp.org>
48483
48484         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48485         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48486         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48487         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48488         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48489         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48490         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48491         unistr/u8-uctomb.
48492         * modules/unistr/u8-strchr (Depends-on): Likewise.
48493         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48494         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48495         unistr/u16-uctomb.
48496         * modules/unistr/u16-strchr (Depends-on): Likewise.
48497         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48498
48499 2009-03-12  Bruno Haible  <bruno@clisp.org>
48500
48501         Work around select() bug on Interix 3.5.
48502         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48503         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48504         * m4/select.m4: New file.
48505         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48506         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48507         * modules/select (Files): Add m4/select.m4.
48508         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48509         * modules/nanosleep (Depends-on): Add select.
48510         * modules/poll (Depends-on): Likewise.
48511         * doc/posix-functions/select.texi: Mention the Interix bug.
48512         Reported by Markus Duft <mduft@gentoo.org>.
48513
48514         * lib/select.c: Renamed from lib/winsock-select.c.
48515         * modules/select (Files): Add lib/select.c, remove
48516         lib/winsock-select.c.
48517         (configure.ac): Update.
48518
48519 2009-03-12  Jim Meyering  <meyering@redhat.com>
48520
48521         avoid gcc warnings about unused macro definitions
48522         * lib/readtokens.c (STREQ): Remove unused definition.
48523         * lib/xmalloc.c (SIZE_MAX): Likewise.
48524         * lib/openat-die.c (N_): Likewise.
48525         * lib/mountlist.c (SIZE_MAX): Remove definition.
48526         Instead, include <stdint.h>.
48527         * lib/readutmp.c: Likewise.
48528         * modules/readutmp (Depends-on): Add stdint.
48529         * modules/mountlist (Depends-on): Add stdint.
48530         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48531
48532 2009-03-10  Bruno Haible  <bruno@clisp.org>
48533
48534         Tests for module 'mbmemcasecoll'.
48535         * modules/mbmemcasecoll-tests: New file.
48536         * tests/test-mbmemcasecoll1.sh: New file.
48537         * tests/test-mbmemcasecoll2.sh: New file.
48538         * tests/test-mbmemcasecoll3.sh: New file.
48539         * tests/test-mbmemcasecoll.c: New file.
48540
48541         New module 'mbmemcasecoll'.
48542         * lib/mbmemcasecoll.h: New file.
48543         * lib/mbmemcasecoll.c: New file.
48544         * modules/mbmemcasecoll: New file.
48545
48546         * tests/test-mbmemcasecmp.h: New file, extracted from
48547         tests/test-mbmemcasecmp.c.
48548         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48549         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48550         (main): Update.
48551         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48552
48553 2009-03-09  Bruno Haible  <bruno@clisp.org>
48554
48555         Tests for module 'mbmemcasecmp'.
48556         * modules/mbmemcasecmp-tests: New file.
48557         * tests/test-mbmemcasecmp1.sh: New file.
48558         * tests/test-mbmemcasecmp2.sh: New file.
48559         * tests/test-mbmemcasecmp3.sh: New file.
48560         * tests/test-mbmemcasecmp.c: New file.
48561
48562         New module 'mbmemcasecmp'.
48563         * lib/mbmemcasecmp.h: New file.
48564         * lib/mbmemcasecmp.c: New file.
48565         * modules/mbmemcasecmp: New file.
48566
48567 2009-03-09  Bruno Haible  <bruno@clisp.org>
48568
48569         Tests for module 'unicase/ulc-casecoll'.
48570         * modules/unicase/ulc-casecoll-tests: New file.
48571         * tests/unicase/test-ulc-casecoll1.sh: New file.
48572         * tests/unicase/test-ulc-casecoll2.sh: New file.
48573         * tests/unicase/test-ulc-casecoll.c: New file.
48574
48575         New module 'unicase/ulc-casecoll'.
48576         * lib/unicase.h (ulc_casecoll): New declaration.
48577         * lib/unicase/ulc-casecoll.c: New file.
48578         * modules/unicase/ulc-casecoll: New file.
48579
48580         New module 'unicase/ulc-casexfrm'.
48581         * lib/unicase.h (ulc_casexfrm): New declaration.
48582         * lib/unicase/ulc-casexfrm.c: New file.
48583         * modules/unicase/ulc-casexfrm: New file.
48584
48585 2009-03-09  Bruno Haible  <bruno@clisp.org>
48586
48587         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48588         invocations.
48589
48590         * m4/mbscasecmp.m4: Remove file.
48591         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48592         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48593
48594         * m4/mbscasestr.m4: Remove file.
48595         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48596         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48597
48598         * m4/mbschr.m4: Remove file.
48599         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48600         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48601
48602         * m4/mbscspn.m4: Remove file.
48603         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48604         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48605
48606         * m4/mbslen.m4: Remove file.
48607         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48608         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48609
48610         * m4/mbsncasecmp.m4: Remove file.
48611         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48612         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48613
48614         * m4/mbsnlen.m4: Remove file.
48615         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48616         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48617
48618         * m4/mbspbrk.m4: Remove file.
48619         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48620         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48621
48622         * m4/mbspcasecmp.m4: Remove file.
48623         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48624         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48625
48626         * m4/mbsrchr.m4: Remove file.
48627         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48628         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48629
48630         * m4/mbssep.m4: Remove file.
48631         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48632         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48633
48634         * m4/mbsspn.m4: Remove file.
48635         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48636         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48637
48638         * m4/mbsstr.m4: Remove file.
48639         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48640         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48641
48642         * m4/mbstok_r.m4: Remove file.
48643         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48644         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48645
48646         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48647
48648         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48649         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48650
48651         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48652
48653 2009-03-08  Bruno Haible  <bruno@clisp.org>
48654
48655         Tests for module 'unicase/ulc-casecmp'.
48656         * modules/unicase/ulc-casecmp-tests: New file.
48657         * tests/unicase/test-ulc-casecmp1.sh: New file.
48658         * tests/unicase/test-ulc-casecmp2.sh: New file.
48659         * tests/unicase/test-ulc-casecmp.c: New file.
48660
48661         New module 'unicase/ulc-casecmp'.
48662         * lib/unicase.h (ulc_casecmp): New declaration.
48663         * lib/unicase/ulc-casecmp.c: New file.
48664         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48665         'const SRC_UNIT *'.
48666         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48667         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48668         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48669         * modules/unicase/ulc-casecmp: New file.
48670
48671         Tests for module 'unicase/u32-is-cased'.
48672         * modules/unicase/u32-is-cased-tests: New file.
48673         * tests/unicase/test-u32-is-cased.c: New file.
48674
48675         Tests for module 'unicase/u16-is-cased'.
48676         * modules/unicase/u16-is-cased-tests: New file.
48677         * tests/unicase/test-u16-is-cased.c: New file.
48678
48679         Tests for module 'unicase/u8-is-cased'.
48680         * modules/unicase/u8-is-cased-tests: New file.
48681         * tests/unicase/test-u8-is-cased.c: New file.
48682         * tests/unicase/test-is-cased.h: New file.
48683
48684         New module 'unicase/u32-is-cased'.
48685         * lib/unicase/u32-is-cased.c: New file.
48686         * modules/unicase/u32-is-cased: New file.
48687
48688         New module 'unicase/u16-is-cased'.
48689         * lib/unicase/u16-is-cased.c: New file.
48690         * modules/unicase/u16-is-cased: New file.
48691
48692         New module 'unicase/u8-is-cased'.
48693         * lib/unicase/u8-is-cased.c: New file.
48694         * lib/unicase/u-is-cased.h: New file.
48695         * modules/unicase/u8-is-cased: New file.
48696
48697         Tests for module 'unicase/u32-is-casefolded'.
48698         * modules/unicase/u32-is-casefolded-tests: New file.
48699         * tests/unicase/test-u32-is-casefolded.c: New file.
48700
48701         Tests for module 'unicase/u16-is-casefolded'.
48702         * modules/unicase/u16-is-casefolded-tests: New file.
48703         * tests/unicase/test-u16-is-casefolded.c: New file.
48704
48705         Tests for module 'unicase/u8-is-casefolded'.
48706         * modules/unicase/u8-is-casefolded-tests: New file.
48707         * tests/unicase/test-u8-is-casefolded.c: New file.
48708         * tests/unicase/test-is-casefolded.h: New file.
48709
48710         New module 'unicase/u32-is-casefolded'.
48711         * lib/unicase/u32-is-casefolded.c: New file.
48712         * modules/unicase/u32-is-casefolded: New file.
48713
48714         New module 'unicase/u16-is-casefolded'.
48715         * lib/unicase/u16-is-casefolded.c: New file.
48716         * modules/unicase/u16-is-casefolded: New file.
48717
48718         New module 'unicase/u8-is-casefolded'.
48719         * lib/unicase/u8-is-casefolded.c: New file.
48720         * modules/unicase/u8-is-casefolded: New file.
48721
48722         Tests for module 'unicase/u32-is-titlecase'.
48723         * modules/unicase/u32-is-titlecase-tests: New file.
48724         * tests/unicase/test-u32-is-titlecase.c: New file.
48725
48726         Tests for module 'unicase/u16-is-titlecase'.
48727         * modules/unicase/u16-is-titlecase-tests: New file.
48728         * tests/unicase/test-u16-is-titlecase.c: New file.
48729
48730         Tests for module 'unicase/u8-is-titlecase'.
48731         * modules/unicase/u8-is-titlecase-tests: New file.
48732         * tests/unicase/test-u8-is-titlecase.c: New file.
48733         * tests/unicase/test-is-titlecase.h: New file.
48734
48735         New module 'unicase/u32-is-titlecase'.
48736         * lib/unicase/u32-is-titlecase.c: New file.
48737         * modules/unicase/u32-is-titlecase: New file.
48738
48739         New module 'unicase/u16-is-titlecase'.
48740         * lib/unicase/u16-is-titlecase.c: New file.
48741         * modules/unicase/u16-is-titlecase: New file.
48742
48743         New module 'unicase/u8-is-titlecase'.
48744         * lib/unicase/u8-is-titlecase.c: New file.
48745         * modules/unicase/u8-is-titlecase: New file.
48746
48747         Tests for module 'unicase/u32-is-lowercase'.
48748         * modules/unicase/u32-is-lowercase-tests: New file.
48749         * tests/unicase/test-u32-is-lowercase.c: New file.
48750
48751         Tests for module 'unicase/u16-is-lowercase'.
48752         * modules/unicase/u16-is-lowercase-tests: New file.
48753         * tests/unicase/test-u16-is-lowercase.c: New file.
48754
48755         Tests for module 'unicase/u8-is-lowercase'.
48756         * modules/unicase/u8-is-lowercase-tests: New file.
48757         * tests/unicase/test-u8-is-lowercase.c: New file.
48758         * tests/unicase/test-is-lowercase.h: New file.
48759
48760         New module 'unicase/u32-is-lowercase'.
48761         * lib/unicase/u32-is-lowercase.c: New file.
48762         * modules/unicase/u32-is-lowercase: New file.
48763
48764         New module 'unicase/u16-is-lowercase'.
48765         * lib/unicase/u16-is-lowercase.c: New file.
48766         * modules/unicase/u16-is-lowercase: New file.
48767
48768         New module 'unicase/u8-is-lowercase'.
48769         * lib/unicase/u8-is-lowercase.c: New file.
48770         * modules/unicase/u8-is-lowercase: New file.
48771
48772         Tests for module 'unicase/u32-is-uppercase'.
48773         * modules/unicase/u32-is-uppercase-tests: New file.
48774         * tests/unicase/test-u32-is-uppercase.c: New file.
48775
48776         Tests for module 'unicase/u16-is-uppercase'.
48777         * modules/unicase/u16-is-uppercase-tests: New file.
48778         * tests/unicase/test-u16-is-uppercase.c: New file.
48779
48780         Tests for module 'unicase/u8-is-uppercase'.
48781         * modules/unicase/u8-is-uppercase-tests: New file.
48782         * tests/unicase/test-u8-is-uppercase.c: New file.
48783         * tests/unicase/test-is-uppercase.h: New file.
48784
48785         New module 'unicase/u32-is-uppercase'.
48786         * lib/unicase/u32-is-uppercase.c: New file.
48787         * modules/unicase/u32-is-uppercase: New file.
48788
48789         New module 'unicase/u16-is-uppercase'.
48790         * lib/unicase/u16-is-uppercase.c: New file.
48791         * modules/unicase/u16-is-uppercase: New file.
48792
48793         New module 'unicase/u8-is-uppercase'.
48794         * lib/unicase/u8-is-uppercase.c: New file.
48795         * modules/unicase/u8-is-uppercase: New file.
48796
48797         New module 'unicase/u32-is-invariant'.
48798         * lib/unicase/u32-is-invariant.c: New file.
48799         * modules/unicase/u32-is-invariant: New file.
48800
48801         New module 'unicase/u16-is-invariant'.
48802         * lib/unicase/u16-is-invariant.c: New file.
48803         * modules/unicase/u16-is-invariant: New file.
48804
48805         New module 'unicase/u8-is-invariant'.
48806         * lib/unicase/u8-is-invariant.c: New file.
48807         * lib/unicase/invariant.h: New file.
48808         * lib/unicase/u-is-invariant.h: New file.
48809         * modules/unicase/u8-is-invariant: New file.
48810
48811         Tests for module 'unicase/u32-casecoll'.
48812         * modules/unicase/u32-casecoll-tests: New file.
48813         * tests/unicase/test-u32-casecoll.c: New file.
48814
48815         Tests for module 'unicase/u16-casecoll'.
48816         * modules/unicase/u16-casecoll-tests: New file.
48817         * tests/unicase/test-u16-casecoll.c: New file.
48818
48819         Tests for module 'unicase/u8-casecoll'.
48820         * modules/unicase/u8-casecoll-tests: New file.
48821         * tests/unicase/test-u8-casecoll.c: New file.
48822
48823         New module 'unicase/u32-casecoll'.
48824         * lib/unicase/u32-casecoll.c: New file.
48825         * modules/unicase/u32-casecoll: New file.
48826
48827         New module 'unicase/u16-casecoll'.
48828         * lib/unicase/u16-casecoll.c: New file.
48829         * modules/unicase/u16-casecoll: New file.
48830
48831         New module 'unicase/u8-casecoll'.
48832         * lib/unicase/u8-casecoll.c: New file.
48833         * lib/unicase/u-casecoll.h: New file.
48834         * modules/unicase/u8-casecoll: New file.
48835
48836         New module 'unicase/u32-casexfrm'.
48837         * lib/unicase/u32-casexfrm.c: New file.
48838         * modules/unicase/u32-casexfrm: New file.
48839
48840         New module 'unicase/u16-casexfrm'.
48841         * lib/unicase/u16-casexfrm.c: New file.
48842         * modules/unicase/u16-casexfrm: New file.
48843
48844         New module 'unicase/u8-casexfrm'.
48845         * lib/unicase/u8-casexfrm.c: New file.
48846         * lib/unicase/u-casexfrm.h: New file.
48847         * modules/unicase/u8-casexfrm: New file.
48848
48849         Tests for module 'unicase/u32-casecmp'.
48850         * modules/unicase/u32-casecmp-tests: New file.
48851         * tests/unicase/test-u32-casecmp.c: New file.
48852
48853         Tests for module 'unicase/u16-casecmp'.
48854         * modules/unicase/u16-casecmp-tests: New file.
48855         * tests/unicase/test-u16-casecmp.c: New file.
48856
48857         Tests for module 'unicase/u8-casecmp'.
48858         * modules/unicase/u8-casecmp-tests: New file.
48859         * tests/unicase/test-u8-casecmp.c: New file.
48860         * tests/unicase/test-casecmp.h: New file.
48861
48862         New module 'unicase/u32-casecmp'.
48863         * lib/unicase/u32-casecmp.c: New file.
48864         * modules/unicase/u32-casecmp: New file.
48865
48866         New module 'unicase/u16-casecmp'.
48867         * lib/unicase/u16-casecmp.c: New file.
48868         * modules/unicase/u16-casecmp: New file.
48869
48870         New module 'unicase/u8-casecmp'.
48871         * lib/unicase/u8-casecmp.c: New file.
48872         * lib/unicase/u-casecmp.h: New file.
48873         * modules/unicase/u8-casecmp: New file.
48874
48875         Tests for module 'unicase/u32-casefold'.
48876         * modules/unicase/u32-casefold-tests: New file.
48877         * tests/unicase/test-u32-casefold.c: New file.
48878
48879         Tests for module 'unicase/u16-casefold'.
48880         * modules/unicase/u16-casefold-tests: New file.
48881         * tests/unicase/test-u16-casefold.c: New file.
48882
48883         Tests for module 'unicase/u8-casefold'.
48884         * modules/unicase/u8-casefold-tests: New file.
48885         * tests/unicase/test-u8-casefold.c: New file.
48886
48887         New module 'unicase/u32-casefold'.
48888         * lib/unicase/u32-casefold.c: New file.
48889         * modules/unicase/u32-casefold: New file.
48890
48891         New module 'unicase/u16-casefold'.
48892         * lib/unicase/u16-casefold.c: New file.
48893         * modules/unicase/u16-casefold: New file.
48894
48895         New module 'unicase/u8-casefold'.
48896         * lib/unicase/u8-casefold.c: New file.
48897         * lib/unicase/u-casefold.h: New file.
48898         * modules/unicase/u8-casefold: New file.
48899
48900         New module 'unicase/tocasefold'.
48901         * lib/unicase/casefold.h: New file.
48902         * lib/unicase/tocasefold.c: New file.
48903         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48904         * modules/unicase/tocasefold: New file.
48905
48906         Tests for module 'unicase/u32-totitle'.
48907         * modules/unicase/u32-totitle-tests: New file.
48908         * tests/unicase/test-u32-totitle.c: New file.
48909
48910         Tests for module 'unicase/u16-totitle'.
48911         * modules/unicase/u16-totitle-tests: New file.
48912         * tests/unicase/test-u16-totitle.c: New file.
48913
48914         Tests for module 'unicase/u8-totitle'.
48915         * modules/unicase/u8-totitle-tests: New file.
48916         * tests/unicase/test-u8-totitle.c: New file.
48917
48918         New module 'unicase/u32-totitle'.
48919         * lib/unicase/u32-totitle.c: New file.
48920         * modules/unicase/u32-totitle: New file.
48921
48922         New module 'unicase/u16-totitle'.
48923         * lib/unicase/u16-totitle.c: New file.
48924         * modules/unicase/u16-totitle: New file.
48925
48926         New module 'unicase/u8-totitle'.
48927         * lib/unicase/u8-totitle.c: New file.
48928         * lib/unicase/u-totitle.h: New file.
48929         * modules/unicase/u8-totitle: New file.
48930
48931         Tests for module 'unicase/u32-tolower'.
48932         * modules/unicase/u32-tolower-tests: New file.
48933         * tests/unicase/test-u32-tolower.c: New file.
48934
48935         Tests for module 'unicase/u16-tolower'.
48936         * modules/unicase/u16-tolower-tests: New file.
48937         * tests/unicase/test-u16-tolower.c: New file.
48938
48939         Tests for module 'unicase/u8-tolower'.
48940         * modules/unicase/u8-tolower-tests: New file.
48941         * tests/unicase/test-u8-tolower.c: New file.
48942
48943         New module 'unicase/u32-tolower'.
48944         * lib/unicase/u32-tolower.c: New file.
48945         * modules/unicase/u32-tolower: New file.
48946
48947         New module 'unicase/u16-tolower'.
48948         * lib/unicase/u16-tolower.c: New file.
48949         * modules/unicase/u16-tolower: New file.
48950
48951         New module 'unicase/u8-tolower'.
48952         * lib/unicase/u8-tolower.c: New file.
48953         * modules/unicase/u8-tolower: New file.
48954
48955         Tests for module 'unicase/u32-toupper'.
48956         * modules/unicase/u32-toupper-tests: New file.
48957         * tests/unicase/test-u32-toupper.c: New file.
48958
48959         Tests for module 'unicase/u16-toupper'.
48960         * modules/unicase/u16-toupper-tests: New file.
48961         * tests/unicase/test-u16-toupper.c: New file.
48962
48963         Tests for module 'unicase/u8-toupper'.
48964         * modules/unicase/u8-toupper-tests: New file.
48965         * tests/unicase/test-u8-toupper.c: New file.
48966
48967         New module 'unicase/u32-toupper'.
48968         * lib/unicase/u32-toupper.c: New file.
48969         * modules/unicase/u32-toupper: New file.
48970
48971         New module 'unicase/u16-toupper'.
48972         * lib/unicase/u16-toupper.c: New file.
48973         * modules/unicase/u16-toupper: New file.
48974
48975         New module 'unicase/u8-toupper'.
48976         * lib/unicase/u8-toupper.c: New file.
48977         * modules/unicase/u8-toupper: New file.
48978
48979         New module 'unicase/u32-casemap'.
48980         * lib/unicase/u32-casemap.c: New file.
48981         * modules/unicase/u32-casemap: New file.
48982
48983         New module 'unicase/u16-casemap'.
48984         * lib/unicase/u16-casemap.c: New file.
48985         * modules/unicase/u16-casemap: New file.
48986
48987         New module 'unicase/u8-casemap'.
48988         * lib/unicase/unicasemap.h: New file.
48989         * lib/unicase/u8-casemap.c: New file.
48990         * lib/unicase/u-casemap.h: New file.
48991         * modules/unicase/u8-casemap: New file.
48992
48993         New module 'unicase/special-casing'.
48994         * lib/unicase/special-casing.h: New file.
48995         * lib/unicase/special-casing.c: New file.
48996         * lib/unicase/special-casing-table.gperf: New file, generated by
48997         gen-uni-tables.c.
48998         * modules/unicase/special-casing: New file.
48999
49000         Tests for module 'unicase/locale-language'.
49001         * modules/unicase/locale-language-tests: New file.
49002         * tests/unicase/test-locale-language.sh: New file.
49003         * tests/unicase/test-locale-language.c: New file.
49004
49005         New module 'unicase/locale-language'.
49006         * lib/unicase/locale-language.c: New file.
49007         * lib/unicase/locale-languages.gperf: New file.
49008         * modules/unicase/locale-language: New file.
49009
49010         Generate more tables for case conversion and case folding.
49011         * lib/gen-uni-tables.c (SCC_*): New enum items.
49012         (struct special_casing_rule): New type.
49013         (casing_rules, num_casing_rules, allocated_casing_rules): New
49014         variables.
49015         (add_casing_rule, fill_casing_rules): New functions.
49016         (struct casefold_rule): New type.
49017         (casefolding_rules, num_casefolding_rules,
49018         allocated_casefolding_rules): New variables.
49019         (fill_casefolding_rules): New function.
49020         (unicode_casefold): New variable.
49021         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49022         sort_casing_rules, output_casing_rules): New functions.
49023         (main): Accept to more arguments: SpecialCasing.txt and
49024         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49025         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49026         Output mapping for casefolding.
49027
49028         * lib/unicase.h: Include stdbool.h, uninorm.h.
49029         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49030         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49031         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49032         arguments.
49033         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49034         resultp arguments.
49035         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49036         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49037         resultp arguments.
49038         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49039         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49040         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49041         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49042         declarations.
49043         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49044
49045 2009-03-08  Bruno Haible  <bruno@clisp.org>
49046
49047         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49048         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49049         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49050         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49051
49052 2009-03-07  Bruno Haible  <bruno@clisp.org>
49053
49054         Adjust u*_normcmp, u*_normcoll API.
49055         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49056         u16_normcoll, u32_normcoll): Change failure conventions.
49057         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49058         errno and return -1.
49059         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49060
49061 2009-03-07  Bruno Haible  <bruno@clisp.org>
49062
49063         Tests for module 'uninorm/u32-normcoll'.
49064         * modules/uninorm/u32-normcoll-tests: New file.
49065         * tests/uninorm/test-u32-normcoll.c: New file.
49066
49067         Tests for module 'uninorm/u16-normcoll'.
49068         * modules/uninorm/u16-normcoll-tests: New file.
49069         * tests/uninorm/test-u16-normcoll.c: New file.
49070
49071         Tests for module 'uninorm/u8-normcoll'.
49072         * modules/uninorm/u8-normcoll-tests: New file.
49073         * tests/uninorm/test-u8-normcoll.c: New file.
49074
49075 2009-03-07  Bruno Haible  <bruno@clisp.org>
49076
49077         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49078         tests/uninorm/test-u32-normcmp.c.
49079         * tests/uninorm/test-u32-normcmp.c: Include it.
49080         (test_nonascii): New function, extracted from main. Add some more
49081         tests.
49082         (main): Invoke test_ascii and test_nonascii.
49083         * modules/uninorm/u32-normcmp-tests (Files): Add
49084         tests/uninorm/test-u32-normcmp.h.
49085         (Depends-on): Remove uninorm/u32-normcmp.
49086
49087         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49088         tests/uninorm/test-u16-normcmp.c.
49089         * tests/uninorm/test-u16-normcmp.c: Include it.
49090         (test_nonascii): New function, extracted from main. Add some more
49091         tests.
49092         (main): Invoke test_ascii and test_nonascii.
49093         * modules/uninorm/u16-normcmp-tests (Files): Add
49094         tests/uninorm/test-u16-normcmp.h.
49095         (Depends-on): Remove uninorm/u16-normcmp.
49096
49097         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49098         tests/uninorm/test-u8-normcmp.c.
49099         * tests/uninorm/test-u8-normcmp.c: Include it.
49100         (test_nonascii): New function, extracted from main. Add some more
49101         tests.
49102         (main): Invoke test_ascii and test_nonascii.
49103         * modules/uninorm/u8-normcmp-tests (Files): Add
49104         tests/uninorm/test-u8-normcmp.h.
49105         (Depends-on): Remove uninorm/u8-normcmp.
49106
49107 2009-03-07  Bruno Haible  <bruno@clisp.org>
49108
49109         New module 'uninorm/u32-normcoll'.
49110         * lib/uninorm/u32-normcoll.c: New file.
49111         * modules/uninorm/u32-normcoll: New file.
49112
49113         New module 'uninorm/u16-normcoll'.
49114         * lib/uninorm/u16-normcoll.c: New file.
49115         * modules/uninorm/u16-normcoll: New file.
49116
49117         New module 'uninorm/u8-normcoll'.
49118         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49119         declarations.
49120         * lib/uninorm/u8-normcoll.c: New file.
49121         * lib/uninorm/u-normcoll.h: New file.
49122         * modules/uninorm/u8-normcoll: New file.
49123
49124         New module 'uninorm/u32-normxfrm'.
49125         * lib/uninorm/u32-normxfrm.c: New file.
49126         * modules/uninorm/u32-normxfrm: New file.
49127
49128         New module 'uninorm/u16-normxfrm'.
49129         * lib/uninorm/u16-normxfrm.c: New file.
49130         * modules/uninorm/u16-normxfrm: New file.
49131
49132         New module 'uninorm/u8-normxfrm'.
49133         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49134         declarations.
49135         * lib/uninorm/u8-normxfrm.c: New file.
49136         * lib/uninorm/u-normxfrm.h: New file.
49137         * modules/uninorm/u8-normxfrm: New file.
49138
49139 2009-03-07  Bruno Haible  <bruno@clisp.org>
49140
49141         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49142         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49143         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49144
49145 2009-03-07  Bruno Haible  <bruno@clisp.org>
49146
49147         New module 'memxfrm'.
49148         * lib/memxfrm.h: New file.
49149         * lib/memxfrm.c: New file.
49150         * modules/memxfrm: New file.
49151
49152 2009-03-07  Bruno Haible  <bruno@clisp.org>
49153
49154         New module 'memcmp2'.
49155         * lib/memcmp2.h: New file.
49156         * lib/memcmp2.c: New file.
49157         * modules/memcmp2: New file.
49158
49159 2009-03-07  Bruno Haible  <bruno@clisp.org>
49160
49161         Tests for module 'uninorm/decomposing-form'.
49162         * modules/uninorm/decomposing-form-tests: New file.
49163         * tests/uninorm/test-decomposing-form.c: New file.
49164
49165         New module 'uninorm/decomposing-form'.
49166         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49167         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49168         Add 'decomposing_variant' field.
49169         * lib/uninorm/decomposing-form.c: New file.
49170         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49171         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49172         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49173         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49174         * modules/uninorm/decomposing-form: New file.
49175         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49176         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49177
49178 2009-03-07  Bruno Haible  <bruno@clisp.org>
49179
49180         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49181         strings.
49182
49183 2009-03-06  Bruno Haible  <bruno@clisp.org>
49184
49185         Tests for module 'uninorm/u32-normcmp'.
49186         * tests/uninorm/test-u32-normcmp.c: New file.
49187         * modules/uninorm/u32-normcmp-tests: New file.
49188
49189         Tests for module 'uninorm/u16-normcmp'.
49190         * tests/uninorm/test-u16-normcmp.c: New file.
49191         * modules/uninorm/u16-normcmp-tests: New file.
49192
49193         Tests for module 'uninorm/u8-normcmp'.
49194         * tests/uninorm/test-u8-normcmp.c: New file.
49195         * modules/uninorm/u8-normcmp-tests: New file.
49196
49197         New module 'uninorm/u32-normcmp'.
49198         * lib/uninorm/u32-normcmp.c: New file.
49199         * modules/uninorm/u32-normcmp: New file.
49200
49201         New module 'uninorm/u16-normcmp'.
49202         * lib/uninorm/u16-normcmp.c: New file.
49203         * modules/uninorm/u16-normcmp: New file.
49204
49205         New module 'uninorm/u8-normcmp'.
49206         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49207         declarations.
49208         * lib/uninorm/u8-normcmp.c: New file.
49209         * lib/uninorm/u-normcmp.h: New file.
49210         * modules/uninorm/u8-normcmp: New file.
49211
49212 2009-03-06  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49215         Reported by Eric Blake.
49216
49217 2009-03-06  Eric Blake  <ebb9@byu.net>
49218             Bruno Haible  <bruno@clisp.org>
49219
49220         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49221         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49222         condition.
49223         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49224         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49225         condition.
49226         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49227
49228 2009-03-06  Eric Blake  <ebb9@byu.net>
49229
49230         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49231         to avoid compiler warnings.
49232         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49233
49234 2009-03-05  Bruno Haible  <bruno@clisp.org>
49235
49236         * tests/test-ftell.c (main): Disable test beyond end of file on
49237         FreeMiNT.
49238         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49239
49240 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49241
49242         * lib/filevercmp.c: Move hidden files up in ordering.
49243         * tests/test-filevercmp.c: Add tests for hidden files.
49244
49245 2009-03-04  Bruno Haible  <bruno@clisp.org>
49246
49247         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49248         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49249         AM_CFLAGS.
49250         Reported by Simon Josefsson.
49251
49252 2009-03-03  Bruno Haible  <bruno@clisp.org>
49253
49254         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49255         Reported by Simon Josefsson.
49256
49257         * doc/ld-version-script.texi: Update node reference.
49258
49259 2009-03-03  Bruno Haible  <bruno@clisp.org>
49260
49261         * modules/visibility (License): Change to 'unlimited'.
49262         Suggested by Simon Josefsson.
49263
49264 2009-03-03  Jim Meyering  <meyering@redhat.com>
49265
49266         unlinkdir: cannot_unlink_dir may modify process state
49267         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49268         it's neither thread-safe nor appropriate for use in a library.
49269
49270 2009-03-03  Eric Blake  <ebb9@byu.net>
49271
49272         test-closein: silence test under Darwin
49273         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49274         care if it dies from EPIPE or EBADF.
49275
49276 2009-03-03  Bruno Haible  <bruno@clisp.org>
49277
49278         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49279         earlier.
49280         * doc/visibility.texi: Fix @node and @section.
49281
49282 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49283
49284         * doc/gnulib.texi: Link to sections for ld version script and
49285         visibility.
49286         * doc/visibility.texi: Add @node and @section.
49287         * modules/ld-version-script: New module.
49288         * m4/ld-version-script.m4: New file.
49289         * doc/ld-version-script.texi: New file.
49290
49291 2009-03-02  David Lutterkort  <lutter@redhat.com>
49292
49293         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49295
49296 2009-03-02  Bruno Haible  <bruno@clisp.org>
49297
49298         * doc/visibility.texi: Mention libtool's -export-symbols option.
49299
49300 2009-03-02  Jim Meyering  <meyering@redhat.com>
49301
49302         announce-gen: new option: --no-print-checksums
49303         * build-aux/announce-gen (usage): Describe it.
49304         (print_checksums): Print a newline here, not in the [*] footnote.
49305         (main): Honor it.
49306
49307 2009-03-01  Bruno Haible  <bruno@clisp.org>
49308
49309         Use socklen_t in the native Windows replacements prototypes.
49310         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49311         instead of 'int'.
49312         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49313         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49314         * modules/getsockopt (Depends-on): Add socklen.
49315         * modules/setsockopt (Depends-on): Add socklen.
49316
49317 2009-03-01  Bruno Haible  <bruno@clisp.org>
49318
49319         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49320         least 4.2.
49321
49322 2009-03-01  Eric Blake  <ebb9@byu.net>
49323             Bruno Haible  <bruno@clisp.org>
49324
49325         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49326         error messages.
49327         * lib/wait-process.c (wait_subprocess): Omit error message about
49328         deadly signal sent to the child of termsigp != NULL.
49329
49330 2009-03-01  Eric Blake  <ebb9@byu.net>
49331
49332         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49333
49334 2009-03-01  Bruno Haible  <bruno@clisp.org>
49335
49336         Avoid a gcc warning.
49337         * tests/test-sched.c (b): Make global.
49338         Reported by Eric Blake.
49339
49340 2009-01-19  Martin Lambers  <marlam@marlam.de>
49341
49342         Provide POSIX semantics for socket timeout options on W32.
49343         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49344         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49345         * modules/setsockopt: Depend on sys_time module for struct timeval.
49346         * modules/getsockopt: Depend on sys_time module for struct timeval.
49347
49348 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49349
49350         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49351         __USE_GNU, for consistency with netdb.in.h.
49352         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49353
49354 2009-03-01  Bruno Haible  <bruno@clisp.org>
49355
49356         More support for FreeMiNT.
49357         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49358         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49359
49360 2009-03-01  Bruno Haible  <bruno@clisp.org>
49361
49362         More support for FreeMiNT.
49363         * lib/fpurge.c (fpurge): Correct last commit.
49364         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49365
49366 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49367
49368         Fix unportable awk script in vc-list-files.
49369         * build-aux/vc-list-files: In the replacement awk script, use
49370         substr with a second argument of 1, not zero.
49371         Report by Simon Josefsson.
49372
49373 2009-02-28  Bruno Haible  <bruno@clisp.org>
49374
49375         More support for FreeMiNT.
49376         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49377         to FreeMiNT today.
49378         * lib/fwriting.c (fwriting): Likewise.
49379         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49380
49381 2009-02-28  Bruno Haible  <bruno@clisp.org>
49382
49383         * tests/test-freadseek.c (main): Disable test beyond end of file on
49384         FreeMiNT.
49385         * tests/test-ftello.c (main): Likewise.
49386         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49387
49388 2009-02-28  Bruno Haible  <bruno@clisp.org>
49389
49390         Add tentative support for FreeMiNT.
49391         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49392         * lib/fpurge.c (fpurge): Likewise.
49393         * lib/freadable.c (freadable): Likewise.
49394         * lib/freading.c (freading): Likewise.
49395         * lib/freadptr.c (freadptr): Likewise.
49396         * lib/freadseek.c (freadptrinc): Likewise.
49397         * lib/fseeko.c (rpl_fseeko): Likewise.
49398         * lib/fseterr.c (fseterr): Likewise.
49399         * lib/fwritable.c (fwritable): Likewise.
49400         * lib/fwriting.c (fwriting): Likewise.
49401         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49402         Hourihane.
49403         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49404
49405 2009-02-28  Bruno Haible  <bruno@clisp.org>
49406
49407         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49408         SIGCHLD.
49409         Reported by Jim Meyering.
49410
49411 2009-02-28  Bruno Haible  <bruno@clisp.org>
49412
49413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49414         Mention the results of these tests on various platforms.
49415         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49416         order.
49417         * doc/posix-functions/printf.texi: Likewise.
49418         * doc/posix-functions/snprintf.texi: Likewise.
49419         * doc/posix-functions/sprintf.texi: Likewise.
49420         * doc/posix-functions/vfprintf.texi: Likewise.
49421         * doc/posix-functions/vprintf.texi: Likewise.
49422         * doc/posix-functions/vsnprintf.texi: Likewise.
49423         * doc/posix-functions/vsprintf.texi: Likewise.
49424         * doc/glibc-functions/obstack_printf.texi: Likewise.
49425         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49426
49427 2009-02-28  Bruno Haible  <bruno@clisp.org>
49428
49429         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49430         Reported by Loïc Minier <lool@dooz.org>.
49431
49432 2009-02-27  Bruno Haible  <bruno@clisp.org>
49433
49434         * gnulib-tool (func_import): Make the sed expression used to create the
49435         sed script for updating the .gitignore file POSIX compliant.
49436         Reported by Eric Blake.
49437
49438 2009-02-27  Bruno Haible  <bruno@clisp.org>
49439
49440         * gnulib-tool (sed): Don't alias as "sed --posix".
49441         Reported by Eric Blake.
49442
49443 2009-02-27  Bruno Haible  <bruno@clisp.org>
49444
49445         Avoid test link errors.
49446         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49447         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49448         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49449         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49451
49452 2009-02-27  Bruno Haible  <bruno@clisp.org>
49453
49454         Avoid spurious "(cached)" in configure output.
49455         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49456         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49457         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49458         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49459         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49460         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49461         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49462         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49463         Reported by Eric Blake.
49464
49465 2009-02-27  Eric Blake  <ebb9@byu.net>
49466
49467         printf: fix regression in previous patch
49468         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49469
49470 2009-02-27  Bruno Haible  <bruno@clisp.org>
49471
49472         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49473         value.
49474         * lib/stdint.in.h: Likewise.
49475         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49476
49477 2009-02-27  Eric Blake  <ebb9@byu.net>
49478
49479         doc: mention more functions added in cygwin 1.7.0
49480         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49481         addition.
49482         * doc/posix-functions/open_wmemstream.texi: Likewise.
49483         * doc/posix-functions/wcsnlen.texi: Likewise.
49484         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49485         * doc/posix-functions/wcstod.texi: Likewise.
49486         * doc/posix-functions/wcstof.texi: Likewise.
49487         * doc/posix-functions/wcstoimax.texi: Likewise.
49488         * doc/posix-functions/wcstok.texi: Likewise.
49489         * doc/posix-functions/wcstoumax.texi: Likewise.
49490
49491         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49492         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49493         * doc/posix-functions/fprintf.texi: Update.
49494         * doc/posix-functions/printf.texi: Update.
49495         * doc/posix-functions/snprintf.texi: Update.
49496         * doc/posix-functions/sprintf.texi: Update.
49497         * doc/posix-functions/vfprintf.texi: Update.
49498         * doc/posix-functions/vprintf.texi: Update.
49499         * doc/posix-functions/vsnprintf.texi: Update.
49500         * doc/posix-functions/vsprintf.texi: Update.
49501         * doc/glibc-functions/obstack_printf.texi: Update.
49502         * doc/glibc-functions/obstack_vprintf.texi: Update.
49503
49504 2009-02-26  Eric Blake  <ebb9@byu.net>
49505
49506         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49507         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49508         compilation bug by using runtime conversion.
49509         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49510         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49511         * modules/ceill-tests (Files): Use nan.h.
49512         * modules/floorl-tests (Files): Likewise.
49513         * modules/frexpl-tests (Files): Likewise.
49514         * modules/isnanl-tests (Files): Likewise.
49515         * modules/ldexpl-tests (Files): Likewise.
49516         * modules/roundl-tests (Files): Likewise.
49517         * modules/truncl-tests (Files): Likewise.
49518         * tests/test-ceill.c (main): Use a working NaN.
49519         * tests/test-floorl.c (main): Likewise.
49520         * tests/test-frexpl.c (main): Likewise.
49521         * tests/test-isnan.c (test_long_double): Likewise.
49522         * tests/test-isnanl.h (main): Likewise.
49523         * tests/test-ldexpl.h (main): Likewise.
49524         * tests/test-roundl.h (main): Likewise.
49525         * tests/test-truncl.h (main): Likewise.
49526         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49527
49528 2009-02-26  Eric Blake  <ebb9@byu.net>
49529             Bruno Haible  <bruno@clisp.org>
49530
49531         Work around a *printf bug with %ls on Solaris.
49532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49533         precision is specified, sprintf stops converting the wide string
49534         argument when the number of bytes that have been produced by this
49535         conversion equals or exceeds the precision.
49536         * doc/posix-functions/fprintf.texi: Update.
49537         * doc/posix-functions/printf.texi: Update.
49538         * doc/posix-functions/snprintf.texi: Update.
49539         * doc/posix-functions/sprintf.texi: Update.
49540         * doc/posix-functions/vfprintf.texi: Update.
49541         * doc/posix-functions/vprintf.texi: Update.
49542         * doc/posix-functions/vsnprintf.texi: Update.
49543         * doc/posix-functions/vsprintf.texi: Update.
49544         * doc/glibc-functions/obstack_printf.texi: Update.
49545         * doc/glibc-functions/obstack_vprintf.texi: Update.
49546
49547 2009-02-26  Eric Blake  <ebb9@byu.net>
49548
49549         stdlib: favor compiler check of random.h
49550         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49551         to avoid an ObjC random.h installed by Swarm.
49552
49553 2009-02-26  Bruno Haible  <bruno@clisp.org>
49554
49555         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49556         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49557         Reported by Gary V. Vaughan <gary@gnu.org>.
49558
49559 2009-02-26  Bruno Haible  <bruno@clisp.org>
49560
49561         Fix *printf behaviour regarding the %ls directive.
49562         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49563         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49564         NEED_PRINTF_DIRECTIVE_LS.
49565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49566         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49568         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49569         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49570         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49571         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49572         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49573         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49574         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49575         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49576         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49577         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49578         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49579         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49580         * doc/posix-functions/fprintf.texi: Update.
49581         * doc/posix-functions/printf.texi: Update.
49582         * doc/posix-functions/snprintf.texi: Update.
49583         * doc/posix-functions/sprintf.texi: Update.
49584         * doc/posix-functions/vfprintf.texi: Update.
49585         * doc/posix-functions/vprintf.texi: Update.
49586         * doc/posix-functions/vsnprintf.texi: Update.
49587         * doc/posix-functions/vsprintf.texi: Update.
49588         * doc/glibc-functions/obstack_printf.texi: Update.
49589         * doc/glibc-functions/obstack_vprintf.texi: Update.
49590         Reported by Eric Blake.
49591
49592 2009-02-25  Bruno Haible  <bruno@clisp.org>
49593
49594         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49595         with known value.
49596         Reported by Gary V. Vaughan <gary@gnu.org>.
49597
49598 2009-02-25  Bruno Haible  <bruno@clisp.org>
49599
49600         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49601         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49602         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49603         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49604         Reported by Gary V. Vaughan <gary@gnu.org>.
49605
49606 2009-02-25  Bruno Haible  <bruno@clisp.org>
49607
49608         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49609         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49610         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49611         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49612         Reported by Gary V. Vaughan <gary@gnu.org>.
49613
49614 2009-02-25  Eric Blake  <ebb9@byu.net>
49615
49616         tests: skip fseek/ftell tests if ungetc is broken
49617         * m4/ungetc.m4: New file.
49618         * modules/fseek-tests: Split test, so ungetc dependency is
49619         separate from rest of test.
49620         * modules/fseeko-tests: Likewise.
49621         * modules/ftell-tests: Likewise.
49622         * modules/ftello-tests: Likewise.
49623         * tests/test-fseek.c (main): Isolate ungetc dependency.
49624         * tests/test-fseeko.c (main): Likewise.
49625         * tests/test-ftell.c (main): Likewise.
49626         * tests/test-ftello.c (main): Likewise.
49627         * tests/test-fseek2.sh: New file.
49628         * tests/test-fseeko2.sh: Likewise.
49629         * tests/test-ftell2.sh: Likewise.
49630         * tests/test-ftello2.sh: Likewise.
49631
49632 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49633
49634         test-getaddrinfo: fix usage of skip return code 77
49635         * tests/test-gettaddrinfo.c: Return skip code 77 only
49636         for first occurrence of skip (4x77 is not 77)
49637
49638 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49639
49640         strtod: avoid C99 decl-after-statement
49641         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49642
49643 2009-02-24  Eric Blake  <ebb9@byu.net>
49644
49645         strtod: detect HP-UX 11.31 bug
49646         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49647         Reported by Gary V. Vaughan.
49648
49649 2009-02-23  Bruno Haible  <bruno@clisp.org>
49650
49651         Fix invalid read past end of memory block.
49652         * lib/vasnprintf.c (DCHAR_SET): Define.
49653         (local_wcslen): Define only when needed.
49654         (local_strnlen, local_wcsnlen): New functions.
49655         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49656         directives that involve a conversion ourselves.
49657         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49658         wcsnlen, mbrtowc, wcrtomb.
49659         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49660         * tests/test-vasprintf-posix.c (test_function): Likewise.
49661         * tests/test-snprintf-posix.h (test_function): Likewise.
49662         * tests/test-sprintf-posix.h (test_function): Likewise.
49663         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49664
49665 2009-02-22  Bruno Haible  <bruno@clisp.org>
49666
49667         Implement new clarified decomposition of Hangul syllables.
49668         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49669         of type LTV, return only a pairwise decomposition.
49670         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49671         Likewise.
49672         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49673         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49674         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49675
49676 2009-02-22  Bruno Haible  <bruno@clisp.org>
49677
49678         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49679         zero-length results and shrink excess allocated memory.
49680         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49681         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49682         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49683         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49684         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49685         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49686         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49687         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49688         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49689         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49690         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49691         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49692
49693 2009-02-21  Bruno Haible  <bruno@clisp.org>
49694
49695         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49696         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49697         spaces after a period. Put a space between a macro name and its
49698         argument list. Trivial rewordings.
49699         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49700         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49701         (main): Return 0 explicitly.
49702
49703 2009-02-21  Bruno Haible  <bruno@clisp.org>
49704
49705         Tests for module 'uninorm/filter'.
49706         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49707         * modules/uninorm/filter-tests: New file.
49708
49709         New module 'uninorm/filter'.
49710         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49711         uninorm_filter_flush, uninorm_filter_free): New declarations.
49712         * lib/uninorm/uninorm-filter.c: New file.
49713         * modules/uninorm/filter: New file.
49714
49715 2009-02-21  Bruno Haible  <bruno@clisp.org>
49716
49717         Tests for module 'uninorm/nfkc'.
49718         * tests/uninorm/test-nfkc.c: New file.
49719         * tests/uninorm/test-u8-nfkc.c: New file.
49720         * tests/uninorm/test-u16-nfkc.c: New file.
49721         * tests/uninorm/test-u32-nfkc.c: New file.
49722         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49723         * tests/uninorm/test-u32-nfkc-big.c: New file.
49724         * modules/uninorm/nfkc-tests: New file.
49725
49726         New module 'uninorm/nfkc'.
49727         * lib/uninorm/nfkc.c: New file.
49728         * modules/uninorm/nfkc: New file.
49729
49730         Tests for module 'uninorm/nfkd'.
49731         * tests/uninorm/test-nfkd.c: New file.
49732         * tests/uninorm/test-u8-nfkd.c: New file.
49733         * tests/uninorm/test-u16-nfkd.c: New file.
49734         * tests/uninorm/test-u32-nfkd.c: New file.
49735         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49736         * tests/uninorm/test-u32-nfkd-big.c: New file.
49737         * modules/uninorm/nfkd-tests: New file.
49738
49739         New module 'uninorm/nfkd'.
49740         * lib/uninorm/nfkd.c: New file.
49741         * modules/uninorm/nfkd: New file.
49742
49743         Tests for module 'uninorm/nfc'.
49744         * tests/uninorm/test-nfc.c: New file.
49745         * tests/uninorm/test-u8-nfc.c: New file.
49746         * tests/uninorm/test-u16-nfc.c: New file.
49747         * tests/uninorm/test-u32-nfc.c: New file.
49748         * tests/uninorm/test-u32-nfc-big.sh: New file.
49749         * tests/uninorm/test-u32-nfc-big.c: New file.
49750         * modules/uninorm/nfc-tests: New file.
49751
49752         New module 'uninorm/nfc'.
49753         * lib/uninorm/nfc.c: New file.
49754         * modules/uninorm/nfc: New file.
49755
49756         Tests for module 'uninorm/nfd'.
49757         * tests/uninorm/test-nfd.c: New file.
49758         * tests/uninorm/test-u8-nfd.c: New file.
49759         * tests/uninorm/test-u16-nfd.c: New file.
49760         * tests/uninorm/test-u32-nfd.c: New file.
49761         * tests/uninorm/test-u32-nfd-big.sh: New file.
49762         * tests/uninorm/test-u32-nfd-big.c: New file.
49763         * tests/uninorm/test-u32-normalize-big.h: New file.
49764         * tests/uninorm/test-u32-normalize-big.c: New file.
49765         * tests/uninorm/NormalizationTest.txt: New file, created from
49766         Unicode 5.1.0 NormalizationTest.txt.
49767         * modules/uninorm/nfd-tests: New file.
49768
49769         New module 'uninorm/nfd'.
49770         * lib/uninorm/nfd.c: New file.
49771         * modules/uninorm/nfd: New file.
49772
49773         New module 'uninorm/u32-normalize'.
49774         * lib/uninorm/u32-normalize.c: New file.
49775         * modules/uninorm/u32-normalize: New file.
49776
49777         New module 'uninorm/u16-normalize'.
49778         * lib/uninorm/u16-normalize.c: New file.
49779         * modules/uninorm/u16-normalize: New file.
49780
49781         New module 'uninorm/u8-normalize'.
49782         * lib/uninorm/u8-normalize.c: New file.
49783         * lib/uninorm/normalize-internal.h: New file.
49784         * lib/uninorm/u-normalize-internal.h: New file.
49785         * modules/uninorm/u8-normalize: New file.
49786
49787         New module 'uninorm/decompose-internal'.
49788         * lib/uninorm/decompose-internal.c: New file.
49789         * modules/uninorm/decompose-internal: New file.
49790
49791         Tests for module 'uninorm/composition'.
49792         * tests/uninorm/test-composition.c: New file.
49793         * modules/uninorm/composition-tests: New file.
49794
49795         New module 'uninorm/composition'.
49796         * lib/uninorm/composition.c: New file.
49797         * lib/uninorm/composition-table.gperf: New file, generated by
49798         gen-uni-tables.
49799         * modules/uninorm/composition: New file.
49800
49801         Tests for module 'uninorm/compat-decomposition'.
49802         * tests/uninorm/test-compat-decomposition.c: New file.
49803         * modules/uninorm/compat-decomposition-tests: New file.
49804
49805         New module 'uninorm/compat-decomposition'.
49806         * lib/uninorm/decompose-internal.h: New file.
49807         * lib/uninorm/compat-decomposition.c: New file.
49808         * modules/uninorm/compat-decomposition: New file.
49809
49810         Tests for module 'uninorm/canonical-decomposition'.
49811         * tests/uninorm/test-canonical-decomposition.c: New file.
49812         * modules/uninorm/canonical-decomposition-tests: New file.
49813
49814         New module 'uninorm/canonical-decomposition'.
49815         * lib/uninorm/canonical-decomposition.c: New file.
49816         * modules/uninorm/canonical-decomposition: New file.
49817
49818         Tests for module 'uninorm/decomposition'.
49819         * tests/uninorm/test-decomposition.c: New file.
49820         * modules/uninorm/decomposition-tests: New file.
49821
49822         New module 'uninorm/decomposition'.
49823         * lib/uninorm/decomposition.c: New file.
49824         * modules/uninorm/decomposition: New file.
49825
49826         New module 'uninorm/decomposition-table'.
49827         * lib/uninorm/decomposition-table.h: New file.
49828         * lib/uninorm/decomposition-table.c: New file.
49829         * lib/uninorm/decomposition-table1.h: New file, generated by
49830         gen-uni-tables.
49831         * lib/uninorm/decomposition-table2.h: New file, generated by
49832         gen-uni-tables.
49833         * modules/uninorm/decomposition-table: New file.
49834
49835         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49836         (UC_DECOMP_*): New enumeration items.
49837         (get_decomposition): New function.
49838         (struct decomp_table): New type.
49839         (output_decomposition, output_decomposition_tables): New functions.
49840         (unicode_composition_exclusions): New variable.
49841         (fill_composition_exclusions, debug_output_composition_tables): New
49842         functions.
49843         (main): Accept one more argument. Invoke fill_composition_exclusions.
49844         Output decomposition and composition tables.
49845
49846         New module 'uninorm/base'.
49847         * lib/uninorm.h: New file.
49848         * lib/unictype.h: Update comment.
49849         * modules/uninorm/base: New file.
49850
49851 2009-02-21  David Lutterkort  <lutter@redhat.com>
49852
49853         Tests for module 'safe-alloc'.
49854         * tests/test-safe-alloc.c: New file.
49855         * modules/safe-alloc-tests: New file.
49856
49857         New module 'safe-alloc'.
49858         * lib/safe-alloc.h: New file.
49859         * lib/safe-alloc.c: New file.
49860         * m4/safe-alloc.m4: New file.
49861         * modules/safe-alloc: New file.
49862         * doc/safe-alloc.texi: New file.
49863         * doc/gnulib.texi: Include it.
49864         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49865         safe-alloc.
49866
49867 2009-02-18  Bruno Haible  <bruno@clisp.org>
49868
49869         Fix link error on non-glibc systems.
49870         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49871         variable.
49872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49873
49874 2009-02-18  Jim Meyering  <meyering@redhat.com>
49875
49876         fts: avoid used-uninitialized error due to recent change
49877         * lib/fts.c (fts_read): Guard uses of the new member,
49878         parent->fts_n_dirs_remaining, since it's not relevant for
49879         the parent of a directory specified on the command-line.
49880
49881 2009-02-17  James Youngman  <jay@gnu.org>
49882             Bruno Haible  <bruno@clisp.org>
49883
49884         * m4/include_next.m4: Reformulate comment.
49885
49886 2009-02-16  Jim Meyering  <meyering@redhat.com>
49887
49888         fts: add #if guards so that the fts_lgpl module still builds
49889         * lib/fts.c: Guard just-added hash-table-using parts with
49890         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49891         Reported by Simon Josefsson.
49892
49893 2009-02-15  Bruno Haible  <bruno@clisp.org>
49894
49895         * modules/array-mergesort-tests: New file.
49896         * tests/test-array-mergesort.c: New file.
49897
49898         New module 'array-mergesort'.
49899         * modules/array-mergesort: New file.
49900         * lib/array-mergesort.h: New file.
49901
49902 2009-02-15  Bruno Haible  <bruno@clisp.org>
49903
49904         Fix 2009-02-07 commit.
49905         * lib/gen-uni-tables.c (output_predicate, output_category,
49906         output_combclass, output_bidi_category, output_decimal_digit,
49907         output_digit, output_numeric, output_mirror, output_scripts,
49908         output_ident_category, output_simple_mapping): Fix format directives.
49909         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49910
49911 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49912
49913         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49914         fixes are available from IBM.
49915
49916 2009-02-13  Jim Meyering  <meyering@redhat.com>
49917
49918         fts: arrange not to stat non-directories in more cases
49919         This makes GNU find (when it doesn't need to stat each file)
49920         *much* more efficient at traversing reiserfs file systems.
49921         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49922         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49923         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49924         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49925         (leaf_optimization_applies): New function.
49926         (LCO_hash, LCO_compare): New helper functions.
49927         (link_count_optimize_ok): New function.
49928         (fts_stat): Initialize new member (if dir).
49929         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49930         we've just stat'ed a directory.  Skip the stat call when possible.
49931         ---
49932         Note this AFS-related exchange:
49933         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49934         and note find's pioctl call in find/fstype.c.
49935         But that is necessary only if you want to enable the
49936         optimization for AFS, and for now, I don't.
49937
49938         fts: move a function definition "up" (no semantic change)
49939         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49940         "up" to precede upcoming use of a related function.
49941
49942 2009-02-11  Jim Meyering  <meyering@redhat.com>
49943
49944         fts: correct internal computation of nlinks (optimization-related)
49945         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49946         whether the current entry is a directory, so don't test it.
49947
49948 2009-02-10  Bruno Haible  <bruno@clisp.org>
49949
49950         Tests for module 'uniwbrk/ulc-wordbreaks'.
49951         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49952         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49953         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49954
49955         Tests for module 'uniwbrk/u32-wordbreaks'.
49956         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49957         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49958
49959         Tests for module 'uniwbrk/u16-wordbreaks'.
49960         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49961         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49962
49963         Tests for module 'uniwbrk/u8-wordbreaks'.
49964         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49965         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49966
49967 2009-02-10  Bruno Haible  <bruno@clisp.org>
49968
49969         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49970         property.
49971         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49972         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49973         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49974
49975 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49976
49977         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49978         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49979
49980 2009-02-10  Bruno Haible  <bruno@clisp.org>
49981
49982         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49983         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49984         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49985         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49986         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49987         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49988
49989 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49990
49991         * lib/sockets.h (gl_fd_to_handle): New function.
49992
49993         * tests/test-sockets.c: Call gl_fd_to_handle.
49994
49995 2009-02-09  Bruno Haible  <bruno@clisp.org>
49996
49997         * doc/havelib.texi: Document the conventions on bi-arch systems.
49998
49999 2009-02-08  Bruno Haible  <bruno@clisp.org>
50000
50001         Document the AC_LIB_LINKFLAGS macro.
50002         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50003         * doc/gnulib.texi: Include it.
50004
50005 2009-02-08  Bruno Haible  <bruno@clisp.org>
50006
50007         Fix wrong order of sections, compared to TOC.
50008         * doc/gnulib.texi: Include relocatable-maint.texi after the
50009         "Regular expressions" node, not before.
50010
50011 2009-02-08  Bruno Haible  <bruno@clisp.org>
50012
50013         Tests for module 'unicase/totitle'.
50014         * modules/unicase/totitle-tests: New file.
50015
50016         Tests for module 'unicase/tolower'.
50017         * modules/unicase/tolower-tests: New file.
50018
50019         Tests for module 'unicase/toupper'.
50020         * modules/unicase/toupper-tests: New file.
50021         * tests/unicase/test-mapping-part1.h: New file.
50022         * tests/unicase/test-mapping-part2.h: New file.
50023
50024         New module 'unicase/totitle'.
50025         * modules/unicase/totitle: New file.
50026         * lib/unicase/totitle.c: New file.
50027
50028         New module 'unicase/tolower'.
50029         * modules/unicase/tolower: New file.
50030         * lib/unicase/tolower.c: New file.
50031
50032         New module 'unicase/toupper'.
50033         * modules/unicase/toupper: New file.
50034         * lib/unicase/toupper.c: New file.
50035         * lib/unicase/simple-mapping.h: New file.
50036
50037         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50038         (mapping_table): New structure.
50039         (output_simple_mapping): New function.
50040         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50041         * modules/gen-uni-tables (Description): Update.
50042         * lib/unicase/toupper.h: New file, automatically generated by
50043         gen-uni-tables.
50044         * lib/unicase/tolower.h: New file, automatically generated by
50045         gen-uni-tables.
50046         * lib/unicase/totitle.h: New file, automatically generated by
50047         gen-uni-tables.
50048         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50049         gen-uni-tables.
50050         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50051         gen-uni-tables.
50052         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50053         gen-uni-tables.
50054
50055         New module 'unicase/base'.
50056         * modules/unicase/base: New file.
50057         * lib/unicase.h: New file.
50058
50059 2009-02-08  Bruno Haible  <bruno@clisp.org>
50060
50061         New module 'uniwbrk/ulc-wordbreaks'.
50062         * modules/uniwbrk/ulc-wordbreaks: New file.
50063         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50064
50065         New module 'uniwbrk/u32-wordbreaks'.
50066         * modules/uniwbrk/u32-wordbreaks: New file.
50067         * lib/uniwbrk/u32-wordbreaks.c: New file.
50068
50069         New module 'uniwbrk/u16-wordbreaks'.
50070         * modules/uniwbrk/u16-wordbreaks: New file.
50071         * lib/uniwbrk/u16-wordbreaks.c: New file.
50072
50073         New module 'uniwbrk/u8-wordbreaks'.
50074         * modules/uniwbrk/u8-wordbreaks: New file.
50075         * lib/uniwbrk/u8-wordbreaks.c: New file.
50076         * lib/uniwbrk/u-wordbreaks.h: New file.
50077
50078         New module 'uniwbrk/table'.
50079         * modules/uniwbrk/table: New file.
50080         * lib/uniwbrk/wbrktable.h: New file.
50081         * lib/uniwbrk/wbrktable.c: New file.
50082
50083         New module 'uniwbrk/wordbreak-property'.
50084         * modules/uniwbrk/wordbreak-property: New file.
50085         * lib/uniwbrk/wordbreak-property.c: New file.
50086
50087         * lib/gen-uni-tables.c (WBP_*): New enum items.
50088         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50089         (unicode_org_wbp): New variable.
50090         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50091         New functions.
50092         (wbp_table): New structure.
50093         (output_wbp, output_wbrk_tables): New functions.
50094         (main): Accept additional argument. Invoke fill_org_wbp,
50095         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50096         output_wbrk_tables.
50097         * modules/gen-uni-tables (Description): Update.
50098         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50099         gen-uni-tables.
50100
50101         New module 'uniwbrk/base'.
50102         * modules/uniwbrk/base: New file.
50103         * lib/uniwbrk.h: New file.
50104
50105 2009-02-08  Bruno Haible  <bruno@clisp.org>
50106
50107         Update to Unicode 5.1.0.
50108         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50109         U+2185..U+2188.
50110         (is_property_default_ignorable_code_point): Don't include characters
50111         of category Cc or Cs and not-a-characters.
50112         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50113         U+0D79, U+109E, U+109F, U+A60C.
50114         * lib/unictype/bidi_of.h: Regenerated.
50115         * lib/unictype/blocks.h: Regenerated.
50116         * lib/unictype/categ_C.h: Regenerated.
50117         * lib/unictype/categ_Cf.h: Regenerated.
50118         * lib/unictype/categ_Cn.h: Regenerated.
50119         * lib/unictype/categ_L.h: Regenerated.
50120         * lib/unictype/categ_Ll.h: Regenerated.
50121         * lib/unictype/categ_Lm.h: Regenerated.
50122         * lib/unictype/categ_Lo.h: Regenerated.
50123         * lib/unictype/categ_Lu.h: Regenerated.
50124         * lib/unictype/categ_M.h: Regenerated.
50125         * lib/unictype/categ_Mc.h: Regenerated.
50126         * lib/unictype/categ_Me.h: Regenerated.
50127         * lib/unictype/categ_Mn.h: Regenerated.
50128         * lib/unictype/categ_N.h: Regenerated.
50129         * lib/unictype/categ_Nd.h: Regenerated.
50130         * lib/unictype/categ_Nl.h: Regenerated.
50131         * lib/unictype/categ_No.h: Regenerated.
50132         * lib/unictype/categ_P.h: Regenerated.
50133         * lib/unictype/categ_Pd.h: Regenerated.
50134         * lib/unictype/categ_Pe.h: Regenerated.
50135         * lib/unictype/categ_Pf.h: Regenerated.
50136         * lib/unictype/categ_Pi.h: Regenerated.
50137         * lib/unictype/categ_Po.h: Regenerated.
50138         * lib/unictype/categ_Ps.h: Regenerated.
50139         * lib/unictype/categ_S.h: Regenerated.
50140         * lib/unictype/categ_Sk.h: Regenerated.
50141         * lib/unictype/categ_Sm.h: Regenerated.
50142         * lib/unictype/categ_So.h: Regenerated.
50143         * lib/unictype/categ_of.h: Regenerated.
50144         * lib/unictype/combining.h: Regenerated.
50145         * lib/unictype/ctype_alnum.h: Regenerated.
50146         * lib/unictype/ctype_alpha.h: Regenerated.
50147         * lib/unictype/ctype_graph.h: Regenerated.
50148         * lib/unictype/ctype_lower.h: Regenerated.
50149         * lib/unictype/ctype_print.h: Regenerated.
50150         * lib/unictype/ctype_punct.h: Regenerated.
50151         * lib/unictype/ctype_upper.h: Regenerated.
50152         * lib/unictype/decdigit.h: Regenerated.
50153         * lib/unictype/digit.h: Regenerated.
50154         * lib/unictype/mirror.h: Regenerated.
50155         * lib/unictype/numeric.h: Regenerated.
50156         * lib/unictype/pr_alphabetic.h: Regenerated.
50157         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50158         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50159         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50160         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50161         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50162         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50163         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50164         * lib/unictype/pr_combining.h: Regenerated.
50165         * lib/unictype/pr_dash.h: Regenerated.
50166         * lib/unictype/pr_decimal_digit.h: Regenerated.
50167         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50168         * lib/unictype/pr_deprecated.h: Regenerated.
50169         * lib/unictype/pr_diacritic.h: Regenerated.
50170         * lib/unictype/pr_extender.h: Regenerated.
50171         * lib/unictype/pr_format_control.h: Regenerated.
50172         * lib/unictype/pr_grapheme_base.h: Regenerated.
50173         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50174         * lib/unictype/pr_grapheme_link.h: Regenerated.
50175         * lib/unictype/pr_id_continue.h: Regenerated.
50176         * lib/unictype/pr_id_start.h: Regenerated.
50177         * lib/unictype/pr_ideographic.h: Regenerated.
50178         * lib/unictype/pr_ignorable_control.h: Regenerated.
50179         * lib/unictype/pr_lowercase.h: Regenerated.
50180         * lib/unictype/pr_math.h: Regenerated.
50181         * lib/unictype/pr_numeric.h: Regenerated.
50182         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50183         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50184         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50185         * lib/unictype/pr_other_id_continue.h: Regenerated.
50186         * lib/unictype/pr_other_lowercase.h: Regenerated.
50187         * lib/unictype/pr_other_math.h: Regenerated.
50188         * lib/unictype/pr_punctuation.h: Regenerated.
50189         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50190         * lib/unictype/pr_soft_dotted.h: Regenerated.
50191         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50192         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50193         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50194         * lib/unictype/pr_uppercase.h: Regenerated.
50195         * lib/unictype/pr_xid_continue.h: Regenerated.
50196         * lib/unictype/pr_xid_start.h: Regenerated.
50197         * lib/unictype/pr_zero_width.h: Regenerated.
50198         * lib/unictype/scripts.h: Regenerated.
50199         * lib/unictype/scripts_byname.gperf: Regenerated.
50200         * lib/unictype/sy_java_ident.h: Regenerated.
50201         * lib/unilbrk/lbrkprop1.h: Regenerated.
50202         * lib/unilbrk/lbrkprop2.h: Regenerated.
50203         * tests/unictype/test-categ_C.c: Regenerated.
50204         * tests/unictype/test-categ_Cf.c: Regenerated.
50205         * tests/unictype/test-categ_Cn.c: Regenerated.
50206         * tests/unictype/test-categ_L.c: Regenerated.
50207         * tests/unictype/test-categ_Ll.c: Regenerated.
50208         * tests/unictype/test-categ_Lm.c: Regenerated.
50209         * tests/unictype/test-categ_Lo.c: Regenerated.
50210         * tests/unictype/test-categ_Lu.c: Regenerated.
50211         * tests/unictype/test-categ_M.c: Regenerated.
50212         * tests/unictype/test-categ_Mc.c: Regenerated.
50213         * tests/unictype/test-categ_Me.c: Regenerated.
50214         * tests/unictype/test-categ_Mn.c: Regenerated.
50215         * tests/unictype/test-categ_N.c: Regenerated.
50216         * tests/unictype/test-categ_Nd.c: Regenerated.
50217         * tests/unictype/test-categ_Nl.c: Regenerated.
50218         * tests/unictype/test-categ_No.c: Regenerated.
50219         * tests/unictype/test-categ_P.c: Regenerated.
50220         * tests/unictype/test-categ_Pd.c: Regenerated.
50221         * tests/unictype/test-categ_Pe.c: Regenerated.
50222         * tests/unictype/test-categ_Pf.c: Regenerated.
50223         * tests/unictype/test-categ_Pi.c: Regenerated.
50224         * tests/unictype/test-categ_Po.c: Regenerated.
50225         * tests/unictype/test-categ_Ps.c: Regenerated.
50226         * tests/unictype/test-categ_S.c: Regenerated.
50227         * tests/unictype/test-categ_Sk.c: Regenerated.
50228         * tests/unictype/test-categ_Sm.c: Regenerated.
50229         * tests/unictype/test-categ_So.c: Regenerated.
50230         * tests/unictype/test-ctype_alnum.c: Regenerated.
50231         * tests/unictype/test-ctype_alpha.c: Regenerated.
50232         * tests/unictype/test-ctype_graph.c: Regenerated.
50233         * tests/unictype/test-ctype_lower.c: Regenerated.
50234         * tests/unictype/test-ctype_print.c: Regenerated.
50235         * tests/unictype/test-ctype_punct.c: Regenerated.
50236         * tests/unictype/test-ctype_upper.c: Regenerated.
50237         * tests/unictype/test-decdigit.h: Regenerated.
50238         * tests/unictype/test-digit.h: Regenerated.
50239         * tests/unictype/test-numeric.h: Regenerated.
50240         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50241         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50242         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50243         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50244         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50245         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50246         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50247         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50248         * tests/unictype/test-pr_combining.c: Regenerated.
50249         * tests/unictype/test-pr_dash.c: Regenerated.
50250         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50251         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50252         * tests/unictype/test-pr_deprecated.c: Regenerated.
50253         * tests/unictype/test-pr_diacritic.c: Regenerated.
50254         * tests/unictype/test-pr_extender.c: Regenerated.
50255         * tests/unictype/test-pr_format_control.c: Regenerated.
50256         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50257         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50258         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50259         * tests/unictype/test-pr_id_continue.c: Regenerated.
50260         * tests/unictype/test-pr_id_start.c: Regenerated.
50261         * tests/unictype/test-pr_ideographic.c: Regenerated.
50262         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50263         * tests/unictype/test-pr_lowercase.c: Regenerated.
50264         * tests/unictype/test-pr_math.c: Regenerated.
50265         * tests/unictype/test-pr_numeric.c: Regenerated.
50266         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50267         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50268         Regenerated.
50269         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50270         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50271         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50272         * tests/unictype/test-pr_other_math.c: Regenerated.
50273         * tests/unictype/test-pr_punctuation.c: Regenerated.
50274         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50275         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50276         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50277         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50278         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50279         * tests/unictype/test-pr_uppercase.c: Regenerated.
50280         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50281         * tests/unictype/test-pr_xid_start.c: Regenerated.
50282         * tests/unictype/test-pr_zero_width.c: Regenerated.
50283
50284         Update to Unicode 5.1.0.
50285         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50286         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50287         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50288         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50289         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50290         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50291         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50292         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50293         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50294         (nonspacing_table_ind): Update.
50295         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50296
50297         Update to Unicode 5.1.0.
50298         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50299         code transform.
50300         * lib/uniname/uniname.c (unicode_character_name,
50301         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50302         * lib/uniname/uninames.h: Regenerated.
50303         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50304
50305 2009-02-07  Bruno Haible  <bruno@clisp.org>
50306
50307         Merge gen-ctype and gen-lbrk into a single program.
50308         * lib/gen-uni-tables.c: New file, incorporating
50309         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50310         Add directory prefixes to the names of the generated files.
50311         * lib/unictype/gen-ctype.c: Remove file.
50312         * lib/unilbrk/gen-lbrk.c: Remove file.
50313         * modules/gen-uni-tables: New file.
50314         * modules/unictype/gen-ctype: Remove file.
50315         * modules/unilbrk/gen-lbrk: Remove file.
50316
50317 2009-02-07  Bruno Haible  <bruno@clisp.org>
50318
50319         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50320
50321         New module 'unistr/u32-strcoll'.
50322         * modules/unistr/u32-strcoll: New file.
50323         * lib/unistr/u32-strcoll.c: New file.
50324
50325         New module 'unistr/u16-strcoll'.
50326         * modules/unistr/u16-strcoll: New file.
50327         * lib/unistr/u16-strcoll.c: New file.
50328
50329         New module 'unistr/u8-strcoll'.
50330         * modules/unistr/u8-strcoll: New file.
50331         * lib/unistr/u8-strcoll.c: New file.
50332         * lib/unistr/u-strcoll.h: New file.
50333
50334 2009-02-07  Bruno Haible  <bruno@clisp.org>
50335
50336         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50337         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50338         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50339         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50340         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50341         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50342
50343 2009-02-07  Bruno Haible  <bruno@clisp.org>
50344
50345         Make 64-bit clean.
50346         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50347         output_combclass, output_bidi_category, output_decimal_digit,
50348         output_digit, output_numeric, output_mirror, output_scripts,
50349         output_ident_category): Use proper width specifier in format strings.
50350
50351 2009-02-07  Bruno Haible  <bruno@clisp.org>
50352
50353         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50354         failure behaviour.
50355
50356 2009-02-07  Jim Meyering  <meyering@redhat.com>
50357
50358         regex: avoid compilation failure with upcoming gcc-4.4
50359         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50360         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50361         "... error: integer overflow in preprocessor expression".
50362
50363 2009-02-05  Ben Pfaff  <blp@gnu.org>
50364
50365         Fix link errors on Windows when close module is used.
50366         * modules/close: Add $(LIB_CLOSE) to Link section.
50367         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50368         $(LIB_CLOSE) on Windows.
50369
50370 2009-02-05  Jim Meyering  <meyering@redhat.com>
50371
50372         still avoid unused-parameter warnings, but do it cleanly
50373         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50374         (get_fs_usage): Cast to void instead.
50375         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50376         (dev_from_mount_options, read_file_system_list): Cast to void.
50377         Prompted by Bruno Haible.
50378
50379 2009-02-04  Jim Meyering  <meyering@redhat.com>
50380
50381         fsusage.c: correct copyright year
50382         * lib/fsusage.c: Reflect year in which the change is pushed into
50383
50384         avoid misc. warnings
50385         * lib/fsusage.c (UNUSED_PARAM): Define.
50386         (get_fs_usage): Mark parameter "disk" as unused.
50387         * lib/getugroups.c (getgrent): Use "void" in prototype.
50388         * lib/mountlist.c: Mark unused parameters.
50389         (read_file_system_list): Declare a local with "const".
50390         * lib/nanosleep.c (getnow): Declare static.
50391         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50392
50393         dirfd: set errno upon failure
50394         * lib/dirfd.c: Include <errno.h>.
50395         Set errno to ENOTSUP when returning -1.
50396         * modules/dirfd (Depends-on): Add errno.
50397         Suggested by John Kodis <kodis@comcast.net>.
50398
50399 2009-02-01  Bruno Haible  <bruno@clisp.org>
50400
50401         Don't assume sizeof (long) >= sizeof (void *).
50402         * lib/memcmp.c: Include stdint.h.
50403         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50404         srcp2 to 'const byte *'.
50405         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50406         types to uintptr_t.
50407         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50408         * modules/memcmp (Depends-on): Add stdint.
50409         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50410
50411 2009-01-30  Eric Blake  <ebb9@byu.net>
50412
50413         fix more require-before-expand issues
50414         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50415         expand, AC_PROG_AWK.
50416         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50417
50418 2009-01-28  Eric Blake  <ebb9@byu.net>
50419
50420         version-etc: use consistent URL formatting
50421         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50422         Improve formatting.  Use fputs for string without %.
50423
50424 2009-01-28  Jim Meyering  <meyering@redhat.com>
50425
50426         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50427         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50428         "underquoted definition of NAME" from autoconf-2.59.
50429
50430 2009-01-28  Bruno Haible  <bruno@clisp.org>
50431
50432         * doc/gnulib.texi: Add "Obsolete modules" to index.
50433
50434 2009-01-28  Jim Meyering  <meyering@redhat.com>
50435
50436         useless-if-before-free: recognize more variants
50437         * build-aux/useless-if-before-free: Also recognize e.g.,
50438         if (NULL != p) free (p);
50439
50440 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50441
50442         test-getaddrinfo: skip (don't fail) this test when there's no network
50443         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50444         on the presumption that it means you lack network access.
50445
50446 2009-01-26  Jim Meyering  <meyering@redhat.com>
50447
50448         fflush: avoid warnings on modern systems
50449         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50450         pos and result, into scopes where they're used.
50451
50452 2009-01-26  Eric Blake  <ebb9@byu.net>
50453
50454         Silence warning reintroduced by recent extensions patch.
50455         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50456         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50457         autoconf.
50458
50459         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50460         * m4/00gnulib.m4: New file.
50461         * gnulib-tool (func_get_filelist): Always use it.
50462         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50463         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50464
50465 2009-01-25  Bruno Haible  <bruno@clisp.org>
50466
50467         Make test-quotearg work on MacOS X and AIX.
50468         * tests/test-quotearg.sh: New file.
50469         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50470         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50471         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50472         include <libintl.h>.
50473         (fake_locale): Remove variable.
50474         (gettext, dgettext, dcgettext): Remove functions.
50475         (main): Instead of setting a fake locale, set a real locale. Call
50476         textdomain and bindtextdomain.
50477         * modules/quotearg-tests (Files): Add the new files.
50478         (Depends-on): Add gettext, setenv, unsetenv.
50479         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50480         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50481         Augment TESTS_ENVIRONMENT.
50482
50483 2009-01-25  Bruno Haible  <bruno@clisp.org>
50484
50485         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50486         fr_FR.ISO8859-1 locale on MacOS X.
50487         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50488         ja_JP.eucJP locale on MacOS X.
50489         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50490         zh_CN.GB18030 locale on MacOS X.
50491
50492 2009-01-25  Bruno Haible  <bruno@clisp.org>
50493
50494         Avoid link errors on MacOS X 10.3.
50495         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50496         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50497
50498 2009-01-25  Bruno Haible  <bruno@clisp.org>
50499
50500         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50501         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50502         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50503         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50504         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50505         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50506         posix_spawnattr_init, posix_spawnattr_setsigmask,
50507         posix_spawnattr_setflags, posix_spawnattr_destroy.
50508
50509         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50510         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50511         * modules/execute (Files): Remove m4/posix_spawn.m4.
50512         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50513         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50514         posix_spawnattr_init, posix_spawnattr_setsigmask,
50515         posix_spawnattr_setflags, posix_spawnattr_destroy.
50516
50517 2009-01-25  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/glthread/threadlib.c: Include <stdlib.h>.
50520
50521 2009-01-25  Bruno Haible  <bruno@clisp.org>
50522
50523         * lib/glthread/threadlib.c (dummy): New declaration.
50524
50525 2009-01-25  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50528         multibyte characters also for the GB18030 encoding. Don't crash when
50529         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50530
50531 2009-01-25  Bruno Haible  <bruno@clisp.org>
50532
50533         Avoid redefining 'struct random_data' on OSF/1 5.1.
50534         * lib/stdlib.in.h: Include <random.h> if it exists.
50535         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50536         HAVE_RANDOM_H. Include <random.h> when testing whether
50537         'struct random_data' exists.
50538         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50539
50540 2009-01-25  Bruno Haible  <bruno@clisp.org>
50541
50542         Don't install charset.alias on MacOS X >= 10.3.
50543         * lib/localcharset.c (DARWIN7): New macro.
50544         (get_charset_aliases): Hardcode the result for Darwin7.
50545         * modules/localcharset (install-exec-local): Don't install
50546         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50547
50548 2009-01-25  Bruno Haible  <bruno@clisp.org>
50549
50550         Don't install charset.alias on mingw and Cygwin.
50551         * modules/localcharset (install-exec-local): Don't install
50552         charset.alias on mingw and Cygwin, if the file does not yet exist.
50553         The result for these platforms is hardcoded in localcharset.c.
50554
50555 2009-01-25  Bruno Haible  <bruno@clisp.org>
50556
50557         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50558         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50559         before requiring AC_USE_SYSTEM_EXTENSIONS.
50560
50561 2009-01-25  Jim Meyering  <meyering@redhat.com>
50562
50563         c-strtod: avoid warnings
50564         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50565         "assignment discards qualifiers from pointer target type" warnings.
50566
50567 2009-01-24  Bruno Haible  <bruno@clisp.org>
50568
50569         Add support for non-UTF-8 locales on MacOS X.
50570         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50571         canonical encodings. For Darwin 7 and newer, don't map traditional
50572         encodings to UTF-8.
50573         Reported by Vincent Lefevre <vincent@vinc17.org>
50574         at <http://savannah.gnu.org/bugs/?25235>.
50575
50576 2009-01-24  Bruno Haible  <bruno@clisp.org>
50577
50578         * doc/gnulib.texi (Obsolete modules): New section.
50579         Reported by Mike Frysinger <vapier@gentoo.org>.
50580
50581 2009-01-24  Bruno Haible  <bruno@clisp.org>
50582
50583         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50584         (%.dvi): New rule.
50585
50586 2009-01-24  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50589         Reported by Eric Blake.
50590
50591 2009-01-24  Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50594         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50595         Reported by Gary V. Vaughan <gary@gnu.org>.
50596
50597 2009-01-24  Bruno Haible  <bruno@clisp.org>
50598
50599         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50600
50601 2009-01-23  Bruno Haible  <bruno@clisp.org>
50602
50603         Make c-strtod, c-strtold usable in libraries.
50604         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50605         (C_STRTOD): Call strdup instead of xstrdup.
50606         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50607         * modules/c-strtold (Depends-on): Likewise.
50608         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50609         * NEWS: Mention the change.
50610         Reported by Michael Gold <mgold@ncf.ca>.
50611
50612 2009-01-23  Jim Meyering  <meyering@redhat.com>
50613
50614         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50615         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50616         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50617
50618 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50619
50620         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50621         GNU CoreUtils.
50622         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50623         * modules/version-etc (Description): Update.
50624
50625 2009-01-22  Bruno Haible  <bruno@clisp.org>
50626
50627         Cache the C locale object.
50628         * lib/c-strtod.c (c_locale_cache): New variable.
50629         (c_locale): New function.
50630         (C_STRTOD): Use it, and don't call freelocale.
50631         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50632         Suggested by Paolo Bonzini.
50633
50634 2009-01-21  Bruno Haible  <bruno@clisp.org>
50635
50636         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50637         conditions other than overflow.
50638
50639 2009-01-21  Bruno Haible  <bruno@clisp.org>
50640
50641         * lib/c-strtod.c: Include errno.h.
50642         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50643         value from STRTOD_L and STRTOD.
50644
50645 2009-01-21  Bruno Haible  <bruno@clisp.org>
50646         and Jim Meyering  <meyering@redhat.com>
50647
50648         nanosleep: skip configure test (fail it) for apple universal builds
50649         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50650         universal builds, assume that nanosleep does not work.
50651         * modules/nanosleep (Depends-on): Add multiarch.
50652
50653         mktime: skip configure test (fail it) for apple universal builds
50654         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50655         universal builds, assume that mktime does not work.
50656         * modules/mktime (Depends-on): Add multiarch.
50657
50658 2009-01-21  Eric Blake  <ebb9@byu.net>
50659
50660         multiarch: avoid expand-before-require warning
50661         * modules/multiarch (configure.ac): Require, rather than expand,
50662         gl_MULTIARCH.
50663         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50664         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50665         enforce that all clients require it.  Partial reversion of
50666         2008-12-29 patch.
50667
50668         error: avoid expand-before-require warning
50669         * modules/errno (configure.ac): Require, rather than expand,
50670         gl_HEADER_ERRNO_H.
50671         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50672         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50673         enforce that all clients require it.
50674
50675         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50676         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50677         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50678         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50679
50680 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50681
50682         Revert:
50683         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50684
50685         regex: do not depend on obsolete modules.
50686         * modules/regex: Remove memcmp and memmove.
50687
50688 2009-01-20  Bruno Haible  <bruno@clisp.org>
50689
50690         Make the 'link' module link on Windows NT 4.
50691         * lib/link.c (_WIN32_WINNT): Don't define.
50692         (CreateHardLinkFuncType): New type.
50693         (CreateHardLinkFunc, initialized): New variables.
50694         (initialize): New function.
50695         (link): Invoke CreateHardLink indirectly through the function pointer.
50696
50697 2009-01-20  Bruno Haible  <bruno@clisp.org>
50698
50699         Fix compilation failure on mingw.
50700         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50701
50702 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50703
50704         * doc/c-strtod.texi: Mention a couple of restrictions.
50705
50706 2009-01-20  Jim Meyering  <meyering@redhat.com>
50707
50708         gettimeofday: move more declarations out of functions
50709         * lib/gettimeofday.c: Move extern declarations of tzset and
50710         gmtime out of containing functions.  Prompted by Bruno Haible.
50711
50712 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50713
50714         regex: do not depend on obsolete modules.
50715         * modules/regex: Remove memcmp and memmove.
50716
50717 2009-01-19  Bruno Haible  <bruno@clisp.org>
50718
50719         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50720         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50721         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50722         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50723         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50724
50725 2009-01-19  Bruno Haible  <bruno@clisp.org>
50726
50727         * tests/test-link.c: Include <errno.h>.
50728         (main): Exit with code 77 when a hard link cannot be created due to
50729         the file system.
50730         * tests/test-link.sh: Skip test when a hard link cannot be created due
50731         to the file system.
50732         Suggested by Eric Blake.
50733
50734 2009-01-19  Martin Lambers  <marlam@marlam.de>
50735
50736         * modules/link-tests: New file.
50737         * tests/test-link.sh: New file.
50738         * tests/test-link.c: New file.
50739
50740 2009-01-19  Eric Blake  <ebb9@byu.net>
50741
50742         doc: mention another function added in cygwin 1.7.0
50743         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50744         Another new function in cygwin 1.7.
50745
50746 2009-01-19  Bruno Haible  <bruno@clisp.org>
50747
50748         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50749         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50750         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50751         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50752         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50753         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50754         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50755         * m4/md4.m4 (gl_MD4): Likewise.
50756         * m4/md5.m4 (gl_MD5): Likewise.
50757         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50758         * m4/sha1.m4 (gl_SHA1): Likewise.
50759         * m4/sha256.m4 (gl_SHA256): Likewise.
50760         * m4/sha512.m4 (gl_SHA512): Likewise.
50761
50762 2009-01-19  Bruno Haible  <bruno@clisp.org>
50763
50764         * modules/uniname/uniname-tests (Depends-on): Add progname.
50765         * tests/uniname/test-uninames.c: Include progname.h.
50766         (main): Call set_program_name.
50767
50768         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50769         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50770         (main): Call set_program_name.
50771
50772         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50773         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50774         (main): Call set_program_name.
50775
50776         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50777         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50778         (main): Call set_program_name.
50779
50780         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50781         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50782         (main): Call set_program_name.
50783
50784         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50785         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50786         (main): Call set_program_name.
50787
50788         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50789         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50790         (main): Call set_program_name.
50791
50792         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50793         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50794         (main): Call set_program_name.
50795
50796         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50797         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50798         (main): Call set_program_name.
50799
50800 2009-01-19  Eric Blake  <ebb9@byu.net>
50801
50802         test-unistd: test previous patch
50803         * tests/test-unistd.c: Test *_FILENO macros.
50804
50805         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50806         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50807         Guarantee a definition.
50808         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50809         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50810         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50811         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50812         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50813         Likewise.
50814         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50815         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50816         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50817         Likewise.
50818         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50819         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50820         (STDERR_FILENO): Likewise.
50821         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50822         (STDERR_FILENO): Likewise.
50823         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50824         (STDERR_FILENO): Likewise.
50825         Reported by Elbert Pol.
50826
50827 2009-01-19  Eric Blake  <ebb9@byu.net>
50828
50829         doc: mention more functions added in cygwin 1.7.0
50830         * doc/posix-functions/abort.texi (abort): Update wording related
50831         to cygwin.
50832         * doc/posix-functions/daylight.texi (daylight): Likewise.
50833         * doc/posix-functions/optarg.texi (optarg): Likewise.
50834         * doc/posix-functions/optarg.texi (opterr): Likewise.
50835         * doc/posix-functions/optarg.texi (optind): Likewise.
50836         * doc/posix-functions/optarg.texi (optopt): Likewise.
50837         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50838         worked in 1.5.x, and was withdrawn in 1.7.
50839         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50840         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50841         cygwin versions.
50842         * doc/posix-functions/perror.texi (perror): Likewise.
50843         * doc/posix-functions/printf.texi (printf): Likewise.
50844         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50845         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50846         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50847         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50848         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50849         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50850         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50851         Likewise.
50852         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50853         Likewise.
50854         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50855         this function.
50856         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50857         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50858         Likewise.
50859         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50860         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50861         * doc/posix-functions/confstr.texi (confstr): Likewise.
50862         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50863         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50864         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50865         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50866         * doc/posix-functions/fputws.texi (fputws): Likewise.
50867         * doc/posix-functions/fwide.texi (fwide): Likewise.
50868         * doc/posix-functions/getwc.texi (getwc): Likewise.
50869         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50870         * doc/posix-functions/putwc.texi (putwc): Likewise.
50871         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50872         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50873         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50874         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50875         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50876         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50877         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50878         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50879         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50880         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50881         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50882
50883 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50884
50885         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50886         * lib/ioctl.c: Include <sys/ioctl.h>.
50887
50888 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50889
50890         * modules/getdate-tests (Depends-on): Add progname.
50891         * tests/test-getdate.c: Use progname module, to avoid link errors
50892         on non-glibc systems.
50893
50894 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50895
50896         * modules/filenamecat-tests (Depends-on): Add progname.
50897         * modules/fstrcmp-tests (Depends-on): Likewise.
50898
50899         * tests/test-filenamecat.c: Use progname module, to avoid link
50900         errors on non-glibc systems.
50901         * tests/test-fstrcmp.c: Likewise.
50902
50903 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50904
50905         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50906         * lib/gettimeofday.c: Move extern declaration out of function.
50907
50908 2009-01-18  Bruno Haible  <bruno@clisp.org>
50909
50910         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50911         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50912         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50913
50914 2009-01-18  Bruno Haible  <bruno@clisp.org>
50915
50916         * lib/strftime.c (MEMPCPY): Remove unused macro.
50917         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50918
50919 2009-01-18  Martin Lambers  <marlam@marlam.de>
50920
50921         New module 'link'.
50922         * lib/unistd.in.h (link): New declaration.
50923         * lib/link.c: New file.
50924         * m4/link.m4: New file.
50925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50926         HAVE_LINK.
50927         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50928         * modules/link: New file.
50929         * doc/posix-functions/link.texi: Mention the new module.
50930
50931 2009-01-18  Bruno Haible  <bruno@clisp.org>
50932
50933         * tests/test-avltree_list.c (main): Call set_program_name.
50934         * tests/test-avltree_oset.c (main): Likewise.
50935         * tests/test-obstack-printf.c: Include progname.h.
50936         (main): Call set_program_name.
50937         * tests/test-quotearg.c: Include progname.h.
50938         (main): Call set_program_name.
50939         * tests/test-xmemdup0.c: Include progname.h.
50940         (main): Call set_program_name.
50941
50942 2009-01-18  Bruno Haible  <bruno@clisp.org>
50943
50944         New module 'alphasort'.
50945         * lib/dirent.in.h (alphasort): New declaration.
50946         * lib/alphasort.c: New file, from glibc with modifications.
50947         * m4/alphasort.m4: New file.
50948         * modules/alphasort: New file.
50949         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50950         HAVE_ALPHASORT.
50951         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50952         HAVE_ALPHASORT.
50953         * doc/posix-functions/alphasort.texi: Mention the new module and the
50954         portability problems.
50955
50956 2009-01-18  Bruno Haible  <bruno@clisp.org>
50957
50958         New module 'scandir'.
50959         * lib/dirent.in.h (scandir): New declaration.
50960         * lib/scandir.c: New file, from glibc with modifications.
50961         * m4/scandir.m4: New file.
50962         * modules/scandir: New file.
50963         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50964         HAVE_SCANDIR.
50965         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50966         HAVE_SCANDIR.
50967         * doc/posix-functions/scandir.texi: Mention the new module and the
50968         portability problems.
50969
50970 2009-01-17  Bruno Haible  <bruno@clisp.org>
50971
50972         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50973         Update documentation.
50974         (func_remove_suffix): Escape all dots in the suffix. Update
50975         documentation.
50976         (func_filter_filelist): Update documentation.
50977         Reported by Ralf Wildenhues.
50978
50979 2009-01-17  Bruno Haible  <bruno@clisp.org>
50980
50981         * modules/dprintf-posix-tests: New file.
50982         * tests/test-dprintf-posix.sh: New file.
50983         * tests/test-dprintf-posix.c: New file.
50984
50985         New modules 'dprintf', 'dprintf-posix'.
50986         * lib/stdio.in.h (dprintf): New declaration.
50987         * lib/dprintf.c: New file.
50988         * m4/dprintf.m4: New file.
50989         * m4/dprintf-posix.m4: New file.
50990         * modules/dprintf: New file.
50991         * modules/dprintf-posix: New file.
50992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50993         HAVE_DPRINTF, REPLACE_DPRINTF.
50994         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50995         HAVE_DPRINTF, REPLACE_DPRINTF.
50996         * doc/posix-functions/dprintf.texi: Mention the new modules.
50997
50998 2009-01-17  Bruno Haible  <bruno@clisp.org>
50999
51000         * modules/vdprintf-posix-tests: New file.
51001         * tests/test-vdprintf-posix.sh: New file.
51002         * tests/test-vdprintf-posix.c: New file.
51003
51004         New modules 'vdprintf', 'vdprintf-posix'.
51005         * lib/stdio.in.h (vdprintf): New declaration.
51006         * lib/vdprintf.c: New file.
51007         * m4/vdprintf.m4: New file.
51008         * m4/vdprintf-posix.m4: New file.
51009         * modules/vdprintf: New file.
51010         * modules/vdprintf-posix: New file.
51011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51012         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51013         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51014         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51015         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51016
51017 2009-01-17  Bruno Haible  <bruno@clisp.org>
51018
51019         Fix replacement of fopen on mingw.
51020         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51021         mingw.
51022
51023 2009-01-17  Bruno Haible  <bruno@clisp.org>
51024
51025         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51026         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51027
51028 2009-01-17  Bruno Haible  <bruno@clisp.org>
51029
51030         Avoid test-fflush2.sh failure on mingw.
51031         * tests/test-fflush2.c: Include binary-io.h.
51032         (main): Put standard input into binary mode.
51033         * modules/fflush-tests (Depends-on): Add binary-io.
51034
51035 2009-01-17  Bruno Haible  <bruno@clisp.org>
51036
51037         * lib/wchar.in.h: In another particular situation, include only the
51038         system's <wchar.h> file.
51039         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51040         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51041         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51042
51043 2009-01-17  Bruno Haible  <bruno@clisp.org>
51044
51045         Support for stripping executables in --enable-relocatable.
51046         * build-aux/install-reloc: Expect one more argument, or an environment
51047         variable RELOC_STRIP_PROG. If set, strip the destination program and
51048         its wrapper.
51049         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51050         RELOC_STRIP_PROG.
51051         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51052         to set RELOCATABLE_STRIP.
51053         * NEWS: Mention the new Makefile requirement.
51054
51055 2009-01-17  Bruno Haible  <bruno@clisp.org>
51056
51057         * build-aux/install-reloc: Remove debugging information left over by
51058         C compiler on MacOS X.
51059
51060 2009-01-17  Bruno Haible  <bruno@clisp.org>
51061
51062         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51063         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51064         _NSGetExecutablePath.
51065
51066 2009-01-16  Jim Meyering  <meyering@redhat.com>
51067
51068         strerror: avoid warnings about discarding "const"
51069         * lib/strerror.c (rpl_strerror): Instead of returning a const
51070         string from each and every "case", use a variable, and add a single
51071         cast after the switch.
51072
51073 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51074
51075         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51076
51077 2009-01-16  Bruno Haible  <bruno@clisp.org>
51078
51079         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51080         array initializer syntax that also works in C++ mode.
51081         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51082
51083 2009-01-16  Jim Meyering  <meyering@redhat.com>
51084
51085         poll: suppress a warning
51086         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51087         to ignore "...unsigned expression < 0 is always false" warnings.
51088
51089 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51090
51091         poll: remove declarations of unused variables
51092         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51093         sockbuf and optlen.
51094
51095 2009-01-15  Bruno Haible  <bruno@clisp.org>
51096
51097         Make fflush-after-ungetc POSIX compliant on BSD systems.
51098         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51099         (clear_ungetc_buffer): Implement also for other systems.
51100         (rpl_fflush): On glibc systems, invoke
51101         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51102         clear_ungetc_buffer after fetching the stream's position, not before.
51103
51104 2009-01-15  Bruno Haible  <bruno@clisp.org>
51105
51106         Make fflush-after-ungetc POSIX compliant on glibc systems.
51107         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51108         after ungetc.
51109         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51110         (rpl_fflush): On glibc systems, simply call the system's fflush
51111         function after clearing the ungetc buffer.
51112         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51113         Instead, lseek only to the end of file, then use the system's fseeko
51114         for the rest. On glibc systems, reset the EOF indicator bit.
51115
51116 2009-01-15  Jim Meyering  <meyering@redhat.com>
51117
51118         openmp.m4: revert quote-adding change, for portability to older autoconf
51119         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51120         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51121         Simon Josefsson noticed the problem when using autoconf-2.61.
51122
51123 2009-01-15  Bruno Haible  <bruno@clisp.org>
51124
51125         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51126         * tests/test-fflush2.c (ASSERT): Always fail.
51127         (main): Add two tests for fflush() after ungetc(), taking into account
51128         the Austin Group's clarification.
51129         Suggested by Eric Blake.
51130
51131 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51132
51133         mktime.m4: remove K&R-style function prototypes
51134         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51135         for the Sun C++ compiler.
51136
51137 2009-01-14  Bruno Haible  <bruno@clisp.org>
51138
51139         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51140         while including <wchar.h>.
51141         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51142         the system's <wchar.h> file.
51143         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51144
51145 2009-01-14  Bruno Haible  <bruno@clisp.org>
51146
51147         * m4/csharp.m4: Don't mention gettext on the serial number line.
51148         * m4/csharpexec.m4: Likewise.
51149         * m4/eaccess.m4: Likewise.
51150         * m4/javaexec.m4: Likewise.
51151         * m4/sig_atomic_t.m4: Likewise.
51152         * m4/tmpdir.m4: Likewise.
51153         * m4/intldir.m4: Bump gettext version.
51154         * m4/lib-ld.m4: Likewise.
51155
51156 2009-01-14  Bruno Haible  <bruno@clisp.org>
51157
51158         * lib/progname.c (set_program_name): Add more comments.
51159         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51160
51161 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51162
51163         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51164         were sys/stat.h does not define it.
51165
51166 2009-01-14  Jim Meyering  <meyering@redhat.com>
51167
51168         many *.m4 files: improve m4 quoting
51169         99% of this change was performed by running the following commands:
51170         git ls-files | grep '\.m4$' | xargs perl -pi \
51171           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51172           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51173           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51174           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51175         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51176         The remainder were to add Copyright dates, increment serial numbers,
51177         undo some changes in comments, exclude m4/intl.m4, and add quotes
51178         around the "1" in ",1" where the unusual spacing prohibited the
51179         above regexps from doing the job.  For more details, see
51180         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51181         * m4/acl.m4: Modified.
51182         * m4/afs.m4: Likewise.
51183         * m4/alloca.m4: Likewise.
51184         * m4/argp.m4: Likewise.
51185         * m4/argz.m4: Likewise.
51186         * m4/atexit.m4: Likewise.
51187         * m4/bison-i18n.m4: Likewise.
51188         * m4/bison.m4: Likewise.
51189         * m4/byteswap.m4: Likewise.
51190         * m4/c-stack.m4: Likewise.
51191         * m4/c-strtod.m4: Likewise.
51192         * m4/calloc.m4: Likewise.
51193         * m4/canonicalize-lgpl.m4: Likewise.
51194         * m4/chown.m4: Likewise.
51195         * m4/clock_time.m4: Likewise.
51196         * m4/codeset.m4: Likewise.
51197         * m4/copy-file.m4: Likewise.
51198         * m4/csharp.m4: Likewise.
51199         * m4/csharpcomp.m4: Likewise.
51200         * m4/csharpexec.m4: Likewise.
51201         * m4/d-ino.m4: Likewise.
51202         * m4/d-type.m4: Likewise.
51203         * m4/dirfd.m4: Likewise.
51204         * m4/double-slash-root.m4: Likewise.
51205         * m4/eaccess.m4: Likewise.
51206         * m4/eealloc.m4: Likewise.
51207         * m4/environ.m4: Likewise.
51208         * m4/errno_h.m4: Likewise.
51209         * m4/euidaccess.m4: Likewise.
51210         * m4/execute.m4: Likewise.
51211         * m4/fatal-signal.m4: Likewise.
51212         * m4/fchdir.m4: Likewise.
51213         * m4/fcntl_h.m4: Likewise.
51214         * m4/fileblocks.m4: Likewise.
51215         * m4/filenamecat.m4: Likewise.
51216         * m4/findprog.m4: Likewise.
51217         * m4/flexmember.m4: Likewise.
51218         * m4/fnmatch.m4: Likewise.
51219         * m4/fopen.m4: Likewise.
51220         * m4/fpending.m4: Likewise.
51221         * m4/fprintf-posix.m4: Likewise.
51222         * m4/free.m4: Likewise.
51223         * m4/frexp.m4: Likewise.
51224         * m4/frexpl.m4: Likewise.
51225         * m4/fsusage.m4: Likewise.
51226         * m4/ftruncate.m4: Likewise.
51227         * m4/gc-camellia.m4: Likewise.
51228         * m4/gc-random.m4: Likewise.
51229         * m4/gc.m4: Likewise.
51230         * m4/getaddrinfo.m4: Likewise.
51231         * m4/getcwd-abort-bug.m4: Likewise.
51232         * m4/getcwd-path-max.m4: Likewise.
51233         * m4/getdate.m4: Likewise.
51234         * m4/getdomainname.m4: Likewise.
51235         * m4/getgroups.m4: Likewise.
51236         * m4/gethostname.m4: Likewise.
51237         * m4/gethrxtime.m4: Likewise.
51238         * m4/getline.m4: Likewise.
51239         * m4/getloadavg.m4: Likewise.
51240         * m4/getndelim2.m4: Likewise.
51241         * m4/getpass.m4: Likewise.
51242         * m4/gettext.m4: Likewise.
51243         * m4/gettime.m4: Likewise.
51244         * m4/gettimeofday.m4: Likewise.
51245         * m4/gnulib-common.m4: Likewise.
51246         * m4/group-member.m4: Likewise.
51247         * m4/host-os.m4: Likewise.
51248         * m4/iconv.m4: Likewise.
51249         * m4/iconv_open.m4: Likewise.
51250         * m4/inet_ntop.m4: Likewise.
51251         * m4/inet_pton.m4: Likewise.
51252         * m4/inline.m4: Likewise.
51253         * m4/intldir.m4: Likewise.
51254         * m4/intlmacosx.m4: Likewise.
51255         * m4/intmax.m4: Likewise.
51256         * m4/intmax_t.m4: Likewise.
51257         * m4/inttypes.m4: Likewise.
51258         * m4/inttypes_h.m4: Likewise.
51259         * m4/inttypes-pri.m4: Likewise.
51260         * m4/isapipe.m4: Likewise.
51261         * m4/isnand.m4: Likewise.
51262         * m4/isnanf.m4: Likewise.
51263         * m4/isnanl.m4: Likewise.
51264         * m4/javacomp.m4: Likewise.
51265         * m4/javaexec.m4: Likewise.
51266         * m4/jm-winsz1.m4: Likewise.
51267         * m4/jm-winsz2.m4: Likewise.
51268         * m4/lchown.m4: Likewise.
51269         * m4/lcmessage.m4: Likewise.
51270         * m4/ldexpl.m4: Likewise.
51271         * m4/lib-ld.m4: Likewise.
51272         * m4/lib-link.m4: Likewise.
51273         * m4/libsigsegv.m4: Likewise.
51274         * m4/link-follow.m4: Likewise.
51275         * m4/localcharset.m4: Likewise.
51276         * m4/locale-fr.m4: Likewise.
51277         * m4/locale-ja.m4: Likewise.
51278         * m4/locale-tr.m4: Likewise.
51279         * m4/locale-zh.m4: Likewise.
51280         * m4/lock.m4: Likewise.
51281         * m4/longlong.m4: Likewise.
51282         * m4/ls-mntd-fs.m4: Likewise.
51283         * m4/lstat.m4: Likewise.
51284         * m4/malloc.m4: Likewise.
51285         * m4/mathl.m4: Likewise.
51286         * m4/mbrtowc.m4: Likewise.
51287         * m4/mbstate_t.m4: Likewise.
51288         * m4/mbswidth.m4: Likewise.
51289         * m4/memchr.m4: Likewise.
51290         * m4/memcmp.m4: Likewise.
51291         * m4/memcpy.m4: Likewise.
51292         * m4/memmem.m4: Likewise.
51293         * m4/memmove.m4: Likewise.
51294         * m4/mempcpy.m4: Likewise.
51295         * m4/memrchr.m4: Likewise.
51296         * m4/memset.m4: Likewise.
51297         * m4/minmax.m4: Likewise.
51298         * m4/mkdir-slash.m4: Likewise.
51299         * m4/mkdtemp.m4: Likewise.
51300         * m4/mktime.m4: Likewise.
51301         * m4/mmap-anon.m4: Likewise.
51302         * m4/mountlist.m4: Likewise.
51303         * m4/nanosleep.m4: Likewise.
51304         * m4/nls.m4: Likewise.
51305         * m4/nocrash.m4: Likewise.
51306         * m4/open.m4: Likewise.
51307         * m4/openat.m4: Likewise.
51308         * m4/openmp.m4: Likewise.
51309         * m4/pathmax.m4: Likewise.
51310         * m4/perl.m4: Likewise.
51311         * m4/physmem.m4: Likewise.
51312         * m4/pipe.m4: Likewise.
51313         * m4/po.m4: Likewise.
51314         * m4/poll.m4: Likewise.
51315         * m4/posixtm.m4: Likewise.
51316         * m4/posixver.m4: Likewise.
51317         * m4/printf-frexp.m4: Likewise.
51318         * m4/printf-frexpl.m4: Likewise.
51319         * m4/printf-posix.m4: Likewise.
51320         * m4/printf-posix-rpl.m4: Likewise.
51321         * m4/printf.m4: Likewise.
51322         * m4/progtest.m4: Likewise.
51323         * m4/putenv.m4: Likewise.
51324         * m4/readline.m4: Likewise.
51325         * m4/readlink.m4: Likewise.
51326         * m4/readutmp.m4: Likewise.
51327         * m4/realloc.m4: Likewise.
51328         * m4/regex.m4: Likewise.
51329         * m4/relocatable.m4: Likewise.
51330         * m4/relocatable-lib.m4: Likewise.
51331         * m4/rename-dest-slash.m4: Likewise.
51332         * m4/rename.m4: Likewise.
51333         * m4/rmdir-errno.m4: Likewise.
51334         * m4/rmdir.m4: Likewise.
51335         * m4/roundf.m4: Likewise.
51336         * m4/roundl.m4: Likewise.
51337         * m4/rpmatch.m4: Likewise.
51338         * m4/save-cwd.m4: Likewise.
51339         * m4/selinux-selinux-h.m4: Likewise.
51340         * m4/setenv.m4: Likewise.
51341         * m4/settime.m4: Likewise.
51342         * m4/sig2str.m4: Likewise.
51343         * m4/sig_atomic_t.m4: Likewise.
51344         * m4/signalblocking.m4: Likewise.
51345         * m4/signbit.m4: Likewise.
51346         * m4/sigpipe.m4: Likewise.
51347         * m4/sockets.m4: Likewise.
51348         * m4/sockpfaf.m4: Likewise.
51349         * m4/st_dm_mode.m4: Likewise.
51350         * m4/stat-time.m4: Likewise.
51351         * m4/stdbool.m4: Likewise.
51352         * m4/stdint.m4: Likewise.
51353         * m4/stdint_h.m4: Likewise.
51354         * m4/stpcpy.m4: Likewise.
51355         * m4/stpncpy.m4: Likewise.
51356         * m4/strcase.m4: Likewise.
51357         * m4/strchrnul.m4: Likewise.
51358         * m4/strcspn.m4: Likewise.
51359         * m4/strdup.m4: Likewise.
51360         * m4/strftime.m4: Likewise.
51361         * m4/strndup.m4: Likewise.
51362         * m4/strnlen.m4: Likewise.
51363         * m4/strpbrk.m4: Likewise.
51364         * m4/strptime.m4: Likewise.
51365         * m4/strsep.m4: Likewise.
51366         * m4/strtod.m4: Likewise.
51367         * m4/strtoimax.m4: Likewise.
51368         * m4/strtok_r.m4: Likewise.
51369         * m4/strtol.m4: Likewise.
51370         * m4/strtoll.m4: Likewise.
51371         * m4/strtoul.m4: Likewise.
51372         * m4/strtoull.m4: Likewise.
51373         * m4/strtoumax.m4: Likewise.
51374         * m4/strverscmp.m4: Likewise.
51375         * m4/threadlib.m4: Likewise.
51376         * m4/timegm.m4: Likewise.
51377         * m4/tm_gmtoff.m4: Likewise.
51378         * m4/tmpdir.m4: Likewise.
51379         * m4/tmpfile.m4: Likewise.
51380         * m4/tzset.m4: Likewise.
51381         * m4/uintmax_t.m4: Likewise.
51382         * m4/unlinkdir.m4: Likewise.
51383         * m4/unlocked-io.m4: Likewise.
51384         * m4/uptime.m4: Likewise.
51385         * m4/userspec.m4: Likewise.
51386         * m4/utimbuf.m4: Likewise.
51387         * m4/utime.m4: Likewise.
51388         * m4/utimes-null.m4: Likewise.
51389         * m4/utimes.m4: Likewise.
51390         * m4/vararrays.m4: Likewise.
51391         * m4/vasnprintf.m4: Likewise.
51392         * m4/vfprintf-posix.m4: Likewise.
51393         * m4/vprintf-posix.m4: Likewise.
51394         * m4/wait-process.m4: Likewise.
51395         * m4/wchar_t.m4: Likewise.
51396         * m4/wint_t.m4: Likewise.
51397         * m4/write-any-file.m4: Likewise.
51398         * m4/yield.m4: Likewise.
51399
51400 2009-01-13  Bruno Haible  <bruno@clisp.org>
51401
51402         Avoid test-copy-file.sh failures when ACL support insufficient.
51403         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51404         TESTS_ENVIRONMENT.
51405         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51406         Reported by Jim Meyering.
51407
51408 2009-01-13  Bruno Haible  <bruno@clisp.org>
51409
51410         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51411         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51412         * modules/unistdio/u8-printf-parse (Files): Likewise.
51413         * modules/unistdio/u32-printf-parse (Files): Likewise.
51414         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51415
51416 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51417
51418         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51419         and m4/inttypes_h.m4 too.
51420
51421 2009-01-12  Eric Blake  <ebb9@byu.net>
51422
51423         tests: IRIX 6.2 cc can't compile -0.0 into .data
51424         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51425         rather than at compile-time.
51426         * tests/test-floorl.c (minus_zero): Likewise.
51427         * tests/test-frexpl.c (minus_zero): Likewise.
51428         * tests/test-isnan.c (minus_zerol): Likewise.
51429         * tests/test-isnanl.h (minus_zero): Likewise.
51430         * tests/test-ldexpl.c (minus_zero): Likewise.
51431         * tests/test-roundl.c (minus_zero): Likewise.
51432         * tests/test-signbit.c (minus_zerol): Likewise.
51433         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51434         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51435         * tests/test-truncl.c (minus_zero): Likewise.
51436         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51437         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51438         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51439
51440 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51441
51442         regex: fix glibc bug 9697
51443         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51444         handling.
51445
51446 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51447
51448         regex: fix glibc bug 697
51449         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51450         being NULL also if there are no backreferences.
51451
51452 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51453
51454         regex: merge glibc changes
51455         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51456         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51457         re_string_skip_chars, re_string_reconstruct): Likewise.
51458         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51459
51460 2009-01-07  Jim Meyering  <meyering@redhat.com>
51461
51462         poll: filter through cppi
51463         * lib/poll.c: Indent cpp directives to reflect nesting.
51464
51465 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51466
51467         poll: don't return uninitialized
51468         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51469
51470 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51471
51472         avoid compile failure on AIX 6.1
51473         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51474         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51475
51476 2009-01-04  Jim Meyering  <meyering@redhat.com>
51477
51478         remove duplicate inclusion of <stdio.h>
51479         * tests/test-fprintf-posix.c: Likewise.
51480         * tests/test-printf-posix.c: Likewise.
51481         * tests/test-snprintf-posix.c: Likewise.
51482         * tests/test-sprintf-posix.c: Likewise.
51483         * tests/test-vasprintf-posix.c: Likewise.
51484         * tests/test-vfprintf-posix.c: Likewise.
51485         * tests/test-vprintf-posix.c: Likewise.
51486         * tests/test-vsnprintf-posix.c: Likewise.
51487         * tests/test-vsprintf-posix.c: Likewise.
51488
51489 2009-01-03  Jim Meyering  <meyering@redhat.com>
51490
51491         gnulib-tool: fix sed-based filtering
51492         * gnulib-tool (func_filter_filelist): Remove extra backslash
51493         in sed_fff_filter definition.
51494
51495 2009-01-02  Jim Meyering  <meyering@redhat.com>
51496
51497         strftime: avoid compilation failure on Solaris 2.6
51498         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51499         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51500         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51501         be available.  Reported by Tom G. Christensen.  Details in
51502         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51503
51504 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51505             Bruno Haible  <bruno@clisp.org>
51506
51507         Speed up gnulib-tool by doing more string processing through shell
51508         built-ins.
51509         * gnulib-tool (fast_func_append): New variable.
51510         (func_remove_prefix, func_remove_suffix): New functions.
51511         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51512         (func_filter_filelist): New function.
51513         (func_get_dependencies): Use func_remove_suffix instead of sed.
51514         (func_get_automake_snippet): Use func_filter_filelist instead of a
51515         subshell and sed invocation.
51516
51517 2009-01-01  Bruno Haible  <bruno@clisp.org>
51518
51519         Fix a security bug.
51520         * gnulib-tool (func_import, import, update): Don't allow the characters
51521         '"', '$', '`', '\' in macro arguments that become part of commands that
51522         are evaluated.
51523
51524 2009-01-01  Bruno Haible  <bruno@clisp.org>
51525
51526         * gnulib-tool (func_reset_sigpipe): Add more comments.
51527
51528 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51529
51530         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51531         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51532         already know the answer.
51533
51534 2009-01-01  Jim Meyering  <meyering@redhat.com>
51535
51536         * lib/version-etc.c (version_etc_va): Update copyright year.
51537
51538 2008-12-30  Bruno Haible  <bruno@clisp.org>
51539
51540         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51541         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51542         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51543
51544 2008-12-29  Eric Blake  <ebb9@byu.net>
51545
51546         multiarch: avoid autoconf AC_REQUIRE bug
51547         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51548         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51549         2.63 and older.
51550         Reported by Bruno Haible, and analyzed in
51551         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51552
51553 2008-12-29  Bruno Haible  <bruno@clisp.org>
51554
51555         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51556         files in subdirectories correctly.
51557         Reported by Ralf Wildenhues.
51558
51559 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51560
51561         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51562         rather than 'join FILE -', for Solaris join.
51563
51564 2008-12-29  Bruno Haible  <bruno@clisp.org>
51565
51566         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51567         quoting.
51568         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51569         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51570         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51571         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51572         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51573         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51574         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51575         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51576         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51577         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51578         * m4/nls.m4 (AM_NLS): Likewise.
51579         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51580         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51581         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51582         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51583         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51584         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51585         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51586         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51587         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51588         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51589         * m4/xsize.m4 (gl_XSIZE): Likewise.
51590         Suggested by Jim Meyering.
51591
51592 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51593
51594         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51595         * lib/parse-duration.c: use a switch instead of cascading if's.
51596
51597 2008-12-29  Eric Blake  <ebb9@byu.net>
51598
51599         wchar.h: supply WEOF on Irix 5.3
51600         * lib/wchar.in.h (wint_t): Also supply WEOF.
51601         * lib/wctype.in.h (wint_t): Likewise.
51602         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51603         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51604         Reported by Tom G. Christensen.
51605
51606 2008-12-26  Bruno Haible  <bruno@clisp.org>
51607
51608         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51609         i486, i586, i686.
51610
51611 2008-12-26  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51614
51615 2008-12-26  Bruno Haible  <bruno@clisp.org>
51616
51617         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51618         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51619         not __STDC_CONSTANT_MACROS.
51620         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51621
51622 2008-12-25  Bruno Haible  <bruno@clisp.org>
51623
51624         Add support for universal builds to vasnprintf.
51625         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51626         universal builds, guess no.
51627         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51628         * modules/vasprintf-posix (Depends-on): Likewise.
51629         * modules/fprintf-posix (Depends-on): Likewise.
51630         * modules/vfprintf-posix (Depends-on): Likewise.
51631         * modules/snprintf-posix (Depends-on): Likewise.
51632         * modules/vsnprintf-posix (Depends-on): Likewise.
51633         * modules/sprintf-posix (Depends-on): Likewise.
51634         * modules/vsprintf-posix (Depends-on): Likewise.
51635         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51636         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51637         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51638         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51639         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51640         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51641         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51642
51643         Add support for universal builds to <inttypes.h>.
51644         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51645         _SCNu64_PREFIX): In Apple
51646         universal builds, define directly, using _LP64.
51647         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51648         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51649         * modules/inttypes (Depends-on): Add multiarch.
51650         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51651
51652         Add support for universal builds to <stdint.h>.
51653         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51654         universal builds, define directly, using _LP64.
51655         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51656         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51657         and size_t.
51658         * modules/stdint (Depends-on): Add multiarch.
51659         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51660
51661         New module 'multiarch'.
51662         * modules/multiarch: New file.
51663         * m4/multiarch.m4: New file.
51664
51665 2008-12-25  Bruno Haible  <bruno@clisp.org>
51666
51667         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51668
51669 2008-12-25  Bruno Haible  <bruno@clisp.org>
51670
51671         * modules/btowc (License): Relicense under LGPLv2+.
51672         * modules/mbsinit (License): Likewise.
51673         * modules/mbrtowc (License): Likewise.
51674         * modules/wcrtomb (License): Likewise.
51675         * modules/streq (License): Likewise.
51676         Reported by David Lutterkort <lutter@redhat.com>.
51677
51678 2008-12-23  Bruno Haible  <bruno@clisp.org>
51679
51680         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51681
51682 2008-12-23  Bruno Haible  <bruno@clisp.org>
51683
51684         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51685         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51686         GETADDRINFO_LIB, not in LIBS.
51687         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51688         * modules/canon-host (Link): Likewise.
51689         * NEWS: Mention the change.
51690         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51691         GETADDRINFO_LIB.
51692
51693 2008-12-22  Bruno Haible  <bruno@clisp.org>
51694
51695         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51696         * doc/posix-functions/iswalpha_l.texi: Likewise.
51697         * doc/posix-functions/iswblank_l.texi: Likewise.
51698         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51699         * doc/posix-functions/iswctype_l.texi: Likewise.
51700         * doc/posix-functions/iswdigit_l.texi: Likewise.
51701         * doc/posix-functions/iswgraph_l.texi: Likewise.
51702         * doc/posix-functions/iswlower_l.texi: Likewise.
51703         * doc/posix-functions/iswprint_l.texi: Likewise.
51704         * doc/posix-functions/iswpunct_l.texi: Likewise.
51705         * doc/posix-functions/iswspace_l.texi: Likewise.
51706         * doc/posix-functions/iswupper_l.texi: Likewise.
51707         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51708         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51709         * doc/posix-functions/open_wmemstream.texi: Likewise.
51710         * doc/posix-functions/swscanf.texi: Likewise.
51711         * doc/posix-functions/towctrans_l.texi: Likewise.
51712         * doc/posix-functions/towlower.texi: Likewise.
51713         * doc/posix-functions/towlower_l.texi: Likewise.
51714         * doc/posix-functions/towupper.texi: Likewise.
51715         * doc/posix-functions/towupper_l.texi: Likewise.
51716         * doc/posix-functions/vfwprintf.texi: Likewise.
51717         * doc/posix-functions/vfwscanf.texi: Likewise.
51718         * doc/posix-functions/vswscanf.texi: Likewise.
51719         * doc/posix-functions/vwprintf.texi: Likewise.
51720         * doc/posix-functions/vwscanf.texi: Likewise.
51721         * doc/posix-functions/wcpcpy.texi: Likewise.
51722         * doc/posix-functions/wcpncpy.texi: Likewise.
51723         * doc/posix-functions/wcscasecmp.texi: Likewise.
51724         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51725         * doc/posix-functions/wcscoll_l.texi: Likewise.
51726         * doc/posix-functions/wcsdup.texi: Likewise.
51727         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51728         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51729         * doc/posix-functions/wcsnlen.texi: Likewise.
51730         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51731         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51732         * doc/posix-functions/wctrans_l.texi: Likewise.
51733         * doc/posix-functions/wctype_l.texi: Likewise.
51734         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51735         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51736         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51737         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51738         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51739         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51740         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51741         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51742         * doc/glibc-functions/wcschrnul.texi: Likewise.
51743         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51744         * doc/glibc-functions/wcstod_l.texi: Likewise.
51745         * doc/glibc-functions/wcstof_l.texi: Likewise.
51746         * doc/glibc-functions/wcstol_l.texi: Likewise.
51747         * doc/glibc-functions/wcstold_l.texi: Likewise.
51748         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51749         * doc/glibc-functions/wcstoq.texi: Likewise.
51750         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51751         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51752         * doc/glibc-functions/wcstouq.texi: Likewise.
51753         * doc/glibc-functions/wmempcpy.texi: Likewise.
51754
51755 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51756             Eric Blake  <ebb9@byu.net>
51757             Paolo Bonzini  <bonzini@gnu.org>
51758             Bruno Haible  <bruno@clisp.org>
51759
51760         Make c-stack work on Haiku.
51761         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51762         (c_stack_action): Use SA_ONSTACK flag.
51763
51764 2008-12-22  Bruno Haible  <bruno@clisp.org>
51765
51766         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51767
51768 2008-12-22  Bruno Haible  <bruno@clisp.org>
51769
51770         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51771         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51772         being overridden.
51773         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51774         New macros.
51775         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51776         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51777         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51778         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51779
51780 2008-12-22  Bruno Haible  <bruno@clisp.org>
51781
51782         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51783         from test code.
51784
51785 2008-12-22  Eric Blake  <ebb9@byu.net>
51786
51787         Avoid gcc warnings on cygwin.
51788         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51789         Avoid unused variable.
51790         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51791         Likewise.
51792
51793 2008-12-22  Bruno Haible  <bruno@clisp.org>
51794
51795         Remove HAVE_MBRTOWC conditionals.
51796         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51797         (mbscasecmp): Assume mbrtowc function.
51798         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51799         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51800         * lib/mbschr.c: Include mbuiter.h unconditionally.
51801         (mbschr): Assume mbrtowc function.
51802         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51803         (mbscspn): Assume mbrtowc function.
51804         * lib/mbslen.c: Include mbuiter.h unconditionally.
51805         (mbslen): Assume mbrtowc function.
51806         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51807         (mbsncasecmp): Assume mbrtowc function.
51808         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51809         (mbsnlen): Assume mbrtowc function.
51810         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51811         (mbspbrk): Assume mbrtowc function.
51812         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51813         (mbspcasecmp): Assume mbrtowc function.
51814         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51815         (mbsrchr): Assume mbrtowc function.
51816         * lib/mbssep.c: Include mbuiter.h unconditionally.
51817         (mbssep): Assume mbrtowc function.
51818         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51819         (mbsspn): Assume mbrtowc function.
51820         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51821         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51822         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51823         (mbstok_r): Assume mbrtowc function.
51824         * lib/propername.c: Include mbuiter.h unconditionally.
51825         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51826         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51827         (trim2): Assume mbrtowc function.
51828         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51829         (mbsnwidth): Assume mbrtowc function.
51830         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51831         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51832         fallback definitions.
51833         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51834
51835 2008-12-22  Bruno Haible  <bruno@clisp.org>
51836
51837         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51838
51839 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51840
51841         * modules/regex: Request emulations for the mb*/wc* functions we need.
51842         * m4/regex.m4: Don't look for those functions here.
51843         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51844
51845 2008-12-22  Bruno Haible  <bruno@clisp.org>
51846
51847         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51848
51849 2008-12-21  Bruno Haible  <bruno@clisp.org>
51850
51851         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51852         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51853         (Include): Remove conditionalization.
51854         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51855         (Include): Remove conditionalization.
51856         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51857         (Include): Remove conditionalization.
51858         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51859         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51860         * NEWS: Mention the change.
51861         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51862         via Sergey Poznyakoff <gray@gnu.org.ua>.
51863
51864 2008-12-21  Bruno Haible  <bruno@clisp.org>
51865
51866         * MODULES.html.sh (Extended multibyte and wide character utilities
51867         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51868         wcrtomb, wcsrtombs.
51869         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51870         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51871         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51872         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51873
51874 2008-12-21  Bruno Haible  <bruno@clisp.org>
51875
51876         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51877
51878 2008-12-21  Bruno Haible  <bruno@clisp.org>
51879
51880         * modules/wcsnrtombs-tests: New file.
51881         * tests/test-wcsnrtombs1.sh: New file.
51882         * tests/test-wcsnrtombs2.sh: New file.
51883         * tests/test-wcsnrtombs3.sh: New file.
51884         * tests/test-wcsnrtombs4.sh: New file.
51885         * tests/test-wcsnrtombs.c: New file.
51886
51887         New module 'wcsnrtombs'.
51888         * lib/wchar.in.h (wcsnrtombs): New declaration.
51889         * lib/wcsnrtombs.c: New file.
51890         * lib/wcsrtombs-state.c: New file.
51891         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51892         (internal_state): Remove variable.
51893         * m4/wcsnrtombs.m4: New file.
51894         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51895         compilation units.
51896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51897         HAVE_WCSNRTOMBS.
51898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51899         HAVE_WCSNRTOMBS.
51900         * modules/wcsnrtombs: New file.
51901         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51902         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51903
51904 2008-12-21  Bruno Haible  <bruno@clisp.org>
51905
51906         * modules/wcsrtombs-tests: New file.
51907         * tests/test-wcsrtombs1.sh: New file.
51908         * tests/test-wcsrtombs2.sh: New file.
51909         * tests/test-wcsrtombs3.sh: New file.
51910         * tests/test-wcsrtombs4.sh: New file.
51911         * tests/test-wcsrtombs.c: New file.
51912
51913         New module 'wcsrtombs'.
51914         * lib/wchar.in.h (wcsrtombs): New declaration.
51915         * lib/wcsrtombs.c: New file.
51916         * m4/wcsrtombs.m4: New file.
51917         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51918         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51919         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51920         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51921         * modules/wcsrtombs: New file.
51922         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51923         bugs.
51924
51925 2008-12-21  Bruno Haible  <bruno@clisp.org>
51926
51927         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51928         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51929         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51930         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51931         if not correct.
51932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51933         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51934         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51935         m4/locale-zh.m4, m4/codeset.m4.
51936         * doc/posix-functions/wcrtomb.texi: Document the bug.
51937
51938 2008-12-21  Bruno Haible  <bruno@clisp.org>
51939
51940         Work around a btowc() bug on IRIX 6.5.
51941         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51942         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51943         REPLACE_WTOBC if not.
51944         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51945         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51946         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51947
51948 2008-12-21  Bruno Haible  <bruno@clisp.org>
51949
51950         * modules/wcrtomb-tests: New file.
51951         * tests/test-wcrtomb.sh: New file.
51952         * tests/test-wcrtomb.c: New file.
51953
51954         New module 'wcrtomb'.
51955         * lib/wchar.in.h (wcrtomb): New declaration.
51956         * lib/wcrtomb.c: New file.
51957         * m4/wcrtomb.m4: New file.
51958         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51959         HAVE_WCRTOMB.
51960         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51961         HAVE_WCRTOMB.
51962         * modules/wcrtomb: New file.
51963         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51964
51965 2008-12-21  Bruno Haible  <bruno@clisp.org>
51966
51967         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51968         * modules/mbsrtowcs (Files): Likewise.
51969         * modules/wctob (Files): Likewise.
51970         * modules/c-strcase-tests (Files): Likewise.
51971         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51972         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51973         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51974         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51975         * modules/vasnprintf-posix-tests (Files): Likewise.
51976
51977 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51978
51979         gitlog-to-changelog: pass all command-line arguments to git-log
51980         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51981         it is sometimes convenient to filter the commits in various ways.
51982         gitlog-to-changelog only allows --since to specify a start date,
51983         but git-log itself supports many other filtering mechanisms.
51984         At the moment, I want to filter by branch name.  Rather than
51985         adding a --branch option to gitlog-to-changelog, it seems more
51986         flexible to simply pass all options directly to git-log and let
51987         git do the work.  Notice that this effectively makes --since a
51988         redundant option for gitlog-to-changelog, but removing it would
51989         require current usage to change since calls would then require
51990         an additional '--'.
51991
51992 2008-12-21  Bruno Haible  <bruno@clisp.org>
51993
51994         * modules/mbsnrtowcs-tests: New file.
51995         * tests/test-mbsnrtowcs1.sh: New file.
51996         * tests/test-mbsnrtowcs2.sh: New file.
51997         * tests/test-mbsnrtowcs3.sh: New file.
51998         * tests/test-mbsnrtowcs4.sh: New file.
51999         * tests/test-mbsnrtowcs.c: New file.
52000
52001         New module 'mbsnrtowcs'.
52002         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52003         * lib/mbsnrtowcs.c: New file.
52004         * lib/mbsrtowcs-state.c: New file.
52005         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52006         (internal_state): Remove variable.
52007         * m4/mbsnrtowcs.m4: New file.
52008         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52009         compilation units.
52010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52011         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52012         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52013         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52014         * modules/mbsnrtowcs: New file.
52015         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52016         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52017         portability problem.
52018
52019 2008-12-21  Bruno Haible  <bruno@clisp.org>
52020
52021         Work around mbsrtowcs bug.
52022         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52023         (gl_FUNC_MBSRTOWCS): Invoke it.
52024         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52025         m4/locale-zh.m4.
52026         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52027
52028 2008-12-21  Bruno Haible  <bruno@clisp.org>
52029
52030         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52031
52032 2008-12-21  Bruno Haible  <bruno@clisp.org>
52033
52034         Update doc for AIX.
52035         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52036         16-bit wchar_t type.
52037         * doc/posix-functions/btowc.texi: Likewise.
52038         * doc/posix-functions/fgetwc.texi: Likewise.
52039         * doc/posix-functions/fgetws.texi: Likewise.
52040         * doc/posix-functions/fputwc.texi: Likewise.
52041         * doc/posix-functions/fputws.texi: Likewise.
52042         * doc/posix-functions/fwide.texi: Likewise.
52043         * doc/posix-functions/fwprintf.texi: Likewise.
52044         * doc/posix-functions/fwscanf.texi: Likewise.
52045         * doc/posix-functions/getwchar.texi: Likewise.
52046         * doc/posix-functions/getwc.texi: Likewise.
52047         * doc/posix-functions/iswalnum.texi: Likewise.
52048         * doc/posix-functions/iswalpha.texi: Likewise.
52049         * doc/posix-functions/iswblank.texi: Likewise.
52050         * doc/posix-functions/iswcntrl.texi: Likewise.
52051         * doc/posix-functions/iswctype.texi: Likewise.
52052         * doc/posix-functions/iswdigit.texi: Likewise.
52053         * doc/posix-functions/iswgraph.texi: Likewise.
52054         * doc/posix-functions/iswlower.texi: Likewise.
52055         * doc/posix-functions/iswprint.texi: Likewise.
52056         * doc/posix-functions/iswpunct.texi: Likewise.
52057         * doc/posix-functions/iswspace.texi: Likewise.
52058         * doc/posix-functions/iswupper.texi: Likewise.
52059         * doc/posix-functions/iswxdigit.texi: Likewise.
52060         * doc/posix-functions/mbrtowc.texi: Likewise.
52061         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52062         * doc/posix-functions/mbstowcs.texi: Likewise.
52063         * doc/posix-functions/mbtowc.texi: Likewise.
52064         * doc/posix-functions/putwchar.texi: Likewise.
52065         * doc/posix-functions/putwc.texi: Likewise.
52066         * doc/posix-functions/swprintf.texi: Likewise.
52067         * doc/posix-functions/tolower.texi: Likewise.
52068         * doc/posix-functions/toupper.texi: Likewise.
52069         * doc/posix-functions/towctrans.texi: Likewise.
52070         * doc/posix-functions/ungetwc.texi: Likewise.
52071         * doc/posix-functions/vswprintf.texi: Likewise.
52072         * doc/posix-functions/wcrtomb.texi: Likewise.
52073         * doc/posix-functions/wcscat.texi: Likewise.
52074         * doc/posix-functions/wcschr.texi: Likewise.
52075         * doc/posix-functions/wcscmp.texi: Likewise.
52076         * doc/posix-functions/wcscoll.texi: Likewise.
52077         * doc/posix-functions/wcscpy.texi: Likewise.
52078         * doc/posix-functions/wcscspn.texi: Likewise.
52079         * doc/posix-functions/wcsftime.texi: Likewise.
52080         * doc/posix-functions/wcslen.texi: Likewise.
52081         * doc/posix-functions/wcsncat.texi: Likewise.
52082         * doc/posix-functions/wcsncmp.texi: Likewise.
52083         * doc/posix-functions/wcsncpy.texi: Likewise.
52084         * doc/posix-functions/wcspbrk.texi: Likewise.
52085         * doc/posix-functions/wcsrchr.texi: Likewise.
52086         * doc/posix-functions/wcsrtombs.texi: Likewise.
52087         * doc/posix-functions/wcsspn.texi: Likewise.
52088         * doc/posix-functions/wcsstr.texi: Likewise.
52089         * doc/posix-functions/wcstod.texi: Likewise.
52090         * doc/posix-functions/wcstof.texi: Likewise.
52091         * doc/posix-functions/wcstoimax.texi: Likewise.
52092         * doc/posix-functions/wcstok.texi: Likewise.
52093         * doc/posix-functions/wcstold.texi: Likewise.
52094         * doc/posix-functions/wcstoll.texi: Likewise.
52095         * doc/posix-functions/wcstol.texi: Likewise.
52096         * doc/posix-functions/wcstombs.texi: Likewise.
52097         * doc/posix-functions/wcstoull.texi: Likewise.
52098         * doc/posix-functions/wcstoul.texi: Likewise.
52099         * doc/posix-functions/wcstoumax.texi: Likewise.
52100         * doc/posix-functions/wcswidth.texi: Likewise.
52101         * doc/posix-functions/wcsxfrm.texi: Likewise.
52102         * doc/posix-functions/wctob.texi: Likewise.
52103         * doc/posix-functions/wctomb.texi: Likewise.
52104         * doc/posix-functions/wctrans.texi: Likewise.
52105         * doc/posix-functions/wctype.texi: Likewise.
52106         * doc/posix-functions/wcwidth.texi: Likewise.
52107         * doc/posix-functions/wmemchr.texi: Likewise.
52108         * doc/posix-functions/wmemcmp.texi: Likewise.
52109         * doc/posix-functions/wmemcpy.texi: Likewise.
52110         * doc/posix-functions/wmemmove.texi: Likewise.
52111         * doc/posix-functions/wmemset.texi: Likewise.
52112         * doc/posix-functions/wprintf.texi: Likewise.
52113         * doc/posix-functions/wscanf.texi: Likewise.
52114
52115 2008-12-21  Bruno Haible  <bruno@clisp.org>
52116
52117         Update doc for HP-UX 11.11.
52118         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52119         in HP-UX version 11.00, not in all versions of HP-UX 11.
52120         * doc/posix-functions/fwide.texi: Likewise.
52121         * doc/posix-functions/fwprintf.texi: Likewise.
52122         * doc/posix-functions/fwscanf.texi: Likewise.
52123         * doc/posix-functions/inet_ntop.texi: Likewise.
52124         * doc/posix-functions/inet_pton.texi: Likewise.
52125         * doc/posix-functions/mbrlen.texi: Likewise.
52126         * doc/posix-functions/mbrtowc.texi: Likewise.
52127         * doc/posix-functions/mbsinit.texi: Likewise.
52128         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52129         * doc/posix-functions/swprintf.texi: Likewise.
52130         * doc/posix-functions/swscanf.texi: Likewise.
52131         * doc/posix-functions/towctrans.texi: Likewise.
52132         * doc/posix-functions/vfwprintf.texi: Likewise.
52133         * doc/posix-functions/vswprintf.texi: Likewise.
52134         * doc/posix-functions/vwprintf.texi: Likewise.
52135         * doc/posix-functions/wcrtomb.texi: Likewise.
52136         * doc/posix-functions/wcsrtombs.texi: Likewise.
52137         * doc/posix-functions/wcsstr.texi: Likewise.
52138         * doc/posix-functions/wctob.texi: Likewise.
52139         * doc/posix-functions/wctrans.texi: Likewise.
52140         * doc/posix-functions/wmemchr.texi: Likewise.
52141         * doc/posix-functions/wmemcmp.texi: Likewise.
52142         * doc/posix-functions/wmemcpy.texi: Likewise.
52143         * doc/posix-functions/wmemmove.texi: Likewise.
52144         * doc/posix-functions/wmemset.texi: Likewise.
52145         * doc/posix-functions/wprintf.texi: Likewise.
52146         * doc/posix-functions/wscanf.texi: Likewise.
52147
52148 2008-12-21  Bruno Haible  <bruno@clisp.org>
52149
52150         Work around a portability problem.
52151         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52152         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52153
52154 2008-12-20  Bruno Haible  <bruno@clisp.org>
52155
52156         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52157         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52158         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52159         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52160         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52161
52162         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52163         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52164         set.
52165         (GNULIB_defined_mbstate_t): New macro.
52166         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52167         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52168         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52169         reuses the system's mbrtowc function but works around the bugs.
52170         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52171         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52172         macros.
52173         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52174         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52175         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52176         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52177         REPLACE_MBSINIT if mbsinit needs to be overridden.
52178         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52179         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52180         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52181         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52182         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52183         m4/locale-zh.m4.
52184         (Depends): Add mbsinit.
52185         * modules/mbsinit (Depends): Add mbrtowc.
52186         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52187
52188 2008-12-20  Bruno Haible  <bruno@clisp.org>
52189
52190         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52191         so that there are no conversion errors on AIX.
52192         * tests/test-mbsrtowcs.c (main): LIkewise.
52193
52194 2008-12-20  Bruno Haible  <bruno@clisp.org>
52195
52196         Work around wctob bug on Solaris <= 9.
52197         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52198         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52200         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52201         * modules/wctob (Files): Add m4/locale-fr.m4.
52202         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52203
52204 2008-12-20  Bruno Haible  <bruno@clisp.org>
52205
52206         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52207         /dev/null.
52208         * tests/test-select-in.sh: Likewise.
52209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52210
52211 2008-12-20  Bruno Haible  <bruno@clisp.org>
52212
52213         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52214         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52215         Cygwin 1.5.x.
52216
52217 2008-12-20  Bruno Haible  <bruno@clisp.org>
52218
52219         Ensure mbstate_t is defined on HP-UX 11.11.
52220         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52221         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52222         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52223         AC_USE_SYSTEM_EXTENSIONS.
52224         * modules/fnmatch (Depends-on): Add extensions.
52225         * modules/mbrlen (Depends-on): Likewise.
52226         * modules/mbrtowc (Depends-on): Likewise.
52227         * modules/mbsinit (Depends-on): Likewise.
52228         * modules/mbsrtowcs (Depends-on): Likewise.
52229         * modules/mbswidth (Depends-on): Likewise.
52230         * modules/quotearg (Depends-on): Likewise.
52231         * modules/strftime (Depends-on): Likewise.
52232
52233 2008-12-20  Bruno Haible  <bruno@clisp.org>
52234
52235         Ensure wctob is declared on IRIX 6.5.
52236         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52237         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52238         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52240         of HAVE_WCTOB.
52241         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52242         HAVE_WCTOB.
52243         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52244
52245 2008-12-19  Bruno Haible  <bruno@clisp.org>
52246
52247         * modules/mbsrtowcs-tests: New file.
52248         * tests/test-mbsrtowcs1.sh: New file.
52249         * tests/test-mbsrtowcs2.sh: New file.
52250         * tests/test-mbsrtowcs3.sh: New file.
52251         * tests/test-mbsrtowcs4.sh: New file.
52252         * tests/test-mbsrtowcs.c: New file.
52253
52254         New module 'mbsrtowcs'.
52255         * lib/wchar.in.h (mbsrtowcs): New declaration.
52256         * lib/mbsrtowcs.c: New file.
52257         * m4/mbsrtowcs.m4: New file.
52258         * modules/mbsrtowcs: New file.
52259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52260         HAVE_MBSRTOWCS.
52261         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52262         HAVE_MBSRTOWCS.
52263         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52264
52265 2008-12-19  Bruno Haible  <bruno@clisp.org>
52266
52267         New module 'mbrlen'.
52268         * lib/wchar.in.h (mbrlen): New declaration.
52269         * lib/mbrlen.c: New file.
52270         * m4/mbrlen.m4: New file.
52271         * modules/mbrlen: New file.
52272         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52273         HAVE_MBRLEN.
52274         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52275         HAVE_MBRLEN.
52276         * doc/posix-functions/mbrlen.texi: Document the new module.
52277
52278 2008-12-19  Bruno Haible  <bruno@clisp.org>
52279
52280         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52281         * modules/mbrtowc (Depends-on): Add verify.
52282         Suggested by Paul Eggert.
52283
52284 2008-12-18  Bruno Haible  <bruno@clisp.org>
52285
52286         * modules/mbsinit-tests: New file.
52287         * tests/test-mbsinit.sh: New file.
52288         * tests/test-mbsinit.c: New file.
52289
52290 2008-12-18  Bruno Haible  <bruno@clisp.org>
52291
52292         * modules/mbrtowc-tests: New file.
52293         * tests/test-mbrtowc1.sh: New file.
52294         * tests/test-mbrtowc2.sh: New file.
52295         * tests/test-mbrtowc3.sh: New file.
52296         * tests/test-mbrtowc4.sh: New file.
52297         * tests/test-mbrtowc.c: New file.
52298
52299         New module 'mbrtowc'.
52300         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52301         mbsinit and mbrtowc.
52302         (mbrtowc): New declaration.
52303         * lib/mbrtowc.c: New file.
52304         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52305         * modules/mbrtowc: New file.
52306         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52307         HAVE_MBRTOWC.
52308         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52309         HAVE_MBRTOWC.
52310         * doc/posix-functions/mbrtowc.texi: Document the new module.
52311
52312 2008-12-18  Bruno Haible  <bruno@clisp.org>
52313
52314         New module 'wctob'.
52315         * lib/wchar.in.h (wctob): New declaration.
52316         * lib/wctob.c: New file.
52317         * m4/wctob.m4: New file.
52318         * modules/wctob: New file.
52319         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52320         HAVE_WCTOB.
52321         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52322         * doc/posix-functions/wctob.texi: Document the new module.
52323
52324 2008-12-18  Bruno Haible  <bruno@clisp.org>
52325
52326         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52327         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52328
52329 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52330
52331         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52332         G. Christensen" <tgc@jupiterrise.com>.
52333
52334         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52335         G. Christensen" <tgc@jupiterrise.com>.
52336
52337         * lib/flock.c: Need to include string.h.  Reported by "Tom
52338         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52339         <ebb9@byu.net>.
52340
52341 2008-12-18  Bruno Haible  <bruno@clisp.org>
52342
52343         * m4/locale-ja.m4: New file, from GNU gettext.
52344
52345 2008-12-17  Bruno Haible  <bruno@clisp.org>
52346
52347         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52348         Suggested by Eric Blake.
52349
52350 2008-12-17  Bruno Haible  <bruno@clisp.org>
52351
52352         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52353
52354 2008-12-17  Bruno Haible  <bruno@clisp.org>
52355
52356         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52357         * modules/mbsinit (Depends-on): Add verify.
52358         Suggested by Paul Eggert.
52359
52360 2008-12-17  Bruno Haible  <bruno@clisp.org>
52361
52362         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52363         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52364         gl_FUNC_MBRTOWC.
52365         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52366         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52367         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52368         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52369         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52370         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52371         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52372         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52373         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52374         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52375         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52376         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52377         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52378         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52379         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52380         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52381         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52382         * modules/trim (configure.ac): Likewise.
52383
52384 2008-12-17  Bruno Haible  <bruno@clisp.org>
52385
52386         * modules/btowc-tests: New file.
52387         * tests/test-btowc1.sh: New file.
52388         * tests/test-btowc2.sh: New file.
52389         * tests/test-btowc.c: New file.
52390
52391         New module 'btowc'.
52392         * lib/wchar.in.h (btowc): New declaration.
52393         * lib/btowc.c: New file.
52394         * m4/btowc.m4: New file.
52395         * modules/btowc: New file.
52396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52397         HAVE_BTOWC.
52398         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52399         * doc/posix-functions/btowc.texi: Document the new module.
52400
52401 2008-12-17  Bruno Haible  <bruno@clisp.org>
52402
52403         New module 'mbsinit'.
52404         * lib/wchar.in.h (mbsinit): New declaration.
52405         * lib/mbsinit.c: New file.
52406         * m4/mbsinit.m4: New file.
52407         * modules/mbsinit: New file.
52408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52409         HAVE_MBSINIT.
52410         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52411         HAVE_MBSINIT.
52412         * doc/posix-functions/mbsinit.texi: Document the new module.
52413
52414 2008-12-16  Bruno Haible  <bruno@clisp.org>
52415
52416         * lib/unistd.in.h: Add comment.
52417         * tests/test-environ.c: Don't include <stdlib.h>.
52418
52419 2008-12-16  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/parse-duration.h (parse_duration): Document return value
52422         convention.
52423         * lib/parse-duration.c: Include specification header first. Add
52424         comments.
52425         (_): Remove macro.
52426         (parse_year_month_day, parse_hour_minute_second): Move side effects
52427         outside of strchr call.
52428         (parse_non_iso8601): Move side effects outside of isspace call.
52429         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52430         call.
52431
52432 2008-12-16  Bruno Haible  <bruno@clisp.org>
52433
52434         * tests/test-parse-duration.sh: Produce no output when the test
52435         succeeds.
52436
52437 2008-12-16  Bruno Haible  <bruno@clisp.org>
52438
52439         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52440         expressions.
52441
52442 2008-12-15  Bruno Haible  <bruno@clisp.org>
52443
52444         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52445         * doc/glibc-functions/flistxattr.texi: Likewise.
52446         * doc/glibc-functions/fopencookie.texi: Likewise.
52447         * doc/glibc-functions/fremovexattr.texi: Likewise.
52448         * doc/glibc-functions/fsetxattr.texi: Likewise.
52449         * doc/glibc-functions/getxattr.texi: Likewise.
52450         * doc/glibc-functions/lgetxattr.texi: Likewise.
52451         * doc/glibc-functions/listxattr.texi: Likewise.
52452         * doc/glibc-functions/llistxattr.texi: Likewise.
52453         * doc/glibc-functions/lremovexattr.texi: Likewise.
52454         * doc/glibc-functions/lsetxattr.texi: Likewise.
52455         * doc/glibc-functions/removexattr.texi: Likewise.
52456         * doc/glibc-functions/setxattr.texi: Likewise.
52457         * doc/posix-functions/open_memstream.texi: Likewise.
52458
52459 2008-12-15  Eric Blake  <ebb9@byu.net>
52460
52461         Update doc for cygwin 1.7.
52462         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52463         functions.
52464         * doc/posix-functions/fchmodat.texi: Likewise.
52465         * doc/posix-functions/fchownat.texi: Likewise.
52466         * doc/posix-functions/fdopendir.texi: Likewise.
52467         * doc/posix-functions/fmemopen.texi: Likewise.
52468         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52469         * doc/posix-functions/fstatat.texi: Likewise.
52470         * doc/posix-functions/futimens.texi: Likewise.
52471         * doc/posix-functions/gai_strerror.texi: Likewise.
52472         * doc/posix-functions/getaddrinfo.texi: Likewise.
52473         * doc/posix-functions/getnameinfo.texi: Likewise.
52474         * doc/posix-functions/if_freenameindex.texi: Likewise.
52475         * doc/posix-functions/if_indextoname.texi: Likewise.
52476         * doc/posix-functions/if_nameindex.texi: Likewise.
52477         * doc/posix-functions/if_nametoindex.texi: Likewise.
52478         * doc/posix-functions/insque.texi: Likewise.
52479         * doc/posix-functions/linkat.texi: Likewise.
52480         * doc/posix-functions/llrint.texi: Likewise.
52481         * doc/posix-functions/llrintf.texi: Likewise.
52482         * doc/posix-functions/llrintl.texi: Likewise.
52483         * doc/posix-functions/lockf.texi: Likewise.
52484         * doc/posix-functions/lrintl.texi: Likewise.
52485         * doc/posix-functions/mkdirat.texi: Likewise.
52486         * doc/posix-functions/mkfifoat.texi: Likewise.
52487         * doc/posix-functions/mknodat.texi: Likewise.
52488         * doc/posix-functions/mq_close.texi: Likewise.
52489         * doc/posix-functions/mq_getattr.texi: Likewise.
52490         * doc/posix-functions/mq_notify.texi: Likewise.
52491         * doc/posix-functions/mq_open.texi: Likewise.
52492         * doc/posix-functions/mq_receive.texi: Likewise.
52493         * doc/posix-functions/mq_send.texi: Likewise.
52494         * doc/posix-functions/mq_setattr.texi: Likewise.
52495         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52496         * doc/posix-functions/mq_timedsend.texi: Likewise.
52497         * doc/posix-functions/mq_unlink.texi: Likewise.
52498         * doc/posix-functions/open_memstream.texi: Likewise.
52499         * doc/posix-functions/openat.texi: Likewise.
52500         * doc/posix-functions/posix_fadvise.texi: Likewise.
52501         * doc/posix-functions/posix_fallocate.texi: Likewise.
52502         * doc/posix-functions/posix_madvise.texi: Likewise.
52503         * doc/posix-functions/posix_memalign.texi: Likewise.
52504         * doc/posix-functions/posix_openpt.texi: Likewise.
52505         * doc/posix-functions/readlinkat.texi: Likewise.
52506         * doc/posix-functions/remque.texi: Likewise.
52507         * doc/posix-functions/renameat.texi: Likewise.
52508         * doc/posix-functions/rintl.texi: Likewise.
52509         * doc/posix-functions/sem_unlink.texi: Likewise.
52510         * doc/posix-functions/shm_open.texi: Likewise.
52511         * doc/posix-functions/shm_unlink.texi: Likewise.
52512         * doc/posix-functions/signgam.texi: Likewise.
52513         * doc/posix-functions/sigset.texi: Likewise.
52514         * doc/posix-functions/stpcpy.texi: Likewise.
52515         * doc/posix-functions/stpncpy.texi: Likewise.
52516         * doc/posix-functions/strerror.texi: Likewise.
52517         * doc/posix-functions/strtod.texi: Likewise.
52518         * doc/posix-functions/symlinkat.texi: Likewise.
52519         * doc/posix-functions/unlinkat.texi: Likewise.
52520         * doc/posix-functions/utimensat.texi: Likewise.
52521         * doc/glibc-functions/bindresvport.texi: Likewise.
52522         * doc/glibc-functions/dn_expand.texi: Likewise.
52523         * doc/glibc-functions/exp10.texi: Likewise.
52524         * doc/glibc-functions/exp10f.texi: Likewise.
52525         * doc/glibc-functions/fgetxattr.texi: Likewise.
52526         * doc/glibc-functions/flistxattr.texi: Likewise.
52527         * doc/glibc-functions/fopencookie.texi: Likewise.
52528         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52529         * doc/glibc-functions/fremovexattr.texi: Likewise.
52530         * doc/glibc-functions/fsetxattr.texi: Likewise.
52531         * doc/glibc-functions/getifaddrs.texi: Likewise.
52532         * doc/glibc-functions/getxattr.texi: Likewise.
52533         * doc/glibc-functions/lgetxattr.texi: Likewise.
52534         * doc/glibc-functions/listxattr.texi: Likewise.
52535         * doc/glibc-functions/llistxattr.texi: Likewise.
52536         * doc/glibc-functions/lremovexattr.texi: Likewise.
52537         * doc/glibc-functions/lsetxattr.texi: Likewise.
52538         * doc/glibc-functions/pow10.texi: Likewise.
52539         * doc/glibc-functions/pow10f.texi: Likewise.
52540         * doc/glibc-functions/rcmd_af.texi: Likewise.
52541         * doc/glibc-functions/removexattr.texi: Likewise.
52542         * doc/glibc-functions/res_init.texi: Likewise.
52543         * doc/glibc-functions/res_mkquery.texi: Likewise.
52544         * doc/glibc-functions/res_query.texi: Likewise.
52545         * doc/glibc-functions/res_querydomain.texi: Likewise.
52546         * doc/glibc-functions/res_send.texi: Likewise.
52547         * doc/glibc-functions/rresvport_af.texi: Likewise.
52548         * doc/glibc-functions/setxattr.texi: Likewise.
52549         * doc/glibc-functions/strcasestr.texi: Likewise.
52550
52551 2008-12-15  Bruno Haible  <bruno@clisp.org>
52552
52553         Fix compilation error on OSF/1 4.0.
52554         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52555         <sys/time.h>, simply delegate to the system header.
52556         Reported by Daniel Richard G. <oss@teragram.com>.
52557
52558 2008-12-15  Bruno Haible  <bruno@clisp.org>
52559
52560         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52561         * doc/posix-functions/fchmodat.texi: Likewise.
52562         * doc/posix-functions/fchownat.texi: Likewise.
52563         * doc/posix-functions/fdopendir.texi: Likewise.
52564         * doc/posix-functions/fstatat.texi: Likewise.
52565         * doc/posix-functions/mkdirat.texi: Likewise.
52566         * doc/posix-functions/unlinkat.texi: Likewise.
52567
52568 2008-12-14  Bruno Haible  <bruno@clisp.org>
52569
52570         Update doc for POSIX:2008.
52571         * doc/posix-functions/faccessat.texi: New file.
52572         * doc/posix-functions/fchmodat.texi: New file.
52573         * doc/posix-functions/fchownat.texi: New file.
52574         * doc/posix-functions/fdopendir.texi: New file.
52575         * doc/posix-functions/fstatat.texi: New file.
52576         * doc/posix-functions/futimens.texi: New file.
52577         * doc/posix-functions/linkat.texi: New file.
52578         * doc/posix-functions/mkdirat.texi: New file.
52579         * doc/posix-functions/mkfifoat.texi: New file.
52580         * doc/posix-functions/mknodat.texi: New file.
52581         * doc/posix-functions/open_wmemstream.texi: New file.
52582         * doc/posix-functions/openat.texi: New file.
52583         * doc/posix-functions/psiginfo.texi: New file.
52584         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52585         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52586         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52587         * doc/posix-functions/readlinkat.texi: New file.
52588         * doc/posix-functions/renameat.texi: New file.
52589         * doc/posix-functions/strerror_l.texi: New file.
52590         * doc/posix-functions/symlinkat.texi: New file.
52591         * doc/posix-functions/unlinkat.texi: New file.
52592         * doc/posix-functions/utimensat.texi: New file.
52593         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52594
52595 2008-12-14  Bruno Haible  <bruno@clisp.org>
52596
52597         Update doc for POSIX:2008.
52598         * doc/posix-functions/alphasort.texi: Renamed from
52599         doc/glibc-functions/alphasort.texi.
52600         * doc/posix-functions/dirfd.texi: Renamed from
52601         doc/glibc-functions/dirfd.texi.
52602         * doc/posix-functions/dprintf.texi: Renamed from
52603         doc/glibc-functions/dprintf.texi.
52604         * doc/posix-functions/duplocale.texi: Renamed from
52605         doc/glibc-functions/duplocale.texi.
52606         * doc/posix-functions/fexecve.texi: Renamed from
52607         doc/glibc-functions/fexecve.texi.
52608         * doc/posix-functions/fmemopen.texi: Renamed from
52609         doc/glibc-functions/fmemopen.texi.
52610         * doc/posix-functions/freelocale.texi: Renamed from
52611         doc/glibc-functions/freelocale.texi.
52612         * doc/posix-functions/getdate_err.texi: Renamed from
52613         doc/glibc-functions/getdate_err.texi.
52614         * doc/posix-functions/isalnum_l.texi: Renamed from
52615         doc/glibc-functions/isalnum_l.texi.
52616         * doc/posix-functions/isalpha_l.texi: Renamed from
52617         doc/glibc-functions/isalpha_l.texi.
52618         * doc/posix-functions/isblank_l.texi: Renamed from
52619         doc/glibc-functions/isblank_l.texi.
52620         * doc/posix-functions/iscntrl_l.texi: Renamed from
52621         doc/glibc-functions/iscntrl_l.texi.
52622         * doc/posix-functions/isdigit_l.texi: Renamed from
52623         doc/glibc-functions/isdigit_l.texi.
52624         * doc/posix-functions/isgraph_l.texi: Renamed from
52625         doc/glibc-functions/isgraph_l.texi.
52626         * doc/posix-functions/islower_l.texi: Renamed from
52627         doc/glibc-functions/islower_l.texi.
52628         * doc/posix-functions/isprint_l.texi: Renamed from
52629         doc/glibc-functions/isprint_l.texi.
52630         * doc/posix-functions/ispunct_l.texi: Renamed from
52631         doc/glibc-functions/ispunct_l.texi.
52632         * doc/posix-functions/isspace_l.texi: Renamed from
52633         doc/glibc-functions/isspace_l.texi.
52634         * doc/posix-functions/isupper_l.texi: Renamed from
52635         doc/glibc-functions/isupper_l.texi.
52636         * doc/posix-functions/iswalnum_l.texi: Renamed from
52637         doc/glibc-functions/iswalnum_l.texi.
52638         * doc/posix-functions/iswalpha_l.texi: Renamed from
52639         doc/glibc-functions/iswalpha_l.texi.
52640         * doc/posix-functions/iswblank_l.texi: Renamed from
52641         doc/glibc-functions/iswblank_l.texi.
52642         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52643         doc/glibc-functions/iswcntrl_l.texi.
52644         * doc/posix-functions/iswctype_l.texi: Renamed from
52645         doc/glibc-functions/iswctype_l.texi.
52646         * doc/posix-functions/iswdigit_l.texi: Renamed from
52647         doc/glibc-functions/iswdigit_l.texi.
52648         * doc/posix-functions/iswgraph_l.texi: Renamed from
52649         doc/glibc-functions/iswgraph_l.texi.
52650         * doc/posix-functions/iswlower_l.texi: Renamed from
52651         doc/glibc-functions/iswlower_l.texi.
52652         * doc/posix-functions/iswprint_l.texi: Renamed from
52653         doc/glibc-functions/iswprint_l.texi.
52654         * doc/posix-functions/iswpunct_l.texi: Renamed from
52655         doc/glibc-functions/iswpunct_l.texi.
52656         * doc/posix-functions/iswspace_l.texi: Renamed from
52657         doc/glibc-functions/iswspace_l.texi.
52658         * doc/posix-functions/iswupper_l.texi: Renamed from
52659         doc/glibc-functions/iswupper_l.texi.
52660         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52661         doc/glibc-functions/iswxdigit_l.texi.
52662         * doc/posix-functions/isxdigit_l.texi: Renamed from
52663         doc/glibc-functions/isxdigit_l.texi.
52664         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52665         doc/glibc-functions/mbsnrtowcs.texi.
52666         * doc/posix-functions/mkdtemp.texi: Renamed from
52667         doc/glibc-functions/mkdtemp.texi.
52668         * doc/posix-functions/newlocale.texi: Renamed from
52669         doc/glibc-functions/newlocale.texi.
52670         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52671         doc/glibc-functions/nl_langinfo_l.texi.
52672         * doc/posix-functions/open_memstream.texi: Renamed from
52673         doc/glibc-functions/open_memstream.texi.
52674         * doc/posix-functions/opterr.texi: Renamed from
52675         doc/glibc-functions/opterr.texi.
52676         * doc/posix-functions/optind.texi: Renamed from
52677         doc/glibc-functions/optind.texi.
52678         * doc/posix-functions/optopt.texi: Renamed from
52679         doc/glibc-functions/optopt.texi.
52680         * doc/posix-functions/psignal.texi: Renamed from
52681         doc/glibc-functions/psignal.texi.
52682         * doc/posix-functions/scandir.texi: Renamed from
52683         doc/glibc-functions/scandir.texi.
52684         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52685         doc/glibc-functions/sched_get_priority_min.texi.
52686         * doc/posix-functions/signgam.texi: Renamed from
52687         doc/glibc-functions/signgam.texi.
52688         * doc/posix-functions/stpcpy.texi: Renamed from
52689         doc/glibc-functions/stpcpy.texi.
52690         * doc/posix-functions/stpncpy.texi: Renamed from
52691         doc/glibc-functions/stpncpy.texi.
52692         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52693         doc/glibc-functions/strcasecmp_l.texi.
52694         * doc/posix-functions/strcoll_l.texi: Renamed from
52695         doc/glibc-functions/strcoll_l.texi.
52696         * doc/posix-functions/strfmon_l.texi: Renamed from
52697         doc/glibc-functions/strfmon_l.texi.
52698         * doc/posix-functions/strftime_l.texi: Renamed from
52699         doc/glibc-functions/strftime_l.texi.
52700         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52701         doc/glibc-functions/strncasecmp_l.texi.
52702         * doc/posix-functions/strndup.texi: Renamed from
52703         doc/glibc-functions/strndup.texi.
52704         * doc/posix-functions/strnlen.texi: Renamed from
52705         doc/glibc-functions/strnlen.texi.
52706         * doc/posix-functions/strsignal.texi: Renamed from
52707         doc/glibc-functions/strsignal.texi.
52708         * doc/posix-functions/strxfrm_l.texi: Renamed from
52709         doc/glibc-functions/strxfrm_l.texi.
52710         * doc/posix-functions/timer_gettime.texi: Renamed from
52711         doc/glibc-functions/timer_gettime.texi.
52712         * doc/posix-functions/tolower_l.texi: Renamed from
52713         doc/glibc-functions/tolower_l.texi.
52714         * doc/posix-functions/toupper_l.texi: Renamed from
52715         doc/glibc-functions/toupper_l.texi.
52716         * doc/posix-functions/towctrans_l.texi: Renamed from
52717         doc/glibc-functions/towctrans_l.texi.
52718         * doc/posix-functions/towlower_l.texi: Renamed from
52719         doc/glibc-functions/towlower_l.texi.
52720         * doc/posix-functions/towupper_l.texi: Renamed from
52721         doc/glibc-functions/towupper_l.texi.
52722         * doc/posix-functions/uselocale.texi: Renamed from
52723         doc/glibc-functions/uselocale.texi.
52724         * doc/posix-functions/vdprintf.texi: Renamed from
52725         doc/glibc-functions/vdprintf.texi.
52726         * doc/posix-functions/wcpcpy.texi:
52727         Renamed from doc/glibc-functions/wcpcpy.texi.
52728         * doc/posix-functions/wcpncpy.texi: Renamed from
52729         doc/glibc-functions/wcpncpy.texi.
52730         * doc/posix-functions/wcscasecmp.texi: Renamed from
52731         doc/glibc-functions/wcscasecmp.texi.
52732         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52733         doc/glibc-functions/wcscasecmp_l.texi.
52734         * doc/posix-functions/wcscoll_l.texi: Renamed from
52735         doc/glibc-functions/wcscoll_l.texi.
52736         * doc/posix-functions/wcsdup.texi: Renamed from
52737         doc/glibc-functions/wcsdup.texi.
52738         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52739         doc/glibc-functions/wcsncasecmp.texi.
52740         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52741         doc/glibc-functions/wcsncasecmp_l.texi.
52742         * doc/posix-functions/wcsnlen.texi: Renamed from
52743         doc/glibc-functions/wcsnlen.texi.
52744         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52745         doc/glibc-functions/wcsnrtombs.texi.
52746         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52747         doc/glibc-functions/wcsxfrm_l.texi.
52748         * doc/posix-functions/wctrans_l.texi: Renamed from
52749         doc/glibc-functions/wctrans_l.texi.
52750         * doc/posix-functions/wctype_l.texi: Renamed from
52751         doc/glibc-functions/wctype_l.texi.
52752         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52753         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52754         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52755         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52756         these subsections.
52757         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52758         Remove sections.
52759
52760 2008-12-14  Bruno Haible  <bruno@clisp.org>
52761
52762         Update doc for POSIX:2008.
52763         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52764
52765 2008-12-14  Bruno Haible  <bruno@clisp.org>
52766
52767         Update doc for POSIX:2008.
52768         * doc/pastposix-functions/bcmp.texi: Renamed from
52769         doc/posix-functions/bcmp.texi.
52770         * doc/pastposix-functions/bcopy.texi: Renamed from
52771         doc/posix-functions/bcopy.texi.
52772         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52773         doc/posix-functions/bsd_signal.texi.
52774         * doc/pastposix-functions/bzero.texi: Renamed from
52775         doc/posix-functions/bzero.texi.
52776         * doc/pastposix-functions/ecvt.texi: Renamed from
52777         doc/posix-functions/ecvt.texi.
52778         * doc/pastposix-functions/fcvt.texi: Renamed from
52779         doc/posix-functions/fcvt.texi.
52780         * doc/pastposix-functions/ftime.texi: Renamed from
52781         doc/posix-functions/ftime.texi.
52782         * doc/pastposix-functions/gcvt.texi: Renamed from
52783         doc/posix-functions/gcvt.texi.
52784         * doc/pastposix-functions/getcontext.texi: Renamed from
52785         doc/posix-functions/getcontext.texi.
52786         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52787         doc/posix-functions/gethostbyaddr.texi.
52788         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52789         doc/posix-functions/gethostbyname.texi.
52790         * doc/pastposix-functions/getwd.texi: Renamed from
52791         doc/posix-functions/getwd.texi.
52792         * doc/pastposix-functions/h_errno.texi: Renamed from
52793         doc/posix-functions/h_errno.texi.
52794         * doc/pastposix-functions/index.texi: Renamed from
52795         doc/posix-functions/index.texi.
52796         * doc/pastposix-functions/makecontext.texi: Renamed from
52797         doc/posix-functions/makecontext.texi.
52798         * doc/pastposix-functions/mktemp.texi: Renamed from
52799         doc/posix-functions/mktemp.texi.
52800         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52801         doc/posix-functions/pthread_attr_getstackaddr.texi.
52802         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52803         doc/posix-functions/pthread_attr_setstackaddr.texi.
52804         * doc/pastposix-functions/rindex.texi: Renamed from
52805         doc/posix-functions/rindex.texi.
52806         * doc/pastposix-functions/scalb.texi: Renamed from
52807         doc/posix-functions/scalb.texi.
52808         * doc/pastposix-functions/setcontext.texi: Renamed from
52809         doc/posix-functions/setcontext.texi.
52810         * doc/pastposix-functions/swapcontext.texi: Renamed from
52811         doc/posix-functions/swapcontext.texi.
52812         * doc/pastposix-functions/ualarm.texi: Renamed from
52813         doc/posix-functions/ualarm.texi.
52814         * doc/pastposix-functions/usleep.texi: Renamed from
52815         doc/posix-functions/usleep.texi.
52816         * doc/pastposix-functions/vfork.texi: Renamed from
52817         doc/posix-functions/vfork.texi.
52818         * doc/pastposix-functions/wcswcs.texi: Renamed from
52819         doc/posix-functions/wcswcs.texi.
52820         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52821         (Function Substitutes): Update.
52822
52823 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52824
52825         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52826         m4/strerror.m4.
52827
52828 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52829             Bruno Haible  <bruno@clisp.org>
52830
52831         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52832
52833 2008-12-13  Bruno Haible  <bruno@clisp.org>
52834
52835         * modules/strtoull (Depends-on): Remove unistd.
52836
52837 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52838
52839         * modules/strtoull (Depends-on): Add stdlib.
52840
52841 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52842
52843         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52844
52845 2008-12-10  Jim Meyering  <meyering@redhat.com>
52846
52847         gl_ASSERT: don't say assertions are disabled when they're not
52848         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52849         "checking whether to enable assertions... no", when they are in
52850         fact enabled.  This is solely a bug in the output of configure.
52851         In spite of saying "no", NDEBUG was not defined in that case.
52852         Also, as noted by Eric Blake, leave assertions enabled upon
52853         --enable-assert=INVALID.
52854
52855 2008-12-10  Bruno Haible  <bruno@clisp.org>
52856
52857         Change MODULES.html to refer to POSIX:2008 where possible.
52858         * MODULES.html.sh (POSIX2008_URL): New variable.
52859         (posix_headers): Remove sys/timeb, ucontext.
52860         (posix2001_headers): New variable.
52861         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52862         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52863         index, makecontext, mktemp, pthread_attr_getstackaddr,
52864         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52865         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52866         (posix2001_functions): New variable.
52867         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52868         otherwise.
52869
52870 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52871
52872         add missing include to parse-duration.c
52873         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52874         * modules/parse-duration (Depends-on): Add xalloc.
52875
52876         fix sed script reading maint.mk
52877         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52878         (syntax-check-rules): Use it.
52879
52880 2008-12-09  Bruno Haible  <bruno@clisp.org>
52881
52882         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52883         MacOS X 10.4/PowerPC.
52884         Reported by Simon Josefsson.
52885
52886 2008-12-08  Jim Meyering  <meyering@redhat.com>
52887
52888         work around mingw's lack of some S_IF definitions
52889         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52890         Reported by Simon Josefsson.
52891
52892 2008-12-08  Bruno Haible  <bruno@clisp.org>
52893
52894         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52895         applied to variables. Needed on MacOS X 10.4/PowerPC.
52896         Reported by Simon Josefsson.
52897
52898 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52899         and Eric Blake  <ebb9@byu.net>
52900
52901         assert: honor --enable-assert
52902         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52903         order to honor --enable-assert, rather than treating it as a
52904         synonym for --disable-assert.
52905
52906 2008-12-08  Jim Meyering  <meyering@redhat.com>
52907
52908         * lib/posixtm.c: Remove now-useless declaration of mktime.
52909
52910         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52911
52912 2008-12-07  Bruno Haible  <bruno@clisp.org>
52913
52914         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52915         test_once): Mark functions as static.
52916         * tests/test-tls.c (test_tls): Likewise.
52917
52918 2008-12-07  Bruno Haible  <bruno@clisp.org>
52919
52920         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52921         iconv_register_autodetect.
52922
52923 2008-12-07  Jim Meyering  <meyering@redhat.com>
52924
52925         posixtm.c: avoid a warning
52926         * lib/posixtm.c (posixtime): Don't initialize tm0.
52927         It's no longer needed to placate gcc4's -Wuninitialized,
52928         and the attempt to placate would elicit a new warning.
52929
52930         unicodeio.c: mark unused parameters
52931         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52932         (fallback_failure_callback): Likewise.
52933
52934 2008-12-07  Bruno Haible  <bruno@clisp.org>
52935
52936         * gnulib-tool (func_create_testdir): When building the tests
52937         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52938         Reported by Simon Josefsson.
52939
52940 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52941
52942         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52943
52944 2008-12-06  Bruno Haible  <bruno@clisp.org>
52945
52946         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52947         Suggested by Eric Blake.
52948
52949 2008-12-06  Bruno Haible  <bruno@clisp.org>
52950
52951         Fix a c-stack test failure on MacOS X.
52952         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52953         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52954         handler for SIGBUS as well.
52955         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52956         install a signal handler for SIGBUS as well.
52957         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52958
52959 2008-12-06  Bruno Haible  <bruno@clisp.org>
52960
52961         Advocacy documentation.
52962         * doc/gnulib-intro.texi (Benefits): New section.
52963         * doc/gnulib.texi: Update.
52964
52965 2008-12-06  Bruno Haible  <bruno@clisp.org>
52966
52967         Document the 'manywarnings' module.
52968         * doc/manywarnings.texi: New file.
52969         * doc/gnulib.texi: Include it.
52970
52971 2008-12-05  Eric Blake  <ebb9@byu.net>
52972
52973         tests: silence some gcc warnings
52974         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52975         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52976         type mismatches.
52977
52978 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52979             Bruno Haible  <bruno@clisp.org>
52980
52981         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52982
52983 2008-11-29  Jim Meyering  <meyering@redhat.com>
52984
52985         unicodeio.c: mark unused parameters
52986         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52987         (fallback_failure_callback): Likewise.
52988
52989         fts: fix a thinko
52990         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52991         (set_stat_type): Return S_IF*-valued "type" directly.
52992         Prompted by James Youngman's spotting a related bug.
52993         Confirmed by further testing through find.
52994
52995         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52996         * lib/fts.c (D_TYPE): Define.
52997         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52998         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52999         (s_ifmt_shift_bits): New function.
53000         (set_stat_type): New function.
53001         (fts_build): When not calling fts_stat, call set_stat_type
53002         to propagate dirent.d_type info to fts_read caller.
53003         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53004         fts_statp->st_mode type information may be valid.
53005
53006 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53007
53008         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53009         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53010         <sds@gnu.org>.
53011
53012 2008-11-20  Bruno Haible  <bruno@clisp.org>
53013
53014         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53015         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53016         INCLUDE_NEXT.
53017         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53018         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53019         * modules/math (Makefile.am): Substitute
53020         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53021         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53022
53023 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53024             Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/stdint.in.h: Define all type macros so that their expansion is
53027         a single typedef'ed token. Fixes a compilation failure in Boost which
53028         does "using ::int8_t;".
53029
53030 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53031
53032         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53033         gl_MANYWARN_ALL_GCC.
53034         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53035         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53036         * modules/manywarnings: New file.
53037         * MODULES.html.sh: Mention manywarnings module.
53038
53039 2008-11-18  Bruno Haible  <bruno@clisp.org>
53040
53041         * doc/gnulib-tool.texi (Unit tests): New section.
53042
53043 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53044
53045         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53046         paths like 'lib/po/foo.po'.
53047
53048 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53049
53050         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53051         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53052
53053 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53054
53055         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53056         parameter works.
53057
53058 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53059
53060         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53061
53062 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53063
53064         * modules/parse-duration-tests: New file.
53065         * tests/test-parse-duration.sh: New file.
53066         * tests/test-parse-duration.c: New file.
53067
53068         New module 'parse-duration'.
53069         * lib/parse-duration.h: New file.
53070         * lib/parse-duration.c: New file.
53071         * modules/parse-duration: New file.
53072
53073 2008-11-17  Bruno Haible  <bruno@clisp.org>
53074
53075         * tests/test-select-out.sh: Comment out the first pipe test.
53076         Reported by Simon Josefsson.
53077
53078 2008-11-17  Bruno Haible  <bruno@clisp.org>
53079
53080         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53081         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53082         gl_HOSTENT.
53083
53084 2008-11-17  Bruno Haible  <bruno@clisp.org>
53085
53086         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53087         -lnetwork and -lnet. Needed for Haiku and BeOS.
53088
53089 2008-11-16  Bruno Haible  <bruno@clisp.org>
53090
53091         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53092
53093 2008-11-16  Bruno Haible  <bruno@clisp.org>
53094
53095         Avoid test failure on Haiku.
53096         * tests/test-fsync.c: Include <errno.h>.
53097         (main): Don't require that fsync (0) fails.
53098
53099 2008-11-15  Bruno Haible  <bruno@clisp.org>
53100
53101         New module 'hostent'.
53102         * modules/hostent: New file.
53103         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53104
53105 2008-11-15  Bruno Haible  <bruno@clisp.org>
53106
53107         New module 'servent'.
53108         * modules/servent: New file.
53109         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53110
53111 2008-11-15  Bruno Haible  <bruno@clisp.org>
53112
53113         Avoid generating same test program with two different rules.
53114         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53115         test-frexp to test-frexp-nolibm.
53116         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53117         test-frexpl to test-frexpl-nolibm.
53118
53119 2008-11-15  Bruno Haible  <bruno@clisp.org>
53120
53121         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53122         $(FREXPL_LIBM).
53123
53124 2008-11-15  Bruno Haible  <bruno@clisp.org>
53125
53126         * lib/netdb.in.h: Activate the definitions also when the system's
53127         <netdb.h> has 'struct addrinfo'.
53128         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53129         EAI_OVERFLOW or AI_NUMERICSERV.
53130         * doc/posix-headers/netdb.texi: Document the problem.
53131
53132 2008-11-15  Bruno Haible  <bruno@clisp.org>
53133
53134         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53135
53136         Make the 'sched' module work on platforms where <sched.h> exists but
53137         is incomplete (such as Haiku).
53138         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53139         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53140         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53141         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53142         HAVE_STRUCT_SCHED_PARAM.
53143         * modules/sched (Depends-on): Add include_next.
53144         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53145         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53146         * doc/posix-headers/sched.texi: Document the issue.
53147
53148 2008-11-13  Jim Meyering  <meyering@redhat.com>
53149
53150         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53151         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53152         test would fail due to the difference in the Report bugs to ...
53153         line.  The expected address is empty, "<>", while the actual
53154         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53155
53156 2008-11-12  Bruno Haible  <bruno@clisp.org>
53157
53158         lstat: don't compile lstat.c on systems lacking lstat
53159         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53160         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53161         Reported by Daniel P. Berrange via Jim Meyering.
53162
53163 2008-11-12  Jim Meyering  <meyering@redhat.com>
53164
53165         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53166
53167 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53168
53169         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53170         instead.
53171
53172 2008-11-12  Bruno Haible  <bruno@clisp.org>
53173
53174         * lib/unicodeio.c: Include unistr.h.
53175         (utf8_wctomb): Remove function.
53176         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53177
53178 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53179
53180         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53181         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53182         <bruno@clisp.org>.
53183         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53184
53185 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53186
53187         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53188         * doc/gnulib.texi: Add section for warnings.
53189
53190 2008-11-11  Bruno Haible  <bruno@clisp.org>
53191
53192         * lib/sockets.h: Add a comment.
53193
53194 2008-11-11  Karl Berry  <karl@gnu.org>
53195
53196         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53197
53198 2008-11-11  Eric Blake  <ebb9@byu.net>
53199
53200         fdl.texi: avoid git symlinks
53201         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53202
53203 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53204
53205         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53206
53207 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53208
53209         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53210         (gl_WARN_ADD): Substitute $2 if literal.
53211
53212 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53213
53214         * m4/warning.m4: Remove.
53215
53216 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53217
53218         * m4/warnings.m4: Almost complete rewrite. :-)
53219
53220 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53221
53222         * modules/warnings: New module.
53223         * m4/warnings.m4: New file.
53224         * MODULES.html.sh: Mention warnings module.
53225         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53226         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53227
53228 2008-11-10  Eric Blake  <ebb9@byu.net>
53229
53230         fdl.texi: make a symlink to the latest version
53231         * doc/standards.texi: Revert today's earlier change.
53232         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53233         * doc/fdl.texi: ...and replace this with a symlink to the newer
53234         fdl-1.3.texi.
53235
53236 2008-11-10  Bruno Haible  <bruno@clisp.org>
53237
53238         * tests/test-select-fd.c (main): Accept the result file name as fourth
53239         argument.
53240         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53241         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53242
53243 2008-11-10  Bruno Haible  <bruno@clisp.org>
53244
53245         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53246         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53247         as autoconf-substituted macros.
53248         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53249         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53250         gl_NETDB_H_DEFAULTS. Set these variables.
53251         * modules/netdb (Makefile.am): Substitute these variables.
53252
53253 2008-11-10  Eric Blake  <ebb9@byu.net>
53254
53255         standards.texi: include correct file for FDL 1.3
53256         * doc/standards.texi (GNU Free Documentation License): Change
53257         include file to pull in FDL 1.3, not 1.2.
53258
53259         fdl.texi: revert accidental change to license
53260         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53261
53262 2008-11-10  Bruno Haible  <bruno@clisp.org>
53263
53264         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53265         cross-compiling guesses also when the native compile gives no result.
53266
53267 2008-11-10  Bruno Haible  <bruno@clisp.org>
53268
53269         * lib/spawni.c (__spawni): Force variable into the stack.
53270
53271 2008-11-10  Bruno Haible  <bruno@clisp.org>
53272
53273         Add support for Haiku.
53274         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53275         glibc and BeOS, but also on Haiku.
53276         * lib/fpurge.c (fpurge): Likewise.
53277         * lib/freadable.c (freadable): Likewise.
53278         * lib/freadahead.c (freadahead): Likewise.
53279         * lib/freading.c (freading): Likewise.
53280         * lib/freadptr.c (freadptr): Likewise.
53281         * lib/freadseek.c (freadptrinc): Likewise.
53282         * lib/fseeko.c (rpl_fseeko): Likewise.
53283         * lib/fseterr.c (fseterr): Likewise.
53284         * lib/fwritable.c (fwritable): Likewise.
53285         * lib/fwriting.c (fwriting): Likewise.
53286         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53287
53288 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53289
53290         * lib/config.charset: Treat Haiku like BeOS.
53291
53292 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53293
53294         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53295         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53296
53297 2008-11-08  Bruno Haible  <bruno@clisp.org>
53298
53299         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53300         AC_CACHE_CHECK.
53301
53302 2008-11-08  Bruno Haible  <bruno@clisp.org>
53303
53304         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53305
53306 2008-11-08  Bruno Haible  <bruno@clisp.org>
53307
53308         * tests/test-select-fd.c: New file.
53309         * tests/test-select-in.sh: New file.
53310         * tests/test-select-out.sh: New file.
53311         * tests/test-select-stdin.c: New file.
53312         * modules/select-tests (Files): Add the new files.
53313         (Depends-on): Add gettimeofday.
53314         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53315         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53316         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53317
53318 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53319             Bruno Haible  <bruno@clisp.org>
53320
53321         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53322
53323 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53324
53325         * build-aux/pmccabe2html: Added support for C++ source files.
53326
53327 2008-11-05  Ben Pfaff  <blp@gnu.org>
53328
53329         Fix lib/close.c build on Windows.
53330         * modules/close (Files): Add lib/w32sock.h.
53331
53332 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53333
53334         Accept Bison's NEWS format.
53335         * build-aux/announce-gen (print_news_deltas): Tweak
53336         $re_prefix.
53337
53338 2008-11-04  Bruno Haible  <bruno@clisp.org>
53339
53340         * modules/random_r (Maintainer): Add glibc.
53341
53342 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53343
53344         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53345         by karl@freefriends.org (Karl Berry).
53346         * doc/alloca.texi: Likewise.
53347         * doc/c-ctype.texi: Likewise.
53348         * doc/c-strcase.texi: Likewise.
53349         * doc/c-strcaseeq.texi: Likewise.
53350         * doc/c-strcasestr.texi: Likewise.
53351         * doc/c-strstr.texi: Likewise.
53352         * doc/c-strtod.texi: Likewise.
53353         * doc/c-strtold.texi: Likewise.
53354         * doc/ctime.texi: Likewise.
53355         * doc/error.texi: Likewise.
53356         * doc/fdl.texi: Likewise.
53357         * doc/gcd.texi: Likewise.
53358         * doc/getdate.texi: Likewise.
53359         * doc/gnulib-intro.texi: Likewise.
53360         * doc/gnulib-tool.texi: Likewise.
53361         * doc/gnulib.texi: Likewise.
53362         * doc/inet_ntoa.texi: Likewise.
53363         * doc/maintain.texi: Likewise.
53364         * doc/make-stds.texi: Likewise.
53365         * doc/quote.texi: Likewise.
53366         * doc/regexprops-generic.texi: Likewise.
53367         * doc/standards.texi: Likewise.
53368         * doc/verify.texi: Likewise.
53369         * doc/visibility.texi: Likewise.
53370         * doc/gnulib.texi (GNU Free Documentation License): Include
53371         fdl-1.3.texi instead of fdl.texi.
53372
53373 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53374
53375         * doc/fdl-1.3.texi: New file, from
53376         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53377         * modules/fdl-1.3: Add.
53378         * MODULES.html.sh: Add fdl-1.3.
53379
53380 2008-11-03  Bruno Haible  <bruno@clisp.org>
53381
53382         Make determination of absolute name of header file work with AIX xlc.
53383         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53384         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53385         preprocessing.
53386         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53387         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53388
53389 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53390
53391         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53392         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53393         <ludo@gnu.org>.
53394
53395 2008-11-02  Bruno Haible  <bruno@clisp.org>
53396
53397         Mark 'strpbrk' obsolete.
53398         * modules/strpbrk (Status, Notice): New sections.
53399         * modules/strtok_r (Depends-on): Add strpbrk.
53400
53401 2008-11-02  Bruno Haible  <bruno@clisp.org>
53402
53403         Mark 'strdup' obsolete.
53404         * modules/strdup (Status, Notice): New sections.
53405         * modules/findprog (Depends-on): Add strdup.
53406         * modules/getaddrinfo (Depends-on): Likewise.
53407         * modules/localename (Depends-on): Likewise.
53408         * modules/relocatable-lib (Depends-on): Likewise.
53409         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53410         * modules/relocatable-prog (Depends-on): Likewise.
53411         * modules/trim (Depends-on): Likewise.
53412         * modules/unictype/gen-ctype (Depends-on): Likewise.
53413         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53414
53415 2008-11-02  Bruno Haible  <bruno@clisp.org>
53416
53417         Mark 'strcspn' obsolete.
53418         * modules/strcspn (Status, Notice): New sections.
53419
53420 2008-11-02  Bruno Haible  <bruno@clisp.org>
53421
53422         Mark 'rmdir' obsolete.
53423         * modules/rmdir (Status, Notice): New sections.
53424         * modules/clean-temp (Depends-on): Add rmdir.
53425         * modules/openat (Depends-on): Likewise.
53426
53427 2008-11-02  Bruno Haible  <bruno@clisp.org>
53428
53429         Mark 'raise' obsolete.
53430         * modules/raise (Status, Notice): New sections.
53431         (Include): Specify <signal.h>.
53432         * modules/stdio (Depends-on): Add raise.
53433         * modules/write (Depends-on): Likewise.
53434
53435 2008-11-02  Bruno Haible  <bruno@clisp.org>
53436
53437         Mark 'memset' obsolete.
53438         * modules/memset (Status, Notice): New sections.
53439
53440 2008-11-02  Bruno Haible  <bruno@clisp.org>
53441
53442         Mark 'memmove' obsolete.
53443         * modules/memmove (Status, Notice): New sections.
53444         * modules/argp (Depends-on): Add memmove.
53445         * modules/argz (Depends-on): Likewise.
53446         * modules/canonicalize (Depends-on): Likewise.
53447         * modules/canonicalize-lgpl (Depends-on): Likewise.
53448         * modules/fts (Depends-on): Likewise.
53449         * modules/getcwd (Depends-on): Likewise.
53450         * modules/human (Depends-on): Likewise.
53451         * modules/regex (Depends-on): Likewise.
53452         * modules/striconveh (Depends-on): Likewise.
53453         * modules/trim (Depends-on): Likewise.
53454         * modules/unistr/u8-move (Depends-on): Likewise.
53455         * modules/unistr/u16-move (Depends-on): Likewise.
53456         * modules/unistr/u32-move (Depends-on): Likewise.
53457
53458 2008-11-02  Bruno Haible  <bruno@clisp.org>
53459
53460         Mark 'memcpy' obsolete.
53461         * modules/memcpy (Status, Notice): New sections.
53462
53463 2008-11-02  Bruno Haible  <bruno@clisp.org>
53464
53465         Mark 'memcmp' obsolete.
53466         * modules/memcmp (Status, Notice): New sections.
53467         * modules/argmatch (Depends-on): Add memchr.
53468         * modules/backupfile (Depends-on): Likewise.
53469         * modules/c-strcasestr (Depends-on): Likewise.
53470         * modules/crypto/des (Depends-on): Likewise.
53471         * modules/csharpcomp (Depends-on): Likewise.
53472         * modules/fnmatch (Depends-on): Likewise.
53473         * modules/git-merge-changelog (Depends-on): Likewise.
53474         * modules/isnand (Depends-on): Likewise.
53475         * modules/isnand-nolibm (Depends-on): Likewise.
53476         * modules/isnanf (Depends-on): Likewise.
53477         * modules/isnanf-nolibm (Depends-on): Likewise.
53478         * modules/isnanl (Depends-on): Likewise.
53479         * modules/isnanl-nolibm (Depends-on): Likewise.
53480         * modules/mbchar (Depends-on): Likewise.
53481         * modules/memcoll (Depends-on): Likewise.
53482         * modules/quotearg (Depends-on): Likewise.
53483         * modules/regex (Depends-on): Likewise.
53484         * modules/relocatable-prog (Depends-on): Likewise.
53485         * modules/same (Depends-on): Likewise.
53486         * modules/signbit (Depends-on): Likewise.
53487         * modules/strcasestr-simple (Depends-on): Likewise.
53488         * modules/unictype/gen-ctype (Depends-on): Likewise.
53489         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53490         * modules/uniname/uniname (Depends-on): Likewise.
53491         * modules/unistr/u8-cmp (Depends-on): Likewise.
53492
53493 2008-11-02  Bruno Haible  <bruno@clisp.org>
53494
53495         Mark 'memchr' obsolete.
53496         * modules/memchr (Status, Notice): New sections.
53497         * modules/argp (Depends-on): Add memchr.
53498         * modules/base64 (Depends-on): Likewise.
53499         * modules/c-strcasestr (Depends-on): Likewise.
53500         * modules/chdir-long (Depends-on): Likewise.
53501         * modules/fnmatch (Depends-on): Likewise.
53502         * modules/getsubopt (Depends-on): Likewise.
53503         * modules/git-merge-changelog (Depends-on): Likewise.
53504         * modules/glob (Depends-on): Likewise.
53505         * modules/strcasestr-simple (Depends-on): Likewise.
53506         * modules/strnlen (Depends-on): Likewise.
53507
53508 2008-11-02  Bruno Haible  <bruno@clisp.org>
53509
53510         Mark 'atexit' obsolete.
53511         * modules/atexit (Status, Notice): New sections.
53512         * modules/chdir-long (Depends-on): Add atexit.
53513         * modules/wait-process (Depends-on): Likewise.
53514
53515 2008-11-02  Bruno Haible  <bruno@clisp.org>
53516
53517         * gnulib-tool: New option --with-obsolete.
53518         (func_usage): Document it.
53519         (func_modules_transitive_closure): Drop obsolete dependencies if
53520         incobsolete is not true.
53521         (func_import): Read and save the incobsolete variable to the cache.
53522
53523 2008-11-02  Bruno Haible  <bruno@clisp.org>
53524
53525         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53526         * gnulib-tool: New option --extract-status.
53527         (func_usage): Document it.
53528         (sed_extract_prog): Recognize it.
53529         (func_get_status): New function.
53530
53531 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53532
53533         * modules/sockets (License): Change from LGPL to LGPLv2+.
53534
53535 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53536
53537         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53538
53539 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53540
53541         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53542         Mention times and sys_times.
53543         * modules/sys_times, modules/sys_times-tests: New modules.
53544         * modules/times, modules/times-tests: Likewise
53545         * m4/sys_times_h.m4: New file.
53546         * lib/sys_times.in.h: Likewise
53547         * lib/times.c: Likewise.
53548         * tests/test-sys_times.c: Likewise.
53549         * tests/test-times.c: Likewise.
53550         * doc/posix-headers/sys_times.texi: Update.
53551         * doc/posix-functions/times.texi: Update.
53552
53553 2008-10-28  Jim Meyering  <meyering@redhat.com>
53554
53555         * modules/tempname (Depends-on): Add lstat.
53556
53557         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53558
53559 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53560
53561         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53562         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53563         using idiom used elsewhere in gnulib.
53564
53565 2008-10-27  Jim Meyering  <meyering@redhat.com>
53566
53567         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53568
53569 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53570
53571         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53572         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53573         programs.
53574         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53575
53576 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53577
53578         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53579
53580 2008-10-27  Bruno Haible  <bruno@clisp.org>
53581
53582         * tests/test-lstat.c: Include <stdio.h>.
53583
53584 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53585
53586         * modules/lstat-tests: New module.
53587         * tests/test-lstat.c: New file.
53588
53589 2008-10-26  Jim Meyering  <meyering@redhat.com>
53590
53591         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53592
53593 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53594             Bruno Haible  <bruno@clisp.org>
53595
53596         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53597         * modules/configmake (Include): Add a note that the include must come
53598         after all system headers.
53599         * lib/javaversion.c: Include configmake.h after all other includes.
53600
53601 2008-10-26  Bruno Haible  <bruno@clisp.org>
53602
53603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53604         HAVE_STRUCT_RANDOM_DATA to 1.
53605         (gl_STDLIB_H): Simplify.
53606
53607 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53608
53609         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53610         substitute HAVE_STRUCT_RANDOM_DATA.
53611         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53612         random_data.
53613         * modules/stdlib (Makefile.am): Substitute
53614         HAVE_STRUCT_RANDOM_DATA.
53615
53616 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53617
53618         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53619         * doc/gnulib-intro.texi (Copyright): Likewise.
53620
53621 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53622
53623         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53624         findings.
53625
53626 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53627             Bruno Haible  <bruno@clisp.org>
53628
53629         * lib/unistd.in.h: Include <winsock2.h>.
53630         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53631         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53632         Provide dummy declarations.
53633         (gethostname): Override.
53634         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53635         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53636         gl_PREREQ_SYS_H_WINSOCK2.
53637         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53638         * doc/posix-functions/gethostname.texi: More details.
53639
53640 2008-10-25  Bruno Haible  <bruno@clisp.org>
53641
53642         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53643         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53644         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53645
53646         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53647         here ...
53648         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53649         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53650         gl_UNISTD_H_DEFAULTS.
53651
53652 2008-10-25  Eric Blake  <ebb9@byu.net>
53653
53654         signbit: avoid spurious compiler failure
53655         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53656         declarations inside function.
53657
53658 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53659             Bruno Haible  <bruno@clisp.org>
53660
53661         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53662         * modules/random_r (Depends-on): Add stdint.
53663
53664 2008-10-24  Bruno Haible  <bruno@clisp.org>
53665
53666         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53667         Eggert.
53668         * modules/strerror (License): Likewise.
53669
53670 2008-10-24  Jim Meyering  <meyering@redhat.com>
53671
53672         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53673         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53674
53675 2008-10-24  Eric Blake  <ebb9@byu.net>
53676
53677         getgroups: fix compilation when getgroups is available
53678         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53679         but with <config.h> override of getgroups disabled.
53680
53681 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53682
53683         * doc/gnulib.texi (Header files): Add note about C++ problems.
53684         Explained by Bruno Haible <bruno@clisp.org>.
53685
53686 2008-10-23  Bruno Haible  <bruno@clisp.org>
53687
53688         Define a dummy SA_NODEFER macro on Interix.
53689         * lib/signal.in.h (SA_NODEFER): Define fallback.
53690         Reported by Aleksey Cheusov <cheusov@tut.by> via
53691         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53692
53693 2008-10-23  Bruno Haible  <bruno@clisp.org>
53694
53695         * modules/freadahead (License): Change to LGPLv2+.
53696         Suggested by Simon Josefsson.
53697
53698 2008-10-23  Jim Meyering  <meyering@redhat.com>
53699
53700         random_r: new module
53701         * modules/random_r: New file.
53702         * m4/random_r.m4: New file.
53703         * lib/random_r.c: New file, from glibc.
53704         * modules/random_r-tests: New file.
53705         * tests/test-random_r.c: New file.
53706         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53707          Declare.
53708         (RAND_MAX): Define.
53709         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53710         * modules/stdlib: Substitute them, too.
53711         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53712         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53713         * doc/glibc-functions/random_r.texi: Likewise.
53714         * doc/glibc-functions/setstate_r.texi: Likewise.
53715         * doc/glibc-functions/srandom_r.texi: Likewise.
53716         * config/srclist.txt: Mention it.
53717
53718 2008-10-23  David Lutterkort  <lutter@redhat.com>
53719
53720         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53721         link requirement
53722
53723 2008-10-23  Jim Meyering  <meyering@redhat.com>
53724
53725         selinux-h: mark parameters of stub functions as intentionally unused
53726         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53727         * lib/se-context.in.h: Likewise.
53728
53729 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53730
53731         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53732
53733 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53734
53735         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53736
53737 2008-10-22  Eric Blake  <ebb9@byu.net>
53738
53739         glthread/thread: avoid compiler warning
53740         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53741         Add unreachable abort to silence compiler.
53742
53743 2008-10-22  Eric Blake  <ebb9@byu.net>
53744
53745         netdb: also supply struct addrinfo for cygwin 1.5.x
53746         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53747         older cygwin.
53748         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53749         cygwin.
53750         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53751
53752 2008-10-22  Bruno Haible  <bruno@clisp.org>
53753
53754         * users.txt: Update entry about pspp.
53755
53756 2008-10-21  Bruno Haible  <bruno@clisp.org>
53757
53758         Simplification.
53759         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53760         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53761
53762         Simplification.
53763         * lib/ioctl.c (ioctl): Don't undefine.
53764         * lib/socket.c (socket): Don't undefine.
53765
53766         Remove unused module indicator macros.
53767         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53768         GNULIB_$1 as a C macro.
53769
53770         * doc/posix-functions/close.texi: Undo last change.
53771         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53772         Windows platforms.
53773
53774 2008-10-21  Bruno Haible  <bruno@clisp.org>
53775
53776         Add gethostname() declaration to <unistd.h>.
53777         * lib/unistd.in.h (gethostname): New declaration.
53778         * lib/gethostname.c: Include <unistd.h>.
53779         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53780         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53782         and HAVE_GETHOSTNAME.
53783         * modules/gethostname (Depends-on): Add unistd.
53784         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53785         (Include): Specify <unistd.h>.
53786         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53787         HAVE_GETHOSTNAME.
53788         * tests/test-gethostname.c: Include <unistd.h> first.
53789
53790 2008-10-21  Bruno Haible  <bruno@clisp.org>
53791
53792         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53793         * modules/select-tests (Depends-on): Likewise.
53794         Reported by Simon Josefsson.
53795
53796 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53797
53798         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53799         * lib/accept.c: New file, based on winsock.c.
53800         * lib/bind.c: New file, based on winsock.c.
53801         * lib/connect.c: New file, based on winsock.c.
53802         * lib/getpeername.c: New file, based on winsock.c.
53803         * lib/getsockname.c: New file, based on winsock.c.
53804         * lib/getsockopt.c: New file, based on winsock.c.
53805         * lib/ioctl.c: New file, based on winsock.c.
53806         * lib/listen.c: New file, based on winsock.c.
53807         * lib/recv.c: New file, based on winsock.c.
53808         * lib/recvfrom.c: New file, based on winsock.c.
53809         * lib/send.c: New file, based on winsock.c.
53810         * lib/sendto.c: New file, based on winsock.c.
53811         * lib/setsockopt.c: New file, based on winsock.c.
53812         * lib/shutdown.c: New file, based on winsock.c.
53813         * lib/socket.c: New file, based on winsock.c.
53814         * lib/w32sock.h: New file, based on winsock.c.
53815         * lib/winsock.c: Remove file.
53816         * modules/accept: Likewise.
53817         * modules/bind: Likewise.
53818         * modules/connect: Likewise.
53819         * modules/getpeername: Likewise.
53820         * modules/getsockname: Likewise.
53821         * modules/getsockopt: Likewise.
53822         * modules/ioctl: Likewise.
53823         * modules/listen: Likewise.
53824         * modules/recv: Likewise.
53825         * modules/recvfrom: Likewise.
53826         * modules/send: Likewise.
53827         * modules/sendto: Likewise.
53828         * modules/setsockopt: Likewise.
53829         * modules/shutdown: Likewise.
53830         * modules/socket: Use socket.c instead of winsock.c.
53831         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53832         * doc/posix-functions/accept.texi: Doc fix.
53833         * doc/posix-functions/bind.texi: Doc fix.
53834         * doc/posix-functions/close.texi: Doc fix.
53835         * doc/posix-functions/connect.texi: Doc fix.
53836         * doc/posix-functions/getpeername.texi: Doc fix.
53837         * doc/posix-functions/getsockname.texi: Doc fix.
53838         * doc/posix-functions/getsockopt.texi: Doc fix.
53839         * doc/posix-functions/ioctl.texi: Doc fix.
53840         * doc/posix-functions/listen.texi: Doc fix.
53841         * doc/posix-functions/recv.texi: Doc fix.
53842         * doc/posix-functions/recvfrom.texi: Doc fix.
53843         * doc/posix-functions/send.texi: Doc fix.
53844         * doc/posix-functions/sendto.texi: Doc fix.
53845         * doc/posix-functions/setsockopt.texi: Doc fix.
53846         * doc/posix-functions/shutdown.texi: Doc fix.
53847         * doc/posix-functions/socket.texi: Doc fix.
53848
53849 2008-10-20  Bruno Haible  <bruno@clisp.org>
53850
53851         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53852         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53853         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53854         as an alias for SIGABRT.
53855         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53856         (sigaction): Map it to SIGABRT.
53857         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53858
53859 2008-10-20  Bruno Haible  <bruno@clisp.org>
53860
53861         * lib/fts.c: Don't include lstat.h.
53862         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53863
53864         Move the lstat() declaration to <sys/stat.h>.
53865         * lib/lstat.h: Remove file.
53866         * lib/sys_stat.in.h: Add special invocation convention.
53867         (lstat): New declaration.
53868         * lib/lstat.c (orig_lstat): New function.
53869         (rpl_lstat): Use orig_lstat instead of lstat.
53870         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53871         AC_C_INLINE. Set REPLACE_LSTAT.
53872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53873         and REPLACE_LSTAT.
53874         * modules/lstat (Files): Remove lib/lstat.h.
53875         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53876         (Include): Specify <sys/stat.h> instead of lstat.h.
53877         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53878         REPLACE_LSTAT.
53879         * NEWS: Mention the change.
53880
53881 2008-10-20  Bruno Haible  <bruno@clisp.org>
53882
53883         * modules/posix_spawn-tests: New file.
53884         * tests/test-posix_spawn3.c: New file.
53885
53886 2008-10-20  Bruno Haible  <bruno@clisp.org>
53887
53888         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53889         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53890         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53891         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53892         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53893
53894 2008-10-20  Bruno Haible  <bruno@clisp.org>
53895
53896         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53897         of posix_spawn on AIX 5.3.
53898
53899 2008-10-20  Bruno Haible  <bruno@clisp.org>
53900
53901         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53902
53903 2008-10-20  Bruno Haible  <bruno@clisp.org>
53904
53905         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53906         of AC_LANG_PROGRAM.
53907
53908 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53909
53910         * lib/netdb.in.h: Don't define GNU specific constants until they
53911         are supported or needed.  Reported by Bruno Haible
53912         <bruno@clisp.org>.
53913
53914 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53915
53916         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53917
53918 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53919
53920         * lib/getaddrinfo.h: Remove file.
53921         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53922         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53923         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53924         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53925         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53926         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53927         * tests/test-getaddrinfo.c: Likewise.
53928         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53929         * NEWS: Mention change.
53930
53931 2008-10-19  Bruno Haible  <bruno@clisp.org>
53932
53933         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53934
53935 2008-10-19  Bruno Haible  <bruno@clisp.org>
53936
53937         * lib/wait-process.c: Include simply <sys/wait.h>.
53938         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53939         WIFSTOPPED): Remove fallback definitions.
53940         * modules/wait-process (Depends-on): Add sys_wait.
53941
53942         New module 'sys_wait'.
53943         * modules/sys_wait: New file.
53944         * lib/sys_wait.in.h: New file, partially copied from
53945         lib/wait-process.c.
53946         * m4/sys_wait_h.m4: New file.
53947         * doc/posix-headers/sys_wait.texi: Mention the new module.
53948
53949 2008-10-19  Bruno Haible  <bruno@clisp.org>
53950
53951         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53952
53953 2008-10-19  Bruno Haible  <bruno@clisp.org>
53954
53955         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53956         * lib/wait-process.c (WAIT_T): Remove type.
53957         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53958         (wait_subprocess): Update.
53959
53960 2008-10-19  Bruno Haible  <bruno@clisp.org>
53961
53962         New module 'atoll'.
53963         * modules/atoll: New file.
53964         * lib/stdlib.in.h (atoll): New declaration.
53965         * lib/atoll.c: New file, from glibc with modifications.
53966         * m4/atoll.m4: New file.
53967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53968         HAVE_ATOLL.
53969         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53970         * doc/posix-functions/atoll.texi: Mention the new module.
53971
53972 2008-10-19  Bruno Haible  <bruno@clisp.org>
53973
53974         Add strtoull() declaration to <stdlib.h>.
53975         * lib/stdlib.in.h (strtoull): New declaration.
53976         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53977         Set HAVE_STRTOULL.
53978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53979         HAVE_STRTOULL.
53980         * modules/strtoull (Depends-on): Add stdlib.
53981         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53982         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53983         HAVE_STRTOULL.
53984
53985 2008-10-19  Bruno Haible  <bruno@clisp.org>
53986
53987         Add strtoll() declaration to <stdlib.h>.
53988         * lib/stdlib.in.h (strtoll): New declaration.
53989         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53990         Set HAVE_STRTOLL.
53991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53992         HAVE_STRTOLL.
53993         * modules/strtoll (Depends-on): Add stdlib.
53994         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53995         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53996
53997 2008-10-19  Bruno Haible  <bruno@clisp.org>
53998
53999         * modules/bcopy (Depends-on): Add strings.
54000         (Include): Specify <strings.h>.
54001
54002 2008-10-19  Bruno Haible  <bruno@clisp.org>
54003
54004         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54005
54006 2008-10-19  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54009         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54010         mingw.
54011
54012 2008-10-19  Bruno Haible  <bruno@clisp.org>
54013
54014         * lib/atanl.c: Don't include isnanl.h.
54015         * lib/cosl.c: Likewise.
54016         * lib/ldexpl.c: Likewise.
54017         * lib/logl.c: Likewise.
54018         * lib/sinl.c: Likewise.
54019         * lib/sqrtl.c: Likewise.
54020         * lib/tanl.c: Likewise.
54021
54022         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54023         * lib/isnanf.h: Remove file.
54024         * lib/isnand.h: Remove file.
54025         * lib/isnanl.h: Remove file.
54026         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54027         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54028         macros.
54029         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54030         HAVE_ISNANF, don't define it as a C macro.
54031         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54032         HAVE_ISNAND, don't define it as a C macro.
54033         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54034         HAVE_ISNANL, don't define it as a C macro.
54035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54036         HAVE_ISNAN[FDL].
54037         * modules/isnanf (Files): Remove lib/isnanf.h.
54038         (Depends-on): Add math.
54039         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54040         (Include): Specify <math.h> instead of isnanf.h.
54041         * modules/isnand (Files): Remove lib/isnand.h.
54042         (Depends-on): Add math.
54043         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54044         (Include): Specify <math.h> instead of isnand.h.
54045         * modules/isnanl (Files): Remove lib/isnanl.h.
54046         (Depends-on): Add math.
54047         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54048         (Include): Specify <math.h> instead of isnanl.h.
54049         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54050         HAVE_ISNAN[FDL].
54051         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54052         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54053         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54054         * NEWS: Mention the change.
54055
54056 2008-10-18  Bruno Haible  <bruno@clisp.org>
54057
54058         Add getusershell(), setusershell(), endusershell() declarations to
54059         <unistd.h>.
54060         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54061         declarations.
54062         * lib/getusershell.c: Include unistd.h.
54063         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54064         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54065         HAVE_GETUSERSHELL.
54066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54067         and HAVE_GETUSERSHELL.
54068         * modules/getusershell (Depends-on): Add unistd, extensions.
54069         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54070         (Include): Specify <unistd.h>.
54071         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54072         HAVE_GETUSERSHELL.
54073
54074 2008-10-18  Bruno Haible  <bruno@clisp.org>
54075
54076         Add a getloadavg() declaration to <stdlib.h>.
54077         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54078         getloadavg declaration.
54079         (getloadavg): New declaration.
54080         * lib/getloadavg.c: Include <stdlib.h> first.
54081         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54082         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54083         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54085         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54086         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54087         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54088         (Include): Specify <stdlib.h>.
54089         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54090         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54091
54092 2008-10-18  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/dirchownmod.c: Don't include lchmod.h.
54095
54096         Move the lchmod() declaration to <sys/stat.h>.
54097         * lib/lchmod.h: Remove file.
54098         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54099         (lchmod): New declaration, moved here from lib/lchown.h.
54100         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54101         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54102         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54103         and HAVE_LCHMOD.
54104         * modules/lchmod (Files): Remove lib/lchmod.h.
54105         (Depends-on): Add sys_stat, extensions.
54106         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54107         (Include): Specify <sys/stat.h> instead of lchmod.h.
54108         * modules/sys_stat (Depends-on): Add link-warning.
54109         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54110         definition of GL_LINK_WARNING.
54111         * NEWS: Mention the change.
54112
54113 2008-10-18  Bruno Haible  <bruno@clisp.org>
54114
54115         * lib/fchdir.c: Don't include dirfd.h.
54116         * lib/fts.c: Likewise.
54117         * lib/getcwd.c: Likewise.
54118         * lib/glob.c: Likewise.
54119
54120         Move the dirfd() declaration to <dirent.h>.
54121         * lib/dirfd.h: Remove file.
54122         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54123         (dirfd): New declaration.
54124         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54125         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54126         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54127         HAVE_DECL_DIRFD.
54128         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54129         HAVE_DECL_DIRFD.
54130         * modules/dirfd (Files): Remove lib/dirfd.h.
54131         (Depends-on): Add dirent, extensions.
54132         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54133         (Include): Specify <dirent.h> instead of dirfd.h.
54134         * modules/dirent (Depends-on): Add link-warning.
54135         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54136         definition of GL_LINK_WARNING.
54137         * NEWS: Mention the change.
54138
54139 2008-10-18  Bruno Haible  <bruno@clisp.org>
54140
54141         Move the euidaccess() declaration to <unistd.h>.
54142         * lib/euidaccess.h: Remove file.
54143         * lib/unistd.in.h (euidaccess): New declaration.
54144         * lib/euidaccess.c: Don't include euidaccess.h.
54145         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54146         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54148         and HAVE_EUIDACCESS.
54149         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54150         (Depends-on): Add unistd.
54151         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54152         (Include): Specify <unistd.h> instead of euidaccess.h.
54153         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54154         HAVE_EUIDACCESS.
54155         * NEWS: Mention the change.
54156
54157 2008-10-18  Bruno Haible  <bruno@clisp.org>
54158
54159         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54160
54161         Move the getdomainname() declaration to <unistd.h>.
54162         * lib/getdomainname.h: Remove file.
54163         * lib/unistd.in.h (getdomainname): New declaration.
54164         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54165         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54166         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54167         HAVE_GETDOMAINNAME.
54168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54169         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54170         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54171         (Depends-on): Add unistd, extensions.
54172         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54173         (Includes): Specify <unistd.h> instead of getdomainname.h.
54174         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54175         HAVE_GETDOMAINNAME.
54176         * NEWS: Mention the change.
54177
54178 2008-10-18  Bruno Haible  <bruno@clisp.org>
54179
54180         * modules/dirent: New file.
54181         * m4/dirent_h.m4: New file.
54182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54183         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54184         * modules/fchdir (Files): Remove lib/dirent.in.h.
54185         (Depends-on): Add dirent.
54186         (Makefile.am): Move rules to modules/dirent.
54187         * doc/posix-headers/dirent.texi: Mention the new module.
54188
54189 2008-10-18  Bruno Haible  <bruno@clisp.org>
54190
54191         Avoid -Wunused-parameter warnings in public gnulib header files.
54192         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54193         macro.
54194         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54195
54196 2008-10-18  Bruno Haible  <bruno@clisp.org>
54197
54198         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54199         * doc/glibc-functions/error.texi: Mention the module 'error'.
54200         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54201         * doc/glibc-functions/getdomainname.texi: Mention the module
54202         'getdomainname'.
54203         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54204         * doc/glibc-functions/getpagesize.texi: Mention the module
54205         'getpagesize'.
54206         * doc/glibc-functions/getusershell.texi: Mention the module
54207         'getusershell'.
54208         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54209         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54210         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54211         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54212         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54213         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54214         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54215         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54216         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54217         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54218         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54219         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54220         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54221         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54222
54223 2008-10-17  Bruno Haible  <bruno@clisp.org>
54224
54225         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54226         HP-UX and IRIX, use -0.0L.
54227         * tests/test-ceill.c (minus_zero): Likewise.
54228         * tests/test-floorl.c (minus_zero): Likewise.
54229         * tests/test-frexpl.c (minus_zero): Likewise.
54230         * tests/test-isnan.c (minus_zerol): Likewise.
54231         * tests/test-isnanl.h (minus_zero): Likewise.
54232         * tests/test-ldexpl.c (minus_zero): Likewise.
54233         * tests/test-roundl.c (minus_zero): Likewise.
54234         * tests/test-signbit.c (minus_zerol): Likewise.
54235         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54236         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54237         * tests/test-truncl.c (minus_zero): Likewise.
54238         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54239         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54240         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54241         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54242
54243 2008-10-17  Bruno Haible  <bruno@clisp.org>
54244
54245         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54246         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54247         that it gets activated only for gcc >= 3.0.
54248         * lib/dirent.in.h: Likewise.
54249         * lib/errno.in.h: Likewise.
54250         * lib/fcntl.in.h: Likewise.
54251         * lib/float.in.h: Likewise.
54252         * lib/iconv.in.h: Likewise.
54253         * lib/inttypes.in.h: Likewise.
54254         * lib/locale.in.h: Likewise.
54255         * lib/math.in.h: Likewise.
54256         * lib/netdb.in.h: Likewise.
54257         * lib/netinet_in.in.h: Likewise.
54258         * lib/search.in.h: Likewise.
54259         * lib/signal.in.h: Likewise.
54260         * lib/spawn.in.h: Likewise.
54261         * lib/stdarg.in.h: Likewise.
54262         * lib/stdint.in.h: Likewise.
54263         * lib/stdio.in.h: Likewise.
54264         * lib/stdlib.in.h: Likewise.
54265         * lib/string.in.h: Likewise.
54266         * lib/strings.in.h: Likewise.
54267         * lib/sys_file.in.h: Likewise.
54268         * lib/sys_ioctl.in.h: Likewise.
54269         * lib/sys_select.in.h: Likewise.
54270         * lib/sys_socket.in.h: Likewise.
54271         * lib/sys_stat.in.h: Likewise.
54272         * lib/sys_time.in.h: Likewise.
54273         * lib/sysexits.in.h: Likewise.
54274         * lib/time.in.h: Likewise.
54275         * lib/unistd.in.h: Likewise.
54276         * lib/wchar.in.h: Likewise.
54277         * lib/wctype.in.h: Likewise.
54278         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54279
54280 2008-10-17  Jim Meyering  <meyering@redhat.com>
54281
54282         ignore-value: don't depend on inline module
54283         * modules/ignore-value (Depends-on): Remove 'inline'.
54284         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54285         Suggestion from Bruno Haible.
54286
54287 2008-10-17  Bruno Haible  <bruno@clisp.org>
54288
54289         New implementation of condition variables for Win32.
54290         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54291         (gl_linked_waitqueue_t): New type.
54292         (gl_cond_t): Use it.
54293         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54294         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54295         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54296         (glthread_cond_init_func, glthread_cond_wait_func,
54297         glthread_cond_timedwait_func, glthread_cond_signal_func,
54298         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54299         Reimplemented on the basis of gl_linked_waitqueue_t.
54300         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54301         gl_waitqueue_t.
54302         (gl_rwlock_t): Update.
54303         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54304
54305 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54306
54307         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54308         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54309
54310 2008-10-17  Jim Meyering  <meyering@redhat.com>
54311
54312         ignore-value: new module
54313         * modules/ignore-value: New file.
54314         * lib/ignore-value.h: New file.
54315         * MODULES.html.sh (Compiler warning management): New section,
54316         just for this module.  More to come.
54317
54318 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54319
54320         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54321         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54322         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54323
54324 2008-10-16  Jim Meyering  <meyering@redhat.com>
54325
54326         openat-die.c: avoid 'no previous prototype' warning
54327         * lib/openat-die.c: Include "openat.h".
54328         Reported by Reuben Thomas <rrt@sc3d.org>.
54329
54330 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54331
54332         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54333         * lib/netdb.in.h: Fix typo.
54334         Reported by Bruno Haible  <bruno@clisp.org>
54335
54336         * lib/netdb.in.h: Include sys/socket.h for platforms without
54337         netdb.h, to get structures like hostent on MinGW.
54338         * modules/netdb (Depends-on): Add sys_socket.
54339
54340 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54341
54342         * modules/netdb, modules/netdb-tests: New file.
54343         * m4/netdb_h.m4: New file.
54344         * lib/netdb.in.h: Add, currently just an empty file pending
54345         definitions.
54346         * tests/test-netdb.c: New file.
54347         * doc/posix-headers/netdb.texi: Mention that we replace it if
54348         needed.
54349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54350         netdb.
54351
54352 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54353
54354         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54355         with code.
54356
54357 2008-10-13  Bruno Haible  <bruno@clisp.org>
54358
54359         * lib/glthread/cond.c (glthread_cond_wait_func,
54360         glthread_cond_timedwait_func): Add a comment.
54361
54362 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54363
54364         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54365         * tests/test-select.c: Likewise,
54366
54367 2008-10-13  Bruno Haible  <bruno@clisp.org>
54368
54369         * lib/glthread/cond.c (glthread_cond_wait_func,
54370         glthread_cond_timedwait_func): Fix variable name.
54371         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54372
54373 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54374
54375         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54376         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54377         struct sockaddr.sa_len.
54378         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54379
54380 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54381
54382         * build-aux/pmccabe2html: Add css and css_url parameters.
54383
54384 2008-10-12  Bruno Haible  <bruno@clisp.org>
54385
54386         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54387         calling aclx_get.
54388         Reported by Rainer Tammer <tammer@tammer.net>.
54389
54390 2008-10-12  Bruno Haible  <bruno@clisp.org>
54391
54392         Use msvcrt aware primitives for creation/termination of Win32 threads.
54393         * lib/glthread/thread.c: Include <process.h>.
54394         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54395         (wrapper_func): Update signature.
54396         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54397
54398 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54399             Bruno Haible  <bruno@clisp.org>
54400
54401         Provide a Win32 implementation of the 'cond' module.
54402         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54403         * lib/glthread/cond.c (glthread_cond_init_func,
54404         glthread_cond_wait_func, glthread_cond_timedwait_func,
54405         glthread_cond_signal_func, glthread_cond_broadcast_func,
54406         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54407         * modules/cond (Dependencies): Add gettimeofday.
54408
54409 2008-10-11  Bruno Haible  <bruno@clisp.org>
54410
54411         Make sleep work on older versions of mingw.
54412         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54413         only whether it exists.
54414         * doc/posix-functions/sleep.texi: Mention the problem with older
54415         versions of mingw.
54416
54417 2008-10-11  Bruno Haible  <bruno@clisp.org>
54418
54419         New module 'shutdown'.
54420         * modules/shutdown: New file.
54421         * lib/sys_socket.in.h (shutdown): New declaration.
54422         * lib/winsock.c (shutdown): New function.
54423         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54424         GNULIB_SHUTDOWN.
54425         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54426         * doc/posix-functions/shutdown.texi: Document the new module.
54427
54428 2008-10-11  Jim Meyering  <meyering@redhat.com>
54429
54430         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54431
54432 2008-10-11  Bruno Haible  <bruno@clisp.org>
54433
54434         New module 'fclose'.
54435         * modules/fclose: New file.
54436         * lib/stdio.in.h (fclose): New declaration.
54437         * lib/fclose.c: New file.
54438         * m4/fclose.m4: New file.
54439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54440         REPLACE_FCLOSE.
54441         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54442         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54443         REPLACE_FCLOSE.
54444         * modules/close (Depends-on): fclose.
54445         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54446
54447 2008-10-11  Bruno Haible  <bruno@clisp.org>
54448
54449         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54450         set errno and don't call _close.
54451
54452 2008-10-10  Bruno Haible  <bruno@clisp.org>
54453
54454         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54455         ACL, not afterwards. Fixes test failure on Cygwin.
54456
54457 2008-10-09  Ben Pfaff  <blp@gnu.org>
54458
54459         * build-aux/announce-gen: Fix gnulib version related part of usage
54460         message.  Die with a useful error message if no tarballs are
54461         found.
54462
54463 2008-10-10  Jim Meyering  <meyering@redhat.com>
54464
54465         bootstrap: use git's --depth=N option only if it's supported
54466         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54467         recognize the --depth option.  Reported by Pádraig Brady.
54468
54469 2008-10-09  Bruno Haible  <bruno@clisp.org>
54470
54471         New module 'ioctl'.
54472         * modules/ioctl: New file.
54473         * lib/sys_socket.in.h (ioctl): Remove declaration.
54474         * lib/winsock.c: Include <sys/ioctl.h>.
54475         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54476         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54477         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54478         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54479         * doc/posix-functions/ioctl.texi: Mention the new module.
54480
54481 2008-10-09  Bruno Haible  <bruno@clisp.org>
54482
54483         New module 'sys_ioctl'.
54484         * lib/sys_ioctl.in.h: New file.
54485         * m4/sys_ioctl_h.m4: New file.
54486         * modules/sys_ioctl: New file.
54487         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54488
54489 2008-10-09  Bruno Haible  <bruno@clisp.org>
54490
54491         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54492         * lib/winsock.c: Include <stdarg.h>.
54493         (rpl_ioctl): Change to second argument 'int' and then varargs.
54494
54495 2008-10-09  Bruno Haible  <bruno@clisp.org>
54496
54497         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54498         when the sys_socket module is present and the system has <winsock2.h>.
54499
54500 2008-10-09  Bruno Haible  <bruno@clisp.org>
54501
54502         * doc/posix-functions/close.texi: Mention module 'close' instead of
54503         module 'sys_socket'.
54504
54505 2008-10-09  Bruno Haible  <bruno@clisp.org>
54506
54507         * doc/glibc-headers/sys_ioctl.texi: New file.
54508         * doc/gnulib.texi: Include it.
54509
54510 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54511             Bruno Haible  <bruno@clisp.org>
54512
54513         Combine the two replacements of 'close'.
54514         * lib/sys_socket.in.h (close): Define to a reminder to include
54515         <unistd.h>.
54516         (_gl_close_fd_maybe_socket): New declaration.
54517         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54518         * lib/winsock.c (close): Remove undefinition.
54519         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54520         needed for the gnulib module 'close'.
54521         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54522         define to an error symbol or to a warning, if suitable.
54523         * lib/close.c: Include <sys/socket.h>.
54524         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54525         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54526         UNISTD_H_HAVE_WINSOCK2_H.
54527         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54529         UNISTD_H_HAVE_WINSOCK2_H.
54530         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54531         (configure.ac): Set a module indicator.
54532         (Makefile.am): Substitute GNULIB_CLOSE.
54533         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54534         * modules/poll-tests (Depends-on): Add close.
54535         * modules/select-tests (Depends-on): Likewise.
54536
54537 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54538             Bruno Haible  <bruno@clisp.org>
54539
54540         New module 'close'.
54541         * modules/close: New file.
54542         * lib/unistd.in.h (close): Move declaration out of the
54543         FCHDIR_REPLACEMENT scope.
54544         (_gl_unregister_fd): New declaration.
54545         * lib/close.c: New file.
54546         * lib/fchdir.c (rpl_close): Remove function.
54547         * m4/close.m4: New file.
54548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54549         close.
54550         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54551         REPLACE_CLOSE.
54552         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54553         REPLACE_CLOSE.
54554         * modules/fchdir (Depends-on): Add close.
54555
54556 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54557             Bruno Haible  <bruno@clisp.org>
54558
54559         * lib/fcntl.in.h (open): Simplify conditionals.
54560         (_gl_register_fd): New declaration.
54561         * lib/fchdir.c (rpl_open): Remove function.
54562         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54563         also.
54564         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54566         open.
54567
54568 2008-10-09  Jim Meyering  <meyering@redhat.com>
54569
54570         GNUmakefile: use the more name-space-friendly "_version"
54571         * top/GNUmakefile (_dummy): Update.
54572         (_version): Rename from "version".
54573
54574 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54575             Bruno Haible  <bruno@clisp.org>
54576
54577         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54578         rpl_close.
54579         (_gl_register_fd): New function, extracted from rpl_open.
54580         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54581         (rpl_open, rpl_opendir): Use _gl_register_fd.
54582
54583 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54584
54585         Fix organization of 'open' replacement.
54586         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54587         (gl_FUNC_OPEN): Use it.
54588         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54589
54590 2008-10-08  Bruno Haible  <bruno@clisp.org>
54591
54592         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54593
54594 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54595
54596         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54597         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54598         listen).
54599
54600 2008-10-08  Eric Blake  <ebb9@byu.net>
54601
54602         GNUmakefile: add 'make version' target
54603         * top/GNUmakefile (_curr-ver): Split version update rules...
54604         (version): ...into a target.
54605
54606 2008-10-07  Bruno Haible  <bruno@clisp.org>
54607
54608         Use a more portable replacement expression for -0.0L.
54609         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54610         instead of -0.0L. Fix m4 quotation.
54611
54612         * tests/test-signbit.c: Include <float.h>.
54613         (minus_zero): New variable.
54614         (test_signbitl): Use minus_zero instead of -zero.
54615         * modules/signbit-tests (Depends-on): Add float.
54616
54617         * tests/test-ceill.c: Include <float.h>.
54618         (zero): Remove variable.
54619         (minus_zero): New variable.
54620         (main): Use minus_zero instead of -zero.
54621         * modules/ceill-tests (Depends-on): Add float.
54622
54623         * tests/test-floorl.c: Include <float.h>.
54624         (zero): Remove variable.
54625         (minus_zero): New variable.
54626         (main): Use minus_zero instead of -zero.
54627         * modules/floorl-tests (Depends-on): Add float.
54628
54629         * tests/test-roundl.c: Include <float.h>.
54630         (zero): Remove variable.
54631         (minus_zero): New variable.
54632         (main): Use minus_zero instead of -zero.
54633         * modules/roundl-tests (Depends-on): Add float.
54634
54635         * tests/test-truncl.c: Include <float.h>.
54636         (zero): Remove variable.
54637         (minus_zero): New variable.
54638         (main): Use minus_zero instead of -zero.
54639         * modules/truncl-tests (Depends-on): Add float.
54640
54641         * tests/test-frexpl.c (zero): Remove variable.
54642         (minus_zero): New variable.
54643         (main): Use minus_zero instead of -zero.
54644         * modules/frexpl-tests (Depends-on): Add float.
54645
54646         * tests/test-isnan.c (zerol): Remove variable.
54647         (minus_zerol): New variable.
54648         (test_long_double): Use minus_zerol instead of -zerol.
54649         * modules/isnan-tests (Depends-on): Add float.
54650
54651         * tests/test-isnanl.h (zero): Remove variable.
54652         (minus_zero): New variable.
54653         (main): Use minus_zero instead of -zero.
54654         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54655         * modules/isnanl-tests (Depends-on): Add float.
54656
54657         * tests/test-ldexpl.c (zero): Remove variable.
54658         (minus_zero): New variable.
54659         (main): Use minus_zero instead of -zero.
54660         * modules/ldexpl-tests (Depends-on): Add float.
54661
54662         * tests/test-snprintf-posix.h (zerol): Remove variable.
54663         (minus_zerol): New variable.
54664         (test_function): Use minus_zerol instead of -zerol.
54665         * modules/snprintf-posix-tests (Depends-on): Add float.
54666         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54667
54668         * tests/test-sprintf-posix.h (zerol): Remove variable.
54669         (minus_zerol): New variable.
54670         (test_function): Use minus_zerol instead of -zerol.
54671         * modules/sprintf-posix-tests (Depends-on): Add float.
54672         * modules/vsprintf-posix-tests (Depends-on): Add float.
54673
54674         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54675         (minus_zerol): New variable.
54676         (test_function): Use minus_zerol instead of -zerol.
54677         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54678
54679         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54680         (minus_zerol): New variable.
54681         (test_function): Use minus_zerol instead of -zerol.
54682         * modules/vasprintf-posix-tests (Depends-on): Add float.
54683
54684 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54685
54686         * MODULES.html.sh (Support for building documentation): Mention
54687         pmccabe2html.  Sort entries.
54688
54689         Add pmccabe2html module, from gnupdf.
54690         * build-aux/pmccabe.css: New file.
54691         * build-aux/pmccabe2html: New file.
54692         * m4/pmccabe2html.m4: New file.
54693         * modules/pmccabe2html: New file.
54694
54695 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54696
54697         flock: new module
54698         * MODULES.html.sh: Add to list of modules.
54699         * lib/flock.c: flock implementation for Windows and Unix systems
54700         which have fcntl.
54701         * doc/glibc-functions/flock.texi: Update documentation.
54702         * lib/sys_file.in.h: <sys/file.h> header file.
54703         * m4/flock.m4: M4 macros.
54704         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54705         * modules/flock: flock module.
54706         * modules/flock-tests: flock tests module.
54707         * modules/sys_file: sys/file.h module.
54708         * tests/test-flock.c: test suite for flock.
54709
54710 2008-10-06  Jim Meyering  <meyering@redhat.com>
54711
54712         bootstrap: check for LT_INIT more portably still ;-)
54713         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54714         Spotted by Bruno Haible.
54715
54716 2008-10-06  Eric Blake  <ebb9@byu.net>
54717
54718         test-signbit: avoid tripping Irix cc bug on -0.0L
54719         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54720         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54721         entire testsuite consistent and avoids an Irix 6.2 bug.
54722
54723 2008-10-05  Bruno Haible  <bruno@clisp.org>
54724             Jim Meyering  <jim@meyering.net>
54725
54726         Add an option for ignoring EPIPE during close_stdout.
54727         * lib/closeout.h: Include <stdbool.h>.
54728         (close_stdout_set_ignore_EPIPE): New declaration.
54729         * lib/closeout.c: Include <stdbool.h>.
54730         (ignore_EPIPE): New variable.
54731         (close_stdout_set_ignore_EPIPE): New function.
54732         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54733         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54734         failure.
54735         * modules/closeout (Depends-on): Add stdbool.
54736
54737 2008-10-05  Bruno Haible  <bruno@clisp.org>
54738
54739         * modules/accept: New file.
54740         * modules/bind: New file.
54741         * modules/connect: New file.
54742         * modules/getpeername: New file.
54743         * modules/getsockname: New file.
54744         * modules/getsockopt: New file.
54745         * modules/listen: New file.
54746         * modules/recv: New file.
54747         * modules/recvfrom: New file.
54748         * modules/send: New file.
54749         * modules/sendto: New file.
54750         * modules/setsockopt: New file.
54751         * modules/socket: New file.
54752         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54753         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54754         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54755         the particular module is requested. Add a link warning when the
54756         particular module is not requested.
54757         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54758         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54759         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54760         the particular module is requested.
54761         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54762         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54763         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54764         * modules/sys_socket (Depends-on): Add link-warning.
54765         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54766         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54767         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54768         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54769         GL_LINK_WARNING.
54770         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54771         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54772         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54773         * doc/posix-functions/getpeername.texi: Mention the new module
54774         'getpeername'.
54775         * doc/posix-functions/getsockname.texi: Mention the new module
54776         'getsockname'.
54777         * doc/posix-functions/getsockopt.texi: Mention the new module
54778         'getsockopt'.
54779         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54780         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54781         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54782         * doc/posix-functions/send.texi: Mention the new module 'send'.
54783         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54784         * doc/posix-functions/setsockopt.texi: Mention the new module
54785         'setsockopt'.
54786         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54787         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54788         listen, connect, accept.
54789         * modules/select-tests (Depends-on): Likewise.
54790
54791 2008-10-05  Bruno Haible  <bruno@clisp.org>
54792
54793         * lib/winsock.c (strerror): Remove unused #undef.
54794         (rpl_close): Remove unused local variable.
54795
54796         * modules/sys_socket (Depends-on); Add errno.
54797
54798 2008-10-05  Bruno Haible  <bruno@clisp.org>
54799
54800         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54801         (select): Add a link warning when the 'select' module is not used.
54802         * modules/sys_select (Depends-on): Add link-warning.
54803         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54804         Suggested by Paolo Bonzini.
54805
54806 2008-10-05  Jim Meyering  <meyering@redhat.com>
54807
54808         bootstrap: check for LT_INIT more portably
54809         * build-aux/bootstrap: Avoid using grep -E, since it's not
54810         portable enough.  Suggestion from Bruno Haible.
54811
54812 2008-10-05  Bruno Haible  <bruno@clisp.org>
54813
54814         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54815         as being fixed by gnulib.
54816
54817 2008-10-05  Bruno Haible  <bruno@clisp.org>
54818
54819         * modules/select-tests: New file, mostly copied from
54820         modules/sys_select-tests.
54821         * tests/test-select.c: New file, mostly copied from
54822         tests/test-sys_select.c.
54823         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54824         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54825         (Makefile.am): Remove test_sys_select_LDADD.
54826
54827         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54828         to an undefined symbol, for an error message.
54829         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54830         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54831         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54832         winsock-select.c here.
54833         * modules/sys_select (Files): Remove lib/winsock-select.c.
54834         (Depends-on): Remove alloca.
54835         (Makefile.am): Substitute GNULIB_SELECT.
54836         * modules/select: New file.
54837         * doc/posix-functions/select.texi: Update.
54838
54839 2008-10-05  Bruno Haible  <bruno@clisp.org>
54840
54841         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54842         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54843         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54844         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54845         getdtablesize.
54846         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54847         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54848
54849 2008-10-05  Bruno Haible  <bruno@clisp.org>
54850
54851         * modules/getdtablesize-tests: New file.
54852         * tests/test-getdtablesize.c: New file.
54853
54854         New module 'getdtablesize'.
54855         * lib/unistd.in.h (getdtablesize): New declaration.
54856         * lib/getdtablesize.c: New file.
54857         * m4/getdtablesize.m4: New file.
54858         * modules/getdtablesize: New file.
54859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54860         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54861         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54862         HAVE_GETDTABLESIZE.
54863         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54864
54865 2008-10-05  Bruno Haible  <bruno@clisp.org>
54866
54867         * modules/sched (Makefile.am): Fix typo.
54868         Reported by Simon Josefsson.
54869
54870 2008-10-05  Jim Meyering  <meyering@redhat.com>
54871
54872         bootstrap: check for LT_INIT, too
54873         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54874         are deprecated.  Suggestion from Ralf Wildenhues.
54875
54876 2008-10-05  Bruno Haible  <bruno@clisp.org>
54877
54878         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54879         overriding them by ours.
54880         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54881
54882 2008-10-05  Jim Meyering  <meyering@redhat.com>
54883
54884         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54885         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54886         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54887
54888 2008-10-04  Bruno Haible  <bruno@clisp.org>
54889
54890         * modules/dup2 (License): Change to LGPLv2+.
54891         * modules/sleep (License): Likewise.
54892         * modules/perror (License): Likewise.
54893         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54894         Blake.
54895         * modules/signal (License): Likewise.
54896         * modules/sigprocmask (License): Likewise.
54897         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54898         Meyering.
54899
54900 2008-10-04  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54903         Reported by Rainer Tammer <tammer@tammer.net>.
54904
54905 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54906             Bruno Haible  <bruno@clisp.org>
54907
54908         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54909         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54910         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54911
54912 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54913
54914         filevercmp: new module
54915         * lib/filevercmp.h: New function filevercmp comparing version strings.
54916         * lib/filevercmp.c: Implementation of filevercmp function.
54917         * modules/filevercmp: Module metadata.
54918         * tests/test-filevercmp.c: Unit test for new module.
54919         * modules/filevercmp-tests: Unit test metadata.
54920         * MODULES.html.sh: Add filevercmp module.
54921
54922 2008-10-03  Bruno Haible  <bruno@clisp.org>
54923
54924         * lib/c-ctype.h: Add comment.
54925         Reported by Jim Meyering.
54926
54927 2008-10-02  Bruno Haible  <bruno@clisp.org>
54928
54929         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54930
54931 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54932
54933         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54934         name of bootstrap.conf accordingly.
54935
54936 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54937
54938         * build-aux/bootstrap: Install git-merge-changelog configuration
54939         items into .gitconfig if needed.
54940
54941 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54942
54943         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54944         git repository, and initialize/update it accordingly.
54945
54946 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54947
54948         * modules/fsync-tests: New file.
54949         * tests/test-fsync.c: New file.
54950
54951         New module 'fsync'.
54952         * lib/fsync.c: New file.
54953         * m4/fsync.m4: New file.
54954         * modules/fsync: New file.
54955         * lib/unistd.in.h (fsync): New declaration.
54956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54957         GNULIB_FSYNC and HAVE_FSYNC.
54958         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54959         * MODULES.html.sh (posix_functions): Add fsync.
54960         * doc/posix-functions/fsync.texi: Mention the new module.
54961
54962 2008-10-02  Jim Meyering  <meyering@redhat.com>
54963
54964         fts.c: sync with similar code from coreutils' remove.c
54965         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54966         Guard also with "#if defined __linux__", since for now at least,
54967         this code is Linux-kernel-specific.
54968
54969 2008-10-02  Jim Meyering  <meyering@redhat.com>
54970
54971         fts: bug fixes
54972         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54973         Include <sys/vfs.h>, not <sys/statfs.h>.
54974
54975         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54976         Include <sys/vfs.h>, not <sys/statfs.h>.
54977
54978 2008-10-01  Bruno Haible  <bruno@clisp.org>
54979
54980         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54981         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54982         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54983         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54984         * doc/posix-functions/posix_spawnp.texi: Likewise.
54985         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54986         whether posix_spawn actually works.
54987         * m4/pipe.m4 (gl_PIPE): Likewise.
54988         * modules/execute (Files): Add m4/posix_spawn.m4.
54989         * modules/pipe (Files): Add m4/posix_spawn.m4.
54990         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54991
54992 2008-10-01  Jim Meyering  <meyering@redhat.com>
54993
54994         remove trailing spaces
54995         * NEWS: Likewise.
54996         * lib/poll.c (poll): Likewise.
54997         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54998         * lib/winsock.c (rpl_close): Likewise.
54999         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55000         * modules/yield: Likewise.
55001         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55002         * tests/test-sys_select.c (connect_to_socket): Likewise.
55003
55004         fts.c: adjust a new interface to be more generally useful
55005         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55006         (fts_build): Adjust caller.
55007
55008 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55009
55010         * modules/cond-tests: New file.
55011         * tests/test-cond.c: New file.
55012
55013 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55014             Bruno Haible  <bruno@clisp.org>
55015
55016         * modules/cond (Dependencies): Add errno, time.
55017         * lib/glthread/cond.h: Include <time.h>.
55018         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55019         across platforms.
55020
55021 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55022             Bruno Haible  <bruno@clisp.org>
55023
55024         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55025
55026 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55027             Bruno Haible  <bruno@clisp.org>
55028
55029         * modules/tls-tests (Depends-on): Add thread, yield.
55030         (configure.ac): Remove all checks.
55031         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55032         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55033         gl_thread_self): Remove definitions. Include glthread/thread.h and
55034         glthread/yield.h instead.
55035         (test_tls): Pass an additional NULL argument to gl_thread_join.
55036
55037 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55038             Bruno Haible  <bruno@clisp.org>
55039
55040         * modules/lock-tests (Depends-on): Add thread, yield.
55041         (configure.ac): Remove all checks.
55042         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55043         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55044         gl_thread_self): Remove definitions. Include glthread/thread.h and
55045         glthread/yield.h instead.
55046         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55047         additional NULL argument to gl_thread_join.
55048
55049 2008-09-30  Bruno Haible  <bruno@clisp.org>
55050
55051         Fix the Win32 implementation of the 'thread' module.
55052         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55053         pointer type.
55054         (gl_thread_self): Invoke gl_thread_self_func.
55055         (gl_thread_self_func): New declaration.
55056         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55057         (do_init_self_key, init_self_key): New functions.
55058         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55059         Remove some fields.
55060         (running_threads, running_lock): Remove variables.
55061         (get_current_thread_handle): New function.
55062         (gl_thread_self_func, wrapper_func, glthread_create_func,
55063         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55064         simplified.
55065
55066 2008-09-30  Bruno Haible  <bruno@clisp.org>
55067
55068         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55069         files.
55070
55071 2008-09-30  Jim Meyering  <meyering@redhat.com>
55072
55073         fts.m4: correct the test for statfs.f_type
55074         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55075         when checking for statfs.f_type.
55076
55077 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55078
55079         tests: avoid some compiler warnings
55080         * tests/test-memchr.c (main): Pass NULL indirectly.
55081         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55082
55083 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55084
55085         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55086         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55087         exactly specified dayshifts.
55088         (dayshift): New rule.
55089         (rel): Add dayshift.
55090         (relative_time_table) [tomorrow, yesterday, today, now]:
55091         Use tDAY_SHIFT in place of tDAY_UNIT.
55092         * tests/test-getdate.c: Add tests for now-disallowed countable
55093         dayshifts, e.g., "4 yesterday ago".
55094
55095 2008-09-29  Bruno Haible  <bruno@clisp.org>
55096
55097         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55098         * tests/test-posix_spawn1.in.sh: Renamed from
55099         tests/test-posix_spawn.in.sh.
55100         * tests/test-posix_spawn2.c: New file.
55101         * tests/test-posix_spawn2.in.sh: New file.
55102         * modules/posix_spawnp-tests (Files): Update.
55103         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55104
55105 2008-09-29  Bruno Haible  <bruno@clisp.org>
55106
55107         Propagate effects of putenv/setenv/unsetenv to child processes.
55108         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55109         * lib/pipe.c (create_pipe): Likewise.
55110
55111 2008-09-29  Bruno Haible  <bruno@clisp.org>
55112
55113         Enable use of shell scripts as executables in mingw.
55114         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55115         run the program as a shell script.
55116         * lib/pipe.c (create_pipe): Likewise.
55117         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55118         resulting array.
55119
55120 2008-09-29  Eric Blake  <ebb9@byu.net>
55121
55122         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55123
55124 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55125
55126         * doc/posix-functions/accept.texi: Update mingw problems.
55127         * doc/posix-functions/bind.texi: Update mingw problems.
55128         * doc/posix-functions/close.texi: Update mingw problems.
55129         * doc/posix-functions/connect.texi: Update mingw problems.
55130         * doc/posix-functions/getpeername.texi: Update mingw problems.
55131         * doc/posix-functions/getsockname.texi: Update mingw problems.
55132         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55133         * doc/posix-functions/ioctl.texi: Update mingw problems.
55134         * doc/posix-functions/listen.texi: Update mingw problems.
55135         * doc/posix-functions/recv.texi: Update mingw problems.
55136         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55137         * doc/posix-functions/select.texi: Update mingw problems.
55138         * doc/posix-functions/send.texi: Update mingw problems.
55139         * doc/posix-functions/sendto.texi: Update mingw problems.
55140         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55141         * doc/posix-functions/socket.texi: Update mingw problems.
55142
55143 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55144             Bruno Haible  <bruno@clisp.org>
55145
55146         * lib/sys_select.in.h: Include sys/time.h.
55147         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55148         * modules/sys_select: Depend on sys_time.
55149         * tests/test-sys_select.c: Test that sys/select.h defines struct
55150         timeval fully.
55151
55152 2008-09-29  Bruno Haible  <bruno@clisp.org>
55153
55154         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55155         * lib/sys_select.in.h: Likewise.
55156
55157 2008-09-29  Bruno Haible  <bruno@clisp.org>
55158
55159         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55160
55161 2008-09-29  Bruno Haible  <bruno@clisp.org>
55162
55163         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55164         Set LIBSOCKET instead of augmenting LIBS.
55165         * modules/sockets (Link): New section.
55166         * modules/sockets-tests (test_sockets_LDADD): New variable.
55167         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55168         * modules/poll-tests (test_poll_LDADD): New variable.
55169         * NEWS: Document the change.
55170
55171 2008-09-29  Bruno Haible  <bruno@clisp.org>
55172
55173         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55174         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55175         ARPA_INET_H directly.
55176         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55177
55178 2008-09-28  Bruno Haible  <bruno@clisp.org>
55179
55180         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55181         from gl_HEADER_SYS_SOCKET.
55182         (gl_HEADER_SYS_SOCKET): Invoke it.
55183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55184
55185 2008-09-28  Bruno Haible  <bruno@clisp.org>
55186
55187         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55188         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55189         Needed on OSF/1 4.0.
55190
55191 2008-09-28  Bruno Haible  <bruno@clisp.org>
55192
55193         Override open more carefully.
55194         * lib/open.c (orig_open): New function.
55195         (rpl_open): Use orig_open instead of open.
55196         * lib/fcntl.in.h: Add special invocation convention.
55197         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55198         (gl_FUNC_OPEN): Invoke it.
55199
55200         Override freopen more carefully.
55201         * lib/freopen.c (orig_freopen): New function.
55202         (rpl_freopen): Use orig_freopen instead of freopen.
55203         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55204         (gl_FUNC_FREOPEN): Invoke it.
55205
55206         Override fopen more carefully.
55207         * lib/fopen.c (orig_fopen): New function.
55208         (rpl_fopen): Use orig_fopen instead of fopen.
55209         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55210         (gl_FUNC_FOPEN): Invoke it.
55211         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55212
55213 2008-09-28  Bruno Haible  <bruno@clisp.org>
55214
55215         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55216         SIGPIPE.
55217
55218 2008-09-28  Bruno Haible  <bruno@clisp.org>
55219
55220         * tests/test-sigaction.c (handler, main): Disable the check whether
55221         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55222         glibc systems with LinuxThreads.
55223
55224 2008-09-28  Bruno Haible  <bruno@clisp.org>
55225
55226         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55227
55228         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55229         with AIX xlc.
55230         * lib/fcntl.in.h (open): Likewise.
55231         Reported by Rainer Tammer <tammer@tammer.net>.
55232
55233 2008-09-28  Bruno Haible  <bruno@clisp.org>
55234
55235         * modules/posix_spawnp-tests: New file.
55236         * tests/test-posix_spawn.c: New file.
55237         * tests/test-posix_spawn.in.sh: New file.
55238
55239         New module 'posix_spawnp'.
55240         * modules/posix_spawnp: New file.
55241         * lib/spawnp.c: New file, from GNU libc with modifications.
55242         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55243
55244         New module 'posix_spawn'.
55245         * modules/posix_spawn: New file.
55246         * lib/spawn.c: New file, from GNU libc with modifications.
55247         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55248
55249         New module 'posix_spawnattr_destroy'.
55250         * modules/posix_spawnattr_destroy: New file.
55251         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55252         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55253         module.
55254
55255         New module 'posix_spawnattr_setsigmask'.
55256         * modules/posix_spawnattr_setsigmask: New file.
55257         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55258         modifications.
55259         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55260         new module.
55261
55262         New module 'posix_spawnattr_getsigmask'.
55263         * modules/posix_spawnattr_getsigmask: New file.
55264         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55265         modifications.
55266         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55267         new module.
55268
55269         New module 'posix_spawnattr_setsigdefault'.
55270         * modules/posix_spawnattr_setsigdefault: New file.
55271         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55272         modifications.
55273         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55274         new module.
55275
55276         New module 'posix_spawnattr_getsigdefault'.
55277         * modules/posix_spawnattr_getsigdefault: New file.
55278         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55279         modifications.
55280         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55281         new module.
55282
55283         New module 'posix_spawnattr_setschedpolicy'.
55284         * modules/posix_spawnattr_setschedpolicy: New file.
55285         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55286         modifications.
55287         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55288         new module.
55289
55290         New module 'posix_spawnattr_getschedpolicy'.
55291         * modules/posix_spawnattr_getschedpolicy: New file.
55292         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55293         modifications.
55294         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55295         new module.
55296
55297         New module 'posix_spawnattr_setschedparam'.
55298         * modules/posix_spawnattr_setschedparam: New file.
55299         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55300         modifications.
55301         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55302         new module.
55303
55304         New module 'posix_spawnattr_getschedparam'.
55305         * modules/posix_spawnattr_getschedparam: New file.
55306         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55307         modifications.
55308         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55309         new module.
55310
55311         New module 'posix_spawnattr_setpgroup'.
55312         * modules/posix_spawnattr_setpgroup: New file.
55313         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55314         modifications.
55315         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55316         module.
55317
55318         New module 'posix_spawnattr_getpgroup'.
55319         * modules/posix_spawnattr_getpgroup: New file.
55320         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55321         modifications.
55322         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55323         module.
55324
55325         New module 'posix_spawnattr_setflags'.
55326         * modules/posix_spawnattr_setflags: New file.
55327         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55328         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55329         module.
55330
55331         New module 'posix_spawnattr_getflags'.
55332         * modules/posix_spawnattr_getflags: New file.
55333         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55334         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55335         module.
55336
55337         New module 'posix_spawnattr_init'.
55338         * modules/posix_spawnattr_init: New file.
55339         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55340         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55341         module.
55342
55343         New module 'posix_spawn_file_actions_destroy'.
55344         * modules/posix_spawn_file_actions_destroy: New file.
55345         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55346         modifications.
55347         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55348         the new module.
55349
55350         New module 'posix_spawn_file_actions_addopen'.
55351         * modules/posix_spawn_file_actions_addopen: New file.
55352         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55353         modifications.
55354         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55355         the new module.
55356
55357         New module 'posix_spawn_file_actions_adddup2'.
55358         * modules/posix_spawn_file_actions_adddup2: New file.
55359         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55360         modifications.
55361         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55362         the new module.
55363
55364         New module 'posix_spawn_file_actions_addclose'.
55365         * modules/posix_spawn_file_actions_addclose: New file.
55366         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55367         modifications.
55368         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55369         the new module.
55370
55371         New module 'posix_spawn_file_actions_init'.
55372         * modules/posix_spawn_file_actions_init: New file.
55373         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55374         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55375         new module.
55376
55377         New module 'posix_spawn-internal'.
55378         * modules/posix_spawn-internal: New file.
55379         * lib/spawn_int.h: New file, from GNU libc with modifications.
55380         * lib/spawni.c: New file, from GNU libc with modifications.
55381         * m4/posix_spawn.m4: New file.
55382
55383         New module 'spawn'.
55384         * modules/spawn: New file.
55385         * lib/spawn.in.h: New file, from GNU libc with modifications.
55386         * m4/spawn_h.m4: New file.
55387         * doc/posix-headers/spawn.texi: Mention the new module.
55388
55389 2008-09-28  Bruno Haible  <bruno@clisp.org>
55390
55391         * modules/sched-tests: New file.
55392         * tests/test-sched.c: New file.
55393
55394         New module 'sched'.
55395         * modules/sched: New file.
55396         * lib/sched.in.h: New file.
55397         * m4/sched_h.m4: New file.
55398         * doc/posix-headers/sched.texi: Mention the new module.
55399
55400 2008-09-27  Eric Blake  <ebb9@byu.net>
55401
55402         Fix previous patch, and tweak references to $0.
55403         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55404         (func_version, func_gnulib_dir): Don't call this program
55405         gnulib-tool.
55406         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55407         with using $0 in function.
55408         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55409         (func_fatal_error): Reuse the name the user invoked us with.
55410
55411 2008-09-27  Bruno Haible  <bruno@clisp.org>
55412
55413         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55414         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55415         (gl_ICONV_H): Not here.
55416         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55417         instead of assigning ICONV_H directly.
55418
55419         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55420         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55421         WCHAR_H directly.
55422
55423 2008-09-27  Bruno Haible  <bruno@clisp.org>
55424
55425         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55426         * modules/arpa_inet (Depends-on): Add link-warning.
55427         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55428         * modules/unistd (Makefile.am): Likewise.
55429
55430 2008-09-26  Bruno Haible  <bruno@clisp.org>
55431
55432         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55433         variables.
55434         (func_version): Essentially copied from gnulib-tool.
55435         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55436         func_readlink): Copied from gnulib-tool.
55437
55438 2008-09-26  Bruno Haible  <bruno@clisp.org>
55439
55440         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55441         invoking git-version-gen.
55442
55443 2008-09-26  Bruno Haible  <bruno@clisp.org>
55444
55445         * posix-modules: Update to directory names changed on 2008-01-19.
55446         Remove commas in output before splitting into words. No more need to
55447         avoid 'ftruncate' since 2007-02-19.
55448
55449 2008-09-26  Bruno Haible  <bruno@clisp.org>
55450
55451         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55452
55453 2008-09-26  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55456         * modules/fwriteerror (Depends-on): Add errno.
55457
55458 2008-09-26  Bruno Haible  <bruno@clisp.org>
55459
55460         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55461         * tests/test-vc-list-files-cvs.sh: Likewise.
55462
55463 2008-09-26  Bruno Haible  <bruno@clisp.org>
55464
55465         * doc/posix-headers/sys_resource.texi: Reorder items.
55466
55467 2008-09-26  Jim Meyering  <meyering@redhat.com>
55468
55469         fts: tweak inode comparison function
55470         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55471         inode numbers, as documented.
55472
55473         fts: sort dirent entries on inode number before traversing
55474         This avoids a quadratic, seek-related performance penalty when
55475         operating on a directory containing many entries (measurable at 10k;
55476         3.5 hours at 2 million entries with a cold cache) on certain types
55477         of file systems, including ext3 and ext4, but not tmpfs.
55478         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55479         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55480         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55481         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55482         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55483         (fts_build): Set the stat.st_ino member from D_INO.
55484         If it is likely to be useful, sort dirent entries on inode number.
55485
55486         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55487         and the struct statfs.f_type member.
55488         * modules/fts (Depends-on): Add d-ino.
55489
55490 2008-09-26  Bruno Haible  <bruno@clisp.org>
55491
55492         * modules/sigpipe-die (Depends-on): Add sigpipe.
55493
55494         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55495         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55496         and GNULIB_STDIO_H_SIGPIPE are set.
55497         * lib/stdio-write.c: New file.
55498         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55499         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55500         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55501         REPLACE_STDIO_WRITE_FUNCS.
55502         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55503         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55504         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55505         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55506         * modules/stdio (Files): Add lib/stdio-write.c.
55507         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55508         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55509         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55510         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55511         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55512         REPLACE_FPRINTF_POSIX.
55513         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55514         REPLACE_PRINTF_POSIX.
55515         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55516         REPLACE_VFPRINTF_POSIX.
55517         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55518         REPLACE_VPRINTF_POSIX.
55519         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55520         SIGPIPE issue.
55521         * doc/posix-functions/fputc.texi: Likewise.
55522         * doc/posix-functions/fputs.texi: Likewise.
55523         * doc/posix-functions/fwrite.texi: Likewise.
55524         * doc/posix-functions/printf.texi: Likewise.
55525         * doc/posix-functions/putc.texi: Likewise.
55526         * doc/posix-functions/putchar.texi: Likewise.
55527         * doc/posix-functions/puts.texi: Likewise.
55528         * doc/posix-functions/vfprintf.texi: Likewise.
55529         * doc/posix-functions/vprintf.texi: Likewise.
55530
55531         * modules/safe-write (Depends-on): Add write.
55532
55533         * modules/sigpipe-tests: New file.
55534         * tests/test-sigpipe.c: New file.
55535         * tests/test-sigpipe.sh: New file.
55536
55537         * modules/write: New file.
55538         * lib/unistd.in.h: Include <sys/types.h>.
55539         (write): New declaration.
55540         * lib/write.c: New file.
55541         * m4/write.m4: New file.
55542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55543         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55544         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55545         GNULIB_WRITE, REPLACE_WRITE.
55546         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55547         and the SIGPIPE issue.
55548
55549         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55550         (raise): New declaration.
55551         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55552         (ext_signal): New function.
55553         (rpl_raise): New function.
55554         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55555         GNULIB_SIGNAL_H_SIGPIPE.
55556         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55557         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55558
55559         * modules/sigpipe: New file.
55560         * m4/sigpipe.m4: New file.
55561
55562 2008-09-25  Derek Price  <derek@ximbiot.com>
55563             Bruno Haible  <bruno@clisp.org>
55564
55565         * gnulib-tool (func_import): Report all license incompatibilities, not
55566         just the first one.
55567
55568 2008-09-25  Bruno Haible  <bruno@clisp.org>
55569
55570         * gnulib-tool (func_import): When computing the edits, consider not
55571         only the Makefile.ams that exist but also those that will be generated.
55572
55573 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55574
55575         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55576         fixes gnulib-tool --test warning about duplicate dependency.
55577
55578 2008-09-25  Bruno Haible  <bruno@clisp.org>
55579
55580         * gnulib-tool: Don't ask the user to perform edits in the generated
55581         Makefile.ams.
55582         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55583         apply to the Makefile.am being generated.
55584         (func_emit_tests_Makefile_am): Execute edits that apply to the
55585         Makefile.am being generated.
55586         (func_import): Setup list of Makefile.am edits before emitting the
55587         Makefile.ams, not at the end.
55588         (func_create_testdir): Update.
55589         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55590
55591 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55592
55593         * gnulib-tool (func_import): Store the --tests-base option in the
55594         comment in gnulib-cache.m4.
55595
55596 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55597
55598         * NEWS: Document increased portability that sys_select now provides.
55599
55600         * lib/sys_select.in.h: Install select wrapper.
55601         * lib/sys_socket.in.h: Use more descriptive name when there is no
55602         select wrapper.
55603         * lib/winsock-select.c: New.
55604         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55605         Require gl_HEADER_SYS_SOCKET.
55606         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55607         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55608         * tests/test-sys_select.c: Add functional tests.
55609
55610 2008-09-24  Eric Blake  <ebb9@byu.net>
55611
55612         open, fopen: close fd leak in last patch
55613         * lib/open.c (rpl_open): Close fd before returning error.
55614         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55615         * doc/posix-functions/open.texi (open): Document that Irix also
55616         has the bug.
55617         * doc/posix-functions/fopen.texi (fopen): Likewise.
55618         Reported by Paolo Bonzini.
55619
55620 2008-09-24  Bruno Haible  <bruno@clisp.org>
55621
55622         Ensure that a filename ending in a slash cannot be used to access a
55623         non-directory.
55624         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55625         to check whether it's really a directory.
55626         * lib/fopen.c: Include fcntl.h, unistd.h.
55627         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55628         and fdopen().
55629         * modules/fopen (Depends-on): Add unistd.
55630         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55631         * tests/test-fopen.c (main): Likewise.
55632         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55633         * doc/posix-functions/fopen.texi: Likewise.
55634         Reported by Eric Blake.
55635
55636 2008-09-23  Eric Blake  <ebb9@byu.net>
55637
55638         c-stack: avoid compiler optimizations when provoking overflow
55639         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55640         recursion harder to optimize, to ensure a stack overflow occurs.
55641         * tests/test-c-stack.c (recurse): Likewise.
55642         Borrowed from libsigsegv.
55643
55644         c-stack: work around Irix sigaltstack bug
55645         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55646         whether sigaltstack uses wrong end of stack_t (copied in part from
55647         libsigsegv).
55648         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55649         Irix bug, without requiring an over-allocation.
55650         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55651         bug.
55652
55653         fopen: document mingw bug on directories
55654         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55655         not allowing a stream visiting a directory, even though reading
55656         from such a stream is not portable.
55657
55658 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55659
55660         * lib/poll.c: Rewrite.
55661         * modules/poll: Depend on alloca.
55662
55663 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55664
55665         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55666         instead define prototypes for a full set of wrappers.  Ensure
55667         that Cygwin does not use the compatibility code, which is only
55668         for MinGW.
55669         * lib/winsock.c: New.
55670         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55671         * modules/sys_socket: Add lib/winsock.c.
55672
55673         * modules/poll-tests: Add errno and perror.
55674         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55675
55676 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55677
55678         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55679
55680 2008-09-23  Bruno Haible  <bruno@clisp.org>
55681
55682         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55683         * doc/glibc-functions/*: Likewise.
55684
55685 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55686
55687         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55688         success.
55689
55690 2008-09-22  Eric Blake  <ebb9@byu.net>
55691             Bruno Haible  <bruno@clisp.org>
55692
55693         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55694         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55695         supply %A but mishandle pseudo-NaN.
55696         Reported by Simon Josefsson.
55697
55698 2008-09-21  Bruno Haible  <bruno@clisp.org>
55699
55700         * tests/test-lock.c (main): Tweak skip message.
55701         * tests/test-tls.c (main): Likewise.
55702
55703 2008-09-21  Bruno Haible  <bruno@clisp.org>
55704
55705         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55706         whether 'struct sigaction' has sa_sigaction here...
55707         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55708         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55709
55710 2008-09-21  Bruno Haible  <bruno@clisp.org>
55711
55712         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55713         section.
55714         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55715         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55716         the new section.
55717         (Support for obsolete systems lacking POSIX:2001): New section.
55718         (String handling <string.h>): Move strdup to the new section.
55719         Suggested by Simon Josefsson and Paolo Bonzini.
55720
55721 2008-09-21  Bruno Haible  <bruno@clisp.org>
55722
55723         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55724         exponents in %e and %g results on 'long double'. Needed for mingw's
55725         improved *printf functions.
55726         * tests/test-vasprintf-posix.c (test_function): Likewise.
55727         * tests/test-snprintf-posix.h (test_function): Likewise.
55728         * tests/test-sprintf-posix.h (test_function): Likewise.
55729         Reported by Eric Blake.
55730
55731 2008-09-21  Bruno Haible  <bruno@clisp.org>
55732
55733         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55734         * tests/test-sprintf-posix.h (test_function): Likewise.
55735
55736 2008-09-21  Bruno Haible  <bruno@clisp.org>
55737
55738         * modules/getpass (Depends-on): Add strdup-posix.
55739
55740         New module 'strdup-posix'.
55741         * modules/strdup-posix: New file.
55742         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55743         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55745         REPLACE_STRDUP.
55746         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55747         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55749         strdup-posix.
55750
55751         * modules/strdup (Depends-on): Remove malloc-posix.
55752
55753 2008-09-20  Bruno Haible  <bruno@clisp.org>
55754
55755         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55756         Wildenhues.
55757
55758 2008-09-20  Bruno Haible  <bruno@clisp.org>
55759
55760         Ensure that wint_t gets defined on IRIX 5.3.
55761         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55762         * lib/wctype.in.h (wint_t): Likewise.
55763         (__wctype_wint_t): Remove type.
55764         (isw*): Use wint_t instead of __wctype_wint_t.
55765         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55766         * modules/wchar (Files): Add m4/wint_t.m4.
55767         (Makefile.am): Substitute HAVE_WINT_T.
55768         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55769         * tests/test-wctype.c: Check that wint_t is defined.
55770         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55771         * doc/posix-headers/wctype.texi: Likewise.
55772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55773
55774 2008-09-18  Bruno Haible  <bruno@clisp.org>
55775
55776         * gnulib-tool (func_exit): Update comment.
55777
55778 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55779
55780         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55781         assumes strdup exists and does not depend on strdup to return
55782         ENOMEM on out of memory conditions.
55783
55784 2008-09-18  Bruno Haible  <bruno@clisp.org>
55785
55786         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55787         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55788         digits for the exponent.
55789
55790 2008-09-18  Jim Meyering  <meyering@redhat.com>
55791             Bruno Haible  <bruno@clisp.org>
55792
55793         * lib/vasnprintf.c (decimal_point_char): Define also if
55794         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55795
55796 2008-09-16  Bruno Haible  <bruno@clisp.org>
55797         and Eric Blake  <ebb9@byu.net>
55798
55799         vasnprintf: support Irix 5.3
55800         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55801         that mishandle long double infinity.
55802         Reported by Tom G. Christensen.
55803
55804 2008-09-16  Bruno Haible  <bruno@clisp.org>
55805
55806         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55807         Solaris 9.
55808         * doc/glibc-functions/alphasort.texi: Likewise.
55809         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55810
55811 2008-09-16  Jim Meyering  <meyering@redhat.com>
55812
55813         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55814         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55815         a umask modification leak out of a subshell.  Otherwise, the
55816         opensolaris /bin/sh would be accepted and thus cause unwarranted
55817         failures in the coreutils test suite.
55818
55819 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55820
55821         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55822         to succeed.
55823
55824 2008-09-16  Jim Meyering  <meyering@redhat.com>
55825
55826         avoid spurious test failure when library is built without ACL support
55827         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55828         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55829         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55830         * tests/test-copy-acl.sh: Likewise.
55831
55832 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55833
55834         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55835         based on character occurrence counts.
55836
55837 2008-09-15  Eric Blake  <ebb9@byu.net>
55838
55839         tests: avoid some compiler warnings
55840         * tests/test-memchr.c (main): Pass NULL indirectly.
55841         * tests/test-closein.c (main): Avoid unused variable.
55842
55843 2008-09-15  Bruno Haible  <bruno@clisp.org>
55844
55845         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55846         are missing on OpenBSD 4.0 individually.
55847         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55848
55849 2008-09-15  Bruno Haible  <bruno@clisp.org>
55850
55851         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55852         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55853         * doc/posix-functions/perror.texi: Likewise.
55854         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55855         is missing.
55856         Reported by Eric Blake.
55857
55858         * lib/errno.in.h: Use replacement values >= 2000.
55859         Reported by Eric Blake.
55860
55861 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55862
55863         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55864         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55865         limit.
55866         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55867         compareseq was aborted.
55868
55869 2008-09-14  Bruno Haible  <bruno@clisp.org>
55870
55871         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55872         yvec_edit_count.
55873         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55874         (fstrcmp_bounded): Simplify result computation accordingly.
55875
55876 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55877
55878         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55879         (fstrcmp): Define in terms of fstrcmp_bounded.
55880         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55881         lower_bound argument.
55882         Return quickly if the result is certainly < lower_bound.
55883         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55884
55885 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55886
55887         * lib/diffseq.h (EARLY_ABORT): New macro.
55888         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55889         evaluates to true.
55890
55891 2008-09-14  Bruno Haible  <bruno@clisp.org>
55892
55893         * modules/perror-tests: New file.
55894         * tests/test-perror.sh: New file.
55895         * tests/test-perror.c: New file.
55896
55897         New module 'perror'.
55898         * lib/stdio.in.h (perror): New declaration.
55899         * lib/perror.c: New file.
55900         * m4/perror.m4: New file.
55901         * modules/perror: New file.
55902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55903         * doc/posix-functions/perror.texi: Mention the perror module.
55904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55905         REPLACE_PERROR.
55906         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55907         REPLACE_PERROR.
55908
55909 2008-09-14  Bruno Haible  <bruno@clisp.org>
55910
55911         * modules/stdio (Makefile.am): Reorder to match the order in
55912         lib/stdio.in.h.
55913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55914
55915 2008-09-13  Bruno Haible  <bruno@clisp.org>
55916
55917         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55918
55919 2008-09-13  Bruno Haible  <bruno@clisp.org>
55920
55921         Extend strerror to cover the added errno values.
55922         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55923         (rpl_strerror): Provide error messages for the added errno values and
55924         for the WSA* values.
55925         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55926         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55927         strerror.
55928         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55929         * modules/strerror (Depends-on): Add errno.
55930         * doc/posix-functions/strerror.texi: Document the change.
55931         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55932         and EOVERFLOW.
55933
55934 2008-09-13  Bruno Haible  <bruno@clisp.org>
55935
55936         * modules/EOVERFLOW: Remove file.
55937         * m4/eoverflow.m4: Remove file.
55938         * modules/EOVERFLOW-tests: Remove file.
55939         * tests/test-EOVERFLOW.c: Remove file.
55940         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55941         * modules/ftell (Depends-on): Likewise.
55942         * modules/getdelim (Depends-on): Likewise.
55943         * modules/getugroups (Depends-on): Likewise.
55944         * modules/poll (Depends-on): Likewise.
55945         * modules/snprintf (Depends-on): Likewise.
55946         * modules/sprintf-posix (Depends-on): Likewise.
55947         * modules/vasnprintf (Depends-on): Likewise.
55948         * modules/vasprintf (Depends-on): Likewise.
55949         * modules/vfprintf-posix (Depends-on): Likewise.
55950         * modules/vsnprintf (Depends-on): Likewise.
55951         * modules/vsprintf-posix (Depends-on): Likewise.
55952         * modules/xvasprintf (Depends-on): Likewise.
55953         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55954         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55955         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55956         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55957         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55958         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55959         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55960         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55961         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55962         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55963         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55964         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55965         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55966         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55967         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55968         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55969         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55970         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55971         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55972         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55973         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55974         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55975         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55976         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55977         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55978         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55979         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55980         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55981         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55982         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55983         * MODULES.html.sh: Remove EOVERFLOW.
55984         * NEWS: Mention the change.
55985
55986 2008-09-13  Bruno Haible  <bruno@clisp.org>
55987
55988         * modules/errno-tests: New file.
55989         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55990
55991         * lib/errno.in.h: New file.
55992         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55993         * modules/errno: New file.
55994         * doc/posix-headers/errno.texi: Update documentation.
55995         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55996
55997 2008-09-13  Bruno Haible  <bruno@clisp.org>
55998
55999         * tests/test-poll.c: Use #if for native Windows, rather than testing
56000         __MSVCRT__.
56001
56002 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56003             Bruno Haible  <bruno@clisp.org>
56004
56005         * lib/glob.c: Don't include <pwd.h> on native Windows.
56006         (WINDOWS32): New macro.
56007         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56008
56009 2008-09-13  Bruno Haible  <bruno@clisp.org>
56010
56011         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56012         (ETIMEDOUT): Remove macro.
56013         (glthread_cond_timedwait_multithreaded): New declaration.
56014         (glthread_cond_timedwait): Use it.
56015         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56016         (glthread_cond_timedwait_multithreaded): New function.
56017
56018 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56019
56020         * modules/poll-tests: Do not check for io.h.
56021         * tests/test-poll.c: Check for __MSVCRT__ instead.
56022
56023 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56024
56025         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56026         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56027         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56028
56029 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56030
56031         * modules/poll-tests: New.
56032         * tests/test-poll.c: New.
56033
56034 2008-09-12  Eric Blake  <ebb9@byu.net>
56035
56036         frexp: test for NetBSD failure on -0.0
56037         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56038         not all, bugs from NetBSD 3.0 have been fixed.
56039         * doc/posix-functions/frexp.texi (frexp): Document bug.
56040         Reported by Thomas Klausner.
56041
56042         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56043         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56044         literal -0.0.
56045         Reported by Jonathan C. Patschke <jp@centtech.com>.
56046
56047 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56048
56049         * lib/glthread/cond.h: Use dummy implementation also if
56050         USE_WIN32_THREADS.
56051
56052 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56053
56054         * modules/fnmatch-posix (License): Change to LGPLv2+.
56055         * modules/fnmatch-gnu (License): Likewise.
56056
56057 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56058
56059         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56060
56061 2008-09-11  Jim Meyering  <meyering@redhat.com>
56062
56063         * users.txt: Add gtk-vnc.
56064
56065 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56066
56067         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56068         rotate amounts.
56069
56070         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56071         required for 16-bit and 8-bit rotates.
56072         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56073         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56074         UINT8_MAX instead of hard-coded constants.
56075         Suggested by Paul Eggert.
56076
56077 2008-09-07  Bruno Haible  <bruno@clisp.org>
56078
56079         * tests/test-striconveh.c (main): Check behaviour when converting from
56080         UTF-7.
56081
56082         Make striconveh work better with stateful encodings.
56083         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56084         that iconv does not increment the inptr when returning -1/EINVAL.
56085
56086 2008-09-07  Bruno Haible  <bruno@clisp.org>
56087
56088         * build-aux/config.rpath: Update according to libtool-2.2.6.
56089         * build-aux/config.libpath: Likewise.
56090
56091 2008-09-06  Bruno Haible  <bruno@clisp.org>
56092
56093         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56094         * lib/freadptr.c (freadptr): Likewise.
56095         * lib/freadseek.c (freadptrinc): Likewise.
56096         Reported by Simon Josefsson.
56097
56098 2008-09-06  Bruno Haible  <bruno@clisp.org>
56099
56100         * modules/freadptr (License): Change to LGPLv2+.
56101         * modules/freadseek (License): Likewise.
56102         Suggested by Eric Blake.
56103
56104         * modules/memchr2 (License): Change to LGPLv2+.
56105         Approved by Eric Blake.
56106
56107 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56108             Bruno Haible  <bruno@clisp.org>
56109
56110         Make gnulib-tool work with native 'sed' on AIX.
56111         * gnulib-tool (sed_noop): New variable.
56112         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56113         func_add_or_update, func_create_testdir): Use it to initialize sed
56114         script variables.
56115         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56116
56117 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56118             Bruno Haible  <bruno@clisp.org>
56119
56120         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56121         also works after #include directives.
56122
56123 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56124
56125         getdate.y: reject an out-of-range timezone value
56126         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56127         the range [-24...+24].  When specified with only one or two digits,
56128         * tests/test-getdate.c: Tests for the fix.
56129         * doc/getdate.texi: Document this change.
56130
56131 2008-09-03  Bruno Haible  <bruno@clisp.org>
56132
56133         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56134
56135 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56136
56137         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56138         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56139         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56140         Blake <ebb9@byu.net>.
56141
56142         * tests/test-bitrotate.c: Add more test vectors.
56143
56144 2008-09-02  Eric Blake  <ebb9@byu.net>
56145
56146         vasnprintf-posix: handle large precision via %.*d
56147         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56148         when handling it ourselves.
56149         * tests/test-vasnprintf-posix.c (test_function): Add test.
56150         * tests/test-snprintf-posix.h (test_function): Likewise.
56151         * tests/test-sprintf-posix.h (test_function): Likewise.
56152         * tests/test-vasprintf-posix.c (test_function): Likewise.
56153         Reported by Alain Guibert.
56154
56155 2008-09-01  Eric Blake  <ebb9@byu.net>
56156
56157         c-stack: make configure-time check more robust
56158         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56159         successful sigaction call.
56160         Reported by Tom G. Christensen.
56161
56162 2008-09-01  Bruno Haible  <bruno@clisp.org>
56163
56164         New module 'findprog-lgpl'.
56165         * modules/findprog-lgpl: New file.
56166         * lib/findprog-lgpl.c: New file.
56167         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56168         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56169         to decide whether to use strdup or xstrdup, concatenated_filename or
56170         xconcatenated_filename.
56171
56172 2008-09-01  Bruno Haible  <bruno@clisp.org>
56173
56174         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56175         'xconcat-filename' (GPL).
56176         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56177         (License): Change to LGPLv2+.
56178         * modules/xconcat-filename: New file.
56179         * lib/concat-filename.h (concatenated_filename): Change specification.
56180         (xconcatenated_filename): New declaration.
56181         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56182         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56183         memory situations.
56184         * lib/xconcat-filename.c: New file.
56185         * NEWS: Mention the change.
56186         * lib/findprog.c: Include concat-filename.h, not filename.h.
56187         (find_in_path): Use xconcatenated_filename instead of
56188         concatenated_filename.
56189         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56190         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56191         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56192         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56193         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56194         instead of concatenated_filename.
56195         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56196         (execute_java_class): Use xconcatenated_filename instead of
56197         concatenated_filename.
56198         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56199         * modules/javacomp (Depends-on): Likewise.
56200         * modules/javaexec (Depends-on): Likewise.
56201
56202 2008-09-01  Bruno Haible  <bruno@clisp.org>
56203
56204         Split module 'filename' into 'filename' and 'concat-filename'.
56205         * modules/filename: Keep only lib/filename.h.
56206         (License): Change to LGPLv2+.
56207         * modules/concat-filename: New file, extracted from modules/filename.
56208         * lib/filename.h (concatenated_filename): Remove declaration.
56209         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56210         * lib/concat-filename.c: Include concat-filename.h.
56211         * NEWS: Mention the change.
56212
56213 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56214
56215         * lib/bitrotate.h (rotl8, rotr8): Add.
56216
56217         * modules/bitrotate (configure.ac): Need
56218         AC_REQUIRE([AC_C_INLINE]).
56219         (Description): Mention stdint.h.  Reported by Bruno Haible
56220         <bruno@clisp.org>.
56221
56222         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56223         Paolo Bonzini <bonzini@gnu.org>.
56224
56225 2008-08-31  Bruno Haible  <bruno@clisp.org>
56226
56227         Assume Solaris specific bi-arch conventions on Solaris systems.
56228         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56229         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56230         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56231         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56232         like acl_libdirstem.
56233         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56234         acl_libdirstem.
56235         * NEWS: Mention the change.
56236         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56237
56238 2008-08-31  Jim Meyering  <meyering@redhat.com>
56239
56240         * lib/strftime.h: Add comments describing the two added arguments.
56241
56242         remove duplicate #include directives
56243         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56244         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56245
56246 2008-08-31  Bruno Haible  <bruno@clisp.org>
56247
56248         New module 'sigpipe-die'.
56249         * modules/sigpipe-die: New file.
56250         * lib/sigpipe-die.h: New file.
56251         * lib/sigpipe-die.c: New file.
56252         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56253
56254 2008-08-31  Bruno Haible  <bruno@clisp.org>
56255
56256         Don't override previously installed signal handlers.
56257         * lib/fatal-signal.c (saved_sigactions): New variable.
56258         (uninstall_handlers): Reset the signal to the saved handler, not
56259         to SIG_DFL (except when ignored).
56260         (install_handlers): Save the previous handlers.
56261
56262 2008-08-30  Bruno Haible  <bruno@clisp.org>
56263
56264         * gnulib-tool (func_reset_sigpipe): New function.
56265         (func_get_automake_snippet, func_modules_transitive_closure,
56266         func_import): Invoke it before a join command that reads from stdin,
56267         to avoid "echo: write error: Broken pipe" error messages on stderr.
56268         Reported by Sam Steingold <sds@gnu.org>.
56269
56270 2008-08-30  Bruno Haible  <bruno@clisp.org>
56271
56272         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56273         Code copied from m4/open.m4.
56274         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56275         access and the filename ends in a slash. Code copied from lib/open.c.
56276         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56277         * tests/test-fopen.c (main): Check against bug with trailing slash.
56278
56279 2008-08-29  Bruno Haible  <bruno@clisp.org>
56280
56281         Avoid some "gcc -pedantic" warnings.
56282         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56283         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56284         * lib/dirent.in.h: Likewise.
56285         * lib/fcntl.in.h: Likewise.
56286         * lib/float.in.h: Likewise.
56287         * lib/iconv.in.h: Likewise.
56288         * lib/inttypes.in.h: Likewise.
56289         * lib/locale.in.h: Likewise.
56290         * lib/math.in.h: Likewise.
56291         * lib/netinet_in.in.h: Likewise.
56292         * lib/search.in.h: Likewise.
56293         * lib/signal.in.h: Likewise.
56294         * lib/stdarg.in.h: Likewise.
56295         * lib/stdint.in.h: Likewise.
56296         * lib/stdio.in.h: Likewise.
56297         * lib/stdlib.in.h: Likewise.
56298         * lib/string.in.h: Likewise.
56299         * lib/strings.in.h: Likewise.
56300         * lib/sys_select.in.h: Likewise.
56301         * lib/sys_socket.in.h: Likewise.
56302         * lib/sys_stat.in.h: Likewise.
56303         * lib/sys_time.in.h: Likewise.
56304         * lib/sysexits.in.h: Likewise.
56305         * lib/time.in.h: Likewise.
56306         * lib/unistd.in.h: Likewise.
56307         * lib/wchar.in.h: Likewise.
56308         * lib/wctype.in.h: Likewise.
56309         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56310         * modules/fchdir (Makefile.am): Likewise.
56311         * modules/fcntl (Makefile.am): Likewise.
56312         * modules/float (Makefile.am): Likewise.
56313         * modules/iconv_open (Makefile.am): Likewise.
56314         * modules/inttypes (Makefile.am): Likewise.
56315         * modules/locale (Makefile.am): Likewise.
56316         * modules/math (Makefile.am): Likewise.
56317         * modules/netinet_in (Makefile.am): Likewise.
56318         * modules/search (Makefile.am): Likewise.
56319         * modules/signal (Makefile.am): Likewise.
56320         * modules/stdarg (Makefile.am): Likewise.
56321         * modules/stdint (Makefile.am): Likewise.
56322         * modules/stdio (Makefile.am): Likewise.
56323         * modules/stdlib (Makefile.am): Likewise.
56324         * modules/string (Makefile.am): Likewise.
56325         * modules/strings (Makefile.am): Likewise.
56326         * modules/sys_select (Makefile.am): Likewise.
56327         * modules/sys_socket (Makefile.am): Likewise.
56328         * modules/sys_stat (Makefile.am): Likewise.
56329         * modules/sys_time (Makefile.am): Likewise.
56330         * modules/sysexits (Makefile.am): Likewise.
56331         * modules/time (Makefile.am): Likewise.
56332         * modules/unistd (Makefile.am): Likewise.
56333         * modules/wchar (Makefile.am): Likewise.
56334         * modules/wctype (Makefile.am): Likewise.
56335         Reported by Reuben Thomas <rrt@sc3d.org>.
56336
56337 2008-08-29  Bruno Haible  <bruno@clisp.org>
56338
56339         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56340         any more.
56341
56342 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56343
56344         * MODULES.html.sh (Misc): Add bitrotate.
56345
56346         * modules/bitrotate: New file.
56347
56348         * lib/bitrotate.h: New file.
56349
56350         * modules/bitrotate-tests: New file.
56351
56352         * tests/test-bitrotate.c: New file.
56353
56354         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56355         on the bitrotate module.
56356
56357         * lib/arctwo.c: Use new bitrotate module.
56358
56359 2008-08-29  Jim Meyering  <meyering@redhat.com>
56360
56361         bootstrap: merge changes from coreutils
56362         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56363         of copied files.  Remove a kludge, now that this is fixed.
56364         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56365         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56366         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56367
56368 2008-08-29  Bruno Haible  <bruno@clisp.org>
56369
56370         * MODULES.html.sh: Remove --cvs-urls option.
56371
56372 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56373
56374         maint.mk: adjust to file name change
56375         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56376
56377 2008-08-28  Jim Meyering  <meyering@redhat.com>
56378
56379         * modules/getndelim2 (License): Relicense to LGPLv2+.
56380         Approved by Richard Stallman for the version of 1995, and by
56381         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56382
56383 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56384
56385         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56386         dummy if one is not available.  Do not touch them if
56387         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56388         (getc_maybe_unlocked): New.
56389         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56390
56391 2008-08-26  Eric Blake  <ebb9@byu.net>
56392
56393         doc/INSTALL: resync from autoconf
56394         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56395         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56396         moving...
56397         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56398         * INSTALL: Regenerate.
56399         * INSTALL.ISO: New file.
56400         * INSTALL.UTF-8: Likewise.
56401
56402 2008-08-26  Jim Meyering  <meyering@redhat.com>
56403
56404         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56405         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56406         these definitions conditional, so that they may be overridden, too.
56407
56408 2008-08-26  Bruno Haible  <bruno@clisp.org>
56409
56410         Generate INSTALL file variants with prettier quotes.
56411         * doc/Makefile (INSTALL_PRELUDE): New macro.
56412         (INSTALL): Use it.
56413         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56414
56415 2008-08-26  Bruno Haible  <bruno@clisp.org>
56416
56417         Run makeinfo in an English locale.
56418         * doc/Makefile (MAKEINFO): New variable.
56419
56420 2008-08-26  Bruno Haible  <bruno@clisp.org>
56421
56422         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56423         Suggested by Eric Blake.
56424
56425 2008-08-25  Bruno Haible  <bruno@clisp.org>
56426
56427         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56428
56429 2008-08-25  Eric Blake  <ebb9@byu.net>
56430
56431         c-stack: test that stack overflow can be caught
56432         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56433         that platform allows handling stack overflow; at least OS/2 EMX
56434         has sigaltstack, but crashes before transferring control to
56435         handler on stack overflow.
56436         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56437         check for HAVE_STACK_OVERFLOW_HANDLING.
56438         Reported by Elbert Pol.
56439
56440 2008-08-25  Bruno Haible  <bruno@clisp.org>
56441
56442         * doc/posix-functions/strftime.texi: Fix description of strftime
56443         module.
56444
56445 2008-08-24  Bruno Haible  <bruno@clisp.org>
56446
56447         * tests/uniwidth/test-uc_width2.c: New file.
56448         * tests/uniwidth/test-uc_width2.sh: New file.
56449         * modules/uniwidth/width-tests (Files): Add the new files.
56450         (TESTS): Add uniwidth/test-uc_width2.sh.
56451         (TESTS_ENVIRONMENT): New variable.
56452         (check_PROGRAMS): Add test-uc_width2.
56453         (test_uc_width2_SOURCES): New variable.
56454
56455         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56456         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56457         not 0x00AB.
56458         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56459
56460 2008-08-22  Eric Blake  <ebb9@byu.net>
56461
56462         test-lock, test-tls: mention why a test is skipped
56463         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56464         skipped.
56465         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56466
56467         count-one-bits: relax license
56468         * modules/count-one-bits (License): Relicense to LGPLv2+.
56469         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56470
56471 2008-08-22  Andreas Schwab  <schwab@suse.de>
56472
56473         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56474         Remove spurious space in assignment.
56475
56476 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56477
56478         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56479         Paul Eggert <eggert@CS.UCLA.EDU>.
56480
56481 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56482
56483         * modules/gettext: Add m4/threadlib.m4.
56484
56485 2008-08-19  Eric Blake  <ebb9@byu.net>
56486
56487         test-c-stack: fix compilation failure on FreeBSD 5.0
56488         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56489         headers before <sys/resource.h>.
56490         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56491         the bug.
56492         Reported by Nelson H. F. Beebe.
56493
56494         strverscmp: migrate from "strverscmp.h" to <string.h>
56495         * modules/string (Makefile.am): Add new hooks.
56496         * modules/strverscmp (Files): Remove strverscmp.h.
56497         (Depends-on): Add string.
56498         (configure.ac): Add indicator.
56499         (Include): Mention new header.
56500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56501         defaults.
56502         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56503         results.
56504         * lib/strverscmp.h: Delete.
56505         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56506         * tests/test-strverscmp.c (includes): Adjust client.
56507         * lib/check-version.c (includes): Likewise.
56508         * NEWS: Document the change.
56509
56510         strverscmp: add unit test
56511         * modules/strverscmp-tests: New file.
56512         * tests/test-strverscmp.c: Likewise.
56513
56514 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56515
56516         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56517         regarding Windows crypto stuff, from Mono.
56518
56519 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56520
56521         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56522         if present, for intel RND.  Return error on failures.
56523
56524 2008-08-18  Ben Pfaff  <blp@gnu.org>
56525
56526         gitlog-to-changelog: give better diagnostic for failed pipe-open
56527         * build-aux/gitlog-to-changelog: Improve error message: suggest
56528         that the version of Git may be too old.
56529
56530 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56531
56532         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56533         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56534
56535 2008-08-18  Bruno Haible  <bruno@clisp.org>
56536
56537         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56538         pthread_in_use().
56539
56540 2008-08-18  Bruno Haible  <bruno@clisp.org>
56541
56542         * lib/glthread/threadlib.c: Include <pthread.h>.
56543
56544 2008-08-18  Bruno Haible  <bruno@clisp.org>
56545
56546         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56547         glthread_recursive_lock_* macros.
56548         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56549         Fix syntax error.
56550
56551 2008-08-18  Bruno Haible  <bruno@clisp.org>
56552
56553         * lib/glthread/thread.c: Avoid forcing a context switch right after
56554         thread creation.
56555
56556 2008-08-17  Bruno Haible  <bruno@clisp.org>
56557
56558         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56559         * lib/glthread/thread.h: Provide Win32 specific implementation.
56560         * modules/thread (Files): Add lib/glthread/thread.c.
56561         (Depends-on): Add lock.
56562         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56563
56564 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56565
56566         New module 'yield'.
56567         * modules/yield: New file.
56568         * lib/glthread/yield.h: New file.
56569         * m4/yield.m4: New file.
56570         * MODULES.html.sh (Multithreading): Add yield.
56571
56572 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56573
56574         New module 'thread'.
56575         * modules/thread: New file.
56576         * lib/glthread/thread.h: New file.
56577         * m4/thread.m4: New file.
56578         * MODULES.html.sh (Multithreading): Add thread.
56579
56580 2008-08-17  Bruno Haible  <bruno@clisp.org>
56581
56582         * lib/glthread/lock.h: Include <stdlib.h> always.
56583         * lib/glthread/tls.h: Likewise.
56584         * lib/glthread/cond.h: Likewise.
56585
56586 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56587
56588         New module 'cond'.
56589         * modules/cond: New file.
56590         * lib/glthread/cond.h: New file.
56591         * lib/glthread/cond.c: New file.
56592         * m4/cond.m4: New file.
56593         * MODULES.html.sh (Multithreading): Add cond.
56594
56595 2008-08-16  Eric Blake  <ebb9@byu.net>
56596
56597         c-stack: fix regression on Irix 5.3 from 2008-06-21
56598         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56599         sa_sigaction...
56600         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56601         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56602         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56603         * modules/signal (Makefile.am): Use the value.
56604         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56605         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56606         * doc/posix-headers/signal.texi (signal.h): Document this
56607         portability issue.
56608         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56609         Reported by Tom G. Christensen.
56610
56611 2008-08-17  Bruno Haible  <bruno@clisp.org>
56612
56613         New module 'threadlib'.
56614         * modules/threadlib: New file.
56615         * lib/glthread/threadlib.c: New file, extracted from
56616         lib/glthread/lock.c.
56617         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56618         functions.
56619         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56620         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56621         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56622         macros.
56623         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56624         (gl_DISABLE_THREADS): Remove macro.
56625         * modules/lock (Files): Remove build-aux/config.rpath.
56626         (Depends-on): Remove havelib. Add threadlib.
56627         (configure.ac-early): Remove section.
56628         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56629         * modules/tls (Depends-on): Remove lock. Add threadlib.
56630         (Link): New section, copied from threadlib.
56631         * MODULES.html.sh (Multithreading): Add threadlib.
56632
56633 2008-08-14  Bruno Haible  <bruno@clisp.org>
56634
56635         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56636         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56637         glthread_rwlock_unlock, glthread_rwlock_destroy,
56638         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56639         glthread_recursive_lock_destroy): Define as macros always.
56640         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56641         glthread_lock_lock.
56642         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56643         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56644         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56645         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56646         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56647         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56648         (glthread_recursive_lock_lock_func): Renamed from
56649         glthread_recursive_lock_lock.
56650         (glthread_recursive_lock_unlock_func): Renamed from
56651         glthread_recursive_lock_unlock.
56652         (glthread_recursive_lock_destroy_func): Renamed from
56653         glthread_recursive_lock_destroy.
56654
56655 2008-08-14  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/glthread/lock.h: Renamed from lib/lock.h.
56658         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56659         * lib/glthread/tls.h: Renamed from lib/tls.h.
56660         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56661         * lib/fstrcmp.c: Update includes.
56662         * lib/strsignal.c: Update includes.
56663         * modules/lock (Files, Makefile.am): Update.
56664         (Include): Change to "glthread/lock.h".
56665         * modules/tls (Files, Makefile.am): Update.
56666         (Include): Change to "glthread/tls.h".
56667         * tests/test-lock.c: Update includes.
56668         * tests/test-tls.c: Update includes.
56669         * NEWS: Mention the renamed header files.
56670
56671 2008-08-11  Jim Meyering  <meyering@redhat.com>
56672
56673         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56674
56675 2008-08-11  Eric Blake  <ebb9@byu.net>
56676
56677         test-c-stack: avoid C99-ism
56678         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56679         before statement.
56680         Reported by Alain Guibert.
56681
56682 2008-08-10  Jim Meyering  <meyering@redhat.com>
56683
56684         ensure that return value of uinttostr et al are not ignored
56685         * lib/inttostr.h (__GNUC_PREREQ): Define.
56686         (__attribute_warn_unused_result__): Define.
56687         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56688
56689 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56690
56691         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56692         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56693
56694 2008-08-07  Jim Meyering  <meyering@redhat.com>
56695
56696         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56697
56698         * modules/mkstemp (License): Relicense under LGPLv2+.
56699         * modules/tempname (License): Likewise.
56700
56701 2008-08-06  Bruno Haible  <bruno@clisp.org>
56702
56703         * lib/poll.c (poll): Further micro-optimization.
56704
56705 2008-08-06  Jim Meyering  <meyering@redhat.com>
56706
56707         inet_pton.c: use locale-independent tolower
56708         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56709         (inet_pton6): Use c_tolower rather than tolower.
56710         * modules/inet_pton (Depends-on): Add c-ctype.
56711
56712 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56713
56714         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56715         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56716
56717 2008-08-06  Jim Meyering  <meyering@redhat.com>
56718
56719         * modules/inet_pton (License): Relicense under LGPLv2+.
56720
56721 2008-08-03  Bruno Haible  <bruno@clisp.org>
56722
56723         Additional non-aborting API for lock and tls.
56724         * lib/lock.h: Include <errno.h>.
56725         (glthread_lock_init): New macro/function.
56726         (gl_lock_init): Define as wrapper around glthread_lock_init.
56727         (glthread_lock_lock): New macro/function.
56728         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56729         (glthread_lock_unlock): New macro/function.
56730         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56731         (glthread_lock_destroy): New macro/function.
56732         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56733         (glthread_rwlock_init): New macro/function.
56734         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56735         (glthread_rwlock_rdlock): New macro/function.
56736         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56737         (glthread_rwlock_wrlock): New macro/function.
56738         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56739         (glthread_rwlock_unlock): New macro/function.
56740         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56741         (glthread_rwlock_destroy): New macro/function.
56742         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56743         (glthread_recursive_lock_init): New macro/function.
56744         (gl_recursive_lock_init): Define as wrapper around
56745         glthread_recursive_lock_init.
56746         (glthread_recursive_lock_lock): New macro/function.
56747         (gl_recursive_lock_lock): Define as wrapper around
56748         glthread_recursive_lock_lock.
56749         (glthread_recursive_lock_unlock): New macro/function.
56750         (gl_recursive_lock_unlock): Define as wrapper around
56751         glthread_recursive_lock_unlock.
56752         (glthread_recursive_lock_destroy): New macro/function.
56753         (gl_recursive_lock_destroy): Define as wrapper around
56754         glthread_recursive_lock_destroy.
56755         (glthread_once): New macro/function.
56756         (gl_once): Define as wrapper around glthread_once.
56757         Update function declarations.
56758         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56759         glthread_rwlock_init. Return error code.
56760         (glthread_rwlock_rdlock_multithreaded): Renamed from
56761         glthread_rwlock_rdlock. Return error code.
56762         (glthread_rwlock_wrlock_multithreaded): Renamed from
56763         glthread_rwlock_wrlock. Return error code.
56764         (glthread_rwlock_unlock_multithreaded): Renamed from
56765         glthread_rwlock_unlock. Return error code.
56766         (glthread_rwlock_destroy_multithreaded): Renamed from
56767         glthread_rwlock_destroy. Return error code.
56768         (glthread_recursive_lock_init_multithreaded): Renamed from
56769         glthread_recursive_lock_init. Return error code.
56770         (glthread_recursive_lock_lock_multithreaded): Renamed from
56771         glthread_recursive_lock_lock. Return error code.
56772         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56773         glthread_recursive_lock_unlock. Return error code.
56774         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56775         glthread_recursive_lock_destroy. Return error code.
56776         (glthread_once_call): Make static.
56777         (glthread_once_multithreaded): Renamed from glthread_once.
56778         * lib/tls.h: Include <errno.h>.
56779         (glthread_tls_key_init): New macro/function.
56780         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56781         (glthread_tls_set): New macro/function.
56782         (gl_tls_set): Define as wrapper around glthread_tls_set.
56783         (glthread_tls_key_destroy): New macro/function.
56784         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56785         Update function declarations.
56786         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56787         glthread_tls_get.
56788         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56789
56790 2008-08-04  Eric Blake  <ebb9@byu.net>
56791
56792         gnumakefile: use space, not TAB, outside of targets
56793         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56794
56795 2008-08-02  Jim Meyering  <meyering@redhat.com>
56796
56797         getdate.y: avoid locale-dependent date parsing failure
56798         In Turkish locales, getdate would fail to recognize keywords
56799         containing a lowercase "i".  The solution is not to rely on
56800         locale-sensitive case-conversion.
56801         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56802         (lookup_word): Use c_toupper in place of toupper.
56803         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56804         Reported by Vefa Bicakci <bicave@superonline.com> in
56805         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56806         * modules/getdate (Depends-on): Add c-ctype.
56807
56808 2008-08-02  Bruno Haible  <bruno@clisp.org>
56809
56810         * gnulib-tool (func_import): When updating or creating a .gitignore
56811         file, prepend each added line with a slash, and ignore leading slashes
56812         from the existing lines.
56813         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56814
56815 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56816
56817         Portability fix for GNU make 3.79.1.
56818         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56819         versions do not understand.
56820
56821 2008-08-01  Bruno Haible  <bruno@clisp.org>
56822
56823         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56824         * tests/test-isnanf.h (zero): New variable.
56825         (main): Avoid literal -0.0f.
56826         * tests/test-isnand.h (zero): New variable.
56827         (main): Avoid literal -0.0.
56828         * tests/test-isnanl.h (zero): New variable.
56829         (main): Avoid literal -0.0L.
56830         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56831         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56832         -0.0, -0.0L.
56833         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56834         (test_signbitd): Avoid literal -0.0.
56835         (test_signbitl): Avoid literal -0.0L.
56836         * tests/test-ceilf1.c (zero): New variable.
56837         (main): Avoid literal -0.0f.
56838         * tests/test-ceill.c (zero): New variable.
56839         (main): Avoid literal -0.0L.
56840         * tests/test-floorf1.c (zero): New variable.
56841         (main): Avoid literal -0.0f.
56842         * tests/test-floorl.c (zero): New variable.
56843         (main): Avoid literal -0.0L.
56844         * tests/test-roundf1.c (zero): New variable.
56845         (main): Avoid literal -0.0f.
56846         * tests/test-round1.c (zero): New variable.
56847         (main): Avoid literal -0.0.
56848         * tests/test-roundl.c (zero): New variable.
56849         (main): Avoid literal -0.0L.
56850         * tests/test-truncf1.c (zero): New variable.
56851         (main): Avoid literal -0.0f.
56852         * tests/test-trunc1.c (zero): New variable.
56853         (main): Avoid literal -0.0.
56854         * tests/test-truncl.c (zero): New variable.
56855         (main): Avoid literal -0.0L.
56856         * tests/test-frexp.c (zero): New variable.
56857         (main): Avoid literal -0.0.
56858         * tests/test-frexpl.c (zero): New variable.
56859         (main): Avoid literal -0.0L.
56860         * tests/test-ldexpl.c (zero): New variable.
56861         (main): Avoid literal -0.0L.
56862         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56863         (zerod, zerol): New variables.
56864         (test_function): Avoid literals -0.0, -0.0L.
56865         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56866         (zerod, zerol): New variables.
56867         (test_function): Avoid literals -0.0, -0.0L.
56868         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56869         (zerod, zerol): New variables.
56870         (test_function): Avoid literals -0.0, -0.0L.
56871         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56872         (zerod, zerol): New variables.
56873         (test_function): Avoid literals -0.0, -0.0L.
56874         * tests/test-strtod.c (zero): New variable.
56875         (main): Avoid literal -0.0.
56876         Reported by Jonathan C. Patschke <jp@centtech.com>.
56877
56878 2008-07-31  Jim Meyering  <meyering@redhat.com>
56879
56880         sha256.h: correct definition of SHA224_DIGEST_SIZE
56881         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56882         Reported by Paulie Pena IV <paulie4@gmail.com>.
56883         Define as 224 / 8, rather than as a literal.
56884         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56885         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56886         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56887
56888 2008-07-31  Bruno Haible  <bruno@clisp.org>
56889
56890         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56891         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56892         Reported by Jonathan Patschke <jp@centtech.com>.
56893
56894 2008-07-31  Bruno Haible  <bruno@clisp.org>
56895
56896         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56897         Reported by Paolo Bonzini <bonzini@gnu.org>.
56898
56899 2008-07-30  Eric Blake  <ebb9@byu.net>
56900
56901         test-strtod: allow compilation without -lm
56902         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56903         Reported by Dennis Clarke <blastwave@gmail.com>.
56904
56905 2008-07-28  Jim Meyering  <meyering@redhat.com>
56906
56907         bootstrap: work also when there are no .po files in po/
56908         * build-aux/bootstrap (update_po_files): Complete the change
56909         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56910
56911 2008-07-27  Jim Meyering  <meyering@redhat.com>
56912
56913         * users.txt: Add zile.
56914
56915 2008-07-26  Ben Pfaff  <blp@gnu.org>
56916
56917         Add missing dependencies on new m4/exponent[fdl].m4 files.
56918         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56919         * modules/isnand-nolibm: Add m4/exponentd.m4.
56920         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56921         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56922         m4/isnan[fdl].m4, because the macros actually used moved.
56923         Reported by Jim Meyering.
56924
56925 2008-07-14  Ben Pfaff  <blp@gnu.org>
56926
56927         Add isinf module.
56928         * lib/isinf.c: New file.
56929         * lib/math.in.h: Define isinf macro if we have decided to replace
56930         it.
56931         * m4/isinf.m4: New file.
56932         * m4/math_h.m4: Initialize and substitute variables for isinf
56933         module.
56934         * modules/isinf: New file.
56935         * modules/isinf-tests: New file.
56936         * modules/math: Add substitutions for new module.
56937         * tests/test-isinf.c: New file.
56938         * doc/posix-functions/isinf.texi: Mention new module.
56939         * MODULES.html.sh: Mention new module.
56940
56941 2008-07-14  Ben Pfaff  <blp@gnu.org>
56942
56943         Factor out some macros for use by additional modules.
56944         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56945         exponentf.m4.
56946         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56947         exponentd.m4.
56948         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56949         file exponentl.m4.
56950         * m4/exponentf.m4: New file.
56951         * m4/exponentd.m4: New file.
56952         * m4/exponentl.m4: New file.
56953         * modules/isnanf: Use new file m4/exponentf.m4.
56954         * modules/isnand: Use new file m4/exponentd.m4.
56955         * modules/isnanl: Use new file m4/exponentl.m4.
56956
56957 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56958
56959         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56960         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56961         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56962         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56963
56964         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56965         readlink on platforms without PATH_MAX.
56966
56967 2008-07-21  Eric Blake  <ebb9@byu.net>
56968
56969         Warn, not fail, on stale version.
56970         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56971
56972         Don't allow installation with stale devel version number.
56973         * top/GNUmakefile (_is-install-target): New macro.
56974         (_curr-ver): Forbid installation with stale version number.
56975
56976 2008-07-20  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56979         TESTS_ENVIRONMENT.
56980         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56981
56982 2008-07-20  Bruno Haible  <bruno@clisp.org>
56983
56984         * lib/c-stack.h (c_stack_action): Add documentation.
56985         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56986
56987 2008-07-20  Bruno Haible  <bruno@clisp.org>
56988
56989         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56990         * modules/readlink (License): Likewise.
56991
56992 2008-07-17  Eric Blake  <ebb9@byu.net>
56993
56994         * modules/c-stack (Link): Fix typo.
56995
56996         Make c-stack use libsigsegv, when available.
56997         * modules/c-stack (Depends-on): Add libsigsegv.
56998         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56999         needed.
57000         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57001         (segv_handler, overflow_handler, c_stack_action)
57002         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57003         implementation when libsigsegv is available, but only when using
57004         the library is necessary.
57005         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57006         comment, explaining why XSI check fails on Linux.
57007         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57008         * tests/test-c-stack2.sh: Tweak skip message.
57009         * NEWS: Document new link-time requirements.
57010
57011 2008-07-16  Eric Blake  <ebb9@byu.net>
57012
57013         c-stack: Expose false positives when not using libsigsegv.
57014         * modules/c-stack-tests (Files): Expand test.
57015         * tests/test-c-stack.c (main): Add means to conditionally trigger
57016         non-overflow SIGSEGV.
57017         * tests/test-c-stack2.sh: New file.
57018
57019 2008-07-14  Bruno Haible  <bruno@clisp.org>
57020
57021         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57022         Reported by Eric Blake.
57023
57024 2008-07-14  Sam Steingold  <sds@gnu.org>
57025             Bruno Haible  <bruno@clisp.org>
57026
57027         New module libsigsegv.
57028         * modules/libsigsegv: New file.
57029         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57030         modifications.
57031         * MODULES.html.sh (Signal handling): New section.
57032
57033 2008-07-14  Bruno Haible  <bruno@clisp.org>
57034
57035         * modules/unictype/ctype-* (Description): Add the word "function".
57036         Improves the resulting doc in MODULES.html.
57037
57038 2008-07-12  Ben Pfaff  <blp@gnu.org>
57039
57040         Add longlong module.
57041         * modules/longlong: New file.
57042
57043 2008-07-12  Bruno Haible  <bruno@clisp.org>
57044
57045         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57046         to empty.
57047
57048 2008-07-10  Ben Pfaff  <blp@gnu.org>
57049
57050         Add isnan module.
57051         * doc/posix-functions/isnan.texi: Mention new module.
57052         * lib/math.in.h: Define isnan macro if we have decided to replace
57053         it.
57054         * m4/isnan.m4: New file.
57055         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57056         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57057         also.
57058         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57059         redundancy.
57060         * m4/math_h.m4: Initialize and substitute variables for isnan
57061         module.
57062         * modules/isnan: New file.
57063         * modules/isnan-tests: New file.
57064         * modules/math: Add substitutions for new module.
57065         * tests/test-isnan.c: New file.
57066         * MODULES.html.sh: Mention new module.
57067
57068 2008-07-10  Ben Pfaff  <blp@gnu.org>
57069
57070         Add isnanf module.
57071         * lib/isnanf.m4: New file.
57072         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57073         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57074         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57075         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57076         * modules/isnanf: New file.
57077         * modules/isnanf-tests: New file.
57078         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57079         files.
57080         * tests/test-isnanf-nolibm.c: factored most of its contents into
57081         new file tests/test-isnanf.h.
57082         * tests/test-isnanf.h: New file.
57083         * tests/test-isnanf.c: New file.
57084         * MODULES.html.sh: Mention new module.
57085         * doc/glibc-functions/isnanf.texi: Mention new module.
57086
57087 2008-07-10  Ben Pfaff  <blp@gnu.org>
57088
57089         Add isnand module.
57090         * lib/isnand.h: New file.
57091         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57092         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57093         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57094         functionality also.
57095         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57096         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57097         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57098         * modules/isnand: New file.
57099         * modules/isnand-tests: New file.
57100         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57101         files.
57102         * tests/test-isnand-nolibm.c: factored most of its contents into
57103         new file tests/test-isnand.h.
57104         * tests/test-isnand.h: New file.
57105         * tests/test-isnand.c: New file.
57106         * MODULES.html.sh: Mention new module.
57107
57108 2008-07-10  Ben Pfaff  <blp@gnu.org>
57109
57110         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57111         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57112         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57113         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57114         * modules/isnanf-nolibm: Update references to renamed files.
57115         * modules/isnand-nolibm: Likewise.
57116         * modules/isnanf-nolibm-tests: Likewise.
57117         * modules/isnand-nolibm-tests: Likewise.
57118         * lib/frexp.c: Likewise.
57119         * lib/isfinite.c: Likewise.
57120         * lib/signbitd.c: Likewise.
57121         * lib/signbitf.c: Likewise.
57122         * lib/vasnprintf.c: Likewise.
57123         * tests/test-ceilf1.c: Likewise.
57124         * tests/test-ceilf2.c: Likewise.
57125         * tests/test-floorf1.c: Likewise.
57126         * tests/test-floorf2.c: Likewise.
57127         * tests/test-frexp.c: Likewise.
57128         * tests/test-round1.c: Likewise.
57129         * tests/test-round2.c: Likewise.
57130         * tests/test-roundf1.c: Likewise.
57131         * tests/test-strtod.c: Likewise.
57132         * tests/test-trunc1.c: Likewise.
57133         * tests/test-trunc2.c: Likewise.
57134         * tests/test-truncf1.c: Likewise.
57135         * tests/test-truncf2.c: Likewise.
57136         * NEWS: Mention the renamed header files.
57137
57138 2008-07-11  Jim Meyering  <meyering@redhat.com>
57139
57140         vc-list-files: make the last-resort awk code more portable
57141         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57142         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57143         does not support it.
57144
57145 2008-07-10  Eric Blake  <ebb9@byu.net>
57146
57147         Work with tar's bootstrap.
57148         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57149         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57150         an m4 comment.
57151
57152 2008-07-09  Jim Meyering  <meyering@redhat.com>
57153
57154         posix-shell.m4: fix typo that made this test malfunction
57155         * m4/posix-shell.m4: Remove capitalization in variable name.
57156
57157 2008-07-08  Bruno Haible  <bruno@clisp.org>
57158
57159         * m4/onceonly.m4: Update comments.
57160         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57161
57162 2008-07-04  Jim Meyering  <meyering@redhat.com>
57163
57164         * users.txt: Add vc-dwim.
57165         (bison, coreutils): Use the gitweb URL.
57166
57167 2008-07-03  Jim Meyering  <meyering@redhat.com>
57168
57169         * users.txt: Add libffcall.  From Sam Steingold.
57170
57171 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57172
57173         getdate.y: do not ignore TZ with relative day, month or year offset
57174         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57175         relative-date-handling, since otherwise, the latter would clobber the
57176         sole output (an updated Start value) of the tz-handling block.
57177         * tests/test-getdate.c: Tests for the fix
57178
57179 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57180
57181         Recognize 'foo_LIBRARIES += libgnu.a'.
57182         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57183         makefile snippet has already specified an installation location,
57184         also using '+='.
57185
57186 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57187
57188         getdate.y: factor out common actions
57189         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57190         Use them in place of open-coded actions.
57191
57192 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57193
57194         Add self-test for getdate module.
57195         * modules/getdate-tests: New file.
57196         * tests/test-getdate.c: New file.
57197
57198 2008-06-29  Bruno Haible  <bruno@clisp.org>
57199
57200         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57201         .gitignore.
57202         Reported by Sylvain Beucler <beuc@beuc.net>.
57203
57204 2008-06-29  Bruno Haible  <bruno@clisp.org>
57205
57206         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57207         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57208
57209 2008-06-29  Bruno Haible  <bruno@clisp.org>
57210
57211         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57212         EXTRA_DIST.
57213         Reported by Sylvain Beucler <beuc@beuc.net>.
57214
57215 2008-06-26  Jim Meyering  <meyering@redhat.com>
57216
57217         make several modules depend on the "open" module
57218         This provides slightly increased consistency when opening-for-write
57219         the name of a non-directory spelled with a trailing slash.
57220         * modules/chdir-safer: Likewise.
57221         * modules/chown: Likewise.
57222         * modules/clean-temp: Likewise.
57223         * modules/copy-file: Likewise.
57224         * modules/fchdir: Likewise.
57225         * modules/fcntl-safer: Likewise.
57226         * modules/pipe: Likewise.
57227         * modules/utime: Likewise.
57228         Prompted by Eric Blake and Bruno Haible.
57229
57230 2008-06-24  Andreas Schwab  <schwab@suse.de>
57231
57232         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57233         literals can be used as initializers for global variables.
57234
57235 2008-06-23  Eric Blake  <ebb9@byu.net>
57236
57237         Make gnulib-cache.m4 easier to diff.
57238         * gnulib-tool (func_import): Allow newlines when reading cached
57239         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57240
57241 2008-06-23  Bruno Haible  <bruno@clisp.org>
57242
57243         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57244         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57245         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57246         m4/signalblocking.m4.
57247         (gl_PREREQ_SIGACTION): Don't invoke it.
57248         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57249         gl_PREREQ_SIG_HANDLER_H.
57250         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57251         Don't check for sigaction here.
57252
57253 2008-06-23  Bruno Haible  <bruno@clisp.org>
57254
57255         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57256         (install_handlers): Don't set the SA_RESETHAND flag.
57257
57258 2008-06-23  Bruno Haible  <bruno@clisp.org>
57259
57260         * m4/sigaction.m4: Comment fixes.
57261         * lib/signal.in.h: Likewise.
57262
57263 2008-06-23  Eric Blake  <ebb9@byu.net>
57264
57265         Fix typo.
57266         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57267
57268         Avoid SA_ namespace.
57269         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57270         Reported by Ralf Wildenhues.
57271
57272         Avoid test failure due to SA_RESTORER.
57273         * tests/test-sigaction.c (SA_MASK): New macro.
57274         (main): Avoid failing due to extension flags being set.
57275         Reported by Jim Meyering.
57276
57277         Revert use of sig-handler.h in sigprocmask.c.
57278         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57279         it requires the existence of struct sigaction.
57280         * lib/sigprocmask.c (handler_t): Restore typedef.
57281         (rpl_signal, old_handlers): Use local type.
57282
57283 2008-06-22  Bruno Haible  <bruno@clisp.org>
57284
57285         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57286         conditionally.
57287         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57288
57289 2008-06-22  Bruno Haible  <bruno@clisp.org>
57290
57291         * doc/posix-functions/siginterrupt.texi: Move note.
57292
57293         * lib/signal.in.h (SA_RESTART): New macro.
57294         * lib/sigaction.c: Update comment.
57295
57296         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57297
57298         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57299         (gl_PREREQ_SIGPROCMASK): Invoke it.
57300         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57301
57302         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57303
57304         * lib/sigprocmask.c: Update a comment.
57305
57306 2008-06-21  Eric Blake  <ebb9@byu.net>
57307
57308         Use sigaction module rather than signal().
57309         * modules/c-stack (Depends-on): Add sigaction.
57310         * modules/fatal-signal (Depends-on): Likewise.
57311         * modules/nanosleep (Depends-on): Likewise.
57312         * modules/sigprocmask (Files): Add sig-handler.h.
57313         * modules/sigaction (Files): Likewise.
57314         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57315         Eggert.
57316         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57317         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57318         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57319         (init_fatal_signals): Likewise.
57320         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57321         (siginterrupt): Delete fallback.
57322         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57323         instead.
57324         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57325         siginterrupt.
57326
57327         New module sigaction, for mingw.
57328         * modules/sigaction: New module...
57329         * modules/sigaction-tests: ...and its test.
57330         * m4/sigaction.m4: New file.
57331         * lib/sigaction.c: Likewise.
57332         * tests/test-sigaction.c: Likewise.
57333         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57334         * modules/signal (Makefile.am): Likewise.
57335         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57336         needed.
57337         * doc/posix-headers/signal.texi (signal.h): Mention provided
57338         types.
57339         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57340         that sigaction is preferable.
57341         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57342         module.
57343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57344         sigaction.
57345
57346         Improve robustness of sigprocmask by overriding signal.
57347         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57348         is in use.
57349         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57350         (SIGKILL, SIGSTOP): Provide fallbacks.
57351         (rpl_signal): Implement.
57352         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57353         signal can be called inside handlers.
57354
57355         Fix nanosleep module on mingw.
57356         * modules/nanosleep (Depends-on): Add sys_select.
57357         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57358
57359         Fix licensing of sigprocmask.
57360         * modules/raise (License): Relicense as LGPL.
57361
57362 2008-06-21  Bruno Haible  <bruno@clisp.org>
57363
57364         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57365         result if it contains question marks.
57366         Reported by Michael Geng <linux@michaelgeng.de>.
57367
57368 2008-06-19  Bruno Haible  <bruno@clisp.org>
57369
57370         Fix CVS-ism.
57371         * doc/gnulib.texi: Include updated-stamp.texi.
57372         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57373         (updated-stamp.texi): New rule.
57374         (gnulib.info): Depend on it.
57375         * doc/.gitignore: Add updated-stamp.texi.
57376         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57377
57378 2008-06-19  Bruno Haible  <bruno@clisp.org>
57379
57380         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57381         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57382
57383 2008-06-19  Eric Blake  <ebb9@byu.net>
57384
57385         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57386         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57387         Reported by Stepan Kasal.
57388
57389 2008-06-18  Bruno Haible  <bruno@clisp.org>
57390
57391         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57392         Reported by Eric Blake.
57393
57394 2008-06-18  Eric Blake  <ebb9@byu.net>
57395
57396         Work around cygwin 1.5.25 strsignal bug.
57397         * tests/test-strsignal.c: Allow for const char *.
57398         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57399
57400 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57401
57402         * users.txt: Update URL to article and add author/date
57403         information.
57404
57405 2008-06-17  Bruno Haible  <bruno@clisp.org>
57406
57407         New macro gl_DISABLE_THREADS.
57408         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57409         if the user did not pass --enable-threads or --disable-threads option.
57410         (gl_DISABLE_THREADS): New macro.
57411         Reported by Eric Blake <ebb9@byu.net>.
57412
57413 2008-06-17  Bruno Haible  <bruno@clisp.org>
57414
57415         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57416         when the macro ignores it.
57417         Based on a patch by Eric Blake <ebb9@byu.net>.
57418
57419 2008-06-17  Bruno Haible  <bruno@clisp.org>
57420
57421         * modules/tls (License): Change to LGPLv2+.
57422         Reported by Eric Blake.
57423
57424 2008-06-17  Eric Blake  <ebb9@byu.net>
57425
57426         Simplify c-stack prerequisites.
57427         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57428         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57429         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57430         check.
57431         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57432         <sys/resource.h>.
57433
57434         Move c-stack test into testsuite.
57435         * modules/c-stack-tests: New file.
57436         * lib/c-stack.c [DEBUG]: Move test program...
57437         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57438         fail test if sigaltstack is lacking.
57439         * tests/test-c-stack.sh: New driver file.
57440
57441 2008-06-16  Eric Blake  <ebb9@byu.net>
57442
57443         Use raise module consistently.
57444         * modules/fatal-signal (Depends-on): Add raise.
57445         * modules/sigprocmask (Depends-on): Likewise.
57446         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57447         * lib/sigprocmask.c (sigprocmask): Likewise.
57448         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57449         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57450
57451         Fix compliance bug in sigpending.
57452         * lib/sigprocmask.c (sigpending): Return pending array via
57453         parameter, not return value.
57454
57455 2008-06-14  Eric Blake  <ebb9@byu.net>
57456
57457         Improve obstack-printf test code.
57458         * tests/test-obstack-printf.c (test_function): Fix comment, and
57459         simplify usage of obstack_* in macros.  Add a test for coverage.
57460         Reported by Bruno Haible.
57461
57462 2008-06-14  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57465         array size as a constant, not as a const variable.
57466         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57467         AC_USE_SYSTEM_EXTENSIONS.
57468         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57469         Test whether the obstack_printf function actually exists.
57470         * modules/obstack-printf (Depends-on): Add extensions.
57471         (Include): Remove obstack.h.
57472         * modules/obstack-printf-posix (Depends-on): Add extensions.
57473         (Include): Remove obstack.h.
57474
57475 2008-06-13  Eric Blake  <ebb9@byu.net>
57476
57477         Add obstack-printf and obstack-printf-posix modules.
57478         * modules/obstack-printf: New file.
57479         * modules/obstack-printf-posix: Likewise.
57480         * MODULES.html.sh (Misc): Mention them.
57481         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57482         Likewise.
57483         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57484         Likewise.
57485         * modules/stdio (Makefile.am): Accomodate new modules.
57486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57487         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57488         Declare.
57489         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57490         functions.
57491         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57492         (gl_REPLACE_OBSTACK_PRINTF): New macros
57493         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57494         * tests/test-obstack-printf.c: New file.
57495         * modules/obstack-printf-tests: Likewise.
57496         * modules/obstack-printf-posix-tests: Likewise.
57497
57498 2008-06-11  Bruno Haible  <bruno@clisp.org>
57499
57500         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57501         * lib/open.c: Include errno.h.
57502         (open): Fail when attempting to write to a file that has a trailing
57503         slash.
57504         * tests/test-open.c (main): Test against trailing slash bug.
57505         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57506
57507 2008-06-10  Bruno Haible  <bruno@clisp.org>
57508
57509         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57510         for $? to work inside the trap command, with various /bin/sh-s.
57511         * tests/test-vc-list-files-cvs.sh: Likewise.
57512
57513 2008-06-10  Bruno Haible  <bruno@clisp.org>
57514
57515         * lib/acl-internal.h: Don't include gettext.h here.
57516         * lib/set-mode-acl.c: Include gettext.h here.
57517         * lib/copy-acl.c: Likewise.
57518
57519 2008-06-10  Bruno Haible  <bruno@clisp.org>
57520
57521         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57522         * lib/wait-process.c (wait_subprocess): Likewise.
57523         * lib/execute.h (execute): Add termsigp argument.
57524         * lib/execute.c (execute): Likewise.
57525         * lib/csharpcomp.c (compile_csharp_using_pnet,
57526         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57527         * lib/csharpexec.c (execute_csharp_using_pnet,
57528         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57529         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57530         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57531         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57532         is_jikes_present): Update.
57533         * lib/javaexec.c (execute_java_class): Update.
57534         * lib/javaversion.c (execute_and_read_line): Update.
57535         * NEWS: Document the changes.
57536         Reported by Eric Blake.
57537
57538 2008-06-10  Eric Blake  <ebb9@byu.net>
57539
57540         Add missing include.
57541         * tests/test-strstr.c (includes): Add <signal.h>.
57542         * tests/test-strcasestr.c (includes): Likewise.
57543         * tests/test-memmem.c (includes): Likewise.
57544
57545 2008-06-10  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/wait-process.c (wait_subprocess): Add an assertion.
57548
57549 2008-06-10  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57552
57553 2008-06-10  Bruno Haible  <bruno@clisp.org>
57554
57555         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57556         using alarm().
57557         * tests/test-strcasestr.c (main): Likewise.
57558         * tests/test-strstr.c (main): Likewise.
57559
57560 2008-06-09  Bruno Haible  <bruno@clisp.org>
57561
57562         Work around the Solaris 10 ACE ACLs ABI change.
57563         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57564         declare if ACL_NO_TRIVIAL is present.
57565         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57566         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57567         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57568         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57569         define if ACL_NO_TRIVIAL is present.
57570         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57571         and use the current ABI.
57572         (file_has_acl): Use same #if condition as elsewhere.
57573         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57574         in use, and use the current ABI.
57575         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57576         Reported by Jim Meyering.
57577
57578 2008-06-09  Eric Blake  <ebb9@byu.net>
57579
57580         Work around environments that (stupidly) ignore SIGALRM.
57581         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57582         before using alarm().
57583         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57584         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57585         Reported by Ian Beckwith <ianb@erislabs.net>.
57586
57587         Produce autobuild blurb earlier in log.
57588         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57589
57590 2008-06-09  Jim Meyering  <meyering@redhat.com>
57591         and OndÅ™ej Vašík  <ovasik@redhat.com>
57592
57593         utimens.c: correct kernel bug work-around
57594         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57595         failure, not success, and the kernel bug we're trying to work
57596         around affects not just the utimensat call, but also the fallback
57597         futimens call.
57598         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57599         not success.
57600         [HAVE_FUTIMENS]: Use the same work-around, here.
57601
57602 2008-06-09  Jim Meyering  <meyering@redhat.com>
57603
57604         add more guards around definition of ACE_-related code
57605         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57606         ALLOW and ACE_OWNER are also defined.
57607
57608 2008-06-08  Bruno Haible  <bruno@clisp.org>
57609
57610         * lib/acl-internal.h: Add me as co-author.
57611         * lib/file-has-acl.c: Likewise.
57612         * lib/set-mode-acl.c: Likewise.
57613         * lib/copy-acl.c: Likewise.
57614
57615 2008-06-08  Bruno Haible  <bruno@clisp.org>
57616
57617         Add support for AIX ACLs.
57618         * lib/acl-internal.h (acl_nontrivial): New declaration.
57619         * lib/file-has-acl.c (acl_nontrivial): New function.
57620         (file_has_acl): Add implementation using AIX 4 ACL API.
57621         * lib/set-mode-acl.c (qset_acl): Likewise.
57622         * lib/copy-acl.c (qcopy_acl): Likewise.
57623
57624 2008-06-08  Bruno Haible  <bruno@clisp.org>
57625
57626         Add support for HP-UX ACLs.
57627         * lib/acl-internal.h (acl_nontrivial): New declaration.
57628         * lib/file-has-acl.c (acl_nontrivial): New function.
57629         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57630         * lib/set-mode-acl.c (qset_acl): Likewise.
57631         * lib/copy-acl.c (qcopy_acl): Likewise.
57632
57633 2008-06-08  Bruno Haible  <bruno@clisp.org>
57634
57635         Add support for Cygwin ACLs.
57636         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57637         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57638         the chmod_or_fchmod call.
57639         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57640
57641 2008-06-08  Bruno Haible  <bruno@clisp.org>
57642
57643         Fix bug with setuid modes in Solaris 10+ code.
57644         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57645         succeeded, when the mode contains some special bits.
57646
57647 2008-06-08  Bruno Haible  <bruno@clisp.org>
57648
57649         Add support for Solaris 7..10 ACLs.
57650         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57651         declarations.
57652         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57653         functions.
57654         (file_has_acl): Add implementation using Solaris 7..10 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         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57661         declaration.
57662         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57663         (acl_access_nontrivial): Remove MacOS X case.
57664         (file_has_acl): Use acl_extended_nontrivial.
57665         * lib/copy-acl.c (qcopy_acl): Likewise.
57666
57667 2008-06-08  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57670
57671 2008-06-08  Jim Meyering  <meyering@redhat.com>
57672
57673         * modules/acl (Maintainer): Add Bruno Haible.
57674
57675 2008-06-07  Bruno Haible  <bruno@clisp.org>
57676
57677         Improve support for Tru64 ACLs.
57678         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57679         ACL on OSF/1.
57680
57681 2008-06-07  Bruno Haible  <bruno@clisp.org>
57682
57683         Add support for MacOS X ACLs.
57684         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57685         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57686         * lib/set-mode-acl.c (qset_acl): Likewise.
57687         * lib/copy-acl.c (qcopy_acl): Likewise.
57688
57689 2008-06-07  Bruno Haible  <bruno@clisp.org>
57690
57691         Fix memory leak introduced on 2008-05-22.
57692         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57693         use.
57694
57695 2008-06-07  Bruno Haible  <bruno@clisp.org>
57696
57697         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57698         to construct an empty ACL.
57699
57700 2008-06-07  Bruno Haible  <bruno@clisp.org>
57701
57702         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57703         precisely.
57704         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57705
57706 2008-06-07  Bruno Haible  <bruno@clisp.org>
57707
57708         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57709         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57710
57711 2008-06-07  Bruno Haible  <bruno@clisp.org>
57712
57713         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57714         regardless of POSIX.
57715         * doc/posix-functions/_longjmp.texi: Likewise.
57716         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57717         SystemV platform in this case.
57718
57719 2008-06-06  Eric Blake  <ebb9@byu.net>
57720
57721         Document abort() bugs.
57722         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57723
57724         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57725         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57726         sigsetjmp.
57727         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57728         siglongjmp, but only as a macro.
57729         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57730         is obsolete.
57731         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57732
57733         Tweak documentation to cover cygwin argz bugs.
57734         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57735         argz bug fix; no code change needed since no cygwin releases
57736         occurred between the last fix and the bug being tested.
57737         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57738         module and recently fixed cygwin bugs.
57739         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57740         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57741         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57742         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57743         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57744         Likewise.
57745         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57746         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57747         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57748         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57749         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57750         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57751         Likewise.
57752
57753         Avoid gcc warning on cygwin.
57754         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57755         !ACL_NO_TRIVIAL]: Avoid unused variable.
57756
57757 2008-06-05  Eric Blake  <ebb9@byu.net>
57758
57759         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57760         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57761         git-version-gen fails to come up with a version.
57762         Reported by Simon Josefsson.
57763
57764 2008-06-05  Jim Meyering  <meyering@redhat.com>
57765             Paul Eggert  <eggert@cs.ucla.edu>
57766
57767         utimens.c: work around a probable Linux kernel bug
57768         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57769         appears to be a kernel bug that causes utimensat to return 280
57770         instead of 0, indicating success.
57771
57772 2008-06-04  Bruno Haible  <bruno@clisp.org>
57773
57774         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57775         2008-06-01 commit.
57776
57777 2008-06-04  Bruno Haible  <bruno@clisp.org>
57778
57779         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57780         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57781         (file_has_acl): Use it. Save errno afterwards.
57782         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57783
57784 2008-06-03  Bruno Haible  <bruno@clisp.org>
57785
57786         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57787         draft code. Simplify #ifs.
57788         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57789         Put Solaris code after POSIX-draft code. Fix comments regarding
57790         Solaris 10, HP-UX. Mention Cygwin.
57791         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57792
57793 2008-06-03  Eric Blake  <ebb9@byu.net>
57794
57795         Provide fallback for older kernels.
57796         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57797         Provide runtime fallback if kernel lacks support.
57798         Reported by Mike Frysinger.
57799
57800 2008-06-02  Bruno Haible  <bruno@clisp.org>
57801
57802         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57803         it exists.
57804
57805 2008-06-02  Bruno Haible  <bruno@clisp.org>
57806
57807         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57808         * lib/copy-acl.c (qcopy_acl): Update comment.
57809
57810 2008-06-02  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57813         like ACL APIs.
57814
57815 2008-06-02  Bruno Haible  <bruno@clisp.org>
57816
57817         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57818         * tests/test-set-mode-acl.sh: Likewise.
57819         * tests/test-copy-acl.sh: Likewise.
57820         * tests/test-copy-file.sh: Likewise.
57821
57822 2008-06-02  Bruno Haible  <bruno@clisp.org>
57823
57824         * tests/test-file-has-acl.sh: Remove unused code.
57825
57826 2008-06-01  Bruno Haible  <bruno@clisp.org>
57827
57828         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57829         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57830         messages.
57831         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57832
57833 2008-06-01  Bruno Haible  <bruno@clisp.org>
57834
57835         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57836         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57837         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57838         APIs.
57839         * modules/acl-tests (configure.ac): Remove tests now contained in
57840         m4/acl.m4.
57841
57842 2008-06-02  Jim Meyering  <meyering@redhat.com>
57843
57844         announce-gen: use a better key-server host name
57845         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57846         it may be more consistently reliable.  Suggested by Werner Koch
57847         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57848
57849 2008-06-01  Bruno Haible  <bruno@clisp.org>
57850
57851         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57852         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57853
57854 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57855
57856         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57857
57858 2008-06-01  Bruno Haible  <bruno@clisp.org>
57859
57860         New ACL tests.
57861         * tests/test-file-has-acl.sh: New file.
57862         * tests/test-file-has-acl.c: New file.
57863         * tests/test-set-mode-acl.sh: New file.
57864         * tests/test-set-mode-acl.c: New file.
57865         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57866         * tests/test-copy-acl.c: New file.
57867         * modules/acl-tests: New file, based on modules/copy-file-tests.
57868         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57869         (Depends-on): Add acl-tests.
57870         (configure.ac): Remove checks.
57871         (Makefile.am): Don't create test-sameacls program here any more.
57872
57873 2008-06-01  Bruno Haible  <bruno@clisp.org>
57874
57875         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57876         * tests/test-sameacls.c: Include progname.h.
57877         (main): Invoke set_program_name. Portability fixes for MacOS X,
57878         Solaris, HP-UX.
57879
57880 2008-06-01  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57883         function.
57884         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57885
57886 2008-06-01  Bruno Haible  <bruno@clisp.org>
57887
57888         * modules/rpmatch (Depends-on): Add strdup.
57889
57890 2008-06-01  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/pipe.c: Include unistd-safer.h.
57893         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57894         * modules/pipe (Depends-on): Add unistd-safer.
57895
57896 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57897
57898         * modules/autobuild (configure.ac): Call AB_INIT.
57899
57900 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57901
57902         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57903         Suggested by Bruno Haible <bruno@clisp.org>.
57904
57905 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57906
57907         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57908         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57909         <bruno@clisp.org>.
57910
57911 2008-05-29  Eric Blake  <ebb9@byu.net>
57912
57913         Prefer new POSIX 200x interfaces over futimesat.
57914         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57915         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57916         when available.
57917         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57918
57919 2008-05-28  Bruno Haible  <bruno@clisp.org>
57920
57921         * modules/stpcpy (License): Change to LGPLv2+.
57922         Requested by David Lutterkort <dlutter@redhat.com>.
57923
57924 2008-05-27  Bruno Haible  <bruno@clisp.org>
57925
57926         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57927         current mingw.
57928         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57929
57930 2008-05-27  Bruno Haible  <bruno@clisp.org>
57931
57932         * modules/iconv_open (Link): New section, from module 'iconv'.
57933         * modules/striconv (Link): Likewise.
57934         * modules/striconveh (Link): Likewise.
57935         * modules/xstriconv (Link): Likewise.
57936         * modules/unicodeio (Link): Likewise.
57937         * modules/propername (Link): Likewise.
57938         Reported by Jim Meyering.
57939
57940 2008-05-26  Jim Meyering  <meyering@redhat.com>
57941
57942         sha256: do not artificially restrict buffer length to be < 2^32
57943         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57944         uint32_t to size_t.
57945         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57946         to match.
57947
57948         avoid unaligned access errors, e.g., on sparc
57949         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57950         direct access through a possibly-unaligned uint64* pointer.
57951         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57952         direct access through a possibly-unaligned uint32* pointer.
57953         Prompted by this patch from Tom "spot" Callaway:
57954         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57955
57956         sha512.c: fix typo in comment
57957         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57958
57959 2008-05-25  Bruno Haible  <bruno@clisp.org>
57960
57961         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57962         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57963         (Makefile.am): Update lib_SOURCES.
57964
57965 2008-05-25  Bruno Haible  <bruno@clisp.org>
57966
57967         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57968
57969 2008-05-25  Jim Meyering  <meyering@redhat.com>
57970
57971         useless-if-before-free: freed expr may have white-space differences
57972         * build-aux/useless-if-before-free: Recognize cases in which the
57973         freed expression differs from the tested one in embedded white
57974         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57975         $1 was used, so we can't make any regexp shy.  Improved tests now
57976         detect this.
57977
57978         useless-if-before-free: accept white space in the expression.
57979         * build-aux/useless-if-before-free: For now, any white space
57980         in the expression must be identical in the free argument.
57981
57982         useless-if-before-free: efficiency tweak
57983         * build-aux/useless-if-before-free: Make the expression-matching
57984         regexp "shy".
57985         Make the *outer* regexp shy, not the expr-matching one.
57986
57987         update code-in-comment to accept cast of free arg
57988         * build-aux/useless-if-before-free: Update regexp.
57989
57990 2008-05-25  Bruno Haible  <bruno@clisp.org>
57991
57992         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57993         * modules/copy-file-tests (Files, Makefile.am): Update.
57994         * tests/test-copy-file.c (func_test_copy): Update.
57995
57996 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57997
57998         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57999
58000 2008-05-23  Bruno Haible  <bruno@clisp.org>
58001
58002         Improve support for ACLs on OSF/1.
58003         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58004         Remove fallback for unknown flavors of ACLs.
58005
58006 2008-05-22  Bruno Haible  <bruno@clisp.org>
58007
58008         Add support for ACLs on OSF/1.
58009         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58010         replacements.
58011         (acl_free_text): New macro fallback.
58012         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58013         acl_free.
58014         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58015         acl_free_text function. Require AC_C_INLINE.
58016
58017 2008-05-22  Bruno Haible  <bruno@clisp.org>
58018
58019         Make copy_acl work on MacOS X 10.5.
58020         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58021         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58022         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58023         If MODE_INSIDE_ACL, don't assume that every system has the same text
58024         representation for ACLs as FreeBSD.
58025         * lib/copy-acl.c (copy_acl): Add support for platforms with
58026         !MODE_INSIDE_ACL.
58027         * lib/file-has-acl.c (file_has_acl): Likewise.
58028         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58029         FreeBSD, MacOS X, or IRIX, respectively.
58030
58031 2008-05-22  Bruno Haible  <bruno@clisp.org>
58032
58033         * lib/acl.h: Don't include <sys/acl.h>.
58034         (GETACLCNT): Move fallback to lib/acl-internal.h.
58035         * lib/acl-internal.h: Include <sys/acl.h> here.
58036         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58037
58038 2008-05-22  Bruno Haible  <bruno@clisp.org>
58039
58040         Split off copy_acl function to separate file.
58041         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58042         * lib/acl.c (copy_acl): Moved function to separate file.
58043         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58044         * modules/acl (Files): Add lib/copy-acl.c.
58045         (Makefiles.am): Augment lib_SOURCES.
58046
58047 2008-05-22  Bruno Haible  <bruno@clisp.org>
58048
58049         * modules/copy-file-tests: New file.
58050         * tests/test-copy-file.sh: New file.
58051         * tests/test-copy-file.c: New file.
58052         * tests/test-copy-file-sameacls.c: New file.
58053
58054 2008-05-22  Eric Blake  <ebb9@byu.net>
58055
58056         Avoid gcc warning.
58057         * tests/test-memcmp.c (main): Pass NULL indirectly.
58058
58059 2008-05-21  Bruno Haible  <bruno@clisp.org>
58060
58061         Add reference doc about ACLs.
58062         * doc/acl-resources.txt: New file.
58063         * doc/acl-cygwin.txt: New file.
58064
58065 2008-05-21  Bruno Haible  <bruno@clisp.org>
58066
58067         Avoid one more warning from gcc.
58068         * lib/vasnprintf.c (IF_LINT): Update comments.
58069         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58070
58071 2008-05-21  Jim Meyering  <meyering@redhat.com>
58072
58073         avoid a warning from gcc
58074         * lib/vasnprintf.c (IF_LINT): Define.
58075         (scale10_round_decimal_long_double):
58076         Use it to avoid a "may be used uninitialized" warning.
58077         (scale10_round_decimal_double): Likewise.
58078
58079 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58080
58081         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58082         declared.
58083
58084 2008-05-20  Bruno Haible  <bruno@clisp.org>
58085
58086         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58087         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58088
58089 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58090
58091         * modules/memcmp-tests: New file.
58092         * tests/test-memcmp.c: New file.
58093
58094 2008-05-19  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/propername (Notice, configure.ac): Put quoted "..." into
58097         --keyword option.
58098         * lib/propername.h: Update comments accordingly.
58099         Reported by Eric Blake.
58100
58101 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58102
58103         * modules/getpass-gnu (Depends-on): Add fseeko.
58104
58105 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58106
58107         * modules/base64-tests: New file.
58108
58109 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58110
58111         * lib/base64.c (base64_decode_ctx): If a decode context structure
58112         was passed in use it to ignore newlines.  If a context structure
58113         was _not_ passed in, continue to treat newlines as garbage (this
58114         is the historical behavior).  Formerly base64_decode.
58115         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58116         takes a decode context structure.
58117         * lib/base64.h (base64_decode): Macro for four-argument calls.
58118         (base64_decode_alloc): Likewise.
58119         * lib/base64.c (base64_decode_ctx): If a decode context structure
58120         was passed in use it to ignore newlines.  If a context structure
58121         was _not_ passed in, continue to treat newlines as garbage (this
58122         is the historical behavior).  Formerly base64_decode.
58123         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58124         takes a decode context structure.
58125         * lib/base64.h (base64_decode): Macro for four-argument calls.
58126         (base64_decode_alloc): Likewise.
58127
58128 2008-05-19  Jim Meyering  <meyering@redhat.com>
58129
58130         avoid a warning from gcc
58131         * lib/trim.c (IF_LINT): Define.
58132         (trim2): Use it to avoid a "may be used uninitialized" warning.
58133
58134         Fix doc typo.
58135         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58136
58137 2008-05-19  Bruno Haible  <bruno@clisp.org>
58138
58139         * doc/glibc-functions/getpass.texi: Document limits of other
58140         implementations.
58141
58142 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58143             Bruno Haible <bruno@clisp.org>
58144
58145         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58146
58147 2008-05-18  Bruno Haible  <bruno@clisp.org>
58148
58149         * modules/propername: New file, from GNU gettext.
58150         * lib/propername.h: New file, from GNU gettext.
58151         * lib/propername.c: New file, from GNU gettext.
58152         * MODULES.html.sh (Internationalization functions): Add propername.
58153
58154 2008-05-16  Jim Meyering  <meyering@redhat.com>
58155             Bruno Haible  <bruno@clisp.org>
58156
58157         Avoid some warnings from "gcc -Wshadow".
58158         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58159
58160 2008-05-15  Eric Blake  <ebb9@byu.net>
58161
58162         Extend previous patch to cygwin 1.7.0.
58163         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58164         fast implementation in cygwin >= 1.7.0.
58165         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58167
58168 2008-05-15  Bruno Haible  <bruno@clisp.org>
58169
58170         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58171         implementation in glibc >= 2.9.
58172         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58174
58175 2008-05-15  Bruno Haible  <bruno@clisp.org>
58176
58177         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58178         (Unicode string functions): Add unilbrk/*.
58179         Reported by Karl Berry.
58180
58181 2008-05-15  Eric Blake  <ebb9@byu.net>
58182
58183         Fix violation of <stdbool.h> replacement in regex.
58184         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58185         * lib/regexec.c (re_search_internal): Likewise.
58186         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58187
58188 2008-05-15  Jim Meyering  <meyering@redhat.com>
58189
58190         avoid distracting test output when git or cvs is not found
58191         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58192         * tests/test-vc-list-files-git.sh: Likewise.
58193
58194 2008-05-15  Eric Blake  <ebb9@byu.net>
58195
58196         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58197         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58198         glibc version.
58199         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58200         * doc/posix-functions/strstr.texi (strstr): Likewise.
58201         * lib/str-two-way.h (MAX): Sychronize with glibc.
58202
58203 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58204
58205         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58206         opr.ctx_type.
58207         (calc_first): Initialize constraint field.
58208         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58209         Fix grammar.
58210         (duplicate_node): Merge constraint field for all node types.
58211         (calc_eclosure_iter): Look at constraint field for all node types.
58212         * lib/regex_internal.c (create_cd_newstate): Don't look at
58213         opr.ctx_type.
58214
58215 2008-05-14  Bruno Haible  <bruno@clisp.org>
58216
58217         Help GCC to do better code generation.
58218         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58219         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58220         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58221         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58222         Declare with attribute 'malloc' if supported.
58223
58224 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58225
58226         use "echo STR|wc -c" rather than unportable "expr length STR"
58227         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58228         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58229
58230 2008-05-14  Jim Meyering  <meyering@redhat.com>
58231
58232         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58233         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58234         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58235         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58236         via Collin Lasse.
58237
58238 2008-05-14  Eric Blake  <ebb9@byu.net>
58239
58240         Avoid quadratic growth in gl_LIBSOURCES.
58241         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58242         Suggested by Bruno Haible.
58243
58244         Test xmemdup0.
58245         * modules/xmemdup0-tests: New file.
58246         * tests/test-xmemdup0.c: Likewise.
58247
58248 2008-05-13  Eric Blake  <ebb9@byu.net>
58249
58250         Split xmemdup0 into its own module.
58251         * modules/xmemdup0: New file.
58252         * lib/xmemdup0.h: Likewise.
58253         * lib/xmemdup0.c: Likewise.
58254         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58255         * lib/xalloc.h (xmemdup0): Remove.
58256         * lib/xmalloc.c (xmemdup0): Likewise.
58257
58258 2008-05-13  Eric Blake  <ebb9@byu.net>
58259             Bruno Haible  <bruno@clisp.org>
58260
58261         Reduce number of forks required during autoconf.
58262         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58263         and gl_LIBSOURCES_DIR.
58264         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58265         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58266         m4_syscmd per file.
58267         <m4_foreach_w>: Move...
58268         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58269
58270 2008-05-13  Eric Blake  <ebb9@byu.net>
58271
58272         * gnulib-tool: Fix various comment typos.
58273
58274 2008-05-12  Bruno Haible  <bruno@clisp.org>
58275
58276         Tailor the linebreaking algorithm.
58277         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58278
58279 2008-05-12  Bruno Haible  <bruno@clisp.org>
58280
58281         Update to Unicode 5.0.0.
58282         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58283         LBP_JV, LBP_JT. Redistribute values.
58284         (unilbrk_table): Change size.
58285         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58286         Unicode TR#14 rev. 22.
58287         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58288         LBP_JV, LBP_JT. Redistribute values.
58289         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58290         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58291         Update.
58292         * lib/unilbrk/lbrkprop1.h: Regenerated.
58293         * lib/unilbrk/lbrkprop2.h: Regenerated.
58294         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58295         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58296         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58297         Likewise.
58298         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58299         Likewise.
58300         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58301         result.
58302         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58303         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58304         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58305         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58306         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58307         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58308
58309 2008-05-11  Bruno Haible  <bruno@clisp.org>
58310
58311         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58312
58313 2008-05-11  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58316         * modules/unilbrk/gen-lbrk: New file.
58317
58318 2008-05-11  Bruno Haible  <bruno@clisp.org>
58319
58320         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58321         * m4/sha512.m4 (gl_SHA512): Likewise.
58322
58323 2008-05-11  Jim Meyering  <meyering@redhat.com>
58324
58325         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58326         * modules/crypto/sha256: New file.
58327         * modules/crypto/sha512: Likewise.
58328         * lib/sha256.c: Likewise.
58329         * lib/sha256.h: Likewise.
58330         * lib/sha512.c: Likewise.
58331         * lib/sha512.h: Likewise.
58332         * lib/u64.h: Likewise.
58333         * m4/sha256.m4: Likewise.
58334         * m4/sha512.m4: Likewise.
58335         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58336
58337 2008-05-10  Bruno Haible  <bruno@clisp.org>
58338
58339         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58340         (Input/Output <stdio.h>): Add xprintf.
58341         (Signal handling <signal.h>): Add strsignal.
58342         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58343         (Core language properties): Add func.
58344         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58345         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58346         strings.
58347         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58348         (Input/output): New section.
58349         (File system functions): Add openat-die, stat-macros.
58350         (Networking functions): Add sockets.
58351         (Unicode string functions): Add unictype/*.
58352         (Support for building libraries and executables): Add gperf.
58353         (Support for building documentation): Add agpl-3.0.
58354         (Misc): Add nocrash.
58355
58356 2008-05-10  Bruno Haible  <bruno@clisp.org>
58357
58358         * modules/unictype/gen-ctype: New file.
58359
58360 2008-05-10  Jim Meyering  <meyering@redhat.com>
58361
58362         Make chdir-safer.c more efficient on a system with no symlinks.
58363         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58364         also if ELOOP is zero.  Suggested by Bruno Haible.
58365
58366         Make chdir-safer.c slightly safer.
58367         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58368         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58369
58370         Avoid compile failure on systems without ELOOP (like mingw).
58371         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58372         Reported by Bruno Haible.
58373
58374 2008-05-10  Bruno Haible  <bruno@clisp.org>
58375
58376         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58377         (is_utf8_encoding): Use a case-insensitive comparison.
58378         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58379         streq.
58380
58381 2008-05-10  Bruno Haible  <bruno@clisp.org>
58382
58383         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58384         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58385         * lib/unilbrk/ulc-common.h (iconv_string_length,
58386         iconv_string_keeping_offsets): Remove declarations.
58387         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58388         Don't include <iconv.h>, streq.h, xsize.h.
58389         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58390         conversion.
58391         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58392         <iconv.h>, streq.h, xsize.h.
58393         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58394         conversion.
58395         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58396         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58397         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58398         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58399
58400 2008-05-10  Bruno Haible  <bruno@clisp.org>
58401
58402         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58403         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58404
58405         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58406         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58407
58408         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58409         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58410
58411         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58412         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58413
58414         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58415         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58416
58417         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58418         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58419
58420         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58421         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58422
58423         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58424         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58425
58426 2008-05-10  Bruno Haible  <bruno@clisp.org>
58427
58428         Split up 'linebreak' module.
58429         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58430         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58431         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58432         modifications.
58433         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58434         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58435         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58436         lib/linebreak.c.
58437         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58438         lib/linebreak.c.
58439         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58440         lib/linebreak.c.
58441         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58442         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58443         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58444         lib/linebreak.c.
58445         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58446         lib/linebreak.c.
58447         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58448         lib/linebreak.c.
58449         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58450         lib/linebreak.c.
58451         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58452         lib/linebreak.c.
58453         * modules/unilbrk/base: New file.
58454         * modules/unilbrk/tables: New file.
58455         * modules/unilbrk/u8-possible-linebreaks: New file.
58456         * modules/unilbrk/u16-possible-linebreaks: New file.
58457         * modules/unilbrk/u32-possible-linebreaks: New file.
58458         * modules/unilbrk/ulc-common: New file.
58459         * modules/unilbrk/ulc-possible-linebreaks: New file.
58460         * modules/unilbrk/u8-width-linebreaks: New file.
58461         * modules/unilbrk/u16-width-linebreaks: New file.
58462         * modules/unilbrk/u32-width-linebreaks: New file.
58463         * modules/unilbrk/ulc-width-linebreaks: New file.
58464         * lib/linebreak.h: Remove file.
58465         * lib/linebreak.c: Remove file.
58466         * m4/linebreak.m4: Remove file.
58467         * modules/linebreak: Remove file.
58468         * NEWS: Mention the changes.
58469
58470 2008-05-09  Eric Blake  <ebb9@byu.net>
58471
58472         Add xmemdup0.
58473         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58474         implementation.
58475         * lib/xmalloc.c (xmemdup0): New C implementation.
58476
58477 2008-05-08  Bruno Haible  <bruno@clisp.org>
58478
58479         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58480
58481 2008-05-07  Eric Blake  <ebb9@byu.net>
58482
58483         Support cross-compilation of <wctype.h>.
58484         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58485         AC_CACHE_CHECK.
58486
58487 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58488
58489         * build-aux/vc-list-files: Add support for bzr.
58490
58491 2008-05-03  Jim Meyering  <meyering@redhat.com>
58492
58493         avoid failed assertion with tight malloc
58494         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58495
58496 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58497
58498         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58499         are needed from arpa/inet.h.
58500         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58501         Reported by Bruno Haible.
58502
58503 2008-05-02  Jim Meyering  <meyering@redhat.com>
58504
58505         avoid compilation error on FreeBSD 6
58506         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58507
58508 2008-05-01  Jim Meyering  <meyering@redhat.com>
58509
58510         useless-if-before-free: correct --help's exit status description
58511         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58512         for one or more matches, etc.  Reported by Bruno Haible.
58513
58514         vc-list-files: make the stand-alone gnulib test work
58515         * modules/vc-list-files-tests (configure.ac):
58516         Define and AC_SUBST abs_aux_dir.
58517         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58518         $(abs_top_srcdir) to each script and having each of them
58519         duplicate the work of setting PATH, set PATH here, using
58520         the new variable, abs_aux_dir instead.
58521         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58522         * tests/test-vc-list-files-git.sh: Likewise.
58523         Reported by Bruno Haible.
58524
58525 2008-05-01  Bruno Haible  <bruno@clisp.org>
58526
58527         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58528         reallocation. Rename 'done' to 'found_delimiter'.
58529
58530 2008-05-01  Jim Meyering  <meyering@redhat.com>
58531
58532         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58533         * build-aux/vc-list-files: Use `...`, not $(...).
58534
58535 2008-04-30  Jim Meyering  <meyering@redhat.com>
58536
58537         add tests for vc-list-files
58538         * modules/vc-list-files-tests: New module.
58539         * tests/test-vc-list-files-cvs.sh: New file.
58540         * tests/test-vc-list-files-git.sh: New file.
58541
58542         avoid a warning from gcc
58543         * lib/getndelim2.c (IF_LINT): Define.
58544         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58545
58546         vc-list-files: work properly with build-aux/cvsu, too
58547         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58548         to all cvs-based clauses.
58549
58550         vc-list-files: work properly in the CVS+awk case, too
58551         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58552
58553         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58554         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58555         take more than one file argument, so .  Add quotes, just in case $dir
58556         ever contains a shell meta-character.  Prompted by Soren Hansen in
58557         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58558
58559 2008-04-29  Eric Blake  <ebb9@byu.net>
58560
58561         Optimize getndelim2 to use block operations when possible.
58562         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58563         freadseek, and memchr2.
58564         * lib/getndelim2.c (getndelim2): Use them for block reads.
58565
58566 2008-04-29  Bruno Haible  <bruno@clisp.org>
58567
58568         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58569         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58570         * modules/inet_ntop (Depends-on): Add extensions.
58571         * modules/inet_pton (Depends-on): Likewise.
58572         Reported by Simon Josefsson.
58573
58574 2008-04-29  Jim Meyering  <meyering@redhat.com>
58575
58576         When the is more than one match in a block, match all of them.
58577         * build-aux/useless-if-before-free: Iterate through each block
58578         until there are no more matches.
58579
58580         Fix broken useless-if-before-free script.
58581         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58582         the expression to match cast of argument to free-like function.
58583
58584 2008-04-29  Eric Blake  <ebb9@byu.net>
58585
58586         Use new header.
58587         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58588
58589 2008-04-29  Jim Meyering  <meyering@redhat.com>
58590
58591         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58592         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58593         by gnulib to exist and to declare e.g., inet_ntop.
58594         Don't include "inet_ntop.h", now removed.
58595
58596         * m4/arpa_inet_h.m4: Remove trailing blanks.
58597
58598 2008-04-29  Eric Blake  <ebb9@byu.net>
58599
58600         Silence valgrind on safe reads beyond potential array bounds.
58601         * lib/rawmemchr.valgrind: New file.
58602         * lib/strchrnul.valgrind: Likewise.
58603         * modules/rawmemchr (Files): Distribute new file.
58604         * modules/strchrnul (Files): Likewise.
58605         Suggested by Bruno Haible.
58606
58607 2008-04-29  Bruno Haible  <bruno@clisp.org>
58608
58609         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58610         (inet_ntop, inet_pton): Change portability warning's wording.
58611         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58612         Invoke gl_CHECK_NEXT_HEADERS.
58613         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58614         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58615         set ARPA_INET_H.
58616         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58617         * modules/arpa_inet (Description): No longer only for systems that
58618         lack it.
58619         (Depends-on): Add include_next.
58620         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58621         HAVE_ARPA_INET_H.
58622
58623 2008-04-29  Jim Meyering  <meyering@redhat.com>
58624
58625         * modules/mkdir (License): Re-license as LGPLv2+.
58626
58627 2008-04-29  Bruno Haible  <bruno@clisp.org>
58628
58629         * modules/rawmemchr (Maintainer): Set to Eric.
58630         * modules/strchrnul (Maintainer): Likewise.
58631
58632 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58633
58634         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58635         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58636
58637         * modules/arpa_inet (arpa/inet.h): Use them.
58638
58639 2008-04-28  Eric Blake  <ebb9@byu.net>
58640
58641         Test getndelim2.
58642         * modules/getndelim2-tests: New file.
58643         * tests/test-getndelim2.c: Likewise.
58644         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58645         stream.
58646         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58647
58648         * MODULES.html.sh: Document new module.
58649
58650 2008-04-20  Bruno Haible  <bruno@clisp.org>
58651
58652         * lib/c-stack.c (die): Use raise.
58653         * modules/c-stack (Depends-on): Add raise.
58654
58655 2008-04-28  Bruno Haible  <bruno@clisp.org>
58656
58657         Expect rpmatch to be declared.
58658         * lib/yesno.c (rpmatch): Remove declaration.
58659
58660         Declare rpmatch.
58661         * lib/stdlib.in.h (rpmatch): New declaration.
58662         * lib/rpmatch.c: Include <stdlib.h> first.
58663         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58664         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58665         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58666         HAVE_RPMATCH.
58667         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58668         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58669         (Include): Set to <stdlib.h>.
58670         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58671         HAVE_RPMATCH.
58672         * NEWS: Document the change.
58673
58674 2008-04-28  Bruno Haible  <bruno@clisp.org>
58675
58676         Change rpmatch to use nl_langinfo when appropriate.
58677         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58678         (N_): New macro.
58679         (localized_pattern): New function/macro.
58680         (try): Remove match, nomatch arguments. Copy the pattern into safe
58681         memory before caching it.
58682         (rpmatch): Use localized_pattern. Add translator comments.
58683         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58684         Suggested by Eric Blake.
58685         * modules/rpmatch (Depends-on): Add stdbool.
58686
58687 2008-04-28  Eric Blake  <ebb9@byu.net>
58688
58689         Add rawmemchr module, matching glibc.
58690         * modules/string (Makefile.am): New indicator.
58691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58692         * lib/string.in.h (rawmemchr): Declare when appropriate.
58693         * modules/rawmemchr: New file.
58694         * m4/rawmemchr.m4: Likewise.
58695         * lib/rawmemchr.c: Likewise.
58696         * modules/rawmemchr-tests: Likewise.
58697         * tests/test-rawmemchr.c: Likewise.
58698         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58699         module.
58700         * modules/strchrnul (Depends-on): Add rawmemchr.
58701         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58702
58703         Whitespace cleanup.
58704         * tests/test-strchrnul.c: Reindent.
58705         * lib/strchrnul.c: Likewise.
58706
58707         Optimize and test strchrnul.
58708         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58709         * modules/strchrnul-tests: New file.
58710         * tests/test-strchrnul.c: Likewise.
58711
58712         Remove intprops dependency.
58713         * modules/memchr (Depends-on): Remove intprops.
58714         * modules/memrchr (Depends-on): Likewise.
58715         * modules/memchr2 (Depends-on): Likewise.
58716         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58717         * lib/memrchr.c (__memrchr): Likewise.
58718         * lib/memrchr2.c (memchr2): Likewise.
58719         Reported by Simon Josefsson.
58720
58721 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58722
58723         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58724         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58725
58726 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58727
58728         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58729
58730         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58731
58732         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58733
58734         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58735         declarations.
58736         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58737
58738         * m4/inet_pton.m4: Don't check for header files.
58739
58740         * m4/inet_ntop.m4: Don't check for header files.
58741
58742 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58743
58744         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58745         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58746         trigger for cygwin).
58747         Reported by Bruno Haible  <bruno@clisp.org>.
58748
58749 2008-04-28  Bruno Haible  <bruno@clisp.org>
58750
58751         * doc/posix-functions/strdup.texi: Mention mingw problem.
58752
58753 2008-04-27  Bruno Haible  <bruno@clisp.org>
58754
58755         * modules/stat-time-tests (Depends-on): Add sleep.
58756         * tests/test-stat-time.c (force_unlink): New function.
58757         (cleanup): Use it.
58758         (test_mtime): Remove the ctime related tests.
58759         (test_ctime): New function, containing the ctime related tests.
58760         (main): Call test_ctime, except on native Windows platforms.
58761
58762 2008-04-27  Bruno Haible  <bruno@clisp.org>
58763
58764         * lib/rpmatch.c (rpmatch): Add some comments.
58765         Reported by James Youngman <jay@gnu.org>.
58766
58767 2008-04-27  Bruno Haible  <bruno@clisp.org>
58768
58769         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58770         quiet NaNs.
58771
58772 2008-04-27  Bruno Haible  <bruno@clisp.org>
58773
58774         Make test-yesno.sh work on mingw.
58775         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58776         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58777         (main): Set stdin to binary mode.
58778         * modules/yesno-tests (Depends-on): Add binary-io.
58779
58780 2008-04-27  Bruno Haible  <bruno@clisp.org>
58781
58782         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58783         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58784         argument that lie outside the IEEE 854 domain.
58785         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58786         (gl_ISFINITE): Use it.
58787         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58788
58789 2008-04-27  Bruno Haible  <bruno@clisp.org>
58790
58791         Allow local renaming in config.h.
58792         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58793
58794 2008-04-27  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/memchr.c (__memchr): Change type of 'i'.
58797         * lib/memchr2.c (memchr2): Likewise.
58798
58799 2008-04-26  Eric Blake  <ebb9@byu.net>
58800         and Bruno Haible  <bruno@clisp.org>
58801
58802         Optimize and test memrchr.
58803         * modules/memrchr (Depends-on): Add intprops.
58804         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58805         * modules/memrchr-tests: New file.
58806         * tests/test-memrchr.c: New file.
58807
58808 2008-04-26  Bruno Haible  <bruno@clisp.org>
58809
58810         Add tentative support for DragonFly BSD.
58811         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58812         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58813         fp.
58814         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58815         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58816         * lib/fpurge.c (fpurge): Likewise.
58817         * lib/freadable.c (freaadable): Likewise.
58818         * lib/freadahead.c (freadahead): Likewise.
58819         * lib/freading.c (freading): Likewise.
58820         * lib/freadptr.c (freadptr): Likewise.
58821         * lib/freadseek.c (freadptrinc): Likewise.
58822         * lib/fseeko.c (fseeko): Likewise.
58823         * lib/fseterr.c (fseterr): Likewise.
58824         * lib/fwritable.c (fwritable): Likewise.
58825         * lib/fwriting.c (fwriting): Likewise.
58826
58827 2008-04-26  Bruno Haible  <bruno@clisp.org>
58828
58829         * lib/stdio-impl.h: New file.
58830         * lib/fbufmode.c: Include stdio-impl.h.
58831         (fbufmode): Use fp_, remove redundant #defines.
58832         * lib/fflush.c: Include stdio-impl.h.
58833         (clear_ungetc_buffer): Remove redundant #defines.
58834         * lib/fpurge.c: Include stdio-impl.h.
58835         (fpurge): Remove redundant #defines.
58836         * lib/freadable.c: Include stdio-impl.h.
58837         (freadable): Remove redundant #defines.
58838         * lib/freadahead.c: Include stdio-impl.h.
58839         (freadahead): Remove redundant #defines.
58840         * lib/freading.c: Include stdio-impl.h.
58841         (freading): Remove redundant #defines.
58842         * lib/freadptr.c: Include stdio-impl.h.
58843         (freadptr): Remove redundant #defines.
58844         * lib/freadseek.c: Include stdio-impl.h.
58845         (freadptrinc): Remove redundant #defines.
58846         * lib/fseeko.c: Include stdio-impl.h.
58847         (rpl_fseeko): Remove redundant #defines.
58848         * lib/fseterr.c: Include stdio-impl.h.
58849         (fseterr): Remove redundant #defines.
58850         * lib/fwritable.c: Include stdio-impl.h.
58851         (fwritable: Remove redundant #defines.
58852         * lib/fwriting.c: Include stdio-impl.h.
58853         (fwriting): Remove redundant #defines.
58854         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58855         * modules/fflush (Files): Likewise.
58856         * modules/fpurge (Files): Likewise.
58857         * modules/freadable (Files): Likewise.
58858         * modules/freadahead (Files): Likewise.
58859         * modules/freading (Files): Likewise.
58860         * modules/freadptr (Files): Likewise.
58861         * modules/freadseek (Files): Likewise.
58862         * modules/fseeko (Files): Likewise.
58863         * modules/fseterr (Files): Likewise.
58864         * modules/fwritable (Files): Likewise.
58865         * modules/fwriting (Files): Likewise.
58866
58867 2008-04-26  Bruno Haible  <bruno@clisp.org>
58868
58869         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58870         restore_seek_optimization, update_fpos_cache): New functions, extracted
58871         from rpl_fflush.
58872         (rpl_fflush): Use them.
58873         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58874         (gl_REPLACE_FFLUSH): Use it.
58875
58876 2008-04-26  Bruno Haible  <bruno@clisp.org>
58877
58878         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58879         on Solaris.
58880         * tests/test-xstrtoimax.sh: Likewise.
58881         * tests/test-xstrtoumax.sh: Likewise.
58882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58883
58884 2008-04-26  Bruno Haible  <bruno@clisp.org>
58885
58886         * modules/memchr-tests: New file.
58887         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58888
58889 2008-04-26  Eric Blake  <ebb9@byu.net>
58890             Bruno Haible  <bruno@clisp.org>
58891
58892         * lib/memchr.c: Include intprops.h.
58893         (__memchr): Optimize parallel detection of matching bytes. Rename local
58894         variables. Add explanatory comments.
58895
58896 2008-04-26  Bruno Haible  <bruno@clisp.org>
58897
58898         Fix module 'memchr', broken since 2000-10-28.
58899         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58900
58901 2008-04-26  Bruno Haible  <bruno@clisp.org>
58902
58903         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58904         comments.
58905
58906 2008-04-25  Eric Blake  <ebb9@byu.net>
58907
58908         Use native fstatat on cygwin 1.7.0.
58909         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58910         first.
58911
58912 2008-04-23  Eric Blake  <ebb9@byu.net>
58913
58914         Improve memchr2 performance.
58915         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58916         NUL bytes.
58917         * modules/memchr2 (Depends-on): Use intprops.h.
58918
58919 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58920
58921         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58922         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58923         <blp@cs.stanford.edu>.
58924
58925 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58926
58927         * lib/arpa_inet.in.h: New file.
58928
58929         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58930         (Makefile.am): Sed in substitute header file.
58931
58932         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58933         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58934
58935         * modules/inet_ntop (configure.ac): Use
58936         gl_ARPA_INET_MODULE_INDICATOR.
58937
58938         * modules/inet_pton (configure.ac): Use
58939         gl_ARPA_INET_MODULE_INDICATOR.
58940
58941 2008-04-22  Jim Meyering  <meyering@redhat.com>
58942
58943         * modules/verify (License): Re-license as LGPLv2+.
58944
58945 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58946
58947         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58948         parameter to void* as per POSIX standard (MinGW uses char*).
58949
58950 2008-04-21  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58953         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58954         Define to replacements if REPLACE_ISWCNTRL is 1.
58955         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58956         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58957         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58958         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58959         what it fixes.
58960         * doc/posix-functions/iswalpha.texi: Likewise.
58961         * doc/posix-functions/iswblank.texi: Likewise.
58962         * doc/posix-functions/iswcntrl.texi: Likewise.
58963         * doc/posix-functions/iswdigit.texi: Likewise.
58964         * doc/posix-functions/iswgraph.texi: Likewise.
58965         * doc/posix-functions/iswlower.texi: Likewise.
58966         * doc/posix-functions/iswprint.texi: Likewise.
58967         * doc/posix-functions/iswpunct.texi: Likewise.
58968         * doc/posix-functions/iswspace.texi: Likewise.
58969         * doc/posix-functions/iswupper.texi: Likewise.
58970         * doc/posix-functions/iswxdigit.texi: Likewise.
58971         Reported by Alain Guibert.
58972
58973 2008-04-21  Bruno Haible  <bruno@clisp.org>
58974
58975         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58976         Patch by Alain Guibert.
58977
58978 2008-04-21  Bruno Haible  <bruno@clisp.org>
58979
58980         Fix test failures on mingw.
58981         * tests/test-xstrtol.c (print_no_progname): New function.
58982         (main): Install it in error_print_progname hook.
58983         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58984         * tests/test-xstrtoimax.sh: Likewise.
58985         * tests/test-xstrtoumax.sh: Likewise.
58986
58987 2008-04-21  Bruno Haible  <bruno@clisp.org>
58988
58989         Fix test failure on mingw.
58990         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58991
58992 2008-04-21  Bruno Haible  <bruno@clisp.org>
58993
58994         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58995         Actually assign a value.
58996
58997 2008-04-20  Bruno Haible  <bruno@clisp.org>
58998
58999         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59000         take 2.
59001         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59002         'canonicalize-lgpl' module is also used.
59003         * lib/canonicalize-lgpl.c: Undo last change.
59004         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59005
59006 2008-04-20  Bruno Haible  <bruno@clisp.org>
59007
59008         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59009         config.h. Provide _mkdir based fallback for mingw.
59010         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59011         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59012         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59013         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59014         rather than defining mkdir in config.h.
59015         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59016         (gl_SYS_STAT_H_DEFAULTS): New macro.
59017         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59018         HAVE_IO_H any more.
59019         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59020         HAVE_DECL_MKDIR and HAVE_IO_H.
59021
59022 2008-04-20  Bruno Haible  <bruno@clisp.org>
59023
59024         * lib/isapipe.c: Port to native Windows platforms.
59025
59026 2008-04-20  Bruno Haible  <bruno@clisp.org>
59027
59028         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59029
59030 2008-04-21  Eric Blake  <ebb9@byu.net>
59031
59032         Work around preprocessors that don't handle UINTMAX_MAX.
59033         * lib/memchr2.c (memchr2): Avoid embedded #if.
59034         Reported by Alain Guibert, fix suggested by Bruno Haible.
59035
59036 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59037
59038         * doc/posix-functions/strftime.texi (strftime): Explain better
59039         Windows incompatibility.  Suggested by Micah Cowan
59040         <micah@cowan.name>.
59041
59042 2008-04-20  Bruno Haible  <bruno@clisp.org>
59043
59044         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59045         unistr/u8-mblen.
59046
59047 2008-04-20  Bruno Haible  <bruno@clisp.org>
59048
59049         Fix test failure on platforms with non-GNU iconv.
59050         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59051         (U_TO_U8): Use it, rather than u16_to_u8.
59052         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59053         units at the end of the input string.
59054         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59055
59056 2008-04-20  Bruno Haible  <bruno@clisp.org>
59057
59058         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59059         when the resulting length is 0.
59060         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59061
59062 2008-04-20  Bruno Haible  <bruno@clisp.org>
59063
59064         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59065         works.
59066         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59067
59068 2008-04-20  Bruno Haible  <bruno@clisp.org>
59069
59070         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59071         * modules/tsearch-tests (configure.ac): Test for initstate function.
59072
59073 2008-04-20  Bruno Haible  <bruno@clisp.org>
59074
59075         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59076         for nlink_t if missing.
59077         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59078
59079 2008-04-19  Bruno Haible  <bruno@clisp.org>
59080
59081         Work around snprintf bug on Linux libc5.
59082         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59083         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59084         gl_SNPRINTF_SIZE1.
59085         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59086         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59087         that test failed.
59088         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59089         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59090         * modules/snprintf (Files): Add m4/printf.m4.
59091         * modules/vsnprintf (Files): Likewise.
59092         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59093         * doc/posix-functions/vsnprintf.texi: Likewise.
59094
59095 2008-04-19  Bruno Haible  <bruno@clisp.org>
59096
59097         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59098         from 0.0058 to less than 10^-7.
59099
59100 2008-04-19  Bruno Haible  <bruno@clisp.org>
59101
59102         Fix rounding when a precision is given.
59103         * lib/vasnprintf.c (is_borderline): New function.
59104         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59105         9...9x.
59106         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59107         %e, %g.
59108         * tests/test-vasprintf-posix.c (test_function): Likewise.
59109         * tests/test-snprintf-posix.h (test_function): Likewise.
59110         * tests/test-sprintf-posix.h (test_function): Likewise.
59111         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59112         * tests/test-printf-posix.h (test_function): Likewise.
59113         * tests/test-printf-posix.output: Update.
59114         Reported by John Darrington <john@darrington.wattle.id.au> via
59115         Ben Pfaff <blp@cs.stanford.edu>.
59116
59117 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59118
59119         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59120         Suggested by Bruno Haible <bruno@clisp.org>.
59121
59122 2008-04-17  Bruno Haible  <bruno@clisp.org>
59123
59124         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59125         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59126         implementation.
59127         Patch by Bruce Merry <bmerry@gmail.com>.
59128
59129 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59130
59131         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59132         doesn't work under Windows.
59133
59134 2008-04-16  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59137         New macros.
59138         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59139         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59140         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59141         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59142         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59143         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59144         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59145         macros.
59146         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59147         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59148         Northern Sotho, Uighur.
59149
59150 2008-04-16  Bruno Haible  <bruno@clisp.org>
59151
59152         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59153         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59154         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59155         Reported by Daniel Bergström <daniel@octocode.com>.
59156
59157 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59158             Bruno Haible  <bruno@clisp.org>
59159
59160         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59161         function.
59162         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59163         New functions, mostly extracted from gl_locale_name_default.
59164         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59165
59166 2008-04-16  Eric Blake  <ebb9@byu.net>
59167
59168         Adjust strtod detection to catch glibc 2.7 bug.
59169         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59170         Reported by John Gatewood Ham.
59171
59172 2008-04-16  Bruno Haible  <bruno@clisp.org>
59173
59174         Add tentative support for Linux libc5.
59175         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59176         * lib/fpurge.c (fpurge): Likewise.
59177         * lib/freadable.c (freadable): Likewise.
59178         * lib/freadahead.c (freadahead): Likewise.
59179         * lib/freading.c (freading): Likewise.
59180         * lib/freadptr.c (freadptr): Likewise.
59181         * lib/freadseek.c (freadptrinc): Likewise.
59182         * lib/fseeko.c (rpl_fseeko): Likewise.
59183         * lib/fseterr.c (fseterr): Likewise.
59184         * lib/fwritable.c (fwritable): Likewise.
59185         * lib/fwriting.c (fwriting): Likewise.
59186         Reported by Alain Guibert <alguibert+bts@free.fr>.
59187
59188 2008-04-15  Bruno Haible  <bruno@clisp.org>
59189
59190         * modules/mathl (configure.ac): Define module indicator.
59191
59192 2008-04-15  Bruno Haible  <bruno@clisp.org>
59193
59194         * lib/logl.c (logl): Remove unused variables.
59195
59196 2008-04-15  Bruno Haible  <bruno@clisp.org>
59197
59198         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59199         fails.
59200
59201 2008-04-15  Bruno Haible  <bruno@clisp.org>
59202
59203         * lib/trim.c (trim2): Fix argument of isspace() macro.
59204
59205 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59206
59207         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59208         to 0.
59209         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59210
59211 2008-04-14  Bruno Haible  <bruno@clisp.org>
59212
59213         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59214         AC_LANG_PROGRAM argument.
59215         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59216         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59218         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59219         * m4/math_h.m4 (gl_MATH_H): Likewise.
59220         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59221         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59222         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59223         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59224         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59225         * m4/regex.m4 (gl_REGEX): Likewise.
59226         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59227         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59228         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59229         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59231         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59234
59235 2008-04-14  Jim Meyering  <meyering@redhat.com>
59236
59237         test-strtod: fix typos: s/abs/fabs/
59238         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59239
59240 2008-04-13  Bruno Haible  <bruno@clisp.org>
59241
59242         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59243         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59244         module is also used and while not building the reloc-wrapper.
59245
59246 2008-04-13  Bruno Haible  <bruno@clisp.org>
59247
59248         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59249
59250 2008-04-13  Bruno Haible  <bruno@clisp.org>
59251
59252         Fix AIX compilation failure introduced on 2008-04-02.
59253         * tests/test-frexp.c (exp): Undefine before redefining.
59254         * tests/test-frexpl.c (exp): Likewise.
59255
59256 2008-04-13  Bruno Haible  <bruno@clisp.org>
59257
59258         Work around a HP-UX stdio bug.
59259         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59260         * tests/test-ftello.c (main): Likewise.
59261         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59262         * doc/posix-functions/ftello.texi: Likewise.
59263
59264 2008-04-13  Bruno Haible  <bruno@clisp.org>
59265
59266         Make test-signbit pass on HP-UX/hppa.
59267         * tests/test-signbit.c (minus_zerol): New variable.
59268         (test_signbitl): Use it.
59269
59270 2008-04-13  Bruno Haible  <bruno@clisp.org>
59271
59272         Make truncl work on OSF/1 4.0.
59273         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59274         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59275         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59277         HAVE_DECL_TRUNCL.
59278         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59279         HAVE_DECL_TRUNCL.
59280         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59281
59282 2008-04-13  Bruno Haible  <bruno@clisp.org>
59283
59284         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59285
59286 2008-04-13  Bruno Haible  <bruno@clisp.org>
59287
59288         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59289         expression, so as to avoid HP-UX 11 cc compiler bug.
59290
59291 2008-04-13  Bruno Haible  <bruno@clisp.org>
59292
59293         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59294
59295 2008-04-13  Bruno Haible  <bruno@clisp.org>
59296
59297         * lib/git-merge-changelog.c: Remove empty declaration outside of
59298         functions.
59299
59300 2008-04-13  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59303
59304 2008-04-13  Bruno Haible  <bruno@clisp.org>
59305
59306         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59307         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59309         also if it exists but lacks definitions of the SHUT_* macros.
59310         * modules/sys_socket (Description): Update.
59311         Reported by Elbert Pol <e.pol@chello.nl>.
59312
59313 2008-04-13  Bruno Haible  <bruno@clisp.org>
59314
59315         * lib/localcharset.c (OS2): Don't redefine if already defined.
59316         Reported by Elbert Pol <e.pol@chello.nl>.
59317
59318 2008-04-13  Bruno Haible  <bruno@clisp.org>
59319
59320         * lib/binary-io.h [__EMX__]: Include <io.h>.
59321         Reported by Elbert Pol <e.pol@chello.nl>.
59322
59323 2008-04-12  Bruno Haible  <bruno@clisp.org>
59324
59325         * lib/fpucw.h: Enable the definitions also for x86_64.
59326         Needed for NetBSD/x86_64.
59327         Reported by Thomas Klausner <tk@giga.or.at>.
59328
59329 2008-04-12  Bruno Haible  <bruno@clisp.org>
59330
59331         * tests/test-strtod.c: Include isnand.h.
59332         (main): Use isnand instead of isnan.
59333         Reported by Jim Meyering.
59334
59335 2008-04-12  Bruno Haible  <bruno@clisp.org>
59336
59337         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59338         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59339
59340 2008-04-12  Jim Meyering  <meyering@redhat.com>
59341
59342         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59343
59344 2008-04-12  Bruno Haible  <bruno@clisp.org>
59345
59346         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59347         Reported by Elbert Pol <e.pol@chello.nl>.
59348
59349 2008-04-12  Eric Blake  <ebb9@byu.net>
59350
59351         Work around Solaris 10 math.h bug.
59352         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59353         (gl_MATH_H_DEFAULTS): Set up default.
59354         * modules/math (Makefile.am): Replace new indicators.
59355         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59356         * tests/test-math.c (main): Test this.
59357         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59358         * doc/posix-headers/math.texi (math.h): Mention bug.
59359         Reported by Nelson H. F. Beebe and Jim Meyering.
59360
59361 2008-04-11  Bruno Haible  <bruno@clisp.org>
59362
59363         Adapt to future versions of Apple GCC.
59364         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59365         Reported by Peter O'Gorman <peter@pogma.com>.
59366
59367 2008-04-11  Bruno Haible  <bruno@clisp.org>
59368
59369         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59370
59371 2008-04-11  Bruno Haible  <bruno@clisp.org>
59372
59373         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59374
59375         * modules/getaddrinfo-tests (Makefile.am): Define
59376         test_getaddrinfo_LDADD.
59377
59378 2008-04-11  Bruno Haible  <bruno@clisp.org>
59379
59380         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59381         (init): Fix syntax error.
59382         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59383         is declared.
59384
59385 2008-04-11  Bruno Haible  <bruno@clisp.org>
59386
59387         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59388         * modules/glob (Depends-on): Add stdbool.
59389
59390 2008-04-11  Bruno Haible  <bruno@clisp.org>
59391
59392         * lib/trim.c: Include <string.h>.
59393
59394 2008-04-11  Eric Blake  <ebb9@byu.net>
59395
59396         Avoid compile failure on OS/2.
59397         * lib/regex_internal.h (internal_function): Disable optimization
59398         on OS/2 (__EMX__), where it caused compiler error.
59399         Reported by Elbert Pol.
59400
59401 2008-04-11  Bruno Haible  <bruno@clisp.org>
59402
59403         Flush the standard error stream before aborting. Needed on mingw.
59404         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59405         * tests/test-array_list.c (ASSERT): Likewise.
59406         * tests/test-array_oset.c (ASSERT): Likewise.
59407         * tests/test-avltree_list.c (ASSERT): Likewise.
59408         * tests/test-avltree_oset.c (ASSERT): Likewise.
59409         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59410         * tests/test-binary-io.c (ASSERT): Likewise.
59411         * tests/test-byteswap.c (ASSERT): Likewise.
59412         * tests/test-c-ctype.c (ASSERT): Likewise.
59413         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59414         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59415         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59416         * tests/test-c-strstr.c (ASSERT): Likewise.
59417         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59418         * tests/test-canonicalize.c (ASSERT): Likewise.
59419         * tests/test-carray_list.c (ASSERT): Likewise.
59420         * tests/test-ceilf1.c (ASSERT): Likewise.
59421         * tests/test-ceilf2.c (ASSERT): Likewise.
59422         * tests/test-ceill.c (ASSERT): Likewise.
59423         * tests/test-count-one-bits.c (ASSERT): Likewise.
59424         * tests/test-fbufmode.c (ASSERT): Likewise.
59425         * tests/test-fflush2.c (ASSERT): Likewise.
59426         * tests/test-floorf1.c (ASSERT): Likewise.
59427         * tests/test-floorf2.c (ASSERT): Likewise.
59428         * tests/test-floorl.c (ASSERT): Likewise.
59429         * tests/test-fopen.c (ASSERT): Likewise.
59430         * tests/test-fpending.c (ASSERT): Likewise.
59431         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59432         * tests/test-fpurge.c (ASSERT): Likewise.
59433         * tests/test-freadable.c (ASSERT): Likewise.
59434         * tests/test-freadahead.c (ASSERT): Likewise.
59435         * tests/test-freading.c (ASSERT): Likewise.
59436         * tests/test-freadptr.c (ASSERT): Likewise.
59437         * tests/test-freadptr2.c (ASSERT): Likewise.
59438         * tests/test-freadseek.c (ASSERT): Likewise.
59439         * tests/test-freopen.c (ASSERT): Likewise.
59440         * tests/test-frexp.c (ASSERT): Likewise.
59441         * tests/test-frexpl.c (ASSERT): Likewise.
59442         * tests/test-fseek.c (ASSERT): Likewise.
59443         * tests/test-fseeko.c (ASSERT): Likewise.
59444         * tests/test-fstrcmp.c (ASSERT): Likewise.
59445         * tests/test-ftell.c (ASSERT): Likewise.
59446         * tests/test-ftello.c (ASSERT): Likewise.
59447         * tests/test-func.c (ASSERT): Likewise.
59448         * tests/test-fwritable.c (ASSERT): Likewise.
59449         * tests/test-fwriting.c (ASSERT): Likewise.
59450         * tests/test-getdelim.c (ASSERT): Likewise.
59451         * tests/test-getline.c (ASSERT): Likewise.
59452         * tests/test-i-ring.c (ASSERT): Likewise.
59453         * tests/test-iconv-utf.c (ASSERT): Likewise.
59454         * tests/test-iconv.c (ASSERT): Likewise.
59455         * tests/test-isfinite.c (ASSERT): Likewise.
59456         * tests/test-isnand.c (ASSERT): Likewise.
59457         * tests/test-isnanf.c (ASSERT): Likewise.
59458         * tests/test-isnanl.h (ASSERT): Likewise.
59459         * tests/test-ldexpl.c (ASSERT): Likewise.
59460         * tests/test-linked_list.c (ASSERT): Likewise.
59461         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59462         * tests/test-localename.c (ASSERT): Likewise.
59463         * tests/test-lseek.c (ASSERT): Likewise.
59464         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59465         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59466         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59467         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59468         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59469         * tests/test-mbschr.c (ASSERT): Likewise.
59470         * tests/test-mbscspn.c (ASSERT): Likewise.
59471         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59472         * tests/test-mbspbrk.c (ASSERT): Likewise.
59473         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59474         * tests/test-mbsrchr.c (ASSERT): Likewise.
59475         * tests/test-mbsspn.c (ASSERT): Likewise.
59476         * tests/test-mbsstr1.c (ASSERT): Likewise.
59477         * tests/test-mbsstr2.c (ASSERT): Likewise.
59478         * tests/test-mbsstr3.c (ASSERT): Likewise.
59479         * tests/test-memchr2.c (ASSERT): Likewise.
59480         * tests/test-memmem.c (ASSERT): Likewise.
59481         * tests/test-open.c (ASSERT): Likewise.
59482         * tests/test-printf-frexp.c (ASSERT): Likewise.
59483         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59484         * tests/test-printf-posix.c (ASSERT): Likewise.
59485         * tests/test-quotearg.c (ASSERT): Likewise.
59486         * tests/test-rbtree_list.c (ASSERT): Likewise.
59487         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59488         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59489         * tests/test-round1.c (ASSERT): Likewise.
59490         * tests/test-roundf1.c (ASSERT): Likewise.
59491         * tests/test-roundl.c (ASSERT): Likewise.
59492         * tests/test-signbit.c (ASSERT): Likewise.
59493         * tests/test-sleep.c (ASSERT): Likewise.
59494         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59495         * tests/test-snprintf.c (ASSERT): Likewise.
59496         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59497         * tests/test-stat-time.c (ASSERT): Likewise.
59498         * tests/test-strcasestr.c (ASSERT): Likewise.
59499         * tests/test-strerror.c (ASSERT): Likewise.
59500         * tests/test-striconv.c (ASSERT): Likewise.
59501         * tests/test-striconveh.c (ASSERT): Likewise.
59502         * tests/test-striconveha.c (ASSERT): Likewise.
59503         * tests/test-strsignal.c (ASSERT): Likewise.
59504         * tests/test-strstr.c (ASSERT): Likewise.
59505         * tests/test-strtod.c (ASSERT): Likewise.
59506         * tests/test-trunc1.c (ASSERT): Likewise.
59507         * tests/test-trunc2.c (ASSERT): Likewise.
59508         * tests/test-truncf1.c (ASSERT): Likewise.
59509         * tests/test-truncf2.c (ASSERT): Likewise.
59510         * tests/test-truncl.c (ASSERT): Likewise.
59511         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59512         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59513         * tests/test-vasnprintf.c (ASSERT): Likewise.
59514         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59515         * tests/test-vasprintf.c (ASSERT): Likewise.
59516         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59517         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59518         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59519         * tests/test-vsnprintf.c (ASSERT): Likewise.
59520         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59521         * tests/test-wcwidth.c (ASSERT): Likewise.
59522         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59523         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59524         * tests/test-xvasprintf.c (ASSERT): Likewise.
59525         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59526         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59527         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59528         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59529         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59530         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59531         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59532         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59533         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59534         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59535         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59536         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59537         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59538         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59539         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59540         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59541         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59542         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59543         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59544         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59545         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59546         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59547         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59548         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59549         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59550         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59551         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59552         * tests/unictype/test-combining.c (ASSERT): Likewise.
59553         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59554         * tests/unictype/test-digit.c (ASSERT): Likewise.
59555         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59556         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59557         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59558         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59559         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59560         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59561         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59562         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59563         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59564         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59565         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59566         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59567         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59568         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59569         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59570         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59571         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59572         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59573         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59574         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59575         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59576         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59577         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59578         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59579         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59580         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59581         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59582         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59583         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59584         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59585         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59586         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59587         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59588         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59589         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59590         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59591         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59592         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59593         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59594         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59595         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59596         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59597         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59598         Reported by Eric Blake.
59599
59600 2008-04-11  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/wchar.in.h: Tweak comment.
59603
59604 2008-04-11  Bruno Haible  <bruno@clisp.org>
59605
59606         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59607         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59608         gl_COMMON.
59609         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59610
59611 2008-04-11  Bruno Haible  <bruno@clisp.org>
59612
59613         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59614
59615 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59616
59617         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59618         of attempting to use non-existing /dev/*random.  Based on patch
59619         from Adam Strzelecki <ono@java.pl> in
59620         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59621
59622 2008-04-08  Bruno Haible  <bruno@clisp.org>
59623
59624         Add tentative support for emx+gcc.
59625         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59626         * lib/fpurge.c (fpurge): Likewise.
59627         * lib/freadable.c (freadable): Likewise.
59628         * lib/freadahead.c (freadahead): Likewise.
59629         * lib/freading.c (freading): Likewise.
59630         * lib/freadptr.c (freadptr): Likewise.
59631         * lib/freadseek.c (freadptrinc): Likewise.
59632         * lib/fseeko.c (rpl_fseeko): Likewise.
59633         * lib/fseterr.c (fseterr): Likewise.
59634         * lib/fwritable.c (fwritable): Likewise.
59635         * lib/fwriting.c (fwriting): Likewise.
59636         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59637
59638 2008-04-09  Eric Blake  <ebb9@byu.net>
59639
59640         Avoid some autoconf warnings.
59641         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59642         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59643         * m4/afs.m4 (gl_AFS): Likewise.
59644         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59645         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59646         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59647         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59648         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59649         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59650         (AC_CHECK_DECLS_ONCE): Likewise.
59651         Rename file...
59652         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59653         gnulib-tool requires autoconf 2.59 or better.
59654         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59655
59656 2008-04-08  Eric Blake  <ebb9@byu.net>
59657
59658         Use 'git describe --match' if present (added in git 1.5.5).
59659         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59660         if possible.
59661
59662 2008-04-08  Bruno Haible  <bruno@clisp.org>
59663
59664         Add tentative support for OpenServer.
59665         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59666         _ptr, _cnt.
59667         * lib/fpurge.c (fpurge): Likewise.
59668         * lib/freadable.c (freadable): Likewise.
59669         * lib/freadahead.c (freadahead): Likewise.
59670         * lib/freading.c (freading): Likewise.
59671         * lib/freadptr.c (freadptr): Likewise.
59672         * lib/freadseek.c (freadptrinc): Likewise.
59673         * lib/fseeko.c (rpl_fseeko): Likewise.
59674         * lib/fseterr.c (fseterr): Likewise.
59675         * lib/fwritable.c (fwritable): Likewise.
59676         * lib/fwriting.c (fwriting): Likewise.
59677         Reported by Roger Cornelius <rac@tenzing.org> and
59678         Brian K. White <brian@aljex.com>.
59679
59680 2008-04-06  Jim Meyering  <meyering@redhat.com>
59681
59682         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59683
59684 2008-04-06  Bruno Haible  <bruno@clisp.org>
59685
59686         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59687         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59688         * tests/test-printf-posix.sh: Likewise.
59689         * tests/test-vfprintf-posix.sh: Likewise.
59690         * tests/test-vprintf-posix.sh: Likewise.
59691         * tests/test-xprintf-posix.sh: Likewise.
59692
59693 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59694
59695         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59696         hide error from 'ls', needed on OS/2.
59697         Report by Elbert Pol <elbert.pol@gmail.com>.
59698
59699 2008-04-04  Eric Blake  <ebb9@byu.net>
59700
59701         Make test-fseeko.c failures meaningful.
59702         * tests/test-fseeko.c: Print line number on failure.
59703         * tests/test-fseek.c: Likewise.
59704         Reported by Nelson H. F. Beebe.
59705
59706         Improve strtod bug detection check.
59707         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59708         required for Solaris 10.
59709         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59710
59711 2008-04-04  Bruno Haible  <bruno@clisp.org>
59712
59713         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59714         by m4/setenv.m4.
59715
59716 2008-04-03  Eric Blake  <ebb9@byu.net>
59717
59718         Ensure sane .version contents.
59719         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59720         version string.
59721         * build-aux/git-version-gen: Improve documentation.
59722
59723         Make GNU make output nicer.
59724         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59725         MAKECMDGOALS to enforce message for all command line targets.  Set
59726         srcdir for use in maint.mk.
59727
59728         Another maintainer tweak.
59729         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59730         a target that regenerates version.
59731
59732 2008-04-03  Jim Meyering  <meyering@redhat.com>
59733
59734         vc-list-files: don't cause coreutils "make po-check" failure
59735         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59736
59737 2008-04-03  Eric Blake  <ebb9@byu.net>
59738
59739         Allow VPATH usage of vc-list-files.
59740         * build-aux/vc-list-files (scriptversion): Add timestamp.
59741         (options): Add --help, --version, -C.
59742         (CVS): Support installed cvsu.
59743
59744 2008-04-02  Bruno Haible  <bruno@clisp.org>
59745
59746         Avoid some "statement with no effect" warnings from gcc.
59747         * tests/test-wctype.c (main): Explicitly ignore unused values.
59748         Reported by Jim Meyering.
59749
59750 2008-04-02  Jim Meyering  <meyering@redhat.com>
59751
59752         Avoid some warnings from "gcc -Wshadow".
59753         * tests/test-frexp.c (exp): Define to a different identifier.
59754         * tests/test-frexpl.c (exp): Likewise.
59755
59756 2008-04-03  Jim Meyering  <meyering@redhat.com>
59757
59758         bootstrap: remove dangling *.[ch] symlinks from lib
59759         * build-aux/bootstrap [dangling symlink removal]: Move find's
59760         -depth option to precede all others, to avoid a warning.
59761         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59762
59763 2008-04-02  Bruno Haible  <bruno@clisp.org>
59764
59765         Avoid some warnings from "gcc -Wshadow".
59766         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59767         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59768         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59769         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59770         Reported by Jim Meyering.
59771
59772 2008-04-01  Bruno Haible  <bruno@clisp.org>
59773
59774         Fix test to work on IRIX 6.5 with cc.
59775         * tests/test-math.c (numeric_equal): New function.
59776         (main): Use it.
59777
59778 2008-04-01  Bruno Haible  <bruno@clisp.org>
59779
59780         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59781
59782 2008-04-01  Bruno Haible  <bruno@clisp.org>
59783
59784         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59785         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59786         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59787         (Depends-on): Remove math.
59788
59789         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59790         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59791         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59792         (Depends-on): Remove math.
59793
59794         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59795         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59796         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59797         (Depends-on): Remove math.
59798         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59799         (Depends-on): Remove math.
59800
59801         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59802         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59803         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59804         (Depends-on): Remove math.
59805         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59806         (Depends-on): Remove math.
59807
59808         * tests/test-round1.c: Include nan.h.
59809         (main): Use NaNd instead of NAN.
59810         * modules/round-tests (Files): Add tests/nan.h.
59811
59812         * tests/test-trunc1.c: Include nan.h.
59813         (main): Use NaNd instead of NAN.
59814         * modules/trunc-tests (Files): Add tests/nan.h.
59815
59816         * tests/test-roundf1.c: Include nan.h.
59817         (main): Use NaNf instead of NAN.
59818         * modules/roundf-tests (Files): Add tests/nan.h.
59819
59820         * tests/test-truncf1.c: Include nan.h.
59821         (main): Use NaNf instead of NAN.
59822         * modules/truncf-tests (Files): Add tests/nan.h.
59823
59824         * tests/test-ceilf1.c: Include nan.h.
59825         (main): Use NaNf instead of NAN.
59826         * modules/ceilf-tests (Files): Add tests/nan.h.
59827
59828         * tests/test-floorf1.c: Include nan.h.
59829         (main): Use NaNf instead of NAN.
59830         * modules/floorf-tests (Files): Add tests/nan.h.
59831
59832         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59833         (main): Use NaNf instead of NAN.
59834         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59835
59836         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59837         (main): Use NaNd instead of NAN.
59838         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59839
59840         * tests/test-frexp.c: Include nan.h.
59841         (main): Use NaNd instead of NAN.
59842         * modules/frexp-tests (Files): Add tests/nan.h.
59843
59844         * lib/isnan.c: Don't include <math.h>.
59845         (FUNC): Don't use NAN macro.
59846         * modules/isnand-nolibm (Depends-on): Remove math.
59847         * modules/isnanf-nolibm (Depends-on): Remove math.
59848         * modules/isnanl (Depends-on): Remove math.
59849         * modules/isnanl-nolibm (Depends-on): Remove math.
59850
59851         * tests/nan.h: New file.
59852
59853 2008-04-01  Eric Blake  <ebb9@byu.net>
59854
59855         Fix typos.
59856         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59857         values to be the right type.
59858
59859         For now, cater to gnulib strtod inaccuracies.
59860         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59861         fractional results.  While not as nice from a QoI perspective, it
59862         is a quicker patch than correctly implementing decimal to binary
59863         rounding.
59864
59865 2008-03-31  Eric Blake  <ebb9@byu.net>
59866
59867         Guarantee a definition of NAN.
59868         * lib/math.in.h (NAN): Define if missing.
59869         * tests/test-math.c (main): Test it.
59870         * doc/posix-headers/math.texi (math.h): Document this.
59871         * lib/isnan.c (rpl_isnand): Use it.
59872         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59873         * tests/test-floorf1.c (NaN): Likewise.
59874         * tests/test-frexp.c (NaN): Likewise.
59875         * tests/test-isnand.c (NaN): Likewise.
59876         * tests/test-isnanf.c (NaN): Likewise.
59877         * tests/test-round1.c (NaN): Likewise.
59878         * tests/test-roundf1.c (NaN): Likewise.
59879         * tests/test-snprintf-posix.h (NaN): Likewise.
59880         * tests/test-sprintf-posix.h (NaN): Likewise.
59881         * tests/test-trunc1.c (NaN): Likewise.
59882         * tests/test-truncf1.c (NaN): Likewise.
59883         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59884         * tests/test-vasprintf-posix.c (NaN): Likewise.
59885         * modules/isnand-nolibm (Depends-on): Add math.
59886         * modules/isnanf-nolibm (Depends-on): Likewise.
59887         * modules/isnanl (Depends-on): Likewise.
59888         * modules/isnanl-nolibm (Depends-on): Likewise.
59889         * modules/snprintf-posix-tests (Depends-on): Likewise.
59890         * modules/sprintf-posix-tests (Depends-on): Likewise.
59891         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59892         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59893         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59894         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59895
59896 2008-03-31  Bruno Haible  <bruno@clisp.org>
59897
59898         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59899         * doc/posix-functions/strtod.texi: Likewise.
59900
59901 2008-03-31  Bruno Haible  <bruno@clisp.org>
59902
59903         * tests/test-strtod.c (main): Don't use C99 syntax.
59904
59905 2008-03-31  Bruno Haible  <bruno@clisp.org>
59906
59907         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59908         Reported by Eric Blake.
59909
59910 2008-03-31  Jim Meyering  <meyering@redhat.com>
59911
59912         Don't compare actual signbit return values.
59913         * tests/test-strtod.c (main): Rather, compare only their
59914         zero/non-zero nature.
59915
59916 2008-03-31  Eric Blake  <ebb9@byu.net>
59917
59918         More strtod documentation.
59919         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59920         failures as distinct bugs.
59921
59922 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59925         Problem reported by Erik Benada in
59926         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59927
59928 2008-03-30  Bruno Haible  <bruno@clisp.org>
59929
59930         * tests/test-strtod.c: Add comments about which assertion fails on which
59931         platform.
59932         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59933
59934 2008-03-30  Eric Blake  <ebb9@byu.net>
59935
59936         Test signbit behavior on zeros.
59937         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59938         (test_signbitd, test_signbitl): Likewise.
59939
59940         More strtod touchups.
59941         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59942         sign of negative underflow, for now.  Use .5, not .1.
59943         * doc/posix-functions/strtod.texi (strtod): Mention these
59944         limitations.
59945         Reported by Jim Meyering.
59946
59947 2008-03-30  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59950         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59951
59952 2008-03-30  Bruno Haible  <bruno@clisp.org>
59953
59954         Avoid failure when attempting to return empty iconv results on some
59955         platforms.
59956         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59957         allocation, don't report ENOMEM when the resulting string is empty.
59958
59959 2008-03-30  Bruno Haible  <bruno@clisp.org>
59960
59961         Fix buffer overrun.
59962         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59963         Don't consider the width for tmp_length. Check count against tmp_length
59964         before doing the padding. Ensure enough allocation during padding.
59965
59966 2008-03-30  Eric Blake  <ebb9@byu.net>
59967
59968         strtod touchups.
59969         * lib/strtod.c (strtod): Avoid compiler warnings.
59970         Reported by Jim Meyering.
59971
59972 2008-03-30  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59975         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59976         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59977         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59978         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59979         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59980         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59981         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59982
59983         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59984         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59985         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59986         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59987         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59988         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59989         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59990         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59991
59992         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59993         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59994         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59995         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59996         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59997         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59998         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59999         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60000
60001         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60002         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60003
60004         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60005         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60006
60007         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60008         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60009
60010         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60011         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60012         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60013
60014         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60015         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60016         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60017
60018         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60019         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60020         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60021
60022         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60023         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60024         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60025
60026         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60027         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60029         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60030         (Depends-on): Add EOVERFLOW.
60031         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60032         (Depends-on): Add EOVERFLOW.
60033         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60034         (Depends-on): Add EOVERFLOW.
60035         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60036         (Depends-on): Add EOVERFLOW.
60037         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60038         (Depends-on): Add EOVERFLOW.
60039         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60040         (Depends-on): Add EOVERFLOW.
60041         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60042         (Depends-on): Add EOVERFLOW.
60043         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60044         (Depends-on): Add EOVERFLOW.
60045
60046         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60047         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60048         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60049
60050         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60052         * modules/snprintf (Depends-on): Add EOVERFLOW.
60053
60054         * lib/poll.c (EOVERFLOW): Remove fallback.
60055         * modules/poll (Depends-on): Add EOVERFLOW.
60056
60057         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60058         * modules/getugroups (Depends-on): Add EOVERFLOW.
60059
60060         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60061         * modules/getdelim (Depends-on): Add EOVERFLOW.
60062
60063         * lib/ftell.c (EOVERFLOW): Remove fallback.
60064         * modules/ftell (Depends-on): Add EOVERFLOW.
60065
60066         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60067         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60068         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60069
60070         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60071
60072         * modules/EOVERFLOW-tests: New file.
60073         * tests/test-EOVERFLOW.c: New file.
60074
60075         * modules/EOVERFLOW: New file.
60076         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60077
60078 2008-03-30  Bruno Haible  <bruno@clisp.org>
60079
60080         Fix bug introduced on 2007-06-10.
60081         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60082         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60083
60084 2008-03-30  Bruno Haible  <bruno@clisp.org>
60085
60086         Improve freadseek's efficiency after ungetc.
60087         * lib/freadseek.c: Include freadahead.h.
60088         (freadptrinc): New function, extracted from freadseek.
60089         (freadseek): Use it in a loop. Use freadahead to determine the number
60090         of loop iterations.
60091         * modules/freadseek (Depends-on): Add freadahead.
60092         (configure.ac): Require AC_C_INLINE.
60093
60094 2008-03-30  Bruno Haible  <bruno@clisp.org>
60095
60096         * lib/freadseek.c (freadseek): Don't ignore the return value of
60097         freadptr.
60098
60099 2008-03-29  Eric Blake  <ebb9@byu.net>
60100
60101         Add hex float support.
60102         * modules/strtod (Depends-on): Add c-ctype.
60103         (Link): Mention POW_LIB.
60104         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60105         whitespace between 'e' and exponent.
60106         * tests/test-strtod.c (main): Enable hex float tests.
60107         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60108         now provides.
60109
60110         Document various strtod bugs, with some fixes.
60111         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60112         "-0x", "inf", "nan", and hex constants.
60113         * doc/posix-functions/atof.texi (atof): Likewise.
60114         * modules/stdlib (Makefile.am): Support strtod.
60115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60116         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60117         detect additional strtod bugs.
60118         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60119         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60120         bool where appropriate.  Parse 'inf' and 'nan'.
60121         * tests/test-strtod.c: New file.
60122         * modules/strtod (Depends-on): Add stdbool, stdlib.
60123         (configure.ac): Turn on module indicator.
60124         * modules/strtod-tests: New module.
60125
60126 2008-03-29  Eric Blake  <ebb9@byu.net>
60127
60128         Fix ftell on mingw.
60129         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60130         * modules/ftell-tests (Depends-on): Add binary-io.
60131         * modules/ftello-tests (Depends-on): Likewise.
60132         * tests/test-ftell.c (main): Enhance test to cover behavior after
60133         ungetc.  Enforce binary mode.
60134         * tests/test-ftello.c (main): Likewise.
60135
60136         Pass test-freadseek on cygwin.
60137         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60138         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60139         ungetc buffer.
60140
60141         * tests/test-fflush2.c (main): Fix typo.
60142
60143 2008-03-29  Bruno Haible  <bruno@clisp.org>
60144
60145         * tests/test-fflush2.c (main): Temporarily disable the contents of
60146         this test.
60147         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60148         Reported by Eric Blake.
60149
60150 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60151
60152         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60153         (GC_SHA224_DIGEST_SIZE): Add.
60154
60155         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60156         (gc_hash_digest_length): Likewise.
60157         (gc_hash_buffer): Likewise.
60158
60159 2008-03-25  Bruno Haible  <bruno@clisp.org>
60160
60161         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60162         detail which gettext release to use.
60163         Reported by Simon Josefsson.
60164
60165 2008-03-26  Jim Meyering  <meyering@redhat.com>
60166
60167         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60168         * modules/gnumakefile (clean-GNUmakefile): Also, use
60169         test ... && ... || : syntax rather than if-then ... fi.
60170
60171         gnumakefile: Don't double-quote-expand $(VPATH) value.
60172         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60173
60174 2008-03-24  Eric Blake  <ebb9@byu.net>
60175
60176         Alter GNUmakefile to install into top directory.
60177         * modules/maintainer-makefile: Split, and add dependency...
60178         * modules/gnumakefile: to this new module.
60179         * build-aux/GNUmakefile: Move...
60180         * top/GNUmakefile: ...here.
60181         * build-aux/maint.mk: Move...
60182         * top/maint.mk: ...here.
60183         * MODULES.html.sh (Support for maintaining...): Document new
60184         module.
60185
60186 2008-03-23  Bruno Haible  <bruno@clisp.org>
60187
60188         * gnulib-tool: New options --vc-files, --no-vc-files.
60189         (func_usage): Document them.
60190         (vc_files): New variable.
60191         (func_import): Consider vc_files.
60192         (func_create_testdir): Set vc_files to empty.
60193         Suggested by Jim Meyering and Karl Berry.
60194
60195 2008-03-23  Bruno Haible  <bruno@clisp.org>
60196
60197         Fix regex compilation error on HP-UX 11.
60198         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60199         * modules/regex (Files): Add m4/mbstate_t.m4.
60200         Reported by Ton Voon <ton.voon@altinity.com>.
60201
60202 2008-03-23  Bruno Haible  <bruno@clisp.org>
60203
60204         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60205
60206 2008-03-23  Eric Blake  <ebb9@byu.net>
60207             Bruno Haible  <bruno@clisp.org>
60208
60209         Install files from top/ in the destination directory.
60210         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60211         augmentation also for the files from top/.
60212         (func_import, func_create_testdir): Rewrite file names:
60213         top/filename -> filename.
60214
60215 2008-03-23  Bruno Haible  <bruno@clisp.org>
60216
60217         Tweak "gnulib --version" output.
60218         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60219
60220 2008-03-23  Bruno Haible  <bruno@clisp.org>
60221
60222         Tweak "gnulib --version" output.
60223         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60224         rather than contents of ChangeLog, when possible.
60225
60226 2008-03-21  Eric Blake  <ebb9@byu.net>
60227
60228         More --version tweaks.
60229         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60230         date of last ChangeLog entry.
60231
60232 2008-03-21  Jim Meyering  <meyering@redhat.com>
60233
60234         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60235
60236 2008-03-20  Eric Blake  <ebb9@byu.net>
60237
60238         VPATH fix.
60239         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60240
60241 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60242
60243         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60244         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60245
60246 2008-03-20  Eric Blake  <ebb9@byu.net>
60247
60248         Sync GNUmakefile with coreutils.
60249         * build-aux/GNUmakefile (have-Makefile): Rename...
60250         (_have-Makefile): ...to this, for namespace consideration.
60251         (GNUmakefile.cfg): Include, if present.
60252         (_autoreconf): Define a default.
60253         (_is-dist-target): New rule for rebuilds to pick up intra-release
60254         version.
60255         (maint-cfg.mk): Rename...
60256         (cfg.mk): ...to this.
60257
60258 2008-03-18  Jim Meyering  <meyering@redhat.com>
60259
60260         New script and module: mktempd
60261         * MODULES.html.sh (maint+release support): Add mktempd.
60262         * build-aux/mktempd: New file.
60263         * modules/mktempd: New file.
60264
60265 2008-03-15  Jim Meyering  <meyering@redhat.com>
60266
60267         Undo last change.
60268         * lib/sha1.c, lib/md5.c: 63 != ~63.
60269         Reported by Andreas Schwab.
60270
60271         sha1.c, md5.c: Hoist a redundant expression.
60272         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60273         "ctx->buflen" only once, before calling *_process_block.
60274         * lib/md5.c (md5_process_bytes): Likewise.
60275
60276 2008-03-14  Eric Blake  <ebb9@byu.net>
60277
60278         Bump copyright year in files generated by gnulib-tool.
60279         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60280         gnulib-tool, rather than hard-coding it.
60281
60282         Fix 'gnulib-tool --version' output to work with git.
60283         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60284         (startup): ...here.
60285         (func_version): Use it to invoke git-version-gen, rather than
60286         relying on CVS keyword expansion.  Modernize wording.
60287         (cvsdatestamp, last_checkin_date, version): Kill unused
60288         variables.
60289
60290 2008-03-12  Jim Meyering  <meyering@redhat.com>
60291
60292         Recognize optional cast of the argument to free.
60293         * build-aux/useless-if-before-free: Update regexps.
60294
60295         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60296
60297 2008-03-11  Bruno Haible  <bruno@clisp.org>
60298
60299         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60300         by a single package.
60301         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60302         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60303         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60304         Reported by Sam Steingold <sds@gnu.org>.
60305
60306 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60307
60308         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60309         repositories.
60310
60311 2008-03-11  Bruno Haible  <bruno@clisp.org>
60312
60313         Avoid conflicts between local macro definitions.
60314         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60315         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60316
60317 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60318             Bruno Haible  <bruno@clisp.org>
60319
60320         Make va_copy work with some version of xlc on AIX 5.1.
60321         * lib/stdarg.in.h: New file.
60322         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60323         On AIX, use a <stdarg.h> file substitute.
60324         * modules/stdarg (Files): Add lib/stdarg.in.h.
60325         (Depends-on): Add include_next.
60326         (Makefile.am): Build a stdarg.h substitute if requested.
60327         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60328
60329 2008-03-10  Bruno Haible  <bruno@clisp.org>
60330
60331         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60332         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60333         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60334
60335 2008-03-10  Bruno Haible  <bruno@clisp.org>
60336
60337         * modules/stdlib (Depends-on): Add include_next, remove
60338         absolute-header.
60339
60340 2008-03-09  Bruno Haible  <bruno@clisp.org>
60341
60342         * lib/freadahead.h (freadahead): Document more precisely.
60343         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60344         the sum of both buffer sizes.
60345         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60346         * NEWS: Document the change.
60347
60348 2008-03-09  Bruno Haible  <bruno@clisp.org>
60349
60350         Extend freadptr to return also the buffer size.
60351         * lib/freadptr.h (freadptr): Add sizep argument.
60352         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60353         (freadptr): Add sizep argument. Determine buffer size like freadahead
60354         does.
60355         * tests/test-freadptr.c: Don't include freadahead.h.
60356         (main): Adapt for new calling convention of freadptr.
60357         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60358         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60359         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60360         tests/test-freadptr2.sh.
60361         (Depends): Remove freadahead.
60362         (TESTS): Add test-freadptr2.sh.
60363         (check_PROGRAMS): Add test-freadptr2.
60364
60365 2008-03-09  Bruno Haible  <bruno@clisp.org>
60366
60367         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60368         Report and solution by Simon Josefsson.
60369
60370 2008-03-06  Bruno Haible  <bruno@clisp.org>
60371
60372         Make fflush after ungetc work on BSD platforms.
60373         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60374         * tests/test-fflush2.c: New file.
60375         * tests/test-fflush2.sh: New file.
60376         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60377         tests/test-fflush2.c.
60378         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60379         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60380
60381 2008-03-06  Eric Blake  <ebb9@byu.net>
60382
60383         Likewise for ftello.
60384         * modules/ftello (Dependencies): Add extensions.
60385         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60386
60387 2008-03-06  Bruno Haible  <bruno@clisp.org>
60388
60389         * modules/fseeko (Dependencies): Add extensions.
60390         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60391         Needed on glibc systems.
60392
60393 2008-03-06  Bruno Haible  <bruno@clisp.org>
60394
60395         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60396         email address.
60397         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60398
60399 2008-03-06  Bruno Haible  <bruno@clisp.org>
60400
60401         * users.txt: Add libgnupdf.
60402
60403 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60404
60405         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60406         (Header File Substitutes, Function Substitutes,
60407         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60408         (Build robot for gnulib): Fix typo.
60409
60410 2008-03-06  Bruno Haible  <bruno@clisp.org>
60411
60412         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60413         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60414
60415 2008-03-06  Bruno Haible  <bruno@clisp.org>
60416
60417         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60418         * doc/gnulib.texi: Include it.
60419
60420 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60421
60422         * modules/func (License): Change license to unlimited; there was
60423         no LGPL parts in the module anyway.
60424
60425 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60426
60427         * modules/__func__: Renamed to modules/func.
60428         * modules/__func__-tests: Renamed to modules/func-tests.
60429         * tests/test-__func__.c: Renamed to tests/test-func.c.
60430         * m4/__func__.m4: Renamed to m4/func.m4.
60431         * doc/gnulib.texi (__func__): Section renamed to func.
60432         Suggested by Eric Blake <ebb9@byu.net>.
60433
60434 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60435
60436         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60437         about __func__.  Make example self-contained.  Suggested by Eric
60438         Blake <ebb9@byu.net>.
60439
60440         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60441         Suggested by Eric Blake <ebb9@byu.net>.
60442
60443 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60444
60445         * modules/__func__: New file.
60446         * modules/__func__-tests: New file.
60447         * tests/test-__func__.c: New file.
60448         * m4/__func__.m4: New file.
60449         * doc/gnulib.texi (__func__): Document __func__ module.
60450
60451 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60452
60453         * modules/byteswap (License): Re-license as LGPLv2+.
60454
60455 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60456
60457         * doc/Makefile: Add pdf target.
60458
60459 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60460
60461         * modules/inline (License): Use 'unlimited', since there are only
60462         *.m4 files in this module.
60463
60464 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60465             Bruno Haible  <bruno@clisp.org>
60466
60467         Add support for HP C 7.1 on OpenVMS 8.3.
60468         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60469
60470 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60471
60472         Update VMS specifics.
60473         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60474
60475 2008-03-02  Jim Meyering  <meyering@redhat.com>
60476
60477         Remove the last dependency on the "free" module.
60478         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60479         Reported by Bob Proulx.
60480
60481         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60482
60483         Remove useless "if" tests before free.  Deprecate "free" module.
60484         * doc/posix-functions/free.texi: Mention that this
60485         module is no longer useful.
60486         * modules/free (Notice): Say this module is obsolete.
60487         * modules/readutmp (Depends-on): Remove free.
60488         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60489         * lib/putenv.c (putenv): Likewise.
60490         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60491         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60492         * tests/test-c-strcasestr.c (main): Likewise.
60493         * tests/test-c-strstr.c (main): Likewise.
60494         * tests/test-mbscasestr1.c (main): Likewise.
60495         * tests/test-mbscasestr2.c (main): Likewise.
60496         * tests/test-mbsstr1.c (main): Likewise.
60497         * tests/test-mbsstr2.c (main): Likewise.
60498         * tests/test-memmem.c (main): Likewise.
60499         * tests/test-strcasestr.c (main): Likewise.
60500         * tests/test-striconv.c (main): Likewise.
60501         * tests/test-striconveh.c (main): Likewise.
60502         * tests/test-striconveha.c (main): Likewise.
60503         * tests/test-strstr.c (main): Likewise.
60504
60505         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60506
60507         bootstrap: sync from coreutils again
60508         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60509
60510 2008-03-01  Jim Meyering  <meyering@redhat.com>
60511
60512         bootstrap: sync from coreutils
60513         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60514         also when the target doesn't exist.
60515
60516 2008-03-01  Eric Blake  <ebb9@byu.net>
60517
60518         Fix bugs in last patch.
60519         * lib/memchr2.c (memchr2): Fix typo.
60520         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60521         extension.
60522         Reported by Bruce Korb.
60523
60524         New module 'memchr2'.
60525         * modules/memchr2: New file.
60526         * modules/memchr2-tests: Likewise.
60527         * lib/memchr2.h: Likewise.
60528         * lib/memchr2.c: Likewise, based on memchr.c.
60529         * tests/test-memchr2.c: New test.
60530         * MODULES.html.sh (String handling): Add memchr2.
60531
60532 2008-02-29  Bruno Haible  <bruno@clisp.org>
60533
60534         * modules/freadseek-tests: New file.
60535         * tests/test-freadseek.sh: New file.
60536         * tests/test-freadseek.c: New file.
60537
60538         New module 'freadseek'.
60539         * modules/freadseek: New file.
60540         * lib/freadseek.h: New file.
60541         * lib/freadseek.c: New file.
60542         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60543
60544 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60545
60546         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60547         wydawca.
60548
60549         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60550         program_invocation_name and program_invocation_short_name are
60551         present.
60552
60553 2008-02-28  Bruno Haible  <bruno@clisp.org>
60554
60555         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60556         * tests/test-freadptr.sh: Also test non-seekable stdin.
60557
60558 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60559
60560         * build-aux/bootstrap (source_base, m4_base)
60561         (doc_base, tests_base): New variables.
60562         (gnulib_tool_options): Do not hardcode base directories, use
60563         the above variables instead.
60564
60565 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60566
60567         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60568
60569 2008-02-28  Bruno Haible  <bruno@clisp.org>
60570
60571         * modules/freadptr-tests: New file.
60572         * tests/test-freadptr.sh: New file.
60573         * tests/test-freadptr.c: New file.
60574
60575         New module 'freadptr'.
60576         * modules/freadptr: New file.
60577         * lib/freadptr.h: New file.
60578         * lib/freadptr.c: New file.
60579         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60580
60581 2008-02-26  Karl Berry  <karl@freefriends.org>
60582
60583         Sync from Libtool:
60584         * libltdl/argz.c (argz_add, argz_count): New functions.
60585         * libltdl/argz.in.h: Declare them.
60586         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60587
60588 2008-02-22  Bruno Haible  <bruno@clisp.org>
60589
60590         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60591         is a pointer type.  Needed for HP-UX 10.
60592         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60593         * doc/posix-functions/gmtime_r.texi: Likewise.
60594         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60595
60596 2008-02-24  Bruno Haible  <bruno@clisp.org>
60597
60598         * modules/environ-tests: New file.
60599         * tests/test-environ.c: New file.
60600
60601         New module 'environ'.
60602         * modules/environ: New file.
60603         * lib/unistd.in.h (environ): New declaration.
60604         * m4/environ.m4: New file.
60605         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60606         after use.
60607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60608         HAVE_DECL_ENVIRON.
60609         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60610         HAVE_DECL_ENVIRON.
60611         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60612         wrong claim that 'environ' is missing on some systems.
60613         * modules/execute (Depends-on): Add environ.
60614         * lib/execute.c (environ): Remove fallback declaration.
60615         * modules/pipe (Depends-on): Add environ.
60616         * lib/pipe.c (environ): Remove fallback declaration.
60617         * modules/setenv (Depends-on): Add environ.
60618         * lib/setenv.c (environ): Remove fallback declaration.
60619         * modules/unsetenv (Depends-on): Add environ.
60620         * lib/unsetenv.c (environ): Remove fallback declaration.
60621         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60622         m4/environ.m4.
60623         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60624         (gl_PREREQ_UNSETENV): Likewise.
60625
60626 2008-02-24  Bruno Haible  <bruno@clisp.org>
60627
60628         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60629
60630 2008-02-20  Bob Proulx  <bob@proulx.com>
60631
60632         Enable use of older two part flavor 'git describe'.
60633         * build-aux/git-version-gen: If using the older two part flavor of
60634         git version then recreate the third part now present in the
60635         newer three part flavor of git describe.
60636
60637 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60638
60639         * lib/fts.c (fts_build): Typo correction to comment.
60640
60641 2008-02-17  Bruno Haible  <bruno@clisp.org>
60642
60643         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60644         generating no-op conflicts.
60645
60646 2008-02-17  Bruno Haible  <bruno@clisp.org>
60647
60648         Speed up by 10%.
60649         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60650         result_entries, rather than an index-based loop.
60651
60652 2008-02-17  Bruno Haible  <bruno@clisp.org>
60653
60654         Speed up by 25%.
60655         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60656         'hashcode_cached'.
60657         (entry_create): New function.
60658         (entry_hashcode): Use the cached hashcode if possible.
60659         (read_changelog_file, try_split_merged_entry): Use entry_create.
60660
60661 2008-02-17  Bruno Haible  <bruno@clisp.org>
60662
60663         Speed up from O(n^2) to O(n) for long ChangeLog files.
60664         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60665         (read_changelog_file): Change implementation of entries_reversed list
60666         to rbtreehash.
60667         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60668
60669 2008-02-17  Bruno Haible  <bruno@clisp.org>
60670
60671         New option --split-merged-entry.
60672         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60673         (find_paragraph_end, try_split_merged_entry): New functions.
60674         (long_options): Add option --split-merged-entry.
60675         (usage): Document option --split-merged-entry.
60676         (main): Implement option --split-merged-entry.
60677         Reported by Eric Blake.
60678
60679 2008-02-17  Bruno Haible  <bruno@clisp.org>
60680
60681         * lib/git-merge-changelog.c: Include c-strstr.h.
60682         (main): Support the "git pull --rebase" situation.
60683         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60684         Reported by Eric Blake.
60685
60686 2008-02-16  Eric Blake  <ebb9@byu.net>
60687
60688         Avoid doubling \ in common case of "c-maybe" quoting style.
60689         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60690         eliding outer quotes.
60691         * lib/quotearg.h: Document this.
60692         * tests/test-quotearg.c (result_strings, inputs, results_g)
60693         (flag_results, locale_results): Test it by adding a new string to
60694         each test group.
60695         (compare_strings): Test new string.
60696
60697 2008-02-13  Eric Blake  <ebb9@byu.net>
60698
60699         Avoid trigraph quoting in default output.
60700         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60701         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60702         unless explicitly requested.
60703         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60704
60705 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60706
60707         Don't rely on signed integer overflowing to negative value.
60708         * lib/getugroups.c (getugroups): Include <limits.h>.
60709         Instead, compare against INT_MAX, and increment only if the test passes.
60710
60711 2008-02-13  Jim Meyering  <meyering@redhat.com>
60712         and Eric Blake  <ebb9@byu.net>
60713
60714         Avoid shadowing warning and compile errors on Linux.
60715         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60716         forwarding macros on Linux.
60717         (dcgettext): Define a stub, for Linux.
60718         (results_g, main): Avoid warnings.
60719
60720 2008-02-12  Eric Blake  <ebb9@byu.net>
60721
60722         Silence warning in last patch.
60723         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60724
60725         Quotearg part 4: add tests, fix c-maybe colon quoting.
60726         * lib/quotearg.h: Improve documentation.
60727         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60728         escapes when adding outer quotes.  When quoting trigraphs, use
60729         valid C notation.  When quoting NUL, omit extra characters if next
60730         character is not digit.  Alter prototype.
60731         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60732         callers.
60733         * modules/quotearg-tests: New module.
60734         * tests/test-quotearg.c: New test.
60735
60736 2008-02-07  Eric Blake  <ebb9@byu.net>
60737
60738         Quotearg part 3: add flag to control outer quote elision.
60739         * lib/quotearg.h (c_maybe_quoting_style): New style.
60740         (enum quoting_flags): Better documentation of flags.
60741         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60742         c-maybe style.
60743         (quotearg_buffer_restyled): Handle new flag to elide outer
60744         quotes.
60745
60746         Quotearg part 2: add flag that can control NUL elision.
60747         * lib/quotearg.h (set_quoting_flags): New prototype.
60748         * lib/quotearg.c (struct quoting_options): Add flag field.
60749         (set_quoting_flags): New function.
60750         (quotearg_buffer_restyled): Add flags parameter.
60751         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60752         (quotearg_n_options): Set the flag, since length cannot be
60753         returned.
60754         (quoting_options_from_style): Default flags correctly.
60755
60756         Quotearg part 1: more wrappers, restore quotearg_char state.
60757         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60758         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60759         (quotearg_colon_mem): New wrappers.
60760         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60761         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60762         functions.
60763         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60764         (quotearg_colon_mem): New functions.
60765
60766 2008-02-11  Bruno Haible  <bruno@clisp.org>
60767
60768         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60769         library in the current directory: it does not work with parallel make.
60770         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60771
60772 2008-02-11  Bruno Haible  <bruno@clisp.org>
60773
60774         * .gitattributes: New file.
60775
60776 2008-02-11  Jim Meyering  <meyering@redhat.com>
60777
60778         useless-if-before-free: Fix reversed exit values.
60779         * build-aux/useless-if-before-free: Use correct values
60780         for EXIT_MATCH and EXIT_NO_MATCH.
60781
60782         * build-aux/useless-if-before-free: Close stdout carefully.
60783
60784 2008-02-10  Bruno Haible  <bruno@clisp.org>
60785
60786         New module 'git-merge-changelog'.
60787         * modules/git-merge-changelog: New file.
60788         * lib/git-merge-changelog.c: New file.
60789
60790 2008-02-10  Jim Meyering  <meyering@redhat.com>
60791
60792         useless-if-before-free: New option: --list (-l).
60793
60794         useless-if-before-free: Don't exit immediately upon open failure.
60795         * build-aux/useless-if-before-free: Exit 2 for errors.
60796         Upon failure to open a file, don't exit immediately.
60797         Rather, just warn and continue with any remaining files.
60798
60799 2008-02-10  Bruno Haible  <bruno@clisp.org>
60800
60801         New abstract list operation 'node_set_value'.
60802         * lib/gl_list.h (gl_list_node_set_value): New function.
60803         (struct gl_list_implementation): New field node_set_value.
60804         * lib/gl_list.c (gl_list_node_set_value): New function.
60805         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60806         (gl_array_list_implementation): Update.
60807         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60808         (gl_carray_list_implementation): Update.
60809         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60810         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60811         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60812         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60813         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60814         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60815         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60816         Update.
60817         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60818         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60819         (gl_sublist_list_implementation): Update.
60820
60821 2008-02-10  Bruno Haible  <bruno@clisp.org>
60822
60823         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60824         Needed when ELEMENT is #defined to 'some_type *'.
60825
60826 2008-02-10  Jim Meyering  <meyering@redhat.com>
60827
60828         New script and module: useless-if-before-free
60829         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60830         * build-aux/useless-if-before-free: New file.
60831         * modules/useless-if-before-free: New file.
60832
60833         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60834
60835         xstrtol_error: Fix typo.
60836         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60837         s/exit_failure/exit_status/.
60838
60839 2008-02-09  Jim Meyering  <meyering@redhat.com>
60840
60841         New script and module: gitlog-to-changelog
60842         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60843         * modules/gitlog-to-changelog: New file.
60844         * build-aux/gitlog-to-changelog: New file.
60845
60846 2008-02-08  Jim Meyering  <meyering@redhat.com>
60847
60848         Avoid two "parameter unused" warnings.
60849         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60850         Mark "st" as used.
60851
60852         Use "git COMMAND", not "git-COMMAND".
60853         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60854         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60855         * build-aux/git-version-gen: Use "git status", not "git-status".
60856
60857 2008-02-07  Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60860         Avoids a crash on Windows Vista.
60861         Reported by Adam Strzelecki <ono@java.pl> via
60862         Simon Josefsson <simon@josefsson.org>.
60863
60864 2008-02-06  Bruno Haible  <bruno@clisp.org>
60865
60866         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60867         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60868         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60870         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60871         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60872         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60873         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60876         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60878         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60881         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60882         left-adjust flag.
60883         * tests/test-snprintf-posix.h (test_function): Likewise.
60884         * tests/test-sprintf-posix.h (test_function): Likewise.
60885         * tests/test-vasprintf-posix.c (test_function): Likewise.
60886         * doc/posix-functions/fprintf.texi: Update.
60887         * doc/posix-functions/printf.texi: Update.
60888         * doc/posix-functions/snprintf.texi: Update.
60889         * doc/posix-functions/sprintf.texi: Update.
60890         * doc/posix-functions/vfprintf.texi: Update.
60891         * doc/posix-functions/vprintf.texi: Update.
60892         * doc/posix-functions/vsnprintf.texi: Update.
60893         * doc/posix-functions/vsprintf.texi: Update.
60894         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60895
60896 2008-02-06  Bruno Haible  <bruno@clisp.org>
60897
60898         Fix bug introduced on 2008-01-26.
60899         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60900
60901 2008-02-06  Bruno Haible  <bruno@clisp.org>
60902
60903         Fix bug introduced on 2007-06-10.
60904         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60905         !NEED_PRINTF_FLAG_ZERO.
60906
60907 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60908
60909         getloadavg: use libperfstat on AIX5
60910         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60911
60912 2008-02-03  Bruno Haible  <bruno@clisp.org>
60913
60914         * lib/diffseq.h: Add comments about required #includes.
60915         Reported by Michael Biggs <gnulib@doubleplum.net>.
60916
60917 2008-02-01  Bruno Haible  <bruno@clisp.org>
60918
60919         * users.txt: Add gnuit.
60920
60921 2008-01-31  Bruno Haible  <bruno@clisp.org>
60922
60923         * lib/md4.c (set_uint32): Mark as inline.
60924         * lib/md5.c (set_uint32): Likewise.
60925         * lib/sha1.c (set_uint32): Likewise.
60926         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60927         * m4/md5.m4 (gl_MD5): Likewise.
60928         * m4/sha1.m4 (gl_SHA1): Likewise.
60929
60930 2008-01-31  Jim Meyering  <meyering@redhat.com>
60931
60932         Use "sizeof VAR", rather than a literal "4".
60933         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60934         * lib/md4.c (md4_read_ctx): Likewise.
60935         * lib/sha1.c (sha1_read_ctx): Likewise.
60936
60937 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60938
60939         * tests/test-sha1.c: New file, based on test-md5.c.
60940
60941         * modules/crypto/sha1-tests: New file.
60942
60943 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60944
60945         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60946
60947 2008-01-31  Jim Meyering  <meyering@redhat.com>
60948
60949         Prefer "sizeof v" over the equivalent "4".
60950         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60951         * lib/md5.c (set_uint32): Likewise.
60952         * lib/sha1.c (set_uint32): Likewise.
60953
60954 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60955
60956         * lib/sha1.c (set_uint32): Mark function as static.
60957
60958 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60959
60960         md2: clarify comments to say that alignment is not required.
60961         * lib/md2.h: Remove warning about alignment in comment.
60962         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60963         never been required.
60964
60965 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60966
60967         md4: adapt alignment constraint fix from sha1.
60968         * lib/md4.c (set_uint32): New function, from sha1.c
60969         (md4_read_ctx): Use it.
60970         (md4_finish_ctx): Doc fix.
60971         * lib/md4.h: Doc fix.
60972
60973 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60974
60975         md5: adapt alignment constraint fix from sha1.
60976         * lib/md5.c (set_uint32): New function, from sha1.c
60977         (md5_read_ctx): Use it.
60978         (md5_finish_ctx): Doc fix.
60979         * lib/md5.h: Doc fix.
60980
60981 2008-01-30  Peter Palfrader  <weasel@debian.org>
60982
60983         sha1: remove the result buffer alignment constraint
60984         * lib/sha1.c (set_uint32): New function.
60985         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60986         constraint.
60987         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60988         * lib/sha1.h: Likewise.
60989
60990 2008-01-30  Andreas Schwab  <schwab@suse.de>
60991             Bruno Haible  <bruno@clisp.org>
60992
60993         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60994         correct definition of LDBL_MIN_EXP.
60995
60996 2008-01-30  Karl Berry  <karl@gnu.org>
60997
60998         * config/srclist-update: try to preserve x bit on updates.
60999         * config/srclistvars.sh: update for karl.
61000
61001 2008-01-29  Jim Meyering  <meyering@redhat.com>
61002
61003         vasnprintf.c: Avoid warning about unused label
61004         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61005         "overflow" label definition and associated code with the
61006         same cpp condition that guards the sole use of that label.
61007
61008 2008-01-26  Bruno Haible  <bruno@clisp.org>
61009
61010         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61011         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61012         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61013         * lib/isnanl-nolibm.h (isnanl): Likewise.
61014         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61015
61016 2008-01-26  Bruno Haible  <bruno@clisp.org>
61017
61018         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61019         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61020
61021 2008-01-26  Bruno Haible  <bruno@clisp.org>
61022
61023         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61024         GCC >= 4.0 built-in.
61025         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61026
61027 2008-01-26  Bruno Haible  <bruno@clisp.org>
61028
61029         Rename isnan, applicable to 'double' only, to isnand.
61030         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61031         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61032         (configure.ac): Update.
61033         (Include): Replace "isnan.h" with "isnand.h".
61034         * m4/isnand.m4: Renamed from m4/isnan.m4.
61035         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61036         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61037         instead of isnan.c.
61038         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61039         instead of HAVE_ISNAN_IN_LIBC.
61040         (isnand): Renamed from isnan.
61041         * lib/isnand.c: New file.
61042         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61043         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61044         (Makefile.am): Update.
61045         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61046         Include isnand.h instead of isnan.h.
61047         (main): Test isnand instead of isnan.
61048         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61049         isnan-nolibm.
61050         * modules/frexp (Depends-on): Likewise.
61051         * modules/frexp-tests (Depends-on): Likewise.
61052         * modules/frexp-nolibm (Depends-on): Likewise.
61053         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61054         * modules/isfinite (Depends-on): Likewise.
61055         * modules/round-tests (Depends-on): Likewise.
61056         * modules/signbit (Depends-on): Likewise.
61057         * modules/signbit-tests (Depends-on): Likewise.
61058         * modules/snprintf-posix (Depends-on): Likewise.
61059         * modules/sprintf-posix (Depends-on): Likewise.
61060         * modules/trunc-tests (Depends-on): Likewise.
61061         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61062         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61063         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61064         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61065         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61066         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61067         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61068         * modules/vasnprintf-posix (Depends-on): Likewise.
61069         * modules/vasprintf-posix (Depends-on): Likewise.
61070         * modules/vfprintf-posix (Depends-on): Likewise.
61071         * modules/vsnprintf-posix (Depends-on): Likewise.
61072         * modules/vsprintf-posix (Depends-on): Likewise.
61073         * lib/frexp.c: Include isnand.h instead of isnan.h.
61074         (ISNAN): Set to isnand instead of isnan.
61075         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61076         (gl_isfinited): Use isnand instead of isnan.
61077         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61078         (gl_signbitd): Use isnand instead of isnan.
61079         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61080         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61081         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61082         (main): Use isnand instead of isnan.
61083         * tests/test-round1.c: Include isnand.h.
61084         (main): Use isnand instead of isnan.
61085         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61086         (ISNAN): Set to isnand instead of isnan.
61087         * tests/test-trunc1.c: Include isnand.h.
61088         (main): Use isnand instead of isnan.
61089         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61090         (equal): Use isnand instead of isnan.
61091         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61092         isnand-nolibm.
61093         * NEWS: Mention the change.
61094
61095 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61096             Bruno Haible  <bruno@clisp.org>
61097
61098         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61099         the GCC builtins for signbits are present and set
61100         REPLACE_SIGNBIT_USING_GCC if so.
61101         * lib/math.in.h (signbit): Define using GCC builtins if
61102         REPLACE_SIGNBIT_USING_GCC is set.
61103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61104         REPLACE_SIGNBIT_USING_GCC.
61105         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61106
61107 2008-01-25  Jim Meyering  <meyering@redhat.com>
61108
61109         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61110         * lib/poll.c: Include <config.h>, not "config.h".
61111         * tests/test-getaddrinfo.c: Likewise.
61112
61113 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61114
61115         * modules/sockets-tests: New file.
61116
61117 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61118
61119         * modules/sockets: New module, can be used to call WSA_Startup and
61120         WSA_Cleanup when needed.
61121
61122         * lib/sockets.h, lib/sockets.c: New files.
61123
61124         * m4/sockets.m4: New file.
61125
61126         * tests/test-sockets.c: New file.
61127
61128 2008-01-19  Bruno Haible  <bruno@clisp.org>
61129
61130         * doc/posix-headers: Renamed from doc/headers.
61131         * doc/posix-functions: Renamed from doc/functions.
61132         * doc/gnulib.texi: Update.
61133
61134 2008-01-19  Bruno Haible  <bruno@clisp.org>
61135
61136         * doc/glibc-functions/strcasestr.texi: Include contents of
61137         doc/functions/strcasestr.texi, fixing the list of platforms.
61138         * doc/functions/strcasestr.texi: Remove file.
61139
61140 2008-01-19  Bruno Haible  <bruno@clisp.org>
61141
61142         * doc/glibc-functions/memmem.texi: Include contents of
61143         doc/functions/memmem.texi.
61144         * doc/functions/memmem.texi: Remove file.
61145
61146 2008-01-18  Bruno Haible  <bruno@clisp.org>
61147
61148         * doc/glibc-functions/*.texi: New files.
61149         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61150         to use the new files.
61151
61152 2008-01-17  Bruno Haible  <bruno@clisp.org>
61153
61154         * tests/test-gethostname.c (main): Fix printf statement.
61155
61156 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61157
61158         * modules/gethostname-tests: New file.
61159
61160         * tests/test-gethostname.c: New file.
61161
61162 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61163
61164         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61165         used by the UNAME case.  Reported by Bruno Haible
61166         <bruno@clisp.org>.
61167
61168 2008-01-17  Eric Blake  <ebb9@byu.net>
61169
61170         Convert c-strcasestr to be more efficient.
61171         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61172         (Depends-on): Add c-strcase, remove malloca, strnlen.
61173         * tests/test-c-strcasestr.c (main): Enhance test.
61174         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61175
61176 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61177
61178         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61179         Use it in creating po/Makevars.
61180
61181 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61182
61183         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61184         Applications that requires it should initialize libgcrypt
61185         manually.
61186
61187 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61188
61189         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61190
61191 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61192
61193         Fix problem with getdate on mingw32 reported by Simon Josefsson
61194         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61195         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61196         tzname", when deciding whether to declare tzname.
61197         * lib/strftime.c (tzname): Likewise.
61198
61199 2008-01-15  Bruno Haible  <bruno@clisp.org>
61200
61201         Work around a MacOS X 10.5 bug in frexpl().
61202         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61203         * doc/functions/frexpl.texi: Document the bug.
61204         Reported by Elias Pipping <pipping@gentoo.org>.
61205
61206 2008-01-14  Eric Blake  <ebb9@byu.net>
61207
61208         Touch up previous patch.
61209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61210         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61211
61212         Convert strcasestr module to use Two-Way algorithm.
61213         * modules/strcasestr-simple: New module, based on the old
61214         strcasestr, but with Two-Way rather than KMP.
61215         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61216         * lib/string.in.h (rpl_strcasestr): Declare.
61217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61218         performance.
61219         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61220         * modules/string (Makefile.am): Support strcasestr.
61221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61222         * modules/strcasestr-tests (Depends-on): Check for alarm.
61223         * tests/test-strcasestr.c: Augment test.
61224         * lib/str-two-way.h: Clean up stray macro.
61225         * NEWS: Document new module.
61226         * MODULES.html.sh (string handling): Likewise.
61227         * doc/functions/strcasestr.texi: New file.
61228         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61229         here, since it is not a POSIX function.
61230
61231 2008-01-14  Colin Watson  <cjwatson@debian.org>
61232             Bruno Haible  <bruno@clisp.org>
61233
61234         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61235         works fine; if not, set REPLACE_STRSIGNAL.
61236         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61238         REPLACE_STRSIGNAL.
61239         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61240         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61241         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61242
61243 2008-01-14  Bruno Haible  <bruno@clisp.org>
61244
61245         * modules/strsignal (Include): Change to <string.h>.
61246
61247 2008-01-14  Colin Watson  <cjwatson@debian.org>
61248
61249         * modules/argp (Notice): Add a notice recommending to change
61250         XGETTEXT_OPTIONS.
61251         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61252
61253 2008-01-13  Colin Watson  <cjwatson@debian.org>
61254
61255         * modules/strsignal-tests: New file.
61256         * tests/test-strsignal.c: New file.
61257
61258         * lib/strsignal.c: New file, from glibc with modifications.
61259         * lib/siglist.h: New file, from glibc with modifications.
61260         * lib/string.in.h (strsignal): New declaration.
61261         * m4/strsignal.m4: New file.
61262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61263         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61264         * modules/strsignal: New file.
61265         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61266         HAVE_DECL_STRSIGNAL.
61267
61268 2008-01-13  Bruno Haible  <bruno@clisp.org>
61269
61270         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61271         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61272         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61274
61275 2008-01-13  Bruno Haible  <bruno@clisp.org>
61276
61277         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61278         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61279         * lib/argp.h (__attribute__): Likewise.
61280         * lib/c-stack.c (__attribute__): Likewise.
61281         * lib/error.h (__attribute__): Likewise.
61282         * lib/fts.c (__attribute__): Likewise.
61283         * lib/openat.h (__attribute__): Likewise.
61284         * lib/stdio.in.h (__attribute__): Likewise.
61285         * lib/string.in.h (__attribute__): Likewise.
61286         * lib/utimens.c (__attribute__): Likewise.
61287         * lib/vasnprintf.h (__attribute__): Likewise.
61288         * lib/xalloc.h (__attribute__): Likewise.
61289         * lib/xprintf.h (__attribute__): Likewise.
61290         * lib/xstrtol.h (__attribute__): Likewise.
61291         * lib/xvasprintf.h (__attribute__): Likewise.
61292
61293 2008-01-12  Bruno Haible  <bruno@clisp.org>
61294
61295         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61296         * doc/glibc-headers/a.out.texi: New file.
61297         * doc/glibc-headers/aliases.texi: New file.
61298         * doc/glibc-headers/alloca.texi: New file.
61299         * doc/glibc-headers/ar.texi: New file.
61300         * doc/glibc-headers/argp.texi: New file.
61301         * doc/glibc-headers/argz.texi: New file.
61302         * doc/glibc-headers/byteswap.texi: New file.
61303         * doc/glibc-headers/crypt.texi: New file.
61304         * doc/glibc-headers/endian.texi: New file.
61305         * doc/glibc-headers/envz.texi: New file.
61306         * doc/glibc-headers/err.texi: New file.
61307         * doc/glibc-headers/error.texi: New file.
61308         * doc/glibc-headers/execinfo.texi: New file.
61309         * doc/glibc-headers/fpu_control.texi: New file.
61310         * doc/glibc-headers/fstab.texi: New file.
61311         * doc/glibc-headers/fts.texi: New file.
61312         * doc/glibc-headers/getopt.texi: New file.
61313         * doc/glibc-headers/ieee754.texi: New file.
61314         * doc/glibc-headers/ifaddrs.texi: New file.
61315         * doc/glibc-headers/libintl.texi: New file.
61316         * doc/glibc-headers/mcheck.texi: New file.
61317         * doc/glibc-headers/mntent.texi: New file.
61318         * doc/glibc-headers/obstack.texi: New file.
61319         * doc/glibc-headers/paths.texi: New file.
61320         * doc/glibc-headers/printf.texi: New file.
61321         * doc/glibc-headers/pty.texi: New file.
61322         * doc/glibc-headers/resolv.texi: New file.
61323         * doc/glibc-headers/shadow.texi: New file.
61324         * doc/glibc-headers/sysexits.texi: New file.
61325         * doc/glibc-headers/ttyent.texi: New file.
61326
61327 2008-01-12  Jim Meyering  <meyering@redhat.com>
61328
61329         announce-gen: emit Gnulib's git-based version string.
61330         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61331         New option --gnulib-version=V, where V is expected to be
61332         the output of running git describe in the gnulib directory.
61333         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61334         not useful, and plan to stop publishing an xdelta file with each
61335         coreutils release.
61336
61337         * build-aux/announce-gen: Also check for lzma-compressed files.
61338
61339 2008-01-11  Bruno Haible  <bruno@clisp.org>
61340
61341         * tests/test-memmem.c (main): Increase maximum allowed time.
61342         * tests/test-strstr.c (main): Likewise.
61343
61344 2008-01-11  Bruno Haible  <bruno@clisp.org>
61345
61346         * doc/functions/memmem.texi: Add more precisions about platforms.
61347         * doc/functions/strstr.texi: Likewise.
61348
61349 2008-01-10  Eric Blake  <ebb9@byu.net>
61350
61351         * m4/strstr.m4: Delete cruft from copy-n-paste.
61352         Reported by Bruno Haible.
61353
61354 2008-01-10  Bruno Haible  <bruno@clisp.org>
61355
61356         Make c-strstr rely on strstr.
61357         * lib/c-strstr.c: Don't include str-kmp.h.
61358         (c_strstr): Define in terms of strstr.
61359         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61360         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61361
61362 2008-01-10  Bruno Haible  <bruno@clisp.org>
61363
61364         * doc/gnulib.texi (String Functions in C Locale): New section.
61365         * doc/c-ctype.texi: New file.
61366         * doc/c-strcase.texi: New file.
61367         * doc/c-strcaseeq.texi: New file.
61368         * doc/c-strcasestr.texi: New file.
61369         * doc/c-strstr.texi: New file.
61370         * doc/c-strtod.texi: New file.
61371         * doc/c-strtold.texi: New file.
61372
61373 2008-01-10  Eric Blake  <ebb9@byu.net>
61374
61375         * lib/relocatable.h: Fix a comment.
61376
61377 2008-01-10  Eric Blake  <ebb9@byu.net>
61378
61379         Share two-way algorithm.
61380         * lib/str-two-way.h: New file, merged from...
61381         * lib/memmem.c: ...here...
61382         * lib/strstr.c: ...and here.
61383         * modules/memmem (Files): Use it.
61384         * modules/strstr (Files): Likewise.
61385
61386         Avoid quadratic strstr implementations.
61387         * lib/strstr.c: New file.
61388         * m4/strstr.m4: Likewise.
61389         * modules/strstr: Likewise.
61390         * modules/strstr-tests: Likewise.
61391         * tests/test-strstr.c: Likewise.
61392         * lib/string.in.h (rpl_strstr): Declare.
61393         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61395         * modules/string (Makefile.am): Likewise.
61396         * MODULES.html.sh (string handling): Mention new module.
61397         * doc/functions/strstr.texi (strstr): Document the bug.
61398
61399 2008-01-10  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/relocatable.h (relocate): State whether result is freshly
61402         allocated or not.
61403         * lib/relocatable.c (relocate): Return a freshly allocated string
61404         instead of a pointer to a privately held string.
61405         Reported by Sylvain Beucler <beuc@gnu.org>.
61406
61407 2008-01-10  Colin Watson  <cjwatson@debian.org>
61408
61409         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61410         s/S_ISNLK/S_ISLNK/.
61411
61412 2008-01-09  Bruno Haible  <bruno@clisp.org>
61413
61414         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61415         and other files.
61416         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61417         if it's only a guess.
61418         * modules/memmem: Simplify by depending on memmem-simple.
61419
61420 2008-01-09  Bruno Haible  <bruno@clisp.org>
61421
61422         Work around OpenBSD 4.0 tdelete() bug.
61423         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61424         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61425         macros and don't redefine the enum values.
61426         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61427         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61428         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61429
61430 2008-01-09  Bruno Haible  <bruno@clisp.org>
61431
61432         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61433         (main): Don't perform the tests if setlocale did not install a UTF-8
61434         locale. Needed on OpenBSD 4.0.
61435         * modules/wcwidth-tests (Depends-on): Add localcharset.
61436
61437 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61438
61439         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61440         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61441         * NEWS: announce this.
61442         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61443
61444 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61445         and Eric Blake  <ebb9@byu.net>
61446
61447         Add memmem-simple module.
61448         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61449         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61450         * modules/memmem-simple: New file.
61451         * modules/memmem (Description): Tweak.
61452         * MODULES.html.sh (string handling): Mention new module.
61453         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61454         addressed by memmem-simple.
61455         * NEWS: Document the difference.
61456
61457 2008-01-09  Eric Blake  <ebb9@byu.net>
61458
61459         Give gcc some memmem optimization hints.
61460         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61461         (strcasestr): Declare as pure.
61462         * modules/memmem (Maintainer): Claim my implementation.
61463
61464 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61465
61466         Support AIX 6.1 and higher.
61467         * build-aux/config.libpath: Likewise.
61468         * build-aux/config.rpath: Likewise.
61469
61470 2008-01-08  Jim Meyering  <meyering@redhat.com>
61471             Bruno Haible  <bruno@clisp.org>
61472
61473         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61474         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61475         Reported by Peter Fales in
61476         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61477
61478 2008-01-08  Bruno Haible  <bruno@clisp.org>
61479
61480         * modules/unictype/category-of (Depends-on): Add
61481         unictype/category-none.
61482         * modules/unictype/category-and-tests (Depends-on): Add
61483         unictype/category-{L,N,Lu,Nd}.
61484         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61485         * modules/unictype/category-or-tests (Depends-on): Add
61486         unictype/category-{L,N}.
61487         * modules/unictype/category-name-tests (Depends-on): Add
61488         unictype/category-{Z,Nl}.
61489         Reported by Simon Josefsson.
61490
61491 2008-01-08  Bruno Haible  <bruno@clisp.org>
61492
61493         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61494         convention better.
61495         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61496         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61497         Reported by Peter Miller <millerp@canb.auug.org.au>.
61498
61499 2008-01-08  Eric Blake  <ebb9@byu.net>
61500
61501         Rewrite memmem to guarantee linear complexity without malloc.
61502         * lib/memmem.c (memmem): Use Two-Way rather than
61503         Knuth-Morris-Pratt, to allow O(1) space usage.
61504         (critical_factorization, two_way_short_needle)
61505         (two_way_long_needle): New functions.
61506         (knuth_morris_pratt): Delete.
61507         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61508         Add stdint.
61509         * tests/test-memmem.c (main): Add tests for periodic needle and
61510         sublinear performance.
61511         * doc/functions/memmem.texi (memmem): Document other deficiencies
61512         in cygwin and older glibc.
61513
61514 2008-01-08  Bruno Haible  <bruno@clisp.org>
61515
61516         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61517         augmentation.
61518
61519 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61520
61521         Add a configure time option: --disable-acl.
61522         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61523         AC_ARG_ENABLE(acl).
61524
61525 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61526
61527         * tests/test-localename.c: Don't include obsolete "setenv.h".
61528
61529         * modules/localename-tests (Depends-on): Need unsetenv.
61530
61531 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61532
61533         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61534
61535 2008-01-06  Colin Watson  <cjwatson@debian.org>
61536
61537         * users.txt: Add man-db.
61538
61539 2008-01-07  Bruno Haible  <bruno@clisp.org>
61540
61541         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61542         previous section name.
61543
61544 2008-01-07  Bruno Haible  <bruno@clisp.org>
61545
61546         * lib/progname.c (set_program_name): Don't strip off a leading
61547         "lt-" prefix outside a .libs directory.
61548         Suggested by Paul Eggert.
61549
61550 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61551             Bruno Haible  <bruno@clisp.org>
61552
61553         Improve memory cleanup in 'relocatable' module.
61554         * lib/relocatable.h (compute_curr_prefix): Change return type to
61555         'char *'.
61556         * lib/relocatable.c (compute_curr_prefix): Change return type to
61557         'char *'. Free curr_installdir after use.
61558         (relocate): Free curr_prefix_better after use.
61559         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61560
61561 2008-01-01  Bruno Haible  <bruno@clisp.org>
61562
61563         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61564         failure on older glibc systems.
61565         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61566
61567 2008-01-05  Eric Blake  <ebb9@byu.net>
61568
61569         Avoid quadratic system memmem.
61570         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61571         Reported by Ralf Wildenhues.
61572
61573         Fix memmem test for mingw.
61574         * modules/memmem-tests (configure.ac): Check for alarm.
61575         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61576         it.
61577         * doc/functions/memmem.texi: New file.
61578         * doc/gnulib.texi (Function Substitutes): Add memmem.
61579         Reported by Bruno Haible.
61580
61581 2008-01-04  Bruno Haible  <bruno@clisp.org>
61582
61583         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61584         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61585         gl_HEADER_STRING_H_DEFAULTS.
61586
61587 2008-01-04  Eric Blake  <ebb9@byu.net>
61588
61589         Shorten duration of memmem test.
61590         * tests/test-memmem.c (main): Use alarm to declare failure if test
61591         is taking too long.
61592         Reported by Ralf Wildenhues.
61593
61594 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61595
61596         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61597         string, needed by strerror.
61598
61599 2008-01-03  Colin Watson  <cjwatson@debian.org>
61600             Bruno Haible  <bruno@clisp.org>
61601
61602         * doc/gnulib-tool.texi (Localization): New section.
61603
61604 2008-01-02  Bruno Haible  <bruno@clisp.org>
61605
61606         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61607         variables to 'unsigned char *' type.
61608         Reported by Paul Eggert.
61609
61610 2008-01-02  Jim Meyering  <jim@meyering.net>
61611
61612         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61613
61614 2007-12-31  Jim Meyering  <jim@meyering.net>
61615
61616         Avoid use of private FTS type name.
61617         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61618
61619 2007-12-30  Karl Berry  <karl@gnu.org>
61620
61621         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61622         work around defect in Texinfo and/or the standalone Info browser.
61623
61624 2007-12-30  Bruno Haible  <bruno@clisp.org>
61625
61626         Unify 5 copies of the KMP code.
61627         * lib/str-kmp.h: New file.
61628         * lib/c-strcasestr.c: Include str-kmp.h.
61629         (knuth_morris_pratt): Remove function.
61630         (c_strcasestr): Update.
61631         * lib/c-strstr.c: Include str-kmp.h.
61632         (knuth_morris_pratt): Remove function.
61633         (c_strcasestr): Update.
61634         * lib/mbscasestr.c: Include str-kmp.h.
61635         (knuth_morris_pratt_unibyte): Remove function.
61636         * lib/mbsstr.c: Include str-kmp.h.
61637         (knuth_morris_pratt_unibyte): Remove function.
61638         * lib/strcasestr.c: Include str-kmp.h.
61639         (knuth_morris_pratt): Remove function.
61640         (strcasestr): Update.
61641         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61642         * modules/c-strstr (Files): Likewise.
61643         * modules/mbscasestr (Files): Likewise.
61644         * modules/mbsstr (Files): Likewise.
61645         * modules/strcasestr (Files): Likewise.
61646         Suggested by Paul Eggert.
61647
61648 2007-12-30  Bruno Haible  <bruno@clisp.org>
61649
61650         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61651         defined.
61652
61653 2007-12-30  Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/xmalloca.h: Include xalloc.h.
61656         (xnmalloca): New macro.
61657
61658 2007-12-30  Bruno Haible  <bruno@clisp.org>
61659
61660         * lib/malloca.h (nmalloca): New macro.
61661         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61662         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61663         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61664         knuth_morris_pratt_multibyte): Likewise.
61665         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61666         knuth_morris_pratt_multibyte): Likewise.
61667         * lib/memmem.c (knuth_morris_pratt): Likewise.
61668         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61669
61670 2007-12-25  Bruno Haible  <bruno@clisp.org>
61671
61672         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61673         * lib/glob.c: Don't include openat.h.
61674         (link_exists2_p): Add back the code that deals with the
61675         !GLOB_ALTDIRFUNC case.
61676         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61677         let it do the filename concatenation.
61678         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61679         * modules/glob (Depends-on): Remove openat.
61680
61681 2007-12-31  Bruno Haible  <bruno@clisp.org>
61682
61683         * modules/dirfd (License): Change to LGPLv2+.
61684         Approved by Jim Meyering.
61685
61686 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61689         when multiplying M by sizeof (size_t).
61690
61691 2007-12-10  Martin Lambers  <marlam@marlam.de>
61692
61693         Override getpagesize on mingw.
61694         * lib/getpagesize.c: New file.
61695         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61696         * modules/getpagesize (Files): Add lib/getpagesize.c.
61697         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61699         REPLACE_GETPAGESIZE.
61700         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61701
61702 2007-12-25  Bruno Haible  <bruno@clisp.org>
61703
61704         * modules/localcharset (Notice): New field.
61705         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61706         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61707
61708 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61709             Bruno Haible  <bruno@clisp.org>
61710
61711         Avoid using the syntax symbol() in formatted documentation.
61712         * MODULES.html.sh (func_module): When replacing symbol() with a
61713         hyperlink, remove the parentheses. Show an error if some remain.
61714         Recognize and render the '...' syntax.
61715         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61716         Rework. Add paragraph about GCC's inlining.
61717         * doc/alloca.texi: Likewise.
61718         * doc/error.texi: Remove parentheses from symbol reference.
61719         * doc/gnulib-intro.texi: Likewise.
61720         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61721         * modules/fnmatch (Description): Reword to say "the ... function".
61722         * modules/full-read (Description): Likewise.
61723         * modules/full-write (Description): Likewise.
61724         * modules/safe-read (Description): Likewise.
61725         * modules/safe-write (Description): Likewise.
61726         * modules/strchrnul (Description): Likewise.
61727         * modules/trim (Description): Likewise.
61728         * modules/error (Description): Remove parentheses from symbol
61729         references.
61730         * modules/verror (Description): Likewise.
61731         Reported by Karl Berry.
61732
61733 2007-12-25  Bruno Haible  <bruno@clisp.org>
61734
61735         Fixup after 2007-10-16 commit.
61736         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61737
61738 2007-12-24  Bruno Haible  <bruno@clisp.org>
61739
61740         Make --enable-relocatable work with DESTDIR.
61741         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61742         to compute installdir from destprog.
61743         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61744         also set the RELOC_DESTDIR variable.
61745         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61746
61747 2007-12-24  Bruno Haible  <bruno@clisp.org>
61748
61749         Fix link error due to xalloc_die().
61750         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61751         of xreadlink.
61752         * lib/relocwrapper.c: Update comments.
61753         * build-aux/install-reloc: Remove xreadlink.c from file list.
61754         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61755         xreadlink.c.
61756         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61757
61758 2007-12-24  Bruno Haible  <bruno@clisp.org>
61759
61760         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61761         * lib/setenv.h: Remove file.
61762         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61763         lib/setenv.h.
61764         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61765         (Depends-on): Add stdlib.
61766         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61767         gl_FUNC_UNSETENV.
61768         (Include): Replace setenv.h with <stdlib.h>.
61769         * modules/unsetenv: New file.
61770         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61771         * lib/unsetenv.c: Include <stdlib.h> first.
61772         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61773         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61774         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61775         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61776         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61777         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61779         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61780         * doc/functions/unsetenv.texi: Update.
61781         * modules/xsetenv (Depends-on): Add unsetenv.
61782         * modules/getdate (Depends-on): Likewise.
61783         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61784         * lib/xsetenv.c: Don't include setenv.h.
61785         * lib/getdate.y: Likewise.
61786         * lib/relocwrapper.c: Likewise.
61787         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61788         (Depends-on): Add stdlib.
61789         * NEWS: Mention the changes.
61790         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61791
61792 2007-12-23  Bruno Haible  <bruno@clisp.org>
61793
61794         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61795         indentation.
61796
61797 2007-12-23  Bruno Haible  <bruno@clisp.org>
61798
61799         * lib/c-strcasestr.c: Add more comments.
61800         * lib/c-strstr.c: Likewise.
61801         * lib/mbscasestr.c: Likewise.
61802         * lib/mbsstr.c: Likewise.
61803         * lib/strcasestr.c: Likewise.
61804         * lib/memmem.c: Likewise.
61805
61806 2007-12-23  Bruno Haible  <bruno@clisp.org>
61807
61808         * tests/test-memmem.c: Include <string.h> first.
61809
61810 2007-12-22  Bruno Haible  <bruno@clisp.org>
61811
61812         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61813         the contents of $testsbase.
61814         Reported by Ralf Wildenhues.
61815
61816 2007-12-22  Bruno Haible  <bruno@clisp.org>
61817
61818         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61819         two variables local_ldadd_before, local_ldadd_last.
61820
61821 2007-12-20  Eric Blake  <ebb9@byu.net>
61822
61823         Work around circular library issue when cross-compiling.
61824         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61825         that progname.o does not need to pull in rpl_memcmp.
61826
61827 2007-12-19  Eric Blake  <ebb9@byu.net>
61828
61829         Fix memmem to avoid O(n^2) worst-case complexity.
61830         * lib/memmem.c (knuth_morris_pratt): New function.
61831         (memmem): Use it if first few naive iterations fail.
61832         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61833         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61834         * modules/memchr (License): Likewise.
61835         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61836         malloca.
61837         * tests/test-memmem.c: Rewrite, borrowing ideas from
61838         test-mbsstr1.c; the old version wouldn't even compile!
61839         * modules/memmem-tests: New file.
61840         * lib/string.in.h (rpl_memmem): Add declaration.
61841         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61843         REPLACE_MEMMEM.
61844
61845 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61846
61847         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61848         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61849         before any system include files, and undef after them all.  This
61850         should fix a problem on VMS reported by John E. Malmberg in
61851         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61852
61853 2007-12-17  Eric Blake  <ebb9@byu.net>
61854
61855         Revert addition of verify, for BSD/OS.
61856         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61857         can't handle large files, for the sake of obsolete platforms.
61858         * modules/fseeko (Depends-on): Remove verify.
61859         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61860         * doc/functions/ftello.texi (ftello): Likewise.
61861         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61862         Reported by Larry Jones.
61863
61864 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61865
61866         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61867         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61868
61869 2007-12-17  Jim Meyering  <meyering@redhat.com>
61870
61871         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61872         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61873         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61874         * modules/getcwd (Depends-on): Add openat.
61875         Reported by Petr Salinger.
61876
61877 2007-12-17  Bruno Haible  <bruno@clisp.org>
61878
61879         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61880         avoid a segmentation fault of the configure test on x86_64 systems.
61881
61882 2007-12-15  Jim Meyering  <meyering@redhat.com>
61883
61884         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61885
61886 2007-12-13  Eric Blake  <ebb9@byu.net>
61887
61888         Another fseek test.
61889         * tests/test-fseek.c (main): Also test ungetc handling.
61890         * tests/test-fseeko.c (main): Likewise.
61891         * modules/fseeko (Depends-on): Add verify.
61892         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61893         large.
61894         Reported by Larry Jones.
61895
61896         Fix fseeko on mingw.
61897         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61898         seek.
61899
61900         Beef up fseek tests.
61901         * tests/test-fseek.c (main): Also test eof handling.
61902         * tests/test-fseeko.c (main): Likewise.
61903         Reported by Larry Jones.
61904
61905 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61906
61907         Fix fseeko on BSD-based platforms.
61908         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61909         successful seek.
61910
61911 2007-12-12  Eric Blake  <ebb9@byu.net>
61912
61913         Allow circular dependency of separate libtests.a
61914         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61915         when use_libtests.
61916
61917 2007-12-11  Eric Blake  <ebb9@byu.net>
61918
61919         Fix bug with -0.0L in previous patch.
61920         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61921         * tests/test-isnan.c (main): Also test on zeroes.
61922         * tests/test-isnanf.c (main): Likewise.
61923         * tests/test-isnanl.h (main): Likewise.
61924
61925         Detect pseudo-denormals on x86 even when cross-compiling.
61926         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61927         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61928         invalid bit patterns that happen to satisfy ==.
61929
61930         Avoid link failures with separate libtests.a.
61931         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61932         last, to satisfy circular dependencies.
61933
61934 2007-12-11  Eric Blake  <ebb9@byu.net>
61935         and Bruno Haible  <bruno@clisp.org>
61936
61937         Fix OpenBSD 4.0 <float.h> handling of long double.
61938         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61939         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61940         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61941
61942 2007-12-11  Jim Meyering  <meyering@redhat.com>
61943
61944         * users.txt: Add libvirt.
61945
61946         Support versions of autoconf prior to 2.59c.
61947         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61948         if it is not already defined.
61949
61950 2007-12-09  Bruno Haible  <bruno@clisp.org>
61951
61952         Let 'gnulib-tool --import' collect sources needed for the tests in
61953         tests/ rather than in lib/.
61954         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61955         argument. If true, add rules to generate libtests.a, and put libtests.a
61956         into $(LDADD). Consider source files in subdirectories and set
61957         uses_subdirs.
61958         (func_emit_initmacro_start, func_emit_initmacro_end,
61959         func_emit_initmacro_done): Pass all arguments explicitly.
61960         (func_import): Determine two module lists main_modules,
61961         testsrelated_modules. Determine use_libtests. Determine two variables
61962         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61963         instead of just sed_transform_lib_file. Determine two variables
61964         main_files and testsrelated_files. Compute 'files' as the union of
61965         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61966         func_add_or_update. In the generated gnulib-comp.m4, collect the
61967         object files for tests/ in different variables than those for lib/.
61968         Substitute LIBTESTS_LIBDEPS.
61969         (func_create_testdir): Combine the uses_subdirs results from
61970         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61971
61972 2007-12-09  Bruno Haible  <bruno@clisp.org>
61973
61974         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61975         the build-aux directory.
61976
61977 2007-12-09  Bruno Haible  <bruno@clisp.org>
61978
61979         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61980         introduced on 2006-09-09.
61981
61982 2007-12-07  Jim Meyering  <meyering@redhat.com>
61983
61984         Let these macros work also with autoconf-2.59.
61985         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61986         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61987         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61988
61989 2007-12-06  Jim Meyering  <meyering@redhat.com>
61990
61991         Avoid a configure-time syntax error in gl_FUNC_ACL.
61992         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61993         function in each branch, before testing the cache variable.
61994
61995 2007-12-04  Eric Blake  <ebb9@byu.net>
61996
61997         Make scripts executable.
61998         * build-aux/config.guess: Add execute permissions.
61999         * build-aux/config.sub: Likewise.
62000         * build-aux/gendocs.sh: Likewise.
62001
62002         Fix frexp on mingw.
62003         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62004         cross-compiling.
62005         * doc/functions/frexp.texi (frexp): Document the bug.
62006
62007         Make cygwin fseeko check more reliable.
62008         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62009         version numbers, rather than unrelated feature check.
62010         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62011         * doc/functions/ftello.texi (ftello): Likewise.
62012         Reported by Bruno Haible.
62013
62014         * m4/strerror.m4: Bump version number.
62015
62016 2007-12-03  Bruno Haible  <bruno@clisp.org>
62017
62018         * doc/functions/mprotect.texi: Mention the mingw problem.
62019
62020 2007-12-03  Eric Blake  <ebb9@byu.net>
62021
62022         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62023         REPLACE_STRERROR is initialized before this macro.
62024
62025 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62028         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62029         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62030         put -lsec in even for programs other than 'ls'.  This fixes a problem
62031         for gettext reported by Bruno Haible in
62032         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62033         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62034         Add support for Solaris 10.  This isn't efficient, but should get the
62035         job done for now.
62036
62037 2007-12-03  James Youngman  <jay@gnu.org>
62038
62039         * doc/regexprops-generic.texi: change "an close-group" to "a
62040         close-group" and "illegal" to "not allowed".
62041
62042 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62043
62044         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62045         pr_byname.h. Needed for the rare case when the maintainer has done
62046         "make maintainer-clean" in the source directory and then attempts a
62047         build outside the source directory.
62048         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62049         scripts_byname.h.
62050
62051 2007-12-02  Martin Lambers <marlam@marlam.de>
62052             Bruno Haible  <bruno@clisp.org>
62053
62054         * lib/getpagesize.h: Remove file.
62055         * lib/unistd.in.h: Include declaration of getpagesize here.
62056         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62057         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62058         HAVE_SYS_PARAM_H.
62059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62060         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62061         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62062         (Depends-on): Add unistd.
62063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62064         (Include): Use <unistd.h> instead of getpagesize.h.
62065         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62066         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62067         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62068         gl_GETPAGESIZE invocation, already handled by module dependency.
62069         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62070
62071 2007-12-02  Bruno Haible  <bruno@clisp.org>
62072
62073         * modules/strings-tests: New file.
62074         * tests/test-strings.c: New file.
62075
62076         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62077         * lib/strings.in.h: New file.
62078         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62079         * m4/strings_h.m4: New file.
62080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62081         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62082         * modules/strings: New file.
62083         * modules/string (Makefile.am): Update.
62084         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62085         Reported by Karl Berry.
62086
62087 2007-12-01  Eric Blake  <ebb9@byu.net>
62088
62089         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62090         accommodate fix in cygwin 1.5.25.
62091
62092 2007-12-01  Jim Meyering  <meyering@redhat.com>
62093
62094         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62095         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62096         that would inhibit utf8-optimization of a regexp containing line-
62097         or buffer-anchors, e.g., `^', `$'.
62098
62099 2007-11-30  Bruno Haible  <bruno@clisp.org>
62100
62101         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62102         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62103         glthread_recursive_lock_init.
62104         * lib/lock.c (glthread_recursive_lock_init)
62105         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62106         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62107
62108 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         New function qset_acl, like set_acl but with syscall semantics.
62111         * lib/acl.h (qset_acl): New decl.
62112         * lib/acl.c (qset_acl): New function.
62113         (set_acl): Use new function.  Use more-consistent diagnostics.
62114
62115 2007-11-28  Jim Meyering  <meyering@redhat.com>
62116
62117         * modules/physmem (License): Change from GPL to LGPLv2+.
62118
62119 2007-11-26  Bruno Haible  <bruno@clisp.org>
62120
62121         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62122         'long double' type has excess precision.
62123         Reported by Jim Meyering in
62124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62125
62126 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62127
62128         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62129         Sync from <http://gnu.org/licenses>.
62130         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62131         with license text from same location.
62132         * doc/maintain.texi, doc/standards.texi:  Sync from
62133         <http://savannah.gnu.org/projects/gnustandards>.
62134
62135 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62136         and Jim Meyering  <meyering@redhat.com>
62137
62138         Adjust getdate' grammar to accept a slightly more regular language.
62139         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62140         Before, the former was rejected.
62141         * lib/getdate.y (digits_to_date_time): New function, factored
62142         out of ...
62143         (number): ...here.  Just call digits_to_date_time.
62144         (hybrid): New non-terminal to handle an <unsigned number,
62145         signed relative offset> sequence consistently.
62146
62147 2007-11-18  Jim Meyering  <meyering@redhat.com>
62148
62149         Pull my changes from coreutils:
62150         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62151         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62152         use of $gnulib_tool_option_extras, so that it's separated from the
62153         preceding argument.
62154
62155         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62156         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62157         parent destination directories before copying a file into place.
62158
62159 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62160
62161         bootstrap: work also with 4-argument variant of AC_INIT
62162         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62163
62164 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62165
62166         Port test-getaddrinfo to Solaris.
62167         Problem reported by Bruno Haible in
62168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62169         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62170         explanation of setting 'hints'.
62171         Don't reject an implementation merely because it returns EAI_SERVICE.
62172         (EAI_SERVICE): Define to 0 if not defined.
62173
62174 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         The license of gnu-make and posix-shell is now "GPLed build tool".
62177         * modules/gnu-make (License): Likewise.
62178         * modules/posix-shell (License): Likewise.
62179
62180         New module posix-shell, for determining a POSIX shell
62181         or perhaps something that is close enough to a POSIX shell.
62182         * m4/posix-shell.m4: New file.
62183         * modules/posix-shell: New file.
62184
62185         * MODULES.html.sh: Mention new module.
62186
62187         New module gnu-make, for determining whether we're using GNU Make.
62188         * m4/gnu-make.m4: New file.
62189         * modules/gnu-make: New file.
62190         * MODULES.html.sh: Mention new module.
62191
62192 2007-11-14  Jim Meyering  <meyering@redhat.com>
62193
62194         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62195         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62196         use this macro to create a function _definition_.
62197         Remove useless "#undef ARGMATCH_DIE".
62198
62199 2007-11-14  Bruno Haible  <bruno@clisp.org>
62200
62201         * lib/config.charset: Update for OpenBSD 4.1.
62202         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62203
62204 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62205
62206         Document 64-bit #if problems in stdint.texi.
62207         * doc/headers/stdint.texi (stdint.h): Mention problems with
62208         64-bit-#if, and how to work around them.
62209
62210         Don't insist on 'long long int' support in the preprocessor.  It
62211         breaks too many things.  For example, PRIdMAX still uses a 'long
62212         long int' format with the latest Sun compiler, even though
62213         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62214         preprocessor problem.  This causes the latest coreutils to dump
62215         core on Solaris 10 sparc with the Sun C compiler.
62216         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62217         the troublesome expressions at configure-time, not at #if-time.
62218         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62219         preprocessor.
62220         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62221         compile-time C checks, done at 'configure'-time.
62222         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62223         * modules/inttypes (Makefile): Substitute the new symbols that
62224         gl_INTTYPES_H now generates.
62225         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62226
62227 2007-11-12  Bruno Haible  <bruno@clisp.org>
62228
62229         Tests for Unicode character classification functions.
62230
62231         * modules/unictype/bidicategory-byname-tests: New file.
62232         * modules/unictype/bidicategory-name-tests: New file.
62233         * modules/unictype/bidicategory-of-tests: New file.
62234         * modules/unictype/bidicategory-test-tests: New file.
62235         * modules/unictype/block-list-tests: New file.
62236         * modules/unictype/block-of-tests: New file.
62237         * modules/unictype/block-test-tests: New file.
62238         * modules/unictype/category-C-tests: New file.
62239         * modules/unictype/category-Cc-tests: New file.
62240         * modules/unictype/category-Cf-tests: New file.
62241         * modules/unictype/category-Cn-tests: New file.
62242         * modules/unictype/category-Co-tests: New file.
62243         * modules/unictype/category-Cs-tests: New file.
62244         * modules/unictype/category-L-tests: New file.
62245         * modules/unictype/category-Ll-tests: New file.
62246         * modules/unictype/category-Lm-tests: New file.
62247         * modules/unictype/category-Lo-tests: New file.
62248         * modules/unictype/category-Lt-tests: New file.
62249         * modules/unictype/category-Lu-tests: New file.
62250         * modules/unictype/category-M-tests: New file.
62251         * modules/unictype/category-Mc-tests: New file.
62252         * modules/unictype/category-Me-tests: New file.
62253         * modules/unictype/category-Mn-tests: New file.
62254         * modules/unictype/category-N-tests: New file.
62255         * modules/unictype/category-Nd-tests: New file.
62256         * modules/unictype/category-Nl-tests: New file.
62257         * modules/unictype/category-No-tests: New file.
62258         * modules/unictype/category-P-tests: New file.
62259         * modules/unictype/category-Pc-tests: New file.
62260         * modules/unictype/category-Pd-tests: New file.
62261         * modules/unictype/category-Pe-tests: New file.
62262         * modules/unictype/category-Pf-tests: New file.
62263         * modules/unictype/category-Pi-tests: New file.
62264         * modules/unictype/category-Po-tests: New file.
62265         * modules/unictype/category-Ps-tests: New file.
62266         * modules/unictype/category-S-tests: New file.
62267         * modules/unictype/category-Sc-tests: New file.
62268         * modules/unictype/category-Sk-tests: New file.
62269         * modules/unictype/category-Sm-tests: New file.
62270         * modules/unictype/category-So-tests: New file.
62271         * modules/unictype/category-Z-tests: New file.
62272         * modules/unictype/category-Zl-tests: New file.
62273         * modules/unictype/category-Zp-tests: New file.
62274         * modules/unictype/category-Zs-tests: New file.
62275         * modules/unictype/category-and-not-tests: New file.
62276         * modules/unictype/category-and-tests: New file.
62277         * modules/unictype/category-byname-tests: New file.
62278         * modules/unictype/category-name-tests: New file.
62279         * modules/unictype/category-none-tests: New file.
62280         * modules/unictype/category-of-tests: New file.
62281         * modules/unictype/category-or-tests: New file.
62282         * modules/unictype/category-test-withtable-tests: New file.
62283         * modules/unictype/combining-class-tests: New file.
62284         * modules/unictype/ctype-alnum-tests: New file.
62285         * modules/unictype/ctype-alpha-tests: New file.
62286         * modules/unictype/ctype-blank-tests: New file.
62287         * modules/unictype/ctype-cntrl-tests: New file.
62288         * modules/unictype/ctype-digit-tests: New file.
62289         * modules/unictype/ctype-graph-tests: New file.
62290         * modules/unictype/ctype-lower-tests: New file.
62291         * modules/unictype/ctype-print-tests: New file.
62292         * modules/unictype/ctype-punct-tests: New file.
62293         * modules/unictype/ctype-space-tests: New file.
62294         * modules/unictype/ctype-upper-tests: New file.
62295         * modules/unictype/ctype-xdigit-tests: New file.
62296         * modules/unictype/decimal-digit-tests: New file.
62297         * modules/unictype/digit-tests: New file.
62298         * modules/unictype/mirror-tests: New file.
62299         * modules/unictype/numeric-tests: New file.
62300         * modules/unictype/property-alphabetic-tests: New file.
62301         * modules/unictype/property-ascii-hex-digit-tests: New file.
62302         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62303         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62304         * modules/unictype/property-bidi-block-separator-tests: New file.
62305         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62306         * modules/unictype/property-bidi-common-separator-tests: New file.
62307         * modules/unictype/property-bidi-control-tests: New file.
62308         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62309         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62310         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62311         * modules/unictype/property-bidi-european-digit-tests: New file.
62312         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62313         * modules/unictype/property-bidi-left-to-right-tests: New file.
62314         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62315         * modules/unictype/property-bidi-other-neutral-tests: New file.
62316         * modules/unictype/property-bidi-pdf-tests: New file.
62317         * modules/unictype/property-bidi-segment-separator-tests: New file.
62318         * modules/unictype/property-bidi-whitespace-tests: New file.
62319         * modules/unictype/property-byname-tests: New file.
62320         * modules/unictype/property-combining-tests: New file.
62321         * modules/unictype/property-composite-tests: New file.
62322         * modules/unictype/property-currency-symbol-tests: New file.
62323         * modules/unictype/property-dash-tests: New file.
62324         * modules/unictype/property-decimal-digit-tests: New file.
62325         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62326         * modules/unictype/property-deprecated-tests: New file.
62327         * modules/unictype/property-diacritic-tests: New file.
62328         * modules/unictype/property-extender-tests: New file.
62329         * modules/unictype/property-format-control-tests: New file.
62330         * modules/unictype/property-grapheme-base-tests: New file.
62331         * modules/unictype/property-grapheme-extend-tests: New file.
62332         * modules/unictype/property-grapheme-link-tests: New file.
62333         * modules/unictype/property-hex-digit-tests: New file.
62334         * modules/unictype/property-hyphen-tests: New file.
62335         * modules/unictype/property-id-continue-tests: New file.
62336         * modules/unictype/property-id-start-tests: New file.
62337         * modules/unictype/property-ideographic-tests: New file.
62338         * modules/unictype/property-ids-binary-operator-tests: New file.
62339         * modules/unictype/property-ids-trinary-operator-tests: New file.
62340         * modules/unictype/property-ignorable-control-tests: New file.
62341         * modules/unictype/property-iso-control-tests: New file.
62342         * modules/unictype/property-join-control-tests: New file.
62343         * modules/unictype/property-left-of-pair-tests: New file.
62344         * modules/unictype/property-line-separator-tests: New file.
62345         * modules/unictype/property-logical-order-exception-tests: New file.
62346         * modules/unictype/property-lowercase-tests: New file.
62347         * modules/unictype/property-math-tests: New file.
62348         * modules/unictype/property-non-break-tests: New file.
62349         * modules/unictype/property-not-a-character-tests: New file.
62350         * modules/unictype/property-numeric-tests: New file.
62351         * modules/unictype/property-other-alphabetic-tests: New file.
62352         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62353         * modules/unictype/property-other-grapheme-extend-tests: New file.
62354         * modules/unictype/property-other-id-continue-tests: New file.
62355         * modules/unictype/property-other-id-start-tests: New file.
62356         * modules/unictype/property-other-lowercase-tests: New file.
62357         * modules/unictype/property-other-math-tests: New file.
62358         * modules/unictype/property-other-uppercase-tests: New file.
62359         * modules/unictype/property-paired-punctuation-tests: New file.
62360         * modules/unictype/property-paragraph-separator-tests: New file.
62361         * modules/unictype/property-pattern-syntax-tests: New file.
62362         * modules/unictype/property-pattern-white-space-tests: New file.
62363         * modules/unictype/property-private-use-tests: New file.
62364         * modules/unictype/property-punctuation-tests: New file.
62365         * modules/unictype/property-quotation-mark-tests: New file.
62366         * modules/unictype/property-radical-tests: New file.
62367         * modules/unictype/property-sentence-terminal-tests: New file.
62368         * modules/unictype/property-soft-dotted-tests: New file.
62369         * modules/unictype/property-space-tests: New file.
62370         * modules/unictype/property-terminal-punctuation-tests: New file.
62371         * modules/unictype/property-test-tests: New file.
62372         * modules/unictype/property-titlecase-tests: New file.
62373         * modules/unictype/property-unassigned-code-value-tests: New file.
62374         * modules/unictype/property-unified-ideograph-tests: New file.
62375         * modules/unictype/property-uppercase-tests: New file.
62376         * modules/unictype/property-variation-selector-tests: New file.
62377         * modules/unictype/property-white-space-tests: New file.
62378         * modules/unictype/property-xid-continue-tests: New file.
62379         * modules/unictype/property-xid-start-tests: New file.
62380         * modules/unictype/property-zero-width-tests: New file.
62381         * modules/unictype/scripts-tests: New file.
62382         * modules/unictype/syntax-c-ident-tests: New file.
62383         * modules/unictype/syntax-c-whitespace-tests: New file.
62384         * modules/unictype/syntax-java-ident-tests: New file.
62385         * modules/unictype/syntax-java-whitespace-tests: New file.
62386         * tests/unictype/test-bidi_byname.c: New file.
62387         * tests/unictype/test-bidi_name.c: New file.
62388         * tests/unictype/test-bidi_of.c: New file.
62389         * tests/unictype/test-bidi_test.c: New file.
62390         * tests/unictype/test-block_list.c: New file.
62391         * tests/unictype/test-block_of.c: New file.
62392         * tests/unictype/test-block_test.c: New file.
62393         * tests/unictype/test-categ_and.c: New file.
62394         * tests/unictype/test-categ_and_not.c: New file.
62395         * tests/unictype/test-categ_byname.c: New file.
62396         * tests/unictype/test-categ_name.c: New file.
62397         * tests/unictype/test-categ_none.c: New file.
62398         * tests/unictype/test-categ_of.c: New file.
62399         * tests/unictype/test-categ_or.c: New file.
62400         * tests/unictype/test-categ_test_withtable.c: New file.
62401         * tests/unictype/test-combining.c: New file.
62402         * tests/unictype/test-decdigit.c: New file.
62403         * tests/unictype/test-digit.c: New file.
62404         * tests/unictype/test-mirror.c: New file.
62405         * tests/unictype/test-numeric.c: New file.
62406         * tests/unictype/test-pr_byname.c: New file.
62407         * tests/unictype/test-pr_test.c: New file.
62408         * tests/unictype/test-predicate-part1.h: New file.
62409         * tests/unictype/test-predicate-part2.h: New file.
62410         * tests/unictype/test-scripts.c: New file.
62411         * tests/unictype/test-sy_c_ident.c: New file.
62412         * tests/unictype/test-sy_java_ident.c: New file.
62413
62414         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62415         for Unicode 5.0.0.
62416         * tests/unictype/test-categ_Cc.c: Likewise.
62417         * tests/unictype/test-categ_Cf.c: Likewise.
62418         * tests/unictype/test-categ_Cn.c: Likewise.
62419         * tests/unictype/test-categ_Co.c: Likewise.
62420         * tests/unictype/test-categ_Cs.c: Likewise.
62421         * tests/unictype/test-categ_L.c: Likewise.
62422         * tests/unictype/test-categ_Ll.c: Likewise.
62423         * tests/unictype/test-categ_Lm.c: Likewise.
62424         * tests/unictype/test-categ_Lo.c: Likewise.
62425         * tests/unictype/test-categ_Lt.c: Likewise.
62426         * tests/unictype/test-categ_Lu.c: Likewise.
62427         * tests/unictype/test-categ_M.c: Likewise.
62428         * tests/unictype/test-categ_Mc.c: Likewise.
62429         * tests/unictype/test-categ_Me.c: Likewise.
62430         * tests/unictype/test-categ_Mn.c: Likewise.
62431         * tests/unictype/test-categ_N.c: Likewise.
62432         * tests/unictype/test-categ_Nd.c: Likewise.
62433         * tests/unictype/test-categ_Nl.c: Likewise.
62434         * tests/unictype/test-categ_No.c: Likewise.
62435         * tests/unictype/test-categ_P.c: Likewise.
62436         * tests/unictype/test-categ_Pc.c: Likewise.
62437         * tests/unictype/test-categ_Pd.c: Likewise.
62438         * tests/unictype/test-categ_Pe.c: Likewise.
62439         * tests/unictype/test-categ_Pf.c: Likewise.
62440         * tests/unictype/test-categ_Pi.c: Likewise.
62441         * tests/unictype/test-categ_Po.c: Likewise.
62442         * tests/unictype/test-categ_Ps.c: Likewise.
62443         * tests/unictype/test-categ_S.c: Likewise.
62444         * tests/unictype/test-categ_Sc.c: Likewise.
62445         * tests/unictype/test-categ_Sk.c: Likewise.
62446         * tests/unictype/test-categ_Sm.c: Likewise.
62447         * tests/unictype/test-categ_So.c: Likewise.
62448         * tests/unictype/test-categ_Z.c: Likewise.
62449         * tests/unictype/test-categ_Zl.c: Likewise.
62450         * tests/unictype/test-categ_Zp.c: Likewise.
62451         * tests/unictype/test-categ_Zs.c: Likewise.
62452         * tests/unictype/test-ctype_alnum.c: Likewise.
62453         * tests/unictype/test-ctype_alpha.c: Likewise.
62454         * tests/unictype/test-ctype_blank.c: Likewise.
62455         * tests/unictype/test-ctype_cntrl.c: Likewise.
62456         * tests/unictype/test-ctype_digit.c: Likewise.
62457         * tests/unictype/test-ctype_graph.c: Likewise.
62458         * tests/unictype/test-ctype_lower.c: Likewise.
62459         * tests/unictype/test-ctype_print.c: Likewise.
62460         * tests/unictype/test-ctype_punct.c: Likewise.
62461         * tests/unictype/test-ctype_space.c: Likewise.
62462         * tests/unictype/test-ctype_upper.c: Likewise.
62463         * tests/unictype/test-ctype_xdigit.c: Likewise.
62464         * tests/unictype/test-decdigit.h: Likewise.
62465         * tests/unictype/test-digit.h: Likewise.
62466         * tests/unictype/test-numeric.h: Likewise.
62467         * tests/unictype/test-pr_alphabetic.c: Likewise.
62468         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62469         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62470         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62471         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62472         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62473         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62474         * tests/unictype/test-pr_bidi_control.c: Likewise.
62475         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62476         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62477         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62478         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62479         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62480         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62481         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62482         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62483         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62484         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62485         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62486         * tests/unictype/test-pr_combining.c: Likewise.
62487         * tests/unictype/test-pr_composite.c: Likewise.
62488         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62489         * tests/unictype/test-pr_dash.c: Likewise.
62490         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62491         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62492         * tests/unictype/test-pr_deprecated.c: Likewise.
62493         * tests/unictype/test-pr_diacritic.c: Likewise.
62494         * tests/unictype/test-pr_extender.c: Likewise.
62495         * tests/unictype/test-pr_format_control.c: Likewise.
62496         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62497         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62498         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62499         * tests/unictype/test-pr_hex_digit.c: Likewise.
62500         * tests/unictype/test-pr_hyphen.c: Likewise.
62501         * tests/unictype/test-pr_id_continue.c: Likewise.
62502         * tests/unictype/test-pr_id_start.c: Likewise.
62503         * tests/unictype/test-pr_ideographic.c: Likewise.
62504         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62505         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62506         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62507         * tests/unictype/test-pr_iso_control.c: Likewise.
62508         * tests/unictype/test-pr_join_control.c: Likewise.
62509         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62510         * tests/unictype/test-pr_line_separator.c: Likewise.
62511         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62512         * tests/unictype/test-pr_lowercase.c: Likewise.
62513         * tests/unictype/test-pr_math.c: Likewise.
62514         * tests/unictype/test-pr_non_break.c: Likewise.
62515         * tests/unictype/test-pr_not_a_character.c: Likewise.
62516         * tests/unictype/test-pr_numeric.c: Likewise.
62517         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62518         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62519         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62520         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62521         * tests/unictype/test-pr_other_id_start.c: Likewise.
62522         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62523         * tests/unictype/test-pr_other_math.c: Likewise.
62524         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62525         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62526         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62527         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62528         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62529         * tests/unictype/test-pr_private_use.c: Likewise.
62530         * tests/unictype/test-pr_punctuation.c: Likewise.
62531         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62532         * tests/unictype/test-pr_radical.c: Likewise.
62533         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62534         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62535         * tests/unictype/test-pr_space.c: Likewise.
62536         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62537         * tests/unictype/test-pr_titlecase.c: Likewise.
62538         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62539         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62540         * tests/unictype/test-pr_uppercase.c: Likewise.
62541         * tests/unictype/test-pr_variation_selector.c: Likewise.
62542         * tests/unictype/test-pr_white_space.c: Likewise.
62543         * tests/unictype/test-pr_xid_continue.c: Likewise.
62544         * tests/unictype/test-pr_xid_start.c: Likewise.
62545         * tests/unictype/test-pr_zero_width.c: Likewise.
62546         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62547         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62548
62549 2007-11-12  Bruno Haible  <bruno@clisp.org>
62550
62551         Unicode character classification functions.
62552         * lib/unictype.h: New file.
62553         * modules/unictype/base: New file.
62554         * modules/unictype/category-L: New file.
62555         * modules/unictype/category-Lu: New file.
62556         * modules/unictype/category-Ll: New file.
62557         * modules/unictype/category-Lt: New file.
62558         * modules/unictype/category-Lm: New file.
62559         * modules/unictype/category-Lo: New file.
62560         * modules/unictype/category-M: New file.
62561         * modules/unictype/category-Mn: New file.
62562         * modules/unictype/category-Mc: New file.
62563         * modules/unictype/category-Me: New file.
62564         * modules/unictype/category-N: New file.
62565         * modules/unictype/category-Nd: New file.
62566         * modules/unictype/category-Nl: New file.
62567         * modules/unictype/category-No: New file.
62568         * modules/unictype/category-P: New file.
62569         * modules/unictype/category-Pc: New file.
62570         * modules/unictype/category-Pd: New file.
62571         * modules/unictype/category-Ps: New file.
62572         * modules/unictype/category-Pe: New file.
62573         * modules/unictype/category-Pi: New file.
62574         * modules/unictype/category-Pf: New file.
62575         * modules/unictype/category-Po: New file.
62576         * modules/unictype/category-S: New file.
62577         * modules/unictype/category-Sm: New file.
62578         * modules/unictype/category-Sc: New file.
62579         * modules/unictype/category-Sk: New file.
62580         * modules/unictype/category-So: New file.
62581         * modules/unictype/category-Z: New file.
62582         * modules/unictype/category-Zs: New file.
62583         * modules/unictype/category-Zl: New file.
62584         * modules/unictype/category-Zp: New file.
62585         * modules/unictype/category-C: New file.
62586         * modules/unictype/category-Cc: New file.
62587         * modules/unictype/category-Cf: New file.
62588         * modules/unictype/category-Cs: New file.
62589         * modules/unictype/category-Co: New file.
62590         * modules/unictype/category-Cn: New file.
62591         * modules/unictype/category-or: New file.
62592         * modules/unictype/category-of: New file.
62593         * modules/unictype/category-test: New file.
62594         * modules/unictype/category-test-withtable: New file.
62595         * modules/unictype/category-byname: New file.
62596         * modules/unictype/category-none: New file.
62597         * modules/unictype/category-and: New file.
62598         * modules/unictype/category-and-not: New file.
62599         * modules/unictype/category-name: New file.
62600         * modules/unictype/combining-class: New file.
62601         * modules/unictype/category-all: New file.
62602         * modules/unictype/bidicategory-all: New file.
62603         * modules/unictype/bidicategory-byname: New file.
62604         * modules/unictype/bidicategory-name: New file.
62605         * modules/unictype/bidicategory-of: New file.
62606         * modules/unictype/bidicategory-test: New file.
62607         * modules/unictype/decimal-digit: New file.
62608         * modules/unictype/digit: New file.
62609         * modules/unictype/numeric: New file.
62610         * modules/unictype/mirror: New file.
62611         * modules/unictype/property-white-space: New file.
62612         * modules/unictype/property-alphabetic: New file.
62613         * modules/unictype/property-other-alphabetic: New file.
62614         * modules/unictype/property-not-a-character: New file.
62615         * modules/unictype/property-default-ignorable-code-point: New file.
62616         * modules/unictype/property-other-default-ignorable-code-point: New
62617         file.
62618         * modules/unictype/property-deprecated: New file.
62619         * modules/unictype/property-logical-order-exception: New file.
62620         * modules/unictype/property-variation-selector: New file.
62621         * modules/unictype/property-private-use: New file.
62622         * modules/unictype/property-unassigned-code-value: New file.
62623         * modules/unictype/property-uppercase: New file.
62624         * modules/unictype/property-other-uppercase: New file.
62625         * modules/unictype/property-lowercase: New file.
62626         * modules/unictype/property-other-lowercase: New file.
62627         * modules/unictype/property-titlecase: New file.
62628         * modules/unictype/property-soft-dotted: New file.
62629         * modules/unictype/property-id-start: New file.
62630         * modules/unictype/property-other-id-start: New file.
62631         * modules/unictype/property-id-continue: New file.
62632         * modules/unictype/property-other-id-continue: New file.
62633         * modules/unictype/property-xid-start: New file.
62634         * modules/unictype/property-xid-continue: New file.
62635         * modules/unictype/property-pattern-white-space: New file.
62636         * modules/unictype/property-pattern-syntax: New file.
62637         * modules/unictype/property-join-control: New file.
62638         * modules/unictype/property-grapheme-base: New file.
62639         * modules/unictype/property-grapheme-extend: New file.
62640         * modules/unictype/property-other-grapheme-extend: New file.
62641         * modules/unictype/property-grapheme-link: New file.
62642         * modules/unictype/property-bidi-control: New file.
62643         * modules/unictype/property-bidi-left-to-right: New file.
62644         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62645         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62646         * modules/unictype/property-bidi-european-digit: New file.
62647         * modules/unictype/property-bidi-eur-num-separator: New file.
62648         * modules/unictype/property-bidi-eur-num-terminator: New file.
62649         * modules/unictype/property-bidi-arabic-digit: New file.
62650         * modules/unictype/property-bidi-common-separator: New file.
62651         * modules/unictype/property-bidi-block-separator: New file.
62652         * modules/unictype/property-bidi-segment-separator: New file.
62653         * modules/unictype/property-bidi-whitespace: New file.
62654         * modules/unictype/property-bidi-non-spacing-mark: New file.
62655         * modules/unictype/property-bidi-boundary-neutral: New file.
62656         * modules/unictype/property-bidi-pdf: New file.
62657         * modules/unictype/property-bidi-embedding-or-override: New file.
62658         * modules/unictype/property-bidi-other-neutral: New file.
62659         * modules/unictype/property-hex-digit: New file.
62660         * modules/unictype/property-ascii-hex-digit: New file.
62661         * modules/unictype/property-ideographic: New file.
62662         * modules/unictype/property-unified-ideograph: New file.
62663         * modules/unictype/property-radical: New file.
62664         * modules/unictype/property-ids-binary-operator: New file.
62665         * modules/unictype/property-ids-trinary-operator: New file.
62666         * modules/unictype/property-zero-width: New file.
62667         * modules/unictype/property-space: New file.
62668         * modules/unictype/property-non-break: New file.
62669         * modules/unictype/property-iso-control: New file.
62670         * modules/unictype/property-format-control: New file.
62671         * modules/unictype/property-dash: New file.
62672         * modules/unictype/property-hyphen: New file.
62673         * modules/unictype/property-punctuation: New file.
62674         * modules/unictype/property-line-separator: New file.
62675         * modules/unictype/property-paragraph-separator: New file.
62676         * modules/unictype/property-quotation-mark: New file.
62677         * modules/unictype/property-sentence-terminal: New file.
62678         * modules/unictype/property-terminal-punctuation: New file.
62679         * modules/unictype/property-currency-symbol: New file.
62680         * modules/unictype/property-math: New file.
62681         * modules/unictype/property-other-math: New file.
62682         * modules/unictype/property-paired-punctuation: New file.
62683         * modules/unictype/property-left-of-pair: New file.
62684         * modules/unictype/property-combining: New file.
62685         * modules/unictype/property-composite: New file.
62686         * modules/unictype/property-decimal-digit: New file.
62687         * modules/unictype/property-numeric: New file.
62688         * modules/unictype/property-diacritic: New file.
62689         * modules/unictype/property-extender: New file.
62690         * modules/unictype/property-ignorable-control: New file.
62691         * modules/unictype/property-test: New file.
62692         * modules/unictype/property-byname: New file.
62693         * modules/unictype/property-all: New file.
62694         * modules/unictype/scripts: New file.
62695         * modules/unictype/scripts-all: New file.
62696         * modules/unictype/block-of: New file.
62697         * modules/unictype/block-test: New file.
62698         * modules/unictype/block-list: New file.
62699         * modules/unictype/block-all: New file.
62700         * modules/unictype/syntax-c-whitespace: New file.
62701         * modules/unictype/syntax-java-whitespace: New file.
62702         * modules/unictype/syntax-c-ident: New file.
62703         * modules/unictype/syntax-java-ident: New file.
62704         * modules/unictype/ctype-alnum: New file.
62705         * modules/unictype/ctype-alpha: New file.
62706         * modules/unictype/ctype-cntrl: New file.
62707         * modules/unictype/ctype-digit: New file.
62708         * modules/unictype/ctype-graph: New file.
62709         * modules/unictype/ctype-lower: New file.
62710         * modules/unictype/ctype-print: New file.
62711         * modules/unictype/ctype-punct: New file.
62712         * modules/unictype/ctype-space: New file.
62713         * modules/unictype/ctype-upper: New file.
62714         * modules/unictype/ctype-xdigit: New file.
62715         * modules/unictype/ctype-blank: New file.
62716         * lib/unictype/bidi_byname.c: New file.
62717         * lib/unictype/bidi_name.c: New file.
62718         * lib/unictype/bidi_of.c: New file.
62719         * lib/unictype/bidi_test.c: New file.
62720         * lib/unictype/bitmap.h: New file.
62721         * lib/unictype/block_test.c: New file.
62722         * lib/unictype/blocks.c: New file.
62723         * lib/unictype/categ_C.c: New file.
62724         * lib/unictype/categ_Cc.c: New file.
62725         * lib/unictype/categ_Cf.c: New file.
62726         * lib/unictype/categ_Cn.c: New file.
62727         * lib/unictype/categ_Co.c: New file.
62728         * lib/unictype/categ_Cs.c: New file.
62729         * lib/unictype/categ_L.c: New file.
62730         * lib/unictype/categ_Ll.c: New file.
62731         * lib/unictype/categ_Lm.c: New file.
62732         * lib/unictype/categ_Lo.c: New file.
62733         * lib/unictype/categ_Lt.c: New file.
62734         * lib/unictype/categ_Lu.c: New file.
62735         * lib/unictype/categ_M.c: New file.
62736         * lib/unictype/categ_Mc.c: New file.
62737         * lib/unictype/categ_Me.c: New file.
62738         * lib/unictype/categ_Mn.c: New file.
62739         * lib/unictype/categ_N.c: New file.
62740         * lib/unictype/categ_Nd.c: New file.
62741         * lib/unictype/categ_Nl.c: New file.
62742         * lib/unictype/categ_No.c: New file.
62743         * lib/unictype/categ_P.c: New file.
62744         * lib/unictype/categ_Pc.c: New file.
62745         * lib/unictype/categ_Pd.c: New file.
62746         * lib/unictype/categ_Pe.c: New file.
62747         * lib/unictype/categ_Pf.c: New file.
62748         * lib/unictype/categ_Pi.c: New file.
62749         * lib/unictype/categ_Po.c: New file.
62750         * lib/unictype/categ_Ps.c: New file.
62751         * lib/unictype/categ_S.c: New file.
62752         * lib/unictype/categ_Sc.c: New file.
62753         * lib/unictype/categ_Sk.c: New file.
62754         * lib/unictype/categ_Sm.c: New file.
62755         * lib/unictype/categ_So.c: New file.
62756         * lib/unictype/categ_Z.c: New file.
62757         * lib/unictype/categ_Zl.c: New file.
62758         * lib/unictype/categ_Zp.c: New file.
62759         * lib/unictype/categ_Zs.c: New file.
62760         * lib/unictype/categ_and.c: New file.
62761         * lib/unictype/categ_and_not.c: New file.
62762         * lib/unictype/categ_byname.c: New file.
62763         * lib/unictype/categ_name.c: New file.
62764         * lib/unictype/categ_none.c: New file.
62765         * lib/unictype/categ_of.c: New file.
62766         * lib/unictype/categ_or.c: New file.
62767         * lib/unictype/categ_test.c: New file.
62768         * lib/unictype/combining.c: New file.
62769         * lib/unictype/ctype_alnum.c: New file.
62770         * lib/unictype/ctype_alpha.c: New file.
62771         * lib/unictype/ctype_blank.c: New file.
62772         * lib/unictype/ctype_cntrl.c: New file.
62773         * lib/unictype/ctype_digit.c: New file.
62774         * lib/unictype/ctype_graph.c: New file.
62775         * lib/unictype/ctype_lower.c: New file.
62776         * lib/unictype/ctype_print.c: New file.
62777         * lib/unictype/ctype_punct.c: New file.
62778         * lib/unictype/ctype_space.c: New file.
62779         * lib/unictype/ctype_upper.c: New file.
62780         * lib/unictype/ctype_xdigit.c: New file.
62781         * lib/unictype/decdigit.c: New file.
62782         * lib/unictype/digit.c: New file.
62783         * lib/unictype/identsyntaxmap.h: New file.
62784         * lib/unictype/mirror.c: New file.
62785         * lib/unictype/numeric.c: New file.
62786         * lib/unictype/pr_alphabetic.c: New file.
62787         * lib/unictype/pr_ascii_hex_digit.c: New file.
62788         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62789         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62790         * lib/unictype/pr_bidi_block_separator.c: New file.
62791         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62792         * lib/unictype/pr_bidi_common_separator.c: New file.
62793         * lib/unictype/pr_bidi_control.c: New file.
62794         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62795         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62796         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62797         * lib/unictype/pr_bidi_european_digit.c: New file.
62798         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62799         * lib/unictype/pr_bidi_left_to_right.c: New file.
62800         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62801         * lib/unictype/pr_bidi_other_neutral.c: New file.
62802         * lib/unictype/pr_bidi_pdf.c: New file.
62803         * lib/unictype/pr_bidi_segment_separator.c: New file.
62804         * lib/unictype/pr_bidi_whitespace.c: New file.
62805         * lib/unictype/pr_byname.c: New file.
62806         * lib/unictype/pr_byname.gperf: New file.
62807         * lib/unictype/pr_combining.c: New file.
62808         * lib/unictype/pr_composite.c: New file.
62809         * lib/unictype/pr_currency_symbol.c: New file.
62810         * lib/unictype/pr_dash.c: New file.
62811         * lib/unictype/pr_decimal_digit.c: New file.
62812         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62813         * lib/unictype/pr_deprecated.c: New file.
62814         * lib/unictype/pr_diacritic.c: New file.
62815         * lib/unictype/pr_extender.c: New file.
62816         * lib/unictype/pr_format_control.c: New file.
62817         * lib/unictype/pr_grapheme_base.c: New file.
62818         * lib/unictype/pr_grapheme_extend.c: New file.
62819         * lib/unictype/pr_grapheme_link.c: New file.
62820         * lib/unictype/pr_hex_digit.c: New file.
62821         * lib/unictype/pr_hyphen.c: New file.
62822         * lib/unictype/pr_id_continue.c: New file.
62823         * lib/unictype/pr_id_start.c: New file.
62824         * lib/unictype/pr_ideographic.c: New file.
62825         * lib/unictype/pr_ids_binary_operator.c: New file.
62826         * lib/unictype/pr_ids_trinary_operator.c: New file.
62827         * lib/unictype/pr_ignorable_control.c: New file.
62828         * lib/unictype/pr_iso_control.c: New file.
62829         * lib/unictype/pr_join_control.c: New file.
62830         * lib/unictype/pr_left_of_pair.c: New file.
62831         * lib/unictype/pr_line_separator.c: New file.
62832         * lib/unictype/pr_logical_order_exception.c: New file.
62833         * lib/unictype/pr_lowercase.c: New file.
62834         * lib/unictype/pr_math.c: New file.
62835         * lib/unictype/pr_non_break.c: New file.
62836         * lib/unictype/pr_not_a_character.c: New file.
62837         * lib/unictype/pr_numeric.c: New file.
62838         * lib/unictype/pr_other_alphabetic.c: New file.
62839         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62840         * lib/unictype/pr_other_grapheme_extend.c: New file.
62841         * lib/unictype/pr_other_id_continue.c: New file.
62842         * lib/unictype/pr_other_id_start.c: New file.
62843         * lib/unictype/pr_other_lowercase.c: New file.
62844         * lib/unictype/pr_other_math.c: New file.
62845         * lib/unictype/pr_other_uppercase.c: New file.
62846         * lib/unictype/pr_paired_punctuation.c: New file.
62847         * lib/unictype/pr_paragraph_separator.c: New file.
62848         * lib/unictype/pr_pattern_syntax.c: New file.
62849         * lib/unictype/pr_pattern_white_space.c: New file.
62850         * lib/unictype/pr_private_use.c: New file.
62851         * lib/unictype/pr_punctuation.c: New file.
62852         * lib/unictype/pr_quotation_mark.c: New file.
62853         * lib/unictype/pr_radical.c: New file.
62854         * lib/unictype/pr_sentence_terminal.c: New file.
62855         * lib/unictype/pr_soft_dotted.c: New file.
62856         * lib/unictype/pr_space.c: New file.
62857         * lib/unictype/pr_terminal_punctuation.c: New file.
62858         * lib/unictype/pr_test.c: New file.
62859         * lib/unictype/pr_titlecase.c: New file.
62860         * lib/unictype/pr_unassigned_code_value.c: New file.
62861         * lib/unictype/pr_unified_ideograph.c: New file.
62862         * lib/unictype/pr_uppercase.c: New file.
62863         * lib/unictype/pr_variation_selector.c: New file.
62864         * lib/unictype/pr_white_space.c: New file.
62865         * lib/unictype/pr_xid_continue.c: New file.
62866         * lib/unictype/pr_xid_start.c: New file.
62867         * lib/unictype/pr_zero_width.c: New file.
62868         * lib/unictype/scripts.c: New file.
62869         * lib/unictype/sy_c_ident.c: New file.
62870         * lib/unictype/sy_c_whitespace.c: New file.
62871         * lib/unictype/sy_java_ident.c: New file.
62872         * lib/unictype/sy_java_whitespace.c: New file.
62873
62874         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62875         Unicode 5.0.0.
62876         * lib/unictype/blocks.h: Likewise.
62877         * lib/unictype/categ_C.h: Likewise.
62878         * lib/unictype/categ_Cc.h: Likewise.
62879         * lib/unictype/categ_Cf.h: Likewise.
62880         * lib/unictype/categ_Cn.h: Likewise.
62881         * lib/unictype/categ_Co.h: Likewise.
62882         * lib/unictype/categ_Cs.h: Likewise.
62883         * lib/unictype/categ_L.h: Likewise.
62884         * lib/unictype/categ_Ll.h: Likewise.
62885         * lib/unictype/categ_Lm.h: Likewise.
62886         * lib/unictype/categ_Lo.h: Likewise.
62887         * lib/unictype/categ_Lt.h: Likewise.
62888         * lib/unictype/categ_Lu.h: Likewise.
62889         * lib/unictype/categ_M.h: Likewise.
62890         * lib/unictype/categ_Mc.h: Likewise.
62891         * lib/unictype/categ_Me.h: Likewise.
62892         * lib/unictype/categ_Mn.h: Likewise.
62893         * lib/unictype/categ_N.h: Likewise.
62894         * lib/unictype/categ_Nd.h: Likewise.
62895         * lib/unictype/categ_Nl.h: Likewise.
62896         * lib/unictype/categ_No.h: Likewise.
62897         * lib/unictype/categ_P.h: Likewise.
62898         * lib/unictype/categ_Pc.h: Likewise.
62899         * lib/unictype/categ_Pd.h: Likewise.
62900         * lib/unictype/categ_Pe.h: Likewise.
62901         * lib/unictype/categ_Pf.h: Likewise.
62902         * lib/unictype/categ_Pi.h: Likewise.
62903         * lib/unictype/categ_Po.h: Likewise.
62904         * lib/unictype/categ_Ps.h: Likewise.
62905         * lib/unictype/categ_S.h: Likewise.
62906         * lib/unictype/categ_Sc.h: Likewise.
62907         * lib/unictype/categ_Sk.h: Likewise.
62908         * lib/unictype/categ_Sm.h: Likewise.
62909         * lib/unictype/categ_So.h: Likewise.
62910         * lib/unictype/categ_Z.h: Likewise.
62911         * lib/unictype/categ_Zl.h: Likewise.
62912         * lib/unictype/categ_Zp.h: Likewise.
62913         * lib/unictype/categ_Zs.h: Likewise.
62914         * lib/unictype/categ_of.h: Likewise.
62915         * lib/unictype/combining.h: Likewise.
62916         * lib/unictype/ctype_alnum.h: Likewise.
62917         * lib/unictype/ctype_alpha.h: Likewise.
62918         * lib/unictype/ctype_blank.h: Likewise.
62919         * lib/unictype/ctype_cntrl.h: Likewise.
62920         * lib/unictype/ctype_digit.h: Likewise.
62921         * lib/unictype/ctype_graph.h: Likewise.
62922         * lib/unictype/ctype_lower.h: Likewise.
62923         * lib/unictype/ctype_print.h: Likewise.
62924         * lib/unictype/ctype_punct.h: Likewise.
62925         * lib/unictype/ctype_space.h: Likewise.
62926         * lib/unictype/ctype_upper.h: Likewise.
62927         * lib/unictype/ctype_xdigit.h: Likewise.
62928         * lib/unictype/decdigit.h: Likewise.
62929         * lib/unictype/digit.h: Likewise.
62930         * lib/unictype/mirror.h: Likewise.
62931         * lib/unictype/numeric.h: Likewise.
62932         * lib/unictype/pr_alphabetic.h: Likewise.
62933         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62934         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62935         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62936         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62937         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62938         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62939         * lib/unictype/pr_bidi_control.h: Likewise.
62940         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62941         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62942         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62943         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62944         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62945         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62946         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62947         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62948         * lib/unictype/pr_bidi_pdf.h: Likewise.
62949         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62950         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62951         * lib/unictype/pr_combining.h: Likewise.
62952         * lib/unictype/pr_composite.h: Likewise.
62953         * lib/unictype/pr_currency_symbol.h: Likewise.
62954         * lib/unictype/pr_dash.h: Likewise.
62955         * lib/unictype/pr_decimal_digit.h: Likewise.
62956         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62957         * lib/unictype/pr_deprecated.h: Likewise.
62958         * lib/unictype/pr_diacritic.h: Likewise.
62959         * lib/unictype/pr_extender.h: Likewise.
62960         * lib/unictype/pr_format_control.h: Likewise.
62961         * lib/unictype/pr_grapheme_base.h: Likewise.
62962         * lib/unictype/pr_grapheme_extend.h: Likewise.
62963         * lib/unictype/pr_grapheme_link.h: Likewise.
62964         * lib/unictype/pr_hex_digit.h: Likewise.
62965         * lib/unictype/pr_hyphen.h: Likewise.
62966         * lib/unictype/pr_id_continue.h: Likewise.
62967         * lib/unictype/pr_id_start.h: Likewise.
62968         * lib/unictype/pr_ideographic.h: Likewise.
62969         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62970         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62971         * lib/unictype/pr_ignorable_control.h: Likewise.
62972         * lib/unictype/pr_iso_control.h: Likewise.
62973         * lib/unictype/pr_join_control.h: Likewise.
62974         * lib/unictype/pr_left_of_pair.h: Likewise.
62975         * lib/unictype/pr_line_separator.h: Likewise.
62976         * lib/unictype/pr_logical_order_exception.h: Likewise.
62977         * lib/unictype/pr_lowercase.h: Likewise.
62978         * lib/unictype/pr_math.h: Likewise.
62979         * lib/unictype/pr_non_break.h: Likewise.
62980         * lib/unictype/pr_not_a_character.h: Likewise.
62981         * lib/unictype/pr_numeric.h: Likewise.
62982         * lib/unictype/pr_other_alphabetic.h: Likewise.
62983         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62984         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62985         * lib/unictype/pr_other_id_continue.h: Likewise.
62986         * lib/unictype/pr_other_id_start.h: Likewise.
62987         * lib/unictype/pr_other_lowercase.h: Likewise.
62988         * lib/unictype/pr_other_math.h: Likewise.
62989         * lib/unictype/pr_other_uppercase.h: Likewise.
62990         * lib/unictype/pr_paired_punctuation.h: Likewise.
62991         * lib/unictype/pr_paragraph_separator.h: Likewise.
62992         * lib/unictype/pr_pattern_syntax.h: Likewise.
62993         * lib/unictype/pr_pattern_white_space.h: Likewise.
62994         * lib/unictype/pr_private_use.h: Likewise.
62995         * lib/unictype/pr_punctuation.h: Likewise.
62996         * lib/unictype/pr_quotation_mark.h: Likewise.
62997         * lib/unictype/pr_radical.h: Likewise.
62998         * lib/unictype/pr_sentence_terminal.h: Likewise.
62999         * lib/unictype/pr_soft_dotted.h: Likewise.
63000         * lib/unictype/pr_space.h: Likewise.
63001         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63002         * lib/unictype/pr_titlecase.h: Likewise.
63003         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63004         * lib/unictype/pr_unified_ideograph.h: Likewise.
63005         * lib/unictype/pr_uppercase.h: Likewise.
63006         * lib/unictype/pr_variation_selector.h: Likewise.
63007         * lib/unictype/pr_white_space.h: Likewise.
63008         * lib/unictype/pr_xid_continue.h: Likewise.
63009         * lib/unictype/pr_xid_start.h: Likewise.
63010         * lib/unictype/pr_zero_width.h: Likewise.
63011         * lib/unictype/scripts.h: Likewise.
63012         * lib/unictype/scripts_byname.gperf: Likewise.
63013         * lib/unictype/sy_c_ident.h: Likewise.
63014         * lib/unictype/sy_c_whitespace.h: Likewise.
63015         * lib/unictype/sy_java_ident.h: Likewise.
63016         * lib/unictype/sy_java_whitespace.h: Likewise.
63017
63018         * lib/unictype/Makefile: New file.
63019         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63020         glibc.
63021         * lib/unictype/3level.h: New file, copied from glibc.
63022         * lib/unictype/3levelbit.h: New file.
63023
63024 2007-11-11  Bruno Haible  <bruno@clisp.org>
63025
63026         * modules/gperf: New file.
63027         * modules/iconv_open (Depends-on): Add it.
63028         (Makefile.am): Remove the GPERF definition.
63029
63030 2007-11-11  Bruno Haible  <bruno@clisp.org>
63031
63032         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63033         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63034
63035 2007-11-11  Bruno Haible  <bruno@clisp.org>
63036
63037         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63038         (usage): Remove function.
63039
63040 2007-11-11  Bruno Haible  <bruno@clisp.org>
63041
63042         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63043         gl_FUNC_CEILF_LIBS.
63044         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63045         gl_FUNC_CEIL_LIBS.
63046         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63047         gl_FUNC_CEILL_LIBS.
63048         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63049         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63050         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63051
63052 2007-11-11  Bruno Haible  <bruno@clisp.org>
63053
63054         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63055         roundf were declared but do not exist on functions.
63056         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63057         roundl were declared but do not exist on functions.
63058         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63059         HAVE_FLOORL_AND_CEILL, respectively.
63060         Needed for Sun C on Solaris 10.
63061
63062 2007-11-11  Bruno Haible  <bruno@clisp.org>
63063
63064         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63065         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63066         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63067         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63068         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63069         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63070         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63071         HAVE_DECL_ROUNDF.
63072         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63073         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63075         of HAVE_DECL_ROUND*.
63076         * modules/math (Makefile.am): Update.
63077
63078 2007-11-10  Bruno Haible  <bruno@clisp.org>
63079
63080         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63081         ptrdiff_t as m4/intl.m4.
63082
63083 2007-11-10  Jim Meyering  <meyering@redhat.com>
63084
63085         Avoid link failure for the argmatch test.
63086         * tests/test-argmatch.c (usage): Define function to avoid a link
63087         failure: argmatch_die requires a usage function.
63088
63089 2007-11-09  Bruno Haible  <bruno@clisp.org>
63090
63091         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63092         * doc/functions/vsnprintf.texi: Likewise.
63093         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63094         with a size argument < 2.
63095
63096 2007-11-09  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63099         buffer. Fixes an inefficiency introduced on 2007-11-03.
63100
63101 2007-11-09  Bruno Haible  <bruno@clisp.org>
63102
63103         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63104         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63105
63106 2007-11-08  Jim Meyering  <meyering@redhat.com>
63107
63108         Change cache variable name prefix "jm_" to "gl_" everywhere.
63109         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63110         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63111         * m4/uptime.m4: s/gl_/jm_/
63112
63113 2007-11-07  Bruno Haible  <bruno@clisp.org>
63114
63115         Update to GNU gettext 0.17.
63116         * m4/intl.m4: Update to GNU gettext 0.17.
63117         * m4/po.m4: Likewise.
63118         * modules/gettext (Files): Remove m4/ulonglong.m4.
63119         (configure.ac): Require gettext infrastructure from version 0.17.
63120
63121 2007-11-06  Bruno Haible  <bruno@clisp.org>
63122
63123         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63124         symbolic values are not defined in a public header.
63125         * lib/freadable.c (freadable) [QNX]: Likewise.
63126         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63127         * lib/freading.c (freading) [QNX]: Likewise.
63128         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63129         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63130         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63131         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63132         Reported by Alain Magloire.
63133
63134         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63135
63136 2007-11-05  Bruno Haible  <bruno@clisp.org>
63137
63138         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63139         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63140         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63141         Reported by Eric Blake.
63142
63143 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63144             Bruno Haible  <bruno@clisp.org>
63145
63146         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63147         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63148         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63149         (malloc): Undefine also before including <stdlib.h>.
63150         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63151         Needed on OSF/1 4.0.
63152
63153 2007-11-05  Jim Meyering  <meyering@redhat.com>
63154
63155         git-version-gen: sync from coreutils.
63156         * build-aux/git-version-gen: Add comments.
63157         Change the first '-' to '.' in the snapshot version string,
63158         e.g., 6.9-377-08144 -> 6.9.377-08144
63159         Remove first parameter.
63160         Don't declare a version "-dirty" merely because a time
63161         stamp has changed.
63162
63163 2007-11-04  Bruno Haible  <bruno@clisp.org>
63164
63165         * lib/lock.h: Protect all macro definitions containing an 'if'
63166         statement through a "do { ... } while (0)".
63167         * lib/tls.h: Likewise.
63168
63169 2007-11-04  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63172
63173 2007-11-04  Bruno Haible  <bruno@clisp.org>
63174
63175         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63176         * modules/fprintf-posix (Depends-on): Add nocrash.
63177         * modules/snprintf-posix (Depends-on): Likewise.
63178         * modules/sprintf-posix (Depends-on): Likewise.
63179         * modules/vasnprintf-posix (Depends-on): Likewise.
63180         * modules/vasprintf-posix (Depends-on): Likewise.
63181         * modules/vfprintf-posix (Depends-on): Likewise.
63182         * modules/vsnprintf-posix (Depends-on): Likewise.
63183         * modules/vsprintf-posix (Depends-on): Likewise.
63184         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63185         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63186         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63187         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63188         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63189         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63190         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63191
63192 2007-11-04  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/nocrash: New file.
63195         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63196         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63197
63198 2007-11-04  Bruno Haible  <bruno@clisp.org>
63199
63200         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63201         precision handling.
63202         * tests/test-vasprintf-posix.c (test_function): Likewise.
63203         * tests/test-snprintf-posix.h (test_function): Likewise.
63204         * tests/test-sprintf-posix.h (test_function): Likewise.
63205
63206         Fix *printf behaviour for large precisions on mingw and BeOS.
63207         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63208         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63210         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63211         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63212         gl_PRINTF_PRECISION and test its result. Invoke
63213         gl_PREREQ_VASNPRINTF_PRECISION.
63214         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63216         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63217         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63218         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63220         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63221         * doc/functions/fprintf.texi: Update.
63222         * doc/functions/printf.texi: Update.
63223         * doc/functions/snprintf.texi: Update.
63224         * doc/functions/sprintf.texi: Update.
63225         * doc/functions/vfprintf.texi: Update.
63226         * doc/functions/vprintf.texi: Update.
63227         * doc/functions/vsnprintf.texi: Update.
63228         * doc/functions/vsprintf.texi: Update.
63229
63230 2007-11-04  Bruno Haible  <bruno@clisp.org>
63231
63232         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63233
63234 2007-11-04  Bruno Haible  <bruno@clisp.org>
63235
63236         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63237         Reported by Sylvain Beucler <beuc@gnu.org>.
63238
63239 2007-11-03  Bruno Haible  <bruno@clisp.org>
63240
63241         * tests/test-fprintf-posix2.sh: New file.
63242         * tests/test-fprintf-posix2.c: New file.
63243         * modules/fprintf-posix-tests (Files): Add them.
63244         (TESTS): Add test-fprintf-posix2.sh.
63245         (configure.ac): Check for getrlimit and setrlimit.
63246         (check_PROGRAMS): Add test-fprintf-posix2.
63247
63248         * tests/test-printf-posix2.sh: New file.
63249         * tests/test-printf-posix2.c: New file.
63250         * modules/printf-posix-tests (Files): Add them.
63251         (TESTS): Add test-printf-posix2.sh.
63252         (configure.ac): Check for getrlimit and setrlimit.
63253         (check_PROGRAMS): Add test-printf-posix2.
63254
63255         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63256         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63257         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63258         (decode_double): New function, copied from decode_long_double.
63259         (scale10_round_decimal_decoded): New function, extracted from
63260         scale10_round_decimal_long_double.
63261         (scale10_round_decimal_long_double): Use it.
63262         (scale10_round_decimal_double): New function.
63263         (floorlog10): New function.
63264         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63266         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63268         gl_PRINTF_ENOMEM and test its result. Invoke
63269         gl_PREREQ_VASNPRINTF_ENOMEM.
63270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63272         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63273         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63277         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63278         * modules/snprintf-posix (Depends-on): Likewise.
63279         * modules/sprintf-posix (Depends-on): Likewise.
63280         * modules/vasnprintf-posix (Depends-on): Likewise.
63281         * modules/vasprintf-posix (Depends-on): Likewise.
63282         * modules/vfprintf-posix (Depends-on): Likewise.
63283         * modules/vsnprintf-posix (Depends-on): Likewise.
63284         * modules/vsprintf-posix (Depends-on): Likewise.
63285         * doc/functions/fprintf.texi: Update.
63286         * doc/functions/printf.texi: Update.
63287         * doc/functions/snprintf.texi: Update.
63288         * doc/functions/sprintf.texi: Update.
63289         * doc/functions/vfprintf.texi: Update.
63290         * doc/functions/vprintf.texi: Update.
63291         * doc/functions/vsnprintf.texi: Update.
63292         * doc/functions/vsprintf.texi: Update.
63293
63294 2007-11-03  Bruno Haible  <bruno@clisp.org>
63295
63296         * modules/frexp-nolibm-tests: New file.
63297
63298         * modules/frexp-nolibm: New file.
63299         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63300
63301 2007-11-03  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63304         value is C99 compliant.
63305         Needed for OSF/1 5.1.
63306
63307 2007-11-03  Bruno Haible  <bruno@clisp.org>
63308
63309         Fix out-of-memory handling of vasnprintf.
63310         * lib/printf-parse.c: Include <errno.h>.
63311         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63312         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63313         is already set.
63314
63315 2007-11-02  Eric Blake  <ebb9@byu.net>
63316
63317         Fix tests on cygwin.
63318         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63319
63320 2007-11-01  Bruno Haible  <bruno@clisp.org>
63321
63322         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63323         warning.
63324         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63325         needed for POSIX compatibility.
63326
63327 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63328
63329         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63330         for compatibility with GNU.
63331
63332 2007-11-01  Bruno Haible  <bruno@clisp.org>
63333
63334         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63335         (putenv): Renamed from rpl_putenv. Change argument type from
63336         'const char *' to 'char *'.
63337         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63338         of defining putenv in config.h, just set REPLACE_PUTENV.
63339         * modules/putenv (Depends-on): Add stdlib.
63340         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63341         (Include): Use <stdlib.h>.
63342         * lib/stdlib.in.h (putenv): New declaration.
63343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63344         REPLACE_PUTENV.
63345         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63346         REPLACE_PUTENV.
63347         Needed for MacOS X 10.5.0.
63348         Reported by Peter O'Gorman <peter@pogma.com>.
63349
63350 2007-11-01  Jim Meyering  <meyering@redhat.com>
63351
63352         Treat an empty date string exactly like "0".
63353         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63354         if the remaining date string (to be parsed) is empty, use "0".
63355         Reported by Mischa Molhoek and discussed in this thread:
63356         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63357
63358 2007-10-31  Bruno Haible  <bruno@clisp.org>
63359
63360         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63361         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63362         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63363         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63364         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63365         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63366
63367 2007-10-31  Bruno Haible  <bruno@clisp.org>
63368
63369         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63370         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63371         (AC_TYPE_LONG_LONG_INT): Use it.
63372         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63373         it as well.
63374         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63375         to m4/longlong.m4.
63376         * modules/stdint (Files): Remove m4/ulonglong.m4.
63377         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63378         m4/ulonglong.m4.
63379         * modules/strtoumax (Files): Likewise.
63380
63381 2007-10-30  Bruno Haible  <bruno@clisp.org>
63382
63383         * modules/xvasprintf-posix: New file.
63384         Suggested by Eric Blake.
63385
63386 2007-10-30  Bruno Haible  <bruno@clisp.org>
63387
63388         * modules/xprintf-posix-tests: New file.
63389         * tests/test-xprintf-posix.sh: New file.
63390         * tests/test-xprintf-posix.c: New file.
63391         * tests/test-xfprintf-posix.c: New file.
63392
63393         * modules/xprintf-posix: New file.
63394
63395 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63396
63397         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63398         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63399         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63400
63401 2007-10-29  Bruno Haible  <bruno@clisp.org>
63402
63403         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63404         contain the special marker '_cv_'.
63405         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63406         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63407         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63408         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63409         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63410         Reported by Ralf Wildenhues.
63411
63412 2007-10-29  Bruno Haible  <bruno@clisp.org>
63413
63414         * gnulib-tool (func_import): When --lgpl is not specified, set
63415         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63416         GPLv3.
63417         Reported by Simon Josefsson.
63418
63419 2007-10-28  Bruno Haible  <bruno@clisp.org>
63420
63421         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63422         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63423         HAVE_DECL_ISFINITE.
63424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63425         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63426         HAVE_DECL_ISFINITE.
63427
63428 2007-10-28  Bruno Haible  <bruno@clisp.org>
63429
63430         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63431         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63432
63433 2007-10-28  Bruno Haible  <bruno@clisp.org>
63434
63435         Fix link errors with Sun C 5.0 on Solaris 10.
63436         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63437         function is declared but not present in the compiler's libm.
63438         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63439         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63440         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63441         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63442         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63443         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63444         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63446         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63447         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63448         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63449         HAVE_DECL_FLOORL.
63450
63451 2007-10-28  Bruno Haible  <bruno@clisp.org>
63452
63453         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63454         gl_FUNC_FLOORL. Cache the result.
63455         (gl_FUNC_FLOORL): Use it.
63456         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63457         gl_FUNC_CEILL. Cache the result.
63458         (gl_FUNC_CEILL): Use it.
63459
63460         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63461         gl_FUNC_FLOOR. Cache the result.
63462         (gl_FUNC_FLOOR): Use it.
63463         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63464         gl_FUNC_CEIL. Cache the result.
63465         (gl_FUNC_CEIL): Use it.
63466
63467         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63468         gl_FUNC_FLOORF. Cache the result.
63469         (gl_FUNC_FLOORF): Use it.
63470         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63471         gl_FUNC_CEILF. Cache the result.
63472         (gl_FUNC_CEILF): Use it.
63473
63474 2007-10-28  Bruno Haible  <bruno@clisp.org>
63475
63476         * gnulib-tool: Allow specifying the LGPL version number through
63477         --lgpl=2 or --lgpl=3.
63478         (func_usage): Document --lgpl with argument.
63479         Handle --lgpl=... arguments.
63480         (func_import): Recognize also gl_LGPL calls with an argument. When
63481         --lgpl=2 is used and the module's license is just LGPL, report an
63482         error. Set sed_transform_lib_file according to the lgpl variable. In
63483         the generated files, use --lgpl or gl_LGPL invocations with argument,
63484         if necessary.
63485         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63486         an LGPv2+ license.
63487         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63488         gl_LGPL macro.
63489
63490 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63491             Bruno Haible  <bruno@clisp.org>
63492
63493         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63494         (u16_uctomb_aux): Likewise.
63495         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63496         !HAVE_INLINE.
63497         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63498
63499 2007-10-28  Bruno Haible  <bruno@clisp.org>
63500
63501         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63502         Invoke AM_GETTEXT_OPTION if it exists.
63503         * modules/vasprintf: Likewise.
63504         * modules/verror: Likewise.
63505         * modules/xprintf: Likewise.
63506         * modules/xvasprintf: Likewise.
63507
63508 2007-10-27  Ben Pfaff  <blp@gnu.org>
63509
63510         * lib/math.in.h: Define isfinite macro and prototypes for
63511         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63512         implementations.
63513         * m4/math_h.m4: New substitutions for isfinite module.
63514         * lib/isfinite.c: New file.
63515         * m4/isfinite.m4: New file.
63516         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63517         * modules/isfinite: New file.
63518         * modules/isfinite-tests: New file.
63519         * tests/tests-isfinite.c: New file.
63520         * doc/functions/isfinite.texi: Mention isfinite module.
63521         * MODULES.html.sh: Mention new module.
63522
63523 2007-10-27  Ben Pfaff  <blp@gnu.org>
63524
63525         Ralf Wildenhues reported that Tru64 4.0D declares the round
63526         functions but does not have definitions.
63527         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63528         cannot be found in any library, set the output variable to
63529         "missing" instead of "".
63530         * m4/round.m4: Also use our substitute if we cannot find round in
63531         any library, even if it is declared.
63532         * m4/roundf.m4: Likewise for roundf.
63533         * m4/roundl.m4: Likewise for roundl.
63534         * lib/math.in.h: Undefine roundf, round, roundl before defining
63535         their replacements, to allow for hypothetical systems where these
63536         may be defined as macros but not available in libraries.
63537
63538 2007-10-27  Bruno Haible  <bruno@clisp.org>
63539
63540         * doc/gnulib.texi: Invoke @firstparagraphindent.
63541         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63542         changes in gnulib.
63543         (Source changes): New section.
63544
63545 2007-10-26  Bruno Haible  <bruno@clisp.org>
63546
63547         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63548         borrowed from autoconf.
63549
63550 2007-10-26  Bruno Haible  <bruno@clisp.org>
63551
63552         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63553         strerror returned the empty string. Needed on HP-UX 11.00.
63554
63555 2007-10-24  Micah Cowan  <micah@cowan.name>
63556
63557         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63558         * build-aux/bootstrap: Remove support for now-unnecessary option,
63559         --cvs-user, and envvars CVS_USER, CVS_RSH.
63560
63561 2007-10-24  Jim Meyering  <meyering@redhat.com>
63562
63563         Avoid diagnostics from sha1sum when there is no cached checksum.
63564         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63565         if the po.s1 file hasn't been created yet.
63566
63567         * build-aux/bootstrap: Sync from coreutils:
63568         2007-10-24  Jim Meyering  <meyering@redhat.com>
63569         Get gnulib from the git repository, not from an obsolete cvs one.
63570         * build-aux/bootstrap: Suggestion from Micah Cowan.
63571         2007-10-04  Jim Meyering  <jim@meyering.net>
63572         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63573         (update_po_files): Work also when there are no .po files in po/.
63574
63575 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63576
63577         * README: Append ".git" to git and cg examples.
63578         Problem reported by Benoit Sigoure.
63579
63580 2007-10-23  Micah Cowan  <micah@cowan.name>
63581
63582         * users.txt: Add wget.
63583
63584 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63585
63586         Fix linking of some unistdio tests on FreeBSD.
63587         * modules/unistdio/u16-vsnprintf-tests
63588         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63589         * modules/unistdio/u16-vsprintf-tests
63590         (test_u16_vsnprintf1_LDADD): Likewise.
63591         * modules/unistdio/u32-vsnprintf-tests
63592         (test_u32_vsnprintf1_LDADD): Likewise.
63593         * modules/unistdio/u32-vsprintf-tests
63594         (test_u32_vsprintf1_LDADD): Likewise.
63595         * modules/unistdio/u8-vsnprintf-tests
63596         (test_u8_vsnprintf1_LDADD): Likewise.
63597         * modules/unistdio/u8-vsprintf-tests
63598         (test_u8_vsprintf1_LDADD): Likewise.
63599         * modules/unistdio/ulc-vsnprintf-tests
63600         (test_ulc_vsnprintf1_LDADD): Likewise.
63601         * modules/unistdio/ulc-vsprintf-tests
63602         (test_ulc_vsprintf1_LDADD): Likewise.
63603
63604         Fix linking of some uniconv tests on FreeBSD.
63605         * modules/uniconv/u16-conv-from-enc-tests
63606         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63607         * modules/uniconv/u16-conv-to-enc-tests
63608         (test_u16_conv_to_enc_LDADD): Likewise.
63609         * modules/uniconv/u16-strconv-from-enc-tests
63610         (test_u16_strconv_from_enc_LDADD): Likewise.
63611         * modules/uniconv/u16-strconv-to-enc-tests
63612         (test_u16_strconv_to_enc_LDADD): Likewise.
63613         * modules/uniconv/u32-conv-from-enc-tests
63614         (test_u32_conv_from_enc_LDADD): Likewise.
63615         * modules/uniconv/u32-conv-to-enc-tests
63616         (test_u32_conv_to_enc_LDADD): Likewise.
63617         * modules/uniconv/u32-strconv-from-enc-tests
63618         (test_u32_strconv_from_enc_LDADD): Likewise.
63619         * modules/uniconv/u32-strconv-to-enc-tests
63620         (test_u32_strconv_to_enc_LDADD): Likewise.
63621         * modules/uniconv/u8-conv-from-enc-tests
63622         (test_u8_conv_from_enc_LDADD): Likewise.
63623         * modules/uniconv/u8-conv-to-enc-tests
63624         (test_u8_conv_to_enc_LDADD): Likewise.
63625         * modules/uniconv/u8-strconv-from-enc-tests
63626         (test_u8_strconv_from_enc_LDADD): Likewise.
63627         * modules/uniconv/u8-strconv-to-enc-tests
63628         (test_u8_strconv_to_enc_LDADD): Likewise.
63629
63630 2007-10-22  Bruno Haible  <bruno@clisp.org>
63631
63632         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63633         size.
63634
63635 2007-10-22  Eric Blake  <ebb9@byu.net>
63636
63637         Tweak x*printf documentation.
63638         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63639         variable name and comments.
63640         Suggested by Bruno Haible.
63641
63642 2007-10-22  Bruno Haible  <bruno@clisp.org>
63643
63644         * lib/acl.c (copy_acl): Fix file name in comment.
63645
63646 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         Fix Tru64 problem with stdbool.h.
63649         * lib/stdbool.in.h (false, true):
63650         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63651         Don't declare as an enum in this situation; it runs afoul of Tru64.
63652         Problem reported by Steven M. Schweda in
63653         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63654
63655 2007-10-22  Eric Blake  <ebb9@byu.net>
63656
63657         Also wrap vf?printf.
63658         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63659         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63660         (xvprintf, xvfprintf): New functions.
63661
63662 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63663
63664         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63665         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63666
63667         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63668         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63669
63670 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63671
63672         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63673         by Bruno Haible.
63674
63675 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63676
63677         * lib/getloadavg.c
63678         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63679         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63680
63681         * tests/test-i-ring.c: Work for C89.
63682
63683 2007-10-22  Bruno Haible  <bruno@clisp.org>
63684
63685         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63686         -1u, in preprocessor expression, so that we don't test for the bug
63687         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63688         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63689
63690 2007-10-22  Eric Blake  <ebb9@byu.net>
63691
63692         * tests/test-yesno.sh: Silence stderr during test.
63693
63694 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63695
63696         * modules/crypto/gc-camellia: New file.
63697
63698         * m4/gc-camellia.m4: New file.
63699
63700         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63701
63702         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63703
63704 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63705
63706         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63707         --help to stdout.  Reported by sms@antinode.org (Steven
63708         M. Schweda).
63709
63710 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63711
63712         * users.txt: Fix link to libksba.
63713
63714 2007-10-21  Ben Pfaff  <blp@gnu.org>
63715
63716         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63717         round.c roundf implementation that depends on floorf and ceilf to
63718         be tested unconditionally.
63719
63720 2007-10-21  Ben Pfaff  <blp@gnu.org>
63721
63722         * m4/check-libm-func.m4: Removed.
63723         * m4/check-math-lib.m4: New file.
63724         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63725         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63726         definition and lack of AC_LIBOBJ([roundf]).
63727         * m4/roundl.m4: Ditto, and similarly for roundl.
63728         * modules/round: Reference new m4 file.
63729         * modules/roundf: Ditto.
63730         * modules/roundl: Ditto.
63731         * tests/test-round2.c (main): Use ROUND instead of round.
63732         Bug report from Bruno Haible.
63733
63734 2007-10-21  Bruno Haible  <bruno@clisp.org>
63735
63736         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63737         context.
63738
63739 2007-10-21  Bruno Haible  <bruno@clisp.org>
63740
63741         * tests/test-wcwidth.c (main): Allow negative result for some control
63742         characters.
63743
63744         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63745         Needed on OSF/1 5.1.
63746
63747 2007-10-21  Bruno Haible  <bruno@clisp.org>
63748
63749         * tests/test-floorf1.c: Include isnanf.h.
63750         (main): Use isnanf() instead of isnan().
63751         * tests/test-ceilf1.c: Include isnanf.h.
63752         (main): Use isnanf() instead of isnan().
63753         * tests/test-truncf1.c: Include isnanf.h.
63754         (main): Use isnanf() instead of isnan().
63755         * tests/test-roundf1.c: Include isnanf.h.
63756         (main): Use isnanf() instead of isnan().
63757
63758 2007-10-21  Eric Blake  <ebb9@byu.net>
63759
63760         * users.txt: Update URL for m4.
63761
63762 2007-10-21  Bruno Haible  <bruno@clisp.org>
63763
63764         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63765
63766 2007-10-21  Bruno Haible  <bruno@clisp.org>
63767
63768         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63769         Git's management files if the CVS files are not present.
63770
63771 2007-10-20  Bruno Haible  <bruno@clisp.org>
63772
63773         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63774         gcc-3.4.x.
63775
63776 2007-10-20  Ben Pfaff  <blp@gnu.org>
63777
63778         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63779         implementations.
63780         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63781         * lib/round.c: New file.
63782         * lib/roundf.c: New file.
63783         * lib/roundl.c: New file.
63784         * m4/round.m4: New file.
63785         * m4/roundf.m4: New file.
63786         * m4/roundl.m4: New file.
63787         * m4/check-libm-func-m4: New file.
63788         * modules/math: Replace round, roundf, roundl related @VARS@ in
63789         math.in.h.
63790         * modules/round: New file.
63791         * modules/round-tests: New file.
63792         * modules/roundf: New file.
63793         * modules/roundf-tests: New file.
63794         * modules/roundl: New file.
63795         * modules/roundl-tests: New file.
63796         * tests/test-round1.c: New file.
63797         * tests/test-round2.c: New file.
63798         * tests/test-roundf1.c: New file.
63799         * tests/test-roundf2.c: New file.
63800         * tests/test-roundl.c: New file.
63801         * doc/functions/round.texi: Mention round module.
63802         * doc/functions/roundf.texi: Mention roundf module.
63803         * doc/functions/roundl.texi: Mention roundl module.
63804         * MODULES.html.sh: Mention new modules.
63805         Thanks to Bruno Haible for suggestions.
63806
63807 2007-10-20  Jim Meyering  <meyering@redhat.com>
63808
63809         * lib/xprintf.c: Include <config.h> unconditionally.
63810
63811         Change xprintf's license to GPL.
63812         * modules/xprintf (License): s/LGPL/GPL/, since this module
63813         depends on modules (exit and exitfail) which are GPL.
63814         Suggestion from Bruno Haible.
63815
63816         xprintf fixes.
63817         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63818         Use a clearer diagnostic.
63819         Patch from Bruno Haible.
63820
63821 2007-10-20  Bruno Haible  <bruno@clisp.org>
63822
63823         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63824         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63825         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63826
63827 2007-10-20  Bruno Haible  <bruno@clisp.org>
63828
63829         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63830         precision in the comparison result > x - 1 or similar.
63831         * tests/test-ceilf2.c (correct_result_p): Likewise.
63832         * tests/test-truncf2.c (correct_result_p): Likewise.
63833         * tests/test-trunc2.c (correct_result_p): Likewise.
63834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63835
63836 2007-10-20  Bruno Haible  <bruno@clisp.org>
63837
63838         * modules/ceil: New file.
63839         * m4/ceil.m4: New file.
63840         * doc/functions/ceil.texi: Mention the 'ceil' module.
63841
63842 2007-10-20  Bruno Haible  <bruno@clisp.org>
63843
63844         * modules/floor: New file.
63845         * m4/floor.m4: New file.
63846         * doc/functions/floor.texi: Mention the 'floor' module.
63847
63848 2007-10-20  Bruno Haible  <bruno@clisp.org>
63849
63850         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63851         of %a.
63852         * modules/floorf-tests (Depends-on): Likewise.
63853         * modules/truncf-tests (Depends-on): Likewise.
63854         * modules/trunc-tests (Depends-on): Likewise.
63855         Reported by Ben Pfaff.
63856
63857 2007-10-19  Jim Meyering  <meyering@redhat.com>
63858
63859         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63860         Don't bother testing specific errno values.  Just test ferror.
63861
63862         New module: xprintf
63863         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63864
63865 2007-10-19  Bruno Haible  <bruno@clisp.org>
63866
63867         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63868         syntax.
63869         * modules/javaexec (Makefile.am): Likewise.
63870         * modules/relocatable-prog (Makefile.am): Likewise.
63871         Suggested by Jim Meyering.
63872
63873 2007-10-18  Bruno Haible  <bruno@clisp.org>
63874
63875         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63876         Reported by Jim Meyering.
63877
63878 2007-10-18  Eric Blake  <ebb9@byu.net>
63879
63880         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63881
63882 2007-10-18  Bruno Haible  <bruno@clisp.org>
63883
63884         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63885         the format string into writable memory. Needed in Fortify conditions.
63886
63887 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63888             Bruno Haible  <bruno@clisp.org>
63889
63890         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63891         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63892         * modules/trim (Depends-on): Add mbchar.
63893         (configure.ac): Add gl_FUNC_MBRTOWC.
63894         (Makefile.am): Augment lib_SOURCES.
63895
63896 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63897
63898         Modify glob.c to use fstatat and dirfd, to simplify it.
63899         Suggested by Eric Blake.
63900         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63901         Don't include <stdbool.h>; not used.
63902         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63903         (link_exists_p): Simplify implementation, since we can now assume
63904         dirfd and fstatat.
63905         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63906
63907 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63908
63909         * gnulib-tool (func_get_dependencies): Fix sed script to
63910         match only tests.
63911
63912 2007-10-17  Bruno Haible  <bruno@clisp.org>
63913
63914         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63915         allow locale names without encoding suffix.
63916         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63917         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63918
63919 2007-10-16  Bruno Haible  <bruno@clisp.org>
63920
63921         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63922         * lib/getgroups.c (getgroups): Likewise.
63923         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63924
63925 2007-10-16  Bruno Haible  <bruno@clisp.org>
63926
63927         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63928         * modules/malloc-posix (License): Likewise.
63929         * modules/realloc-posix (License): Likewise.
63930         * modules/calloc-posix (License): Likewise.
63931         * modules/intprops (License): Change from GPL to LGPL, with
63932         Paul Eggert's approval.
63933
63934 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63935
63936         Merge glibc changes into lib/glob.c.
63937
63938         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63939         2007-10-15 04:59:03 UTC.  Here are the changes:
63940
63941         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63942
63943         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63944
63945         * lib/glob.c: Add some branch prediction throughout.
63946
63947         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63948
63949         [BZ #5103]
63950         * lib/glob.c (glob): Recognize patterns starting \/.
63951
63952         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63953
63954         [BZ #3996]
63955         * lib/glob.c (attribute_hidden): Define if not defined.
63956         (glob): Unescape dirname, filename or username when needed and not
63957         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63958         is NULL.  Handle unescaped [ in pattern without closing ].
63959         Don't pass GLOB_CHECK down to recursive glob for directories.
63960         (__glob_pattern_type): New function.
63961         (__glob_pattern_p): Implement using __glob_pattern_type.
63962         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63963         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63964         Remove unreachable code.
63965
63966         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63967
63968         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63969         explain why there are no leaks.
63970
63971         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63972
63973         [BZ #3253]
63974         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63975         time, rather allocate increasingly bigger arrays of pointers, if
63976         possible with alloca, if too large with malloc.
63977
63978 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63979
63980         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63981         Problem reported by H.Merijn Brand in
63982         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63983         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63984         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63985
63986 2007-10-15  Bruno Haible  <bruno@clisp.org>
63987
63988         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63989         with explicit rpl_ prefix.
63990         * lib/fopen.c (fopen): Likewise.
63991         * lib/freopen.c (freopen): Likewise.
63992         * lib/iconv.c (iconv): Likewise.
63993         * lib/iconv_close.c (iconv_close): Likewise.
63994
63995 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63996
63997         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63998
63999 2007-10-15  Bruno Haible  <bruno@clisp.org>
64000
64001         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64002         <stddef.h> instead of <stdlib.h> since we only need NULL.
64003         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64004
64005 2007-10-15  Bruno Haible  <bruno@clisp.org>
64006
64007         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64008         Replace paragraph talking about LIBOBJS.
64009         Reported by Colin Watson <cjwatson@debian.org>.
64010
64011 2007-10-15  Bruno Haible  <bruno@clisp.org>
64012
64013         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64014         <stdlib.h> before using NULL.
64015
64016 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64017
64018         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64019         Reported by Albert Chin <china@thewrittenword.com>.
64020
64021 2007-10-14  Bruno Haible  <bruno@clisp.org>
64022
64023         * modules/iconv_open-utf-tests: New file.
64024         * tests/test-iconv-utf.c: New file.
64025
64026         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64027         * modules/iconv_open-utf: New file.
64028         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64029         (iconv, iconv_close): New declarations.
64030         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64031         be defined.
64032         (iconv_open): Add special handling of conversion between UTF-8 and
64033         UTF-{16,32}{BE,LE}.
64034         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64035         * lib/iconv_close.c: New file.
64036         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64037         gl_FUNC_ICONV_OPEN.
64038         (gl_FUNC_ICONV_OPEN): Use it.
64039         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64040         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64041         and REPLACE_ICONV_UTF.
64042         * modules/iconv_open (Depends-on): Add c-strcase.
64043         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64044         ICONV_CONST.
64045         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64046
64047 2007-10-13  Albert Chin  <china@thewrittenword.com>
64048             Bruno Haible  <bruno@clisp.org>
64049
64050         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64051         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64052
64053 2007-10-13  Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64056         defined, use the ISO C99 inline semantics.
64057         * lib/argp.h (ARGP_EI): Likewise.
64058
64059 2007-10-13  Bruno Haible  <bruno@clisp.org>
64060
64061         Handle 'inline' change in gcc 4.3.0.
64062         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64063         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64064         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64065         argp_fmtstream_point): Disable 'extern' declaration if the function
64066         definition is going to be provided inline.
64067         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64068         semantics, not the ISO C99 inline semantics.
64069         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64070         'extern' declaration if the function definition is going to be provided
64071         inline.
64072         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64073         the GNU C inline semantics, not the ISO C99 inline semantics. With
64074         GCC 4.2, avoid a warning.
64075
64076 2007-10-13  Bruno Haible  <bruno@clisp.org>
64077
64078         * lib/freading.h (freading): Enable the use of __freading for
64079         glibc >= 2.7.
64080         * lib/freading.c (freading): Likewise.
64081
64082 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64083
64084         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64085         "warning: C99 inline functions are not supported; using GNU89".
64086
64087 2007-10-12  Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64090         of 2.
64091         * tests/test-ceilf2.c: New file.
64092         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64093
64094         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64095         * modules/ceilf-tests: Update.
64096
64097 2007-10-12  Bruno Haible  <bruno@clisp.org>
64098
64099         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64100         of 2.
64101         * tests/test-floorf2.c: New file.
64102         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64103
64104         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64105         * modules/floorf-tests: Update.
64106
64107 2007-10-12  Bruno Haible  <bruno@clisp.org>
64108
64109         * tests/test-trunc2.c: New file.
64110         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64111
64112         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64113         * modules/trunc-tests: Update.
64114
64115 2007-10-12  Bruno Haible  <bruno@clisp.org>
64116
64117         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64118         of 2.
64119         * tests/test-truncf2.c: New file.
64120         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64121
64122         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64123         * modules/truncf-tests: Update.
64124
64125 2007-10-11  Eric Blake  <ebb9@byu.net>
64126
64127         Don't claim strerror is broken on Interix.
64128         * doc/functions/strerror.texi (strerror): Known broken systems are
64129         now Solaris 8, and not Interix.
64130         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64131         Interix on cross-compile.
64132         Reported by Martin Koeppe in
64133         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64134
64135 2007-10-11  Bruno Haible  <bruno@clisp.org>
64136
64137         * modules/i-ring-tests: New file.
64138         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64139         instead of assert.
64140
64141 2007-10-11  Bruno Haible  <bruno@clisp.org>
64142
64143         * modules/filenamecat-tests: New file.
64144         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64145         * lib/filenamecat.c: Remove test code.
64146
64147 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64148
64149         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64150
64151         * lib/strerror.c: Include <string.h> always, to test interface,
64152         and to remove the need for the dummy.
64153         Include intprops.h to compute width instead of doing it ourselves
64154         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64155         (strerror): Define it to return NULL if there's no system strerror.
64156         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64157         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64158         ancient pre-strerror Unix systems well any more.  Saying "unknown
64159         system error" is enough.
64160         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64161         simpler strerror.c implementation.
64162         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64163         Simplify the tests to reflect the simpler strerror implementation.
64164         * modules/strerror (Depends-on): Add intprops.
64165
64166 2007-10-09  Eric Blake  <ebb9@byu.net>
64167
64168         Silence test-fpending.
64169         * modules/fpending-tests (Files): Add wrapper script.
64170         * tests/test-fpending.sh: New file.
64171
64172 2007-10-09  Bruno Haible  <bruno@clisp.org>
64173
64174         * MODULES.html.sh (func_module): Don't create a hyperlink for
64175         function names like 'printf_frexp'.
64176         (Misc): Add crc, memxor.
64177         (Characteristics of floating types): New section.
64178         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64179         isnanf-nolibm, signbit, trunc, truncf, truncl.
64180         (Enhancements for ISO C 99 functions): New subsection Input/output.
64181         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64182         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64183         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64184         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64185         (Enhancements for POSIX:2001 functions): Add chdir-long.
64186         (File system functions): Add areadlink, chdir-safer, read-file.
64187         Remove cycle-check.
64188         (File system as inode set): New section.
64189         (Date and time): Add gethrxtime.
64190         (Multithreading): Add openmp.
64191         (Internationalization functions): Add localename.
64192         (Unicode string functions): Add unistr/u*-mbsnlen.
64193         (Support for maintaining and releasing projects): Add git-version-gen.
64194         (Lone files): Remove directories.
64195
64196 2007-10-08  Ben Pfaff  <blp@gnu.org>
64197
64198         * lib/xmalloca.h: Fix typo in comment.
64199
64200 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64201
64202         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64203         when avoiding problems with integer overflow.  Use a portable test
64204         instead.
64205
64206 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64207
64208         * modules/dummy (License): Change to LGPLv2+.
64209         * modules/float (License): Likewise
64210         * modules/realloc (License): Likewise
64211         * modules/stdlib (License): Likewise
64212
64213 2007-10-07  Bruno Haible  <bruno@clisp.org>
64214
64215         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64216         * floor.c (TWO_MANT_DIG): Likewise.
64217         * ceil.c (TWO_MANT_DIG): Likewise.
64218         Reported by Ben Pfaff.
64219
64220 2007-10-07  Bruno Haible  <bruno@clisp.org>
64221
64222         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64223         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64224         * lib/frexp.c (FUNC): Likewise.
64225         * lib/printf-frexp.h (printf_frexp): Likewise.
64226         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64227         * lib/printf-frexp.c (FUNC): Likewise.
64228         Suggested by Jim Meyering.
64229
64230 2007-10-07  Jim Meyering  <meyering@redhat.com>
64231
64232         Make xnanosleep's integer overflow test more robust.
64233         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64234         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64235
64236 2007-10-07  Bruno Haible  <bruno@clisp.org>
64237
64238         * NEWS: Mention the license change.
64239
64240         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64241         abbreviations in the modules files.
64242
64243         Change copyright notice from GPLv2+ to GPLv3+.
64244         * README: Change copyright notice.
64245         * MODULES.html.sh: Likewise.
64246         * build-aux/bootstrap.conf: Likewise.
64247         * build-aux/config.libpath: Likewise.
64248         * build-aux/csharpcomp.sh.in: Likewise.
64249         * build-aux/csharpexec.sh.in: Likewise.
64250         * build-aux/install-reloc: Likewise.
64251         * build-aux/javacomp.sh.in: Likewise.
64252         * build-aux/javaexec.sh.in: Likewise.
64253         * build-aux/ldd.sh.in: Likewise.
64254         * build-aux/reloc-ldflags: Likewise.
64255         * build-aux/relocatable.sh.in: Likewise.
64256         * build-aux/x-to-1.in: Likewise.
64257         * check-module: Likewise.
64258         * config/srclistvars.sh: Likewise.
64259         * gnulib-tool: Likewise.
64260         * lib/acl-internal.h: Likewise.
64261         * lib/acl.c: Likewise.
64262         * lib/acl.h: Likewise.
64263         * lib/acl_entries.c: Likewise.
64264         * lib/areadlink-with-size.c: Likewise.
64265         * lib/areadlink.c: Likewise.
64266         * lib/areadlink.h: Likewise.
64267         * lib/argmatch.c: Likewise.
64268         * lib/argmatch.h: Likewise.
64269         * lib/argp-ba.c: Likewise.
64270         * lib/argp-eexst.c: Likewise.
64271         * lib/argp-fmtstream.c: Likewise.
64272         * lib/argp-fmtstream.h: Likewise.
64273         * lib/argp-fs-xinl.c: Likewise.
64274         * lib/argp-help.c: Likewise.
64275         * lib/argp-namefrob.h: Likewise.
64276         * lib/argp-parse.c: Likewise.
64277         * lib/argp-pin.c: Likewise.
64278         * lib/argp-pv.c: Likewise.
64279         * lib/argp-pvh.c: Likewise.
64280         * lib/argp-xinl.c: Likewise.
64281         * lib/argp.h: Likewise.
64282         * lib/at-func.c: Likewise.
64283         * lib/atanl.c: Likewise.
64284         * lib/backupfile.c: Likewise.
64285         * lib/backupfile.h: Likewise.
64286         * lib/basename.c: Likewise.
64287         * lib/binary-io.h: Likewise.
64288         * lib/byteswap.in.h: Likewise.
64289         * lib/c-stack.c: Likewise.
64290         * lib/c-stack.h: Likewise.
64291         * lib/c-strcasestr.c: Likewise.
64292         * lib/c-strcasestr.h: Likewise.
64293         * lib/c-strstr.c: Likewise.
64294         * lib/c-strstr.h: Likewise.
64295         * lib/c-strtod.c: Likewise.
64296         * lib/calloc.c: Likewise.
64297         * lib/canon-host.c: Likewise.
64298         * lib/canon-host.h: Likewise.
64299         * lib/canonicalize-lgpl.c: Likewise.
64300         * lib/canonicalize.c: Likewise.
64301         * lib/canonicalize.h: Likewise.
64302         * lib/ceil.c: Likewise.
64303         * lib/ceilf.c: Likewise.
64304         * lib/ceill.c: Likewise.
64305         * lib/chdir-long.c: Likewise.
64306         * lib/chdir-long.h: Likewise.
64307         * lib/chdir-safer.c: Likewise.
64308         * lib/chdir-safer.h: Likewise.
64309         * lib/chown.c: Likewise.
64310         * lib/classpath.c: Likewise.
64311         * lib/classpath.h: Likewise.
64312         * lib/clean-temp.c: Likewise.
64313         * lib/clean-temp.h: Likewise.
64314         * lib/cloexec.c: Likewise.
64315         * lib/close-stream.c: Likewise.
64316         * lib/closein.c: Likewise.
64317         * lib/closein.h: Likewise.
64318         * lib/closeout.c: Likewise.
64319         * lib/closeout.h: Likewise.
64320         * lib/concat-filename.c: Likewise.
64321         * lib/copy-file.c: Likewise.
64322         * lib/copy-file.h: Likewise.
64323         * lib/count-one-bits.h: Likewise.
64324         * lib/crc.c: Likewise.
64325         * lib/crc.h: Likewise.
64326         * lib/creat-safer.c: Likewise.
64327         * lib/csharpcomp.c: Likewise.
64328         * lib/csharpcomp.h: Likewise.
64329         * lib/csharpexec.c: Likewise.
64330         * lib/csharpexec.h: Likewise.
64331         * lib/cycle-check.c: Likewise.
64332         * lib/cycle-check.h: Likewise.
64333         * lib/diacrit.c: Likewise.
64334         * lib/diacrit.h: Likewise.
64335         * lib/diffseq.h: Likewise.
64336         * lib/dirchownmod.c: Likewise.
64337         * lib/dirent.in.h: Likewise.
64338         * lib/dirfd.c: Likewise.
64339         * lib/dirfd.h: Likewise.
64340         * lib/dirname.c: Likewise.
64341         * lib/dirname.h: Likewise.
64342         * lib/dummy.c: Likewise.
64343         * lib/dup-safer.c: Likewise.
64344         * lib/dup2.c: Likewise.
64345         * lib/eealloc.h: Likewise.
64346         * lib/error.c: Likewise.
64347         * lib/error.h: Likewise.
64348         * lib/euidaccess.c: Likewise.
64349         * lib/exclude.c: Likewise.
64350         * lib/exclude.h: Likewise.
64351         * lib/execute.c: Likewise.
64352         * lib/execute.h: Likewise.
64353         * lib/exitfail.c: Likewise.
64354         * lib/exitfail.h: Likewise.
64355         * lib/expl.c: Likewise.
64356         * lib/fatal-signal.c: Likewise.
64357         * lib/fatal-signal.h: Likewise.
64358         * lib/fbufmode.c: Likewise.
64359         * lib/fbufmode.h: Likewise.
64360         * lib/fchdir.c: Likewise.
64361         * lib/fchmodat.c: Likewise.
64362         * lib/fchownat.c: Likewise.
64363         * lib/fcntl--.h: Likewise.
64364         * lib/fcntl-safer.h: Likewise.
64365         * lib/fcntl.in.h: Likewise.
64366         * lib/fd-safer.c: Likewise.
64367         * lib/fflush.c: Likewise.
64368         * lib/file-has-acl.c: Likewise.
64369         * lib/file-set.c: Likewise.
64370         * lib/file-type.c: Likewise.
64371         * lib/file-type.h: Likewise.
64372         * lib/fileblocks.c: Likewise.
64373         * lib/filemode.c: Likewise.
64374         * lib/filemode.h: Likewise.
64375         * lib/filename.h: Likewise.
64376         * lib/filenamecat.c: Likewise.
64377         * lib/filenamecat.h: Likewise.
64378         * lib/findprog.c: Likewise.
64379         * lib/findprog.h: Likewise.
64380         * lib/float.in.h: Likewise.
64381         * lib/floor.c: Likewise.
64382         * lib/floorf.c: Likewise.
64383         * lib/floorl.c: Likewise.
64384         * lib/fopen-safer.c: Likewise.
64385         * lib/fopen.c: Likewise.
64386         * lib/fpending.c: Likewise.
64387         * lib/fpending.h: Likewise.
64388         * lib/fprintf.c: Likewise.
64389         * lib/fprintftime.h: Likewise.
64390         * lib/fpucw.h: Likewise.
64391         * lib/fpurge.c: Likewise.
64392         * lib/fpurge.h: Likewise.
64393         * lib/freadable.c: Likewise.
64394         * lib/freadable.h: Likewise.
64395         * lib/freadahead.c: Likewise.
64396         * lib/freadahead.h: Likewise.
64397         * lib/freading.c: Likewise.
64398         * lib/freading.h: Likewise.
64399         * lib/free.c: Likewise.
64400         * lib/freopen.c: Likewise.
64401         * lib/frexp.c: Likewise.
64402         * lib/frexpl.c: Likewise.
64403         * lib/fseek.c: Likewise.
64404         * lib/fseterr.c: Likewise.
64405         * lib/fseterr.h: Likewise.
64406         * lib/fstatat.c: Likewise.
64407         * lib/fstrcmp.c: Likewise.
64408         * lib/fstrcmp.h: Likewise.
64409         * lib/fsusage.c: Likewise.
64410         * lib/fsusage.h: Likewise.
64411         * lib/ftell.c: Likewise.
64412         * lib/ftello.c: Likewise.
64413         * lib/fts-cycle.c: Likewise.
64414         * lib/fts.c: Likewise.
64415         * lib/fts_.h: Likewise.
64416         * lib/full-read.c: Likewise.
64417         * lib/full-read.h: Likewise.
64418         * lib/full-write.c: Likewise.
64419         * lib/full-write.h: Likewise.
64420         * lib/fwritable.c: Likewise.
64421         * lib/fwritable.h: Likewise.
64422         * lib/fwriteerror.c: Likewise.
64423         * lib/fwriteerror.h: Likewise.
64424         * lib/fwriting.c: Likewise.
64425         * lib/fwriting.h: Likewise.
64426         * lib/gcd.c: Likewise.
64427         * lib/gcd.h: Likewise.
64428         * lib/getcwd.c: Likewise.
64429         * lib/getdate.h: Likewise.
64430         * lib/getdate.y: Likewise.
64431         * lib/getdomainname.c: Likewise.
64432         * lib/getdomainname.h: Likewise.
64433         * lib/getgroups.c: Likewise.
64434         * lib/gethostname.c: Likewise.
64435         * lib/gethrxtime.c: Likewise.
64436         * lib/gethrxtime.h: Likewise.
64437         * lib/getloadavg.c: Likewise.
64438         * lib/getndelim2.c: Likewise.
64439         * lib/getndelim2.h: Likewise.
64440         * lib/getnline.c: Likewise.
64441         * lib/getnline.h: Likewise.
64442         * lib/getopt.c: Likewise.
64443         * lib/getopt.in.h: Likewise.
64444         * lib/getopt1.c: Likewise.
64445         * lib/getopt_int.h: Likewise.
64446         * lib/getpagesize.h: Likewise.
64447         * lib/getsubopt.c: Likewise.
64448         * lib/gettime.c: Likewise.
64449         * lib/getugroups.c: Likewise.
64450         * lib/getugroups.h: Likewise.
64451         * lib/getusershell.c: Likewise.
64452         * lib/gl_anyavltree_list1.h: Likewise.
64453         * lib/gl_anyavltree_list2.h: Likewise.
64454         * lib/gl_anyhash_list1.h: Likewise.
64455         * lib/gl_anyhash_list2.h: Likewise.
64456         * lib/gl_anylinked_list1.h: Likewise.
64457         * lib/gl_anylinked_list2.h: Likewise.
64458         * lib/gl_anyrbtree_list1.h: Likewise.
64459         * lib/gl_anyrbtree_list2.h: Likewise.
64460         * lib/gl_anytree_list1.h: Likewise.
64461         * lib/gl_anytree_list2.h: Likewise.
64462         * lib/gl_anytree_oset.h: Likewise.
64463         * lib/gl_anytreehash_list1.h: Likewise.
64464         * lib/gl_anytreehash_list2.h: Likewise.
64465         * lib/gl_array_list.c: Likewise.
64466         * lib/gl_array_list.h: Likewise.
64467         * lib/gl_array_oset.c: Likewise.
64468         * lib/gl_array_oset.h: Likewise.
64469         * lib/gl_avltree_list.c: Likewise.
64470         * lib/gl_avltree_list.h: Likewise.
64471         * lib/gl_avltree_oset.c: Likewise.
64472         * lib/gl_avltree_oset.h: Likewise.
64473         * lib/gl_avltreehash_list.c: Likewise.
64474         * lib/gl_avltreehash_list.h: Likewise.
64475         * lib/gl_carray_list.c: Likewise.
64476         * lib/gl_carray_list.h: Likewise.
64477         * lib/gl_linked_list.c: Likewise.
64478         * lib/gl_linked_list.h: Likewise.
64479         * lib/gl_linkedhash_list.c: Likewise.
64480         * lib/gl_linkedhash_list.h: Likewise.
64481         * lib/gl_list.c: Likewise.
64482         * lib/gl_list.h: Likewise.
64483         * lib/gl_oset.c: Likewise.
64484         * lib/gl_oset.h: Likewise.
64485         * lib/gl_rbtree_list.c: Likewise.
64486         * lib/gl_rbtree_list.h: Likewise.
64487         * lib/gl_rbtree_oset.c: Likewise.
64488         * lib/gl_rbtree_oset.h: Likewise.
64489         * lib/gl_rbtreehash_list.c: Likewise.
64490         * lib/gl_rbtreehash_list.h: Likewise.
64491         * lib/gl_sublist.c: Likewise.
64492         * lib/gl_sublist.h: Likewise.
64493         * lib/group-member.c: Likewise.
64494         * lib/group-member.h: Likewise.
64495         * lib/hard-locale.c: Likewise.
64496         * lib/hard-locale.h: Likewise.
64497         * lib/hash-pjw.c: Likewise.
64498         * lib/hash-pjw.h: Likewise.
64499         * lib/hash-triple.c: Likewise.
64500         * lib/hash.c: Likewise.
64501         * lib/hash.h: Likewise.
64502         * lib/human.c: Likewise.
64503         * lib/human.h: Likewise.
64504         * lib/i-ring.c: Likewise.
64505         * lib/i-ring.h: Likewise.
64506         * lib/idcache.c: Likewise.
64507         * lib/imaxabs.c: Likewise.
64508         * lib/imaxdiv.c: Likewise.
64509         * lib/inet_pton.c: Likewise.
64510         * lib/inet_pton.h: Likewise.
64511         * lib/intprops.h: Likewise.
64512         * lib/inttostr.c: Likewise.
64513         * lib/inttostr.h: Likewise.
64514         * lib/inttypes.in.h: Likewise.
64515         * lib/isapipe.c: Likewise.
64516         * lib/isdir.c: Likewise.
64517         * lib/isnan.c: Likewise.
64518         * lib/isnan.h: Likewise.
64519         * lib/isnanf.c: Likewise.
64520         * lib/isnanf.h: Likewise.
64521         * lib/isnanl-nolibm.h: Likewise.
64522         * lib/isnanl.c: Likewise.
64523         * lib/isnanl.h: Likewise.
64524         * lib/javacomp.c: Likewise.
64525         * lib/javacomp.h: Likewise.
64526         * lib/javaexec.c: Likewise.
64527         * lib/javaexec.h: Likewise.
64528         * lib/javaversion.c: Likewise.
64529         * lib/javaversion.h: Likewise.
64530         * lib/javaversion.java: Likewise.
64531         * lib/lbrkprop.h: Likewise.
64532         * lib/lchmod.h: Likewise.
64533         * lib/lchown.c: Likewise.
64534         * lib/ldexpl.c: Likewise.
64535         * lib/linebreak.c: Likewise.
64536         * lib/linebreak.h: Likewise.
64537         * lib/linebuffer.c: Likewise.
64538         * lib/linebuffer.h: Likewise.
64539         * lib/locale.in.h: Likewise.
64540         * lib/logl.c: Likewise.
64541         * lib/long-options.c: Likewise.
64542         * lib/long-options.h: Likewise.
64543         * lib/lstat.c: Likewise.
64544         * lib/lstat.h: Likewise.
64545         * lib/math.in.h: Likewise.
64546         * lib/mbchar.c: Likewise.
64547         * lib/mbchar.h: Likewise.
64548         * lib/mbfile.h: Likewise.
64549         * lib/mbiter.h: Likewise.
64550         * lib/mbscasecmp.c: Likewise.
64551         * lib/mbscasestr.c: Likewise.
64552         * lib/mbschr.c: Likewise.
64553         * lib/mbscspn.c: Likewise.
64554         * lib/mbslen.c: Likewise.
64555         * lib/mbsncasecmp.c: Likewise.
64556         * lib/mbsnlen.c: Likewise.
64557         * lib/mbspbrk.c: Likewise.
64558         * lib/mbspcasecmp.c: Likewise.
64559         * lib/mbsrchr.c: Likewise.
64560         * lib/mbssep.c: Likewise.
64561         * lib/mbsspn.c: Likewise.
64562         * lib/mbsstr.c: Likewise.
64563         * lib/mbstok_r.c: Likewise.
64564         * lib/mbswidth.c: Likewise.
64565         * lib/mbswidth.h: Likewise.
64566         * lib/mbuiter.h: Likewise.
64567         * lib/memcasecmp.c: Likewise.
64568         * lib/memcasecmp.h: Likewise.
64569         * lib/memchr.c: Likewise.
64570         * lib/memcmp.c: Likewise.
64571         * lib/memcoll.c: Likewise.
64572         * lib/memcoll.h: Likewise.
64573         * lib/memcpy.c: Likewise.
64574         * lib/memrchr.c: Likewise.
64575         * lib/mkancesdirs.c: Likewise.
64576         * lib/mkdir-p.c: Likewise.
64577         * lib/mkdir-p.h: Likewise.
64578         * lib/mkdir.c: Likewise.
64579         * lib/mkdirat.c: Likewise.
64580         * lib/mkdtemp.c: Likewise.
64581         * lib/mkstemp-safer.c: Likewise.
64582         * lib/mkstemp.c: Likewise.
64583         * lib/modechange.c: Likewise.
64584         * lib/modechange.h: Likewise.
64585         * lib/mountlist.c: Likewise.
64586         * lib/mountlist.h: Likewise.
64587         * lib/mpsort.c: Likewise.
64588         * lib/nanosleep.c: Likewise.
64589         * lib/obstack.c: Likewise.
64590         * lib/obstack.h: Likewise.
64591         * lib/open-safer.c: Likewise.
64592         * lib/open.c: Likewise.
64593         * lib/openat-die.c: Likewise.
64594         * lib/openat-priv.h: Likewise.
64595         * lib/openat-proc.c: Likewise.
64596         * lib/openat.c: Likewise.
64597         * lib/openat.h: Likewise.
64598         * lib/pagealign_alloc.c: Likewise.
64599         * lib/pagealign_alloc.h: Likewise.
64600         * lib/physmem.c: Likewise.
64601         * lib/physmem.h: Likewise.
64602         * lib/pipe-safer.c: Likewise.
64603         * lib/pipe.c: Likewise.
64604         * lib/pipe.h: Likewise.
64605         * lib/posixtm.c: Likewise.
64606         * lib/posixtm.h: Likewise.
64607         * lib/posixver.c: Likewise.
64608         * lib/printf-frexp.c: Likewise.
64609         * lib/printf-frexp.h: Likewise.
64610         * lib/printf-frexpl.c: Likewise.
64611         * lib/printf-frexpl.h: Likewise.
64612         * lib/printf.c: Likewise.
64613         * lib/progname.c: Likewise.
64614         * lib/progname.h: Likewise.
64615         * lib/progreloc.c: Likewise.
64616         * lib/putenv.c: Likewise.
64617         * lib/quote.c: Likewise.
64618         * lib/quote.h: Likewise.
64619         * lib/quotearg.c: Likewise.
64620         * lib/quotearg.h: Likewise.
64621         * lib/raise.c: Likewise.
64622         * lib/readline.c: Likewise.
64623         * lib/readline.h: Likewise.
64624         * lib/readlink.c: Likewise.
64625         * lib/readtokens.c: Likewise.
64626         * lib/readtokens.h: Likewise.
64627         * lib/readtokens0.c: Likewise.
64628         * lib/readtokens0.h: Likewise.
64629         * lib/readutmp.c: Likewise.
64630         * lib/readutmp.h: Likewise.
64631         * lib/realloc.c: Likewise.
64632         * lib/relocwrapper.c: Likewise.
64633         * lib/rename-dest-slash.c: Likewise.
64634         * lib/rename.c: Likewise.
64635         * lib/rmdir.c: Likewise.
64636         * lib/rpmatch.c: Likewise.
64637         * lib/safe-read.c: Likewise.
64638         * lib/safe-read.h: Likewise.
64639         * lib/safe-write.c: Likewise.
64640         * lib/safe-write.h: Likewise.
64641         * lib/same-inode.h: Likewise.
64642         * lib/same.c: Likewise.
64643         * lib/same.h: Likewise.
64644         * lib/save-cwd.c: Likewise.
64645         * lib/save-cwd.h: Likewise.
64646         * lib/savedir.c: Likewise.
64647         * lib/savedir.h: Likewise.
64648         * lib/savewd.c: Likewise.
64649         * lib/savewd.h: Likewise.
64650         * lib/search.in.h: Likewise.
64651         * lib/setenv.c: Likewise.
64652         * lib/setenv.h: Likewise.
64653         * lib/settime.c: Likewise.
64654         * lib/sh-quote.c: Likewise.
64655         * lib/sh-quote.h: Likewise.
64656         * lib/sig2str.c: Likewise.
64657         * lib/sig2str.h: Likewise.
64658         * lib/signal.in.h: Likewise.
64659         * lib/signbitd.c: Likewise.
64660         * lib/signbitf.c: Likewise.
64661         * lib/signbitl.c: Likewise.
64662         * lib/sigprocmask.c: Likewise.
64663         * lib/sincosl.c: Likewise.
64664         * lib/sleep.c: Likewise.
64665         * lib/sprintf.c: Likewise.
64666         * lib/sqrtl.c: Likewise.
64667         * lib/stat-time.h: Likewise.
64668         * lib/stdio--.h: Likewise.
64669         * lib/stdio-safer.h: Likewise.
64670         * lib/stdlib--.h: Likewise.
64671         * lib/stdlib-safer.h: Likewise.
64672         * lib/stdlib.in.h: Likewise.
64673         * lib/stpcpy.c: Likewise.
64674         * lib/stpncpy.c: Likewise.
64675         * lib/strchrnul.c: Likewise.
64676         * lib/strcspn.c: Likewise.
64677         * lib/strerror.c: Likewise.
64678         * lib/strftime.c: Likewise.
64679         * lib/strftime.h: Likewise.
64680         * lib/striconveh.c: Likewise.
64681         * lib/striconveh.h: Likewise.
64682         * lib/striconveha.c: Likewise.
64683         * lib/striconveha.h: Likewise.
64684         * lib/stripslash.c: Likewise.
64685         * lib/strnlen1.c: Likewise.
64686         * lib/strnlen1.h: Likewise.
64687         * lib/strtod.c: Likewise.
64688         * lib/strtoimax.c: Likewise.
64689         * lib/strtok_r.c: Likewise.
64690         * lib/strtol.c: Likewise.
64691         * lib/strtoll.c: Likewise.
64692         * lib/strtoul.c: Likewise.
64693         * lib/strtoull.c: Likewise.
64694         * lib/sysexits.in.h: Likewise.
64695         * lib/tempname.c: Likewise.
64696         * lib/tempname.h: Likewise.
64697         * lib/timespec.h: Likewise.
64698         * lib/tls.c: Likewise.
64699         * lib/tls.h: Likewise.
64700         * lib/tmpdir.c: Likewise.
64701         * lib/tmpdir.h: Likewise.
64702         * lib/tmpfile-safer.c: Likewise.
64703         * lib/tmpfile.c: Likewise.
64704         * lib/trigl.c: Likewise.
64705         * lib/trigl.h: Likewise.
64706         * lib/trim.c: Likewise.
64707         * lib/trim.h: Likewise.
64708         * lib/trunc.c: Likewise.
64709         * lib/truncf.c: Likewise.
64710         * lib/truncl.c: Likewise.
64711         * lib/tsearch.c: Likewise.
64712         * lib/unicodeio.c: Likewise.
64713         * lib/unicodeio.h: Likewise.
64714         * lib/unistd--.h: Likewise.
64715         * lib/unistd-safer.h: Likewise.
64716         * lib/unistdio/ulc-fprintf.c: Likewise.
64717         * lib/unistdio/ulc-vfprintf.c: Likewise.
64718         * lib/unlinkdir.c: Likewise.
64719         * lib/unlinkdir.h: Likewise.
64720         * lib/unlocked-io.h: Likewise.
64721         * lib/unsetenv.c: Likewise.
64722         * lib/userspec.c: Likewise.
64723         * lib/utime.c: Likewise.
64724         * lib/utimecmp.c: Likewise.
64725         * lib/utimecmp.h: Likewise.
64726         * lib/utimens.c: Likewise.
64727         * lib/verify.h: Likewise.
64728         * lib/verror.c: Likewise.
64729         * lib/verror.h: Likewise.
64730         * lib/version-etc-fsf.c: Likewise.
64731         * lib/version-etc.c: Likewise.
64732         * lib/version-etc.h: Likewise.
64733         * lib/vfprintf.c: Likewise.
64734         * lib/vprintf.c: Likewise.
64735         * lib/vsprintf.c: Likewise.
64736         * lib/w32spawn.h: Likewise.
64737         * lib/wait-process.c: Likewise.
64738         * lib/wait-process.h: Likewise.
64739         * lib/wcwidth.c: Likewise.
64740         * lib/write-any-file.c: Likewise.
64741         * lib/xalloc-die.c: Likewise.
64742         * lib/xalloc.h: Likewise.
64743         * lib/xasprintf.c: Likewise.
64744         * lib/xgetcwd.c: Likewise.
64745         * lib/xgetcwd.h: Likewise.
64746         * lib/xgetdomainname.c: Likewise.
64747         * lib/xgetdomainname.h: Likewise.
64748         * lib/xgethostname.c: Likewise.
64749         * lib/xmalloc.c: Likewise.
64750         * lib/xmalloca.c: Likewise.
64751         * lib/xmalloca.h: Likewise.
64752         * lib/xmemcoll.c: Likewise.
64753         * lib/xnanosleep.c: Likewise.
64754         * lib/xreadlink.c: Likewise.
64755         * lib/xreadlink.h: Likewise.
64756         * lib/xsetenv.c: Likewise.
64757         * lib/xsetenv.h: Likewise.
64758         * lib/xstriconv.c: Likewise.
64759         * lib/xstriconv.h: Likewise.
64760         * lib/xstrndup.c: Likewise.
64761         * lib/xstrndup.h: Likewise.
64762         * lib/xstrtod.c: Likewise.
64763         * lib/xstrtod.h: Likewise.
64764         * lib/xstrtol-error.c: Likewise.
64765         * lib/xstrtol.c: Likewise.
64766         * lib/xstrtol.h: Likewise.
64767         * lib/xtime.h: Likewise.
64768         * lib/xvasprintf.c: Likewise.
64769         * lib/xvasprintf.h: Likewise.
64770         * lib/yesno.c: Likewise.
64771         * lib/yesno.h: Likewise.
64772         * posix-modules: Likewise.
64773         * tests/test-alloca-opt.c: Likewise.
64774         * tests/test-arcfour.c: Likewise.
64775         * tests/test-arctwo.c: Likewise.
64776         * tests/test-argmatch.c: Likewise.
64777         * tests/test-argp-2.sh: Likewise.
64778         * tests/test-argp.c: Likewise.
64779         * tests/test-arpa_inet.c: Likewise.
64780         * tests/test-array_list.c: Likewise.
64781         * tests/test-array_oset.c: Likewise.
64782         * tests/test-atexit.c: Likewise.
64783         * tests/test-avltree_list.c: Likewise.
64784         * tests/test-avltree_oset.c: Likewise.
64785         * tests/test-avltreehash_list.c: Likewise.
64786         * tests/test-base64.c: Likewise.
64787         * tests/test-binary-io.c: Likewise.
64788         * tests/test-byteswap.c: Likewise.
64789         * tests/test-c-ctype.c: Likewise.
64790         * tests/test-c-strcasecmp.c: Likewise.
64791         * tests/test-c-strcasestr.c: Likewise.
64792         * tests/test-c-strncasecmp.c: Likewise.
64793         * tests/test-c-strstr.c: Likewise.
64794         * tests/test-canonicalize-lgpl.c: Likewise.
64795         * tests/test-canonicalize.c: Likewise.
64796         * tests/test-carray_list.c: Likewise.
64797         * tests/test-ceilf.c: Likewise.
64798         * tests/test-ceill.c: Likewise.
64799         * tests/test-count-one-bits.c: Likewise.
64800         * tests/test-crc.c: Likewise.
64801         * tests/test-dirname.c: Likewise.
64802         * tests/test-fbufmode.c: Likewise.
64803         * tests/test-fcntl.c: Likewise.
64804         * tests/test-fflush.c: Likewise.
64805         * tests/test-floorf.c: Likewise.
64806         * tests/test-floorl.c: Likewise.
64807         * tests/test-fopen.c: Likewise.
64808         * tests/test-fprintf-posix.c: Likewise.
64809         * tests/test-fprintf-posix.h: Likewise.
64810         * tests/test-fpurge.c: Likewise.
64811         * tests/test-freadable.c: Likewise.
64812         * tests/test-freadahead.c: Likewise.
64813         * tests/test-freading.c: Likewise.
64814         * tests/test-freopen.c: Likewise.
64815         * tests/test-frexp.c: Likewise.
64816         * tests/test-frexpl.c: Likewise.
64817         * tests/test-fseek.c: Likewise.
64818         * tests/test-fseeko.c: Likewise.
64819         * tests/test-fseterr.c: Likewise.
64820         * tests/test-fstrcmp.c: Likewise.
64821         * tests/test-ftell.c: Likewise.
64822         * tests/test-ftello.c: Likewise.
64823         * tests/test-fwritable.c: Likewise.
64824         * tests/test-fwriting.c: Likewise.
64825         * tests/test-getaddrinfo.c: Likewise.
64826         * tests/test-getpass.c: Likewise.
64827         * tests/test-gettimeofday.c: Likewise.
64828         * tests/test-hmac-md5.c: Likewise.
64829         * tests/test-hmac-sha1.c: Likewise.
64830         * tests/test-iconv.c: Likewise.
64831         * tests/test-iconvme.c: Likewise.
64832         * tests/test-inttypes.c: Likewise.
64833         * tests/test-isnan.c: Likewise.
64834         * tests/test-isnanf.c: Likewise.
64835         * tests/test-isnanl-nolibm.c: Likewise.
64836         * tests/test-isnanl.c: Likewise.
64837         * tests/test-isnanl.h: Likewise.
64838         * tests/test-ldexpl.c: Likewise.
64839         * tests/test-linked_list.c: Likewise.
64840         * tests/test-linkedhash_list.c: Likewise.
64841         * tests/test-locale.c: Likewise.
64842         * tests/test-localename.c: Likewise.
64843         * tests/test-lock.c: Likewise.
64844         * tests/test-lseek.c: Likewise.
64845         * tests/test-malloca.c: Likewise.
64846         * tests/test-math.c: Likewise.
64847         * tests/test-mbscasecmp.c: Likewise.
64848         * tests/test-mbscasestr1.c: Likewise.
64849         * tests/test-mbscasestr2.c: Likewise.
64850         * tests/test-mbscasestr3.c: Likewise.
64851         * tests/test-mbscasestr4.c: Likewise.
64852         * tests/test-mbschr.c: Likewise.
64853         * tests/test-mbscspn.c: Likewise.
64854         * tests/test-mbsncasecmp.c: Likewise.
64855         * tests/test-mbspbrk.c: Likewise.
64856         * tests/test-mbspcasecmp.c: Likewise.
64857         * tests/test-mbsrchr.c: Likewise.
64858         * tests/test-mbsspn.c: Likewise.
64859         * tests/test-mbsstr1.c: Likewise.
64860         * tests/test-mbsstr2.c: Likewise.
64861         * tests/test-mbsstr3.c: Likewise.
64862         * tests/test-md5.c: Likewise.
64863         * tests/test-memmem.c: Likewise.
64864         * tests/test-netinet_in.c: Likewise.
64865         * tests/test-open.c: Likewise.
64866         * tests/test-printf-frexp.c: Likewise.
64867         * tests/test-printf-frexpl.c: Likewise.
64868         * tests/test-printf-posix.c: Likewise.
64869         * tests/test-printf-posix.h: Likewise.
64870         * tests/test-rbtree_list.c: Likewise.
64871         * tests/test-rbtree_oset.c: Likewise.
64872         * tests/test-rbtreehash_list.c: Likewise.
64873         * tests/test-read-file.c: Likewise.
64874         * tests/test-rijndael.c: Likewise.
64875         * tests/test-search.c: Likewise.
64876         * tests/test-signbit.c: Likewise.
64877         * tests/test-sleep.c: Likewise.
64878         * tests/test-snprintf-posix.c: Likewise.
64879         * tests/test-snprintf-posix.h: Likewise.
64880         * tests/test-snprintf.c: Likewise.
64881         * tests/test-sprintf-posix.c: Likewise.
64882         * tests/test-sprintf-posix.h: Likewise.
64883         * tests/test-stat-time.c: Likewise.
64884         * tests/test-stdbool.c: Likewise.
64885         * tests/test-stdint.c: Likewise.
64886         * tests/test-stdio.c: Likewise.
64887         * tests/test-stdlib.c: Likewise.
64888         * tests/test-stpncpy.c: Likewise.
64889         * tests/test-strcasestr.c: Likewise.
64890         * tests/test-striconv.c: Likewise.
64891         * tests/test-striconveh.c: Likewise.
64892         * tests/test-striconveha.c: Likewise.
64893         * tests/test-string.c: Likewise.
64894         * tests/test-sys_select.c: Likewise.
64895         * tests/test-sys_socket.c: Likewise.
64896         * tests/test-sys_stat.c: Likewise.
64897         * tests/test-sys_time.c: Likewise.
64898         * tests/test-sysexits.c: Likewise.
64899         * tests/test-time.c: Likewise.
64900         * tests/test-tls.c: Likewise.
64901         * tests/test-trunc.c: Likewise.
64902         * tests/test-truncf.c: Likewise.
64903         * tests/test-truncl.c: Likewise.
64904         * tests/test-unistd.c: Likewise.
64905         * tests/test-vasnprintf-posix.c: Likewise.
64906         * tests/test-vasnprintf-posix2.c: Likewise.
64907         * tests/test-vasnprintf.c: Likewise.
64908         * tests/test-vasprintf-posix.c: Likewise.
64909         * tests/test-vasprintf.c: Likewise.
64910         * tests/test-verify.c: Likewise.
64911         * tests/test-vfprintf-posix.c: Likewise.
64912         * tests/test-vprintf-posix.c: Likewise.
64913         * tests/test-vsnprintf-posix.c: Likewise.
64914         * tests/test-vsnprintf.c: Likewise.
64915         * tests/test-vsprintf-posix.c: Likewise.
64916         * tests/test-wchar.c: Likewise.
64917         * tests/test-wctype.c: Likewise.
64918         * tests/test-wcwidth.c: Likewise.
64919         * tests/test-xstrtol.c: Likewise.
64920         * tests/test-xvasprintf.c: Likewise.
64921         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64922         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64923         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64924         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64925         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64926         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64927         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64928         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64929         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64930         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64931         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64932         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64933         * tests/uniname/test-uninames.c: Likewise.
64934         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64935         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64936         * tests/unistdio/test-u16-printf1.h: Likewise.
64937         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64938         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64939         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64940         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64941         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64942         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64943         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64944         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64945         * tests/unistdio/test-u32-printf1.h: Likewise.
64946         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64947         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64948         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64949         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64950         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64951         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64952         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64953         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64954         * tests/unistdio/test-u8-printf1.h: Likewise.
64955         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64956         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64957         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64958         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64959         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64960         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64961         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64962         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64963         * tests/unistdio/test-ulc-printf1.h: Likewise.
64964         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64965         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64966         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64967         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64968         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64969         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64970         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64971         * tests/uniwidth/test-u16-width.c: Likewise.
64972         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64973         * tests/uniwidth/test-u32-width.c: Likewise.
64974         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64975         * tests/uniwidth/test-u8-width.c: Likewise.
64976         * tests/uniwidth/test-uc_width.c: Likewise.
64977         * config/srclist-update: Likewise.
64978         (fixlicense): Update to GPLv3+.
64979
64980         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64981         * tests/test-tsearch.c: Change copyright notice.
64982
64983         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64984         * lib/c-strcaseeq.h: Change copyright notice.
64985         * lib/streq.h: Likewise.
64986         * lib/uniconv.h: Likewise.
64987         * lib/uniconv/u-conv-from-enc.h: Likewise.
64988         * lib/uniconv/u-conv-to-enc.h: Likewise.
64989         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64990         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64991         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64992         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64993         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64994         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64995         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64996         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64997         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64998         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64999         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65000         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65001         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65002         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65003         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65004         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65005         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65006         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65007         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65008         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65009         * lib/uniname.h: Likewise.
65010         * lib/uniname/uniname.c: Likewise.
65011         * lib/unistdio.h: Likewise.
65012         * lib/unistdio/u-asnprintf.h: Likewise.
65013         * lib/unistdio/u-asprintf.h: Likewise.
65014         * lib/unistdio/u-printf-args.c: Likewise.
65015         * lib/unistdio/u-printf-args.h: Likewise.
65016         * lib/unistdio/u-printf-parse.h: Likewise.
65017         * lib/unistdio/u-snprintf.h: Likewise.
65018         * lib/unistdio/u-sprintf.h: Likewise.
65019         * lib/unistdio/u-vasprintf.h: Likewise.
65020         * lib/unistdio/u-vsnprintf.h: Likewise.
65021         * lib/unistdio/u-vsprintf.h: Likewise.
65022         * lib/unistdio/u16-asnprintf.c: Likewise.
65023         * lib/unistdio/u16-asprintf.c: Likewise.
65024         * lib/unistdio/u16-printf-parse.c: Likewise.
65025         * lib/unistdio/u16-snprintf.c: Likewise.
65026         * lib/unistdio/u16-sprintf.c: Likewise.
65027         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65028         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65029         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65030         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65031         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65032         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65033         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65034         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65035         * lib/unistdio/u16-vasnprintf.c: Likewise.
65036         * lib/unistdio/u16-vasprintf.c: Likewise.
65037         * lib/unistdio/u16-vsnprintf.c: Likewise.
65038         * lib/unistdio/u16-vsprintf.c: Likewise.
65039         * lib/unistdio/u32-asnprintf.c: Likewise.
65040         * lib/unistdio/u32-asprintf.c: Likewise.
65041         * lib/unistdio/u32-printf-parse.c: Likewise.
65042         * lib/unistdio/u32-snprintf.c: Likewise.
65043         * lib/unistdio/u32-sprintf.c: Likewise.
65044         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65045         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65046         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65047         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65048         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65049         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65050         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65051         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65052         * lib/unistdio/u32-vasnprintf.c: Likewise.
65053         * lib/unistdio/u32-vasprintf.c: Likewise.
65054         * lib/unistdio/u32-vsnprintf.c: Likewise.
65055         * lib/unistdio/u32-vsprintf.c: Likewise.
65056         * lib/unistdio/u8-asnprintf.c: Likewise.
65057         * lib/unistdio/u8-asprintf.c: Likewise.
65058         * lib/unistdio/u8-printf-parse.c: Likewise.
65059         * lib/unistdio/u8-snprintf.c: Likewise.
65060         * lib/unistdio/u8-sprintf.c: Likewise.
65061         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65062         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65063         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65064         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65065         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65066         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65067         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65068         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65069         * lib/unistdio/u8-vasnprintf.c: Likewise.
65070         * lib/unistdio/u8-vasprintf.c: Likewise.
65071         * lib/unistdio/u8-vsnprintf.c: Likewise.
65072         * lib/unistdio/u8-vsprintf.c: Likewise.
65073         * lib/unistdio/ulc-asnprintf.c: Likewise.
65074         * lib/unistdio/ulc-asprintf.c: Likewise.
65075         * lib/unistdio/ulc-printf-parse.c: Likewise.
65076         * lib/unistdio/ulc-snprintf.c: Likewise.
65077         * lib/unistdio/ulc-sprintf.c: Likewise.
65078         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65079         * lib/unistdio/ulc-vasprintf.c: Likewise.
65080         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65081         * lib/unistdio/ulc-vsprintf.c: Likewise.
65082         * lib/unistr.h: Likewise.
65083         * lib/unistr/u-cpy-alloc.h: Likewise.
65084         * lib/unistr/u-cpy.h: Likewise.
65085         * lib/unistr/u-endswith.h: Likewise.
65086         * lib/unistr/u-move.h: Likewise.
65087         * lib/unistr/u-set.h: Likewise.
65088         * lib/unistr/u-startswith.h: Likewise.
65089         * lib/unistr/u-stpcpy.h: Likewise.
65090         * lib/unistr/u-stpncpy.h: Likewise.
65091         * lib/unistr/u-strcat.h: Likewise.
65092         * lib/unistr/u-strcpy.h: Likewise.
65093         * lib/unistr/u-strcspn.h: Likewise.
65094         * lib/unistr/u-strdup.h: Likewise.
65095         * lib/unistr/u-strlen.h: Likewise.
65096         * lib/unistr/u-strncat.h: Likewise.
65097         * lib/unistr/u-strncpy.h: Likewise.
65098         * lib/unistr/u-strnlen.h: Likewise.
65099         * lib/unistr/u-strpbrk.h: Likewise.
65100         * lib/unistr/u-strspn.h: Likewise.
65101         * lib/unistr/u-strstr.h: Likewise.
65102         * lib/unistr/u-strtok.h: Likewise.
65103         * lib/unistr/u16-check.c: Likewise.
65104         * lib/unistr/u16-chr.c: Likewise.
65105         * lib/unistr/u16-cmp.c: Likewise.
65106         * lib/unistr/u16-cpy-alloc.c: Likewise.
65107         * lib/unistr/u16-cpy.c: Likewise.
65108         * lib/unistr/u16-endswith.c: Likewise.
65109         * lib/unistr/u16-mblen.c: Likewise.
65110         * lib/unistr/u16-mbsnlen.c: Likewise.
65111         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65112         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65113         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65114         * lib/unistr/u16-mbtouc.c: Likewise.
65115         * lib/unistr/u16-mbtoucr.c: Likewise.
65116         * lib/unistr/u16-move.c: Likewise.
65117         * lib/unistr/u16-next.c: Likewise.
65118         * lib/unistr/u16-prev.c: Likewise.
65119         * lib/unistr/u16-set.c: Likewise.
65120         * lib/unistr/u16-startswith.c: Likewise.
65121         * lib/unistr/u16-stpcpy.c: Likewise.
65122         * lib/unistr/u16-stpncpy.c: Likewise.
65123         * lib/unistr/u16-strcat.c: Likewise.
65124         * lib/unistr/u16-strchr.c: Likewise.
65125         * lib/unistr/u16-strcmp.c: Likewise.
65126         * lib/unistr/u16-strcpy.c: Likewise.
65127         * lib/unistr/u16-strcspn.c: Likewise.
65128         * lib/unistr/u16-strdup.c: Likewise.
65129         * lib/unistr/u16-strlen.c: Likewise.
65130         * lib/unistr/u16-strmblen.c: Likewise.
65131         * lib/unistr/u16-strmbtouc.c: Likewise.
65132         * lib/unistr/u16-strncat.c: Likewise.
65133         * lib/unistr/u16-strncmp.c: Likewise.
65134         * lib/unistr/u16-strncpy.c: Likewise.
65135         * lib/unistr/u16-strnlen.c: Likewise.
65136         * lib/unistr/u16-strpbrk.c: Likewise.
65137         * lib/unistr/u16-strrchr.c: Likewise.
65138         * lib/unistr/u16-strspn.c: Likewise.
65139         * lib/unistr/u16-strstr.c: Likewise.
65140         * lib/unistr/u16-strtok.c: Likewise.
65141         * lib/unistr/u16-to-u32.c: Likewise.
65142         * lib/unistr/u16-to-u8.c: Likewise.
65143         * lib/unistr/u16-uctomb-aux.c: Likewise.
65144         * lib/unistr/u16-uctomb.c: Likewise.
65145         * lib/unistr/u32-check.c: Likewise.
65146         * lib/unistr/u32-chr.c: Likewise.
65147         * lib/unistr/u32-cmp.c: Likewise.
65148         * lib/unistr/u32-cpy-alloc.c: Likewise.
65149         * lib/unistr/u32-cpy.c: Likewise.
65150         * lib/unistr/u32-endswith.c: Likewise.
65151         * lib/unistr/u32-mblen.c: Likewise.
65152         * lib/unistr/u32-mbsnlen.c: Likewise.
65153         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65154         * lib/unistr/u32-mbtouc.c: Likewise.
65155         * lib/unistr/u32-mbtoucr.c: Likewise.
65156         * lib/unistr/u32-move.c: Likewise.
65157         * lib/unistr/u32-next.c: Likewise.
65158         * lib/unistr/u32-prev.c: Likewise.
65159         * lib/unistr/u32-set.c: Likewise.
65160         * lib/unistr/u32-startswith.c: Likewise.
65161         * lib/unistr/u32-stpcpy.c: Likewise.
65162         * lib/unistr/u32-stpncpy.c: Likewise.
65163         * lib/unistr/u32-strcat.c: Likewise.
65164         * lib/unistr/u32-strchr.c: Likewise.
65165         * lib/unistr/u32-strcmp.c: Likewise.
65166         * lib/unistr/u32-strcpy.c: Likewise.
65167         * lib/unistr/u32-strcspn.c: Likewise.
65168         * lib/unistr/u32-strdup.c: Likewise.
65169         * lib/unistr/u32-strlen.c: Likewise.
65170         * lib/unistr/u32-strmblen.c: Likewise.
65171         * lib/unistr/u32-strmbtouc.c: Likewise.
65172         * lib/unistr/u32-strncat.c: Likewise.
65173         * lib/unistr/u32-strncmp.c: Likewise.
65174         * lib/unistr/u32-strncpy.c: Likewise.
65175         * lib/unistr/u32-strnlen.c: Likewise.
65176         * lib/unistr/u32-strpbrk.c: Likewise.
65177         * lib/unistr/u32-strrchr.c: Likewise.
65178         * lib/unistr/u32-strspn.c: Likewise.
65179         * lib/unistr/u32-strstr.c: Likewise.
65180         * lib/unistr/u32-strtok.c: Likewise.
65181         * lib/unistr/u32-to-u16.c: Likewise.
65182         * lib/unistr/u32-to-u8.c: Likewise.
65183         * lib/unistr/u32-uctomb.c: Likewise.
65184         * lib/unistr/u8-check.c: Likewise.
65185         * lib/unistr/u8-chr.c: Likewise.
65186         * lib/unistr/u8-cmp.c: Likewise.
65187         * lib/unistr/u8-cpy-alloc.c: Likewise.
65188         * lib/unistr/u8-cpy.c: Likewise.
65189         * lib/unistr/u8-endswith.c: Likewise.
65190         * lib/unistr/u8-mblen.c: Likewise.
65191         * lib/unistr/u8-mbsnlen.c: Likewise.
65192         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65193         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65194         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65195         * lib/unistr/u8-mbtouc.c: Likewise.
65196         * lib/unistr/u8-mbtoucr.c: Likewise.
65197         * lib/unistr/u8-move.c: Likewise.
65198         * lib/unistr/u8-next.c: Likewise.
65199         * lib/unistr/u8-prev.c: Likewise.
65200         * lib/unistr/u8-set.c: Likewise.
65201         * lib/unistr/u8-startswith.c: Likewise.
65202         * lib/unistr/u8-stpcpy.c: Likewise.
65203         * lib/unistr/u8-stpncpy.c: Likewise.
65204         * lib/unistr/u8-strcat.c: Likewise.
65205         * lib/unistr/u8-strchr.c: Likewise.
65206         * lib/unistr/u8-strcmp.c: Likewise.
65207         * lib/unistr/u8-strcpy.c: Likewise.
65208         * lib/unistr/u8-strcspn.c: Likewise.
65209         * lib/unistr/u8-strdup.c: Likewise.
65210         * lib/unistr/u8-strlen.c: Likewise.
65211         * lib/unistr/u8-strmblen.c: Likewise.
65212         * lib/unistr/u8-strmbtouc.c: Likewise.
65213         * lib/unistr/u8-strncat.c: Likewise.
65214         * lib/unistr/u8-strncmp.c: Likewise.
65215         * lib/unistr/u8-strncpy.c: Likewise.
65216         * lib/unistr/u8-strnlen.c: Likewise.
65217         * lib/unistr/u8-strpbrk.c: Likewise.
65218         * lib/unistr/u8-strrchr.c: Likewise.
65219         * lib/unistr/u8-strspn.c: Likewise.
65220         * lib/unistr/u8-strstr.c: Likewise.
65221         * lib/unistr/u8-strtok.c: Likewise.
65222         * lib/unistr/u8-to-u16.c: Likewise.
65223         * lib/unistr/u8-to-u32.c: Likewise.
65224         * lib/unistr/u8-uctomb-aux.c: Likewise.
65225         * lib/unistr/u8-uctomb.c: Likewise.
65226         * lib/unitypes.h: Likewise.
65227         * lib/uniwidth.h: Likewise.
65228         * lib/uniwidth/cjk.h: Likewise.
65229         * lib/uniwidth/u16-strwidth.c: Likewise.
65230         * lib/uniwidth/u16-width.c: Likewise.
65231         * lib/uniwidth/u32-strwidth.c: Likewise.
65232         * lib/uniwidth/u32-width.c: Likewise.
65233         * lib/uniwidth/u8-strwidth.c: Likewise.
65234         * lib/uniwidth/u8-width.c: Likewise.
65235         * lib/uniwidth/width.c: Likewise.
65236
65237 2007-10-07  Bruno Haible  <bruno@clisp.org>
65238
65239         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65240         The file is still under LGPL (see modules/inttypes).
65241
65242 2007-10-06  Bruno Haible  <bruno@clisp.org>
65243
65244         * modules/trunc (Dependencies): Add 'extensions'.
65245         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65246         Reported by Ben Pfaff <blp@gnu.org>.
65247
65248 2007-10-06  Bruno Haible  <bruno@clisp.org>
65249
65250         * modules/freopen-tests: New file.
65251         * tests/test-freopen.c: New file.
65252
65253         * modules/fopen-tests: New file.
65254         * tests/test-fopen.c: New file.
65255
65256         * modules/fopen: New file.
65257         * lib/fopen.c: New file.
65258         * m4/fopen.m4: New file.
65259         * modules/freopen: New file.
65260         * lib/freopen.c: New file.
65261         * m4/freopen.m4: New file.
65262         * lib/stdio.in.h (fopen, freopen): New declarations.
65263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65264         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65265         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65266         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65267         * doc/functions/fopen.texi: Mention the 'fopen' module.
65268         * doc/functions/freopen.texi: Mention the 'freopen' module.
65269
65270 2007-10-06  Bruno Haible  <bruno@clisp.org>
65271
65272         * modules/open-tests: New file.
65273         * tests/test-open.c: New file.
65274
65275         * modules/open: New file.
65276         * lib/open.c: New file.
65277         * m4/open.m4: New file.
65278         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65279         lib/open.c does.
65280         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65281         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65282         macros.
65283         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65284         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65285         REPLACE_OPEN.
65286         * doc/functions/open.texi: Mention the 'open' module.
65287
65288 2007-10-04  Bruno Haible  <bruno@clisp.org>
65289
65290         * modules/ceill-tests: New file.
65291         * tests/test-ceill.c: New file.
65292
65293         * modules/ceill: New file.
65294         * lib/ceill.c: Replace entire file.
65295         * m4/ceill.m4: New file.
65296         * lib/math.in.h (ceill): Replace declaration.
65297         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65298         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65299         * doc/functions/ceill.texi: Mention the 'ceill' module.
65300         * modules/mathl (Files): Remove lib/ceill.c.
65301         (Depends-on): Add ceill.
65302
65303 2007-10-04  Bruno Haible  <bruno@clisp.org>
65304
65305         * modules/ceilf-tests: New file.
65306         * tests/test-ceilf.c: New file.
65307
65308         * modules/ceilf: New file.
65309         * lib/ceil.c: New file.
65310         * lib/ceilf.c: New file.
65311         * m4/ceilf.m4: New file.
65312         * lib/math.in.h (ceilf): New declaration.
65313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65314         HAVE_DECL_CEILF.
65315         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65316         HAVE_DECL_CEILF.
65317         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65318
65319 2007-10-04  Bruno Haible  <bruno@clisp.org>
65320
65321         * modules/floorl-tests: New file.
65322         * tests/test-floorl.c: New file.
65323
65324         * modules/floorl: New file.
65325         * lib/floorl.c: Replace entire file.
65326         * m4/floorl.m4: New file.
65327         * lib/math.in.h (floorl): Replace declaration.
65328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65329         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65330         * doc/functions/floorl.texi: Mention the 'floorl' module.
65331         * modules/mathl (Files): Remove lib/floorl.c.
65332         (Depends-on): Add floorl.
65333
65334 2007-10-04  Bruno Haible  <bruno@clisp.org>
65335
65336         * modules/floorf-tests: New file.
65337         * tests/test-floorf.c: New file.
65338
65339         * modules/floorf: New file.
65340         * lib/floor.c: New file.
65341         * lib/floorf.c: New file.
65342         * m4/floorf.m4: New file.
65343         * lib/math.in.h (floorf): New declaration.
65344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65345         HAVE_DECL_FLOORF.
65346         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65347         HAVE_DECL_FLOORF.
65348         * doc/functions/floorf.texi: Mention the 'floorf' module.
65349
65350 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65351             Bruno Haible  <bruno@clisp.org>
65352
65353         Advertise for the Git server instead of the CVS server.
65354         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65355         repository instead of the CVS one.
65356         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65357         about all VCS systems generically.
65358         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65359
65360 2007-10-04  Bruno Haible  <bruno@clisp.org>
65361
65362         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65363         means.
65364         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65365
65366 2007-10-04  Bruno Haible  <bruno@clisp.org>
65367
65368         * modules/truncl-tests: New file.
65369         * tests/test-truncl.c: New file.
65370
65371         * modules/truncl: New file.
65372         * lib/truncl.c: New file.
65373         * m4/truncl.m4: New file.
65374         * lib/math.in.h (truncl): New declaration.
65375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65376         HAVE_DECL_TRUNCL.
65377         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65378         HAVE_DECL_TRUNCL.
65379         * doc/functions/truncl.texi: Mention the 'truncl' module.
65380
65381 2007-10-04  Bruno Haible  <bruno@clisp.org>
65382
65383         * modules/truncf-tests: New file.
65384         * tests/test-truncf.c: New file.
65385
65386         * modules/truncf: New file.
65387         * lib/trunc.c: Make paramerizable through USE_* macros.
65388         * lib/truncf.c: New file.
65389         * m4/truncf.m4: New file.
65390         * lib/math.in.h (truncf): New declaration.
65391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65392         HAVE_DECL_TRUNCF.
65393         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65394         HAVE_DECL_TRUNCF.
65395         * doc/functions/truncf.texi: Mention the 'truncf' module.
65396
65397 2007-10-03  Bruno Haible  <bruno@clisp.org>
65398
65399         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65400         augmentation also for tests modules.
65401         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65402         * modules/atexit-tests (Makefile.am): Likewise.
65403         * modules/binary-io-tests (Makefile.am): Likewise.
65404         * modules/c-strcase-tests (Makefile.am): Likewise.
65405         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65406         * modules/canonicalize-tests (Makefile.am): Likewise.
65407         * modules/closein-tests (Makefile.am): Likewise.
65408         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65409         * modules/freadahead-tests (Makefile.am): Likewise.
65410         * modules/fseek-tests (Makefile.am): Likewise.
65411         * modules/fseeko-tests (Makefile.am): Likewise.
65412         * modules/ftell-tests (Makefile.am): Likewise.
65413         * modules/ftello-tests (Makefile.am): Likewise.
65414         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65415         * modules/isnanl-tests (Makefile.am): Likewise.
65416         * modules/lseek-tests (Makefile.am): Likewise.
65417         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65418         * modules/mbscasestr-tests (Makefile.am): Likewise.
65419         * modules/mbschr-tests (Makefile.am): Likewise.
65420         * modules/mbscspn-tests (Makefile.am): Likewise.
65421         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65422         * modules/mbspbrk-tests (Makefile.am): Likewise.
65423         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65424         * modules/mbsrchr-tests (Makefile.am): Likewise.
65425         * modules/mbsspn-tests (Makefile.am): Likewise.
65426         * modules/mbsstr-tests (Makefile.am): Likewise.
65427         * modules/printf-posix-tests (Makefile.am): Likewise.
65428         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65429         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65430         * modules/tsearch-tests (Makefile.am): Likewise.
65431         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65432         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65433         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65434         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65435         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65436         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65437         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65438         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65439         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65440         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65441         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65442         * modules/xstrtol-tests (Makefile.am): Likewise.
65443         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65444         * modules/yesno-tests (Makefile.am): Likewise.
65445
65446 2007-10-03  Bruno Haible  <bruno@clisp.org>
65447
65448         * modules/trunc-tests: New file.
65449         * tests/test-trunc.c: New file.
65450
65451         * modules/trunc: New file.
65452         * lib/trunc.c: New file.
65453         * m4/trunc.m4: New file.
65454         * lib/math.in.h (trunc): New declaration.
65455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65456         HAVE_DECL_TRUNC.
65457         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65458         HAVE_DECL_TRUNC.
65459         * doc/functions/trunc.texi: Mention the 'trunc' module.
65460
65461 2007-10-03  Bruno Haible  <bruno@clisp.org>
65462
65463         * tests/test-fpending.c: New file, mostly copied
65464         from coreutils/lib/t-fpending.c.
65465         * modules/fpending-tests: New file.
65466
65467 2007-10-03  Bruno Haible  <bruno@clisp.org>
65468
65469         Port the stdio extensions to QNX (untested).
65470         * lib/fseterr.c (fseterr): Add support for QNX.
65471         * lib/fbufmode.c (fbufmode): Likewise.
65472         * lib/freadable.c (freadable): Likewise.
65473         * lib/fwritable.c (fwritable): Likewise.
65474         * lib/freading.c (freading): Likewise.
65475         * lib/fwriting.c (fwriting): Likewise.
65476         * lib/freadahead.c (freadahed): Likewise.
65477         * lib/fpurge.c (fpurge): Likewise.
65478         * lib/fseeko.c (rpl_fseeko): Likewise.
65479
65480 2007-10-03  Bruno Haible  <bruno@clisp.org>
65481             Jim Meyering  <jim@meyering.net>
65482             Eric Blake  <ebb9@byu.net>
65483
65484         * doc/relocatable.texi: Use @command instead of @program.
65485
65486 2007-10-02  Jim Meyering  <jim@meyering.net>
65487
65488         Perform one more "_.h" -> ".in.h" substitution.
65489         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65490         instead of unistd_.h here, too.
65491
65492 2007-10-01  Bruno Haible  <bruno@clisp.org>
65493
65494         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65495         Needed for the alloca-opt module.
65496
65497 2007-09-30  Bruno Haible  <bruno@clisp.org>
65498
65499         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65500         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65501         alloca_.h.
65502         * lib/argz.in.h: Renamed from lib/argz_.h.
65503         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65504         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65505         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65506         byteswap_.h.
65507         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65508         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65509         dirent_.h.
65510         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65511         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65512         fcntl_.h.
65513         * lib/float.in.h: Renamed from lib/float_.h.
65514         * modules/float (Files, Makefile.am): Use float.in.h instead of
65515         float_.h.
65516         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65517         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65518         fnmatch_.h.
65519         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65520         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65521         getopt_.h.
65522         * lib/glob.in.h: Renamed from lib/glob_.h.
65523         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65524         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65525         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65526         iconv_.h.
65527         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65528         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65529         inttypes_.h.
65530         * lib/locale.in.h: Renamed from lib/locale_.h.
65531         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65532         locale_.h.
65533         * lib/math.in.h: Renamed from lib/math_.h.
65534         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65535         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65536         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65537         of netinet_in_.h. Add dependency.
65538         * lib/poll.in.h: Renamed from lib/poll_.h.
65539         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65540         * lib/search.in.h: Renamed from lib/search_.h.
65541         * modules/search (Files, Makefile.am): Use search.in.h instead of
65542         search_.h.
65543         * lib/signal.in.h: Renamed from lib/signal_.h.
65544         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65545         _signal.h.
65546         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65547         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65548         stdbool_.h.
65549         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65550         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65551         stdint_.h.
65552         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65553         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65554         stdio_.h.
65555         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65556         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65557         stdlib_.h.
65558         * lib/string.in.h: Renamed from lib/string_.h.
65559         * modules/string (Files, Makefile.am): Use string.in.h instead of
65560         string_.h.
65561         * doc/gnulib-tool.texi (Initial import): Update.
65562         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65563         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65564         of sys_select_.h. Add dependency.
65565         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65566         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65567         of sys_socket_.h.
65568         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65569         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65570         sys_stat_.h.
65571         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65572         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65573         sys_time_.h.
65574         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65575         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65576         sysexits_.h.
65577         * lib/time.in.h: Renamed from lib/time_.h.
65578         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65579         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65580         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65581         unistd_.h.
65582         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65583         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65584         wchar_.h.
65585         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65586         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65587         wctype_.h.
65588         * build-aux/bootstrap (slurp): Update.
65589         * lib/.cppi-disable: Update.
65590
65591 2007-09-30  Bruno Haible  <bruno@clisp.org>
65592
65593         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65594         Needed on BeOS.
65595
65596 2007-09-30  Bruno Haible  <bruno@clisp.org>
65597
65598         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65599
65600 2007-09-29  Bruno Haible  <bruno@clisp.org>
65601
65602         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65603
65604 2007-09-29  Bruno Haible  <bruno@clisp.org>
65605
65606         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65607         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65608         * build-aux/install-reloc: Compile also areadlink.c.
65609         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65610
65611 2007-09-29  Bruno Haible  <bruno@clisp.org>
65612
65613         * gnulib-tool (func_emit_initmacro_done): Indentation.
65614
65615 2007-09-29  Bruno Haible  <bruno@clisp.org>
65616
65617         * README: Add CVS checkout update instructions.
65618         Info from Bob Proulx <bob@proulx.com>.
65619
65620 2007-09-28  Eric Blake  <ebb9@byu.net>
65621
65622         Provide move-if-change.
65623         * build-aux/move-if-change: New file, based on best practice
65624         rather than any canonical upstream location.
65625
65626 2007-09-28  Jim Meyering  <jim@meyering.net>
65627
65628         Fix canonicalize loop-detection corner case.
65629         Do not attempt to stat the symlink values stored via seen_triple.
65630         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65631         on linux-2.6.18, (but not 2.6.22).
65632         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65633         triple_compare.  The former compares dev,ino,filename, while the latter
65634         would actually stat dirname(filename) when dev and ino were equal.
65635         * lib/hash-triple.c: Install <string.h>.
65636         (STREQ): Define.
65637         (triple_compare_ino_str): New function.
65638         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65639
65640 2007-09-28  Eric Blake  <ebb9@byu.net>
65641
65642         Enforce that AC_REPLACE_FUNCS files exist.
65643         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65644         override check for typos.
65645
65646         Fix test-closein on Solaris 10.
65647         * tests/test-closein.c (main): Don't assume stdin can be inherited
65648         closed on all systems.
65649         * tests/test-closein.sh: Likewise.
65650         Reported by Piotr Tarnowski.
65651
65652 2007-09-28  Jim Meyering  <jim@meyering.net>
65653
65654         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65655
65656 2007-09-27  Jim Meyering  <jim@meyering.net>
65657
65658         canonicalize: Avoid a false-positive cycle failure.
65659         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65660         Sort.  Remove cycle-check.
65661         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65662         not cycle-check.h.
65663         (seen_triple): New function.
65664         (canonicalize_filename_mode): Use it instead of cycle-check.
65665         * tests/test-canonicalize.c: Add a test for this bug.
65666         * tests/test-canonicalize.sh: Set up and run the test.
65667
65668         New module, file-set, from coreutils.
65669         * modules/file-set: Define it.
65670         * lib/file-set.c, lib/file-set.h: Implement.
65671
65672         New module, hash-triple, from coreutils.
65673         * modules/hash-triple: Define it.
65674         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65675
65676 2007-09-25  Eric Blake  <ebb9@byu.net>
65677
65678         Fix strerror on Interix.
65679         * lib/string_.h (strerror): Declare replacement.
65680         * doc/functions/strerror.texi (strerror): Document the Interix
65681         shortcoming.
65682         * modules/string (Makefile.am): Support new hooks.
65683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65684         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65685         gl_FUNC_STRERROR_SEPARATE.
65686         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65687         * lib/strerror.c (rpl_strerror): Provide replacement.
65688         * modules/strerror (Depends-on): Add string.
65689         (configure.ac): Detect use of module.
65690         * tests/test-strerror.c: New file.
65691         * modules/strerror-tests: New test module.
65692         * modules/argp (Depends-on): Add strerror.
65693         * modules/error (Depends-on): Likewise.
65694         Reported by Martin Koeppe.
65695
65696 2007-09-24  Bruno Haible  <bruno@clisp.org>
65697
65698         * README: Update git instructions.
65699
65700 2007-09-24  Eric Blake  <ebb9@byu.net>
65701
65702         Revert fpending breakage from 2007-09-08.
65703         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65704         __fpending.c.
65705
65706 2007-09-24  Jim Meyering  <jim@meyering.net>
65707
65708         filenamecat.c: Add a test.
65709         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65710         showing how the function works when DIR is the empty string.
65711
65712 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65713
65714         * tests/test-canonicalize.sh: Turn on executable bit.
65715
65716 2007-09-19  Eric Blake  <ebb9@byu.net>
65717
65718         * README: Update CVS instructions.
65719
65720 2007-09-18  Bruno Haible  <bruno@clisp.org>
65721
65722         * modules/areadlink: New file.
65723         * lib/areadlink.h (areadlink): New declaration.
65724         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65725
65726 2007-09-17  Jim Meyering  <jim@meyering.net>
65727
65728         * lib/savewd.c (ESTALE) [!defined]: Define.
65729         Reported to be required on Interix by Martin Koeppe.
65730
65731 2007-09-17  Bruno Haible  <bruno@clisp.org>
65732
65733         * gnulib-tool (func_version): Use $version.
65734
65735 2007-09-16  Bruno Haible  <bruno@clisp.org>
65736
65737         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65738         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65739         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65740         Reported by Greg Schafer <gschafer@zip.com.au>.
65741
65742 2007-09-15  Bruno Haible  <bruno@clisp.org>
65743
65744         * gnulib-tool (sed): Try a little harder to make bash understand the
65745         alias.
65746         Reported by Bruce Korb <bruce.korb@gmail.com>.
65747
65748 2007-09-13  Eric Blake  <ebb9@byu.net>
65749
65750         * ChangeLog: Remove conflict markers.
65751
65752 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65753
65754         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65755         Reported by Bruno Haible <bruno@clisp.org>.
65756
65757 2007-09-12  Bruno Haible  <bruno@clisp.org>
65758
65759         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65760         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65761         is not defined.
65762
65763 2007-09-12  Eric Blake  <ebb9@byu.net>
65764
65765         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65766         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65767         Autoconf definition.
65768         * modules/euidaccess (Depends-on): Add extensions, for
65769         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65770         * modules/fnmatch (Depends-on): Likewise.
65771         * modules/getaddrinfo (Depends-on): Likewise.
65772         * modules/getdelim (Depends-on): Likewise.
65773         * modules/getline (Depends-on): Likewise.
65774         * modules/getsubopt (Depends-on): Likewise.
65775         * modules/gettext (Depends-on): Likewise.
65776         * modules/group-member (Depends-on): Likewise.
65777         * modules/mbchar (Depends-on): Likewise.
65778         * modules/memmem (Depends-on): Likewise.
65779         * modules/mempcpy (Depends-on): Likewise.
65780         * modules/memrchr (Depends-on): Likewise.
65781         * modules/pagealign_alloc (Depends-on): Likewise.
65782         * modules/readutmp (Depends-on): Likewise.
65783         * modules/stpcpy (Depends-on): Likewise.
65784         * modules/stpncpy (Depends-on): Likewise.
65785         * modules/strchrnul (Depends-on): Likewise.
65786         * modules/strndup (Depends-on): Likewise.
65787         * modules/strsep (Depends-on): Likewise.
65788         * modules/strverscmp (Depends-on): Likewise.
65789         * modules/vasprintf (Depends-on): Likewise.
65790         * modules/wcwidth (Depends-on): Likewise.
65791         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65792         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65793         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65794         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65795         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65796         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65797         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65798         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65799         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65800         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65801         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65802         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65803         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65804         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65805         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65806         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65807         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65808         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65809         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65810         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65812         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65813         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65814         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65815         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65817         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65818         so that lock.m4 can be used in gettext without extensions module.
65819
65820 2007-09-11  Bruno Haible  <bruno@clisp.org>
65821
65822         * m4/isc-posix.m4: Remove file.
65823         Suggested by Eric Blake.
65824
65825 2007-09-11  Eric Blake  <ebb9@byu.net>
65826
65827         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65828
65829 2007-09-10  Bruno Haible  <bruno@clisp.org>
65830
65831         * posix-modules: Fix typo in error message.
65832         Reported by Matt <mkraai@beckman.com>.
65833
65834 2007-09-09  Bruno Haible  <bruno@clisp.org>
65835
65836         * doc/functions/getdelim.texi: Update list of platforms lacking the
65837         function.
65838         * doc/functions/getline.texi: Likewise.
65839
65840 2007-09-09  Jim Meyering  <jim@meyering.net>
65841
65842         * lib/hash.c (hash_initialize): Detect calloc failure.
65843         Reported by Bruno Haible.
65844
65845 2007-09-09  Bruno Haible  <bruno@clisp.org>
65846
65847         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65848         malloc or realloc fails.
65849
65850 2007-09-09  Bruno Haible  <bruno@clisp.org>
65851
65852         * modules/getcwd (Depends-on): Add malloc-posix.
65853         * modules/glob (Depends-on): Likewise.
65854         * modules/putenv (Depends-on): Likewise.
65855         * modules/strdup (Depends-on): Likewise.
65856         * modules/getdelim (Depends-on): Add realloc-posix.
65857         * modules/read-file (Depends-on): Likewise.
65858
65859 2007-09-09  Bruno Haible  <bruno@clisp.org>
65860
65861         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65862         (gl_FUNC_MALLOC_POSIX): Require it.
65863         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65864         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65865         * modules/realloc (Files): Add m4/malloc.m4.
65866         * modules/calloc (Files): Likewise.
65867
65868 2007-09-09  Bruno Haible  <bruno@clisp.org>
65869
65870         * modules/malloc-posix: New file.
65871         * modules/malloc (Depends-on): Add malloc-posix.
65872         * lib/malloc.c: Include errno.h.
65873         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65874         and a POSIX-compatible malloc into a single function. Set ENOMEM
65875         when returning NULL.
65876         * m4/malloc.m4: New file.
65877         * doc/functions/malloc.texi: Mention the malloc-posix module.
65878         * lib/stdlib_.h (malloc): New declaration.
65879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65880         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65881         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65882         and HAVE_MALLOC_POSIX.
65883
65884 2007-09-09  Bruno Haible  <bruno@clisp.org>
65885
65886         * modules/realloc-posix: New file.
65887         * modules/realloc (Depends-on): Add realloc-posix.
65888         * lib/realloc.c: Include errno.h.
65889         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65890         and a POSIX-compatible realloc into a single function. Set ENOMEM
65891         when returning NULL.
65892         * m4/realloc.m4: New file.
65893         * doc/functions/realloc.texi: Mention the realloc-posix module.
65894         * lib/stdlib_.h (realloc): New declaration.
65895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65896         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65897         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65898         and HAVE_REALLOC_POSIX.
65899
65900 2007-09-09  Bruno Haible  <bruno@clisp.org>
65901
65902         * modules/calloc-posix: New file.
65903         * modules/calloc (Depends-on): Add calloc-posix.
65904         * lib/calloc.c: Include errno.h.
65905         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65906         and a POSIX-compatible calloc into a single function. Set ENOMEM
65907         when returning NULL.
65908         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65909         * doc/functions/calloc.texi: Mention the calloc-posix module.
65910         * lib/stdlib_.h (calloc): New declaration.
65911         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65912         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65913         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65914         and HAVE_CALLOC_POSIX.
65915
65916 2007-09-09  Bruno Haible  <bruno@clisp.org>
65917
65918         Allow for modules to show an arbitrary notice.
65919         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65920         * gnulib-tool: New option --extract-notice.
65921         (func_usage): Document it.
65922         (sed_extract_prog): Update.
65923         (func_get_notice): New function.
65924         (func_modules_notice): New function.
65925         (func_import, func_create_testdir): Invoke it.
65926         Suggested by Jim Meyering.
65927
65928 2007-09-09  Bruno Haible  <bruno@clisp.org>
65929
65930         * gnulib-tool: New options --verbose, --quiet.
65931         (func_usage): Document them.
65932         (verbose): New variable.
65933         (func_execute_command): New function.
65934         (func_import): Don't show the module list and the file list if
65935         $verbose < 0.
65936         (func_create_testdir): Likewise. Use func_execute_command.
65937         (func_create_megatestdir): Use func_execute_command.
65938
65939 2007-09-08  Bruno Haible  <bruno@clisp.org>
65940
65941         * gnulib-tool (func_import): Prefer rsync over wget when available,
65942         for fetching the PO files.
65943
65944 2007-09-08  Bruno Haible  <bruno@clisp.org>
65945
65946         * posix-modules: New file. Portions copied from gnulib-tool.
65947         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65948
65949 2007-09-08  Jim Meyering  <jim@meyering.net>
65950
65951         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65952         * lib/fpending.h: Rename from __fpending.h.
65953         * lib/fpending.c: Rename from __fpending.c.
65954         Include "fpending.h", not "__fpending.h".
65955         * lib/__fpending.h, lib/__fpending.c: Remove files.
65956         * modules/fpending (Files): Reflect new file names.
65957         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65958
65959 2007-09-08  Bruno Haible  <bruno@clisp.org>
65960
65961         * m4/inttypes-h.m4: Remove stub file.
65962
65963 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65964
65965         * doc/headers/stdint.texi: Discuss #include_next issue.
65966
65967 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65968
65969         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65970
65971 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65972
65973         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65974         in variable name.
65975
65976 2007-09-03  Jim Meyering  <jim@meyering.net>
65977
65978         New module: git-version-gen.
65979         * modules/git-version-gen: New file.
65980
65981         Import changes from coreutils for bootstrap script.
65982
65983         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65984
65985         bootstrap: uses rsync to download the .po files
65986         * build-aux/bootstrap (po_download_command_format): New global.
65987         (download_po_files): Use rsync.
65988         (update_po_files): Don't remove .po files after download,
65989         so future rsync runs can take advantage of the copies.
65990
65991         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65992
65993         Solve the unnecessary-.po-file-regeneration problem once and for all.
65994         * build-aux/bootstrap (download_po_files): New function, renamed from
65995         get_translations.  Now, downloads, but doesn't update LINGUAS.
65996         (update_po_files): New function.
65997
65998         bootstrap: Ignore more.
65999         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66000         uniwidth to e.g., lib/.gitignore.
66001         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66002
66003         * build-aux/bootstrap: New setting: vc_ignore.
66004         (insert_sorted_if_absent): Create $file if absent.
66005         Adapt to new, possibly empty, list: $vc_ignore.
66006
66007         bootstrap: generate more ignorable names
66008         * build-aux/bootstrap (slurp): When generating ignorable names,
66009         also map .sin to .sed, .gperf to .c, and .y to .c.
66010
66011 2007-09-03  Jim Meyering  <jim@meyering.net>
66012
66013         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66014         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66015
66016 2007-09-02  Bruno Haible  <bruno@clisp.org>
66017
66018         Fix mis-recognition of 'mcs' on QNX 6.
66019         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66020         output contains the string "Mono".
66021         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66022         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66023
66024 2007-09-01  Bruno Haible  <bruno@clisp.org>
66025
66026         Fix collision between uniwidth/* and linebreak modules.
66027         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66028         u32_width): Remove declarations.
66029         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66030         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66031         streq3, streq2, streq1, streq0): Remove functions.
66032         (STREQ): Remove macro.
66033         (is_cjk_encoding): Remove function.
66034         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66035         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66036         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66037         * NEWS: Document the change.
66038
66039 2007-09-01  Bruno Haible  <bruno@clisp.org>
66040
66041         * lib/streq.h: Add double-inclusion guard.
66042
66043 2007-09-01  Karl Berry  <karl@gnu.org>
66044
66045         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66046
66047 2007-08-28  Jim Meyering  <jim@meyering.net>
66048
66049         Rename mreadlink_with_size to areadlink_with_size.
66050         * NEWS: Document the change.
66051         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66052         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66053         * lib/mreadlink.h: Rename this to...
66054         * lib/areadlink.h: ...this.
66055         * modules/mreadlink-with-size: Rename this to...
66056         * modules/areadlink-with-size: ...this.
66057         * lib/canonicalize.c: Reflect the renaming.
66058         * modules/canonicalize: Likewise.
66059
66060 2007-08-26  Bruno Haible  <bruno@clisp.org>
66061
66062         * gnulib-tool (func_import): When deciding which files to remove,
66063         consider also dangling symbolic links.
66064         Reported by Eric Blake.
66065
66066 2007-08-26  Bruno Haible  <bruno@clisp.org>
66067
66068         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66069
66070 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66071
66072         * lib/readline.c: Don't include getline.h, the prototype is now
66073         found in stdio.h.
66074
66075 2007-08-23  Jim Meyering  <jim@meyering.net>
66076
66077         Getdelim touchup.
66078         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66079         around the funlockfile call, since funlockfile never sets errno.
66080         Don't set errno upon failed realloc.
66081
66082 2007-08-22  Eric Blake  <ebb9@byu.net>
66083
66084         Getline touchups.
66085         * lib/getdelim.c (getdelim): Revert regression that required *n to
66086         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66087         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66088         getdelim, rather than whether implementation is missing.
66089         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66090         * lib/stdio_.h (getline): Also declare if replacement is
66091         required.
66092         * doc/functions/getdelim.texi: New file.
66093         * doc/functions/getline.texi: Likewise.
66094         * doc/gnulib.texi (Function Substitutes): Add new files.
66095         Reported by Bruno Haible.
66096
66097 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66098
66099         * users.txt: Add Guile.
66100
66101 2007-08-22  Eric Blake  <ebb9@byu.net>
66102
66103         * tests/test-getdelim.c (main): Use remove, not unlink.
66104         * tests/test-getline.c (main): Likewise.
66105
66106         Move getline and getdelim into stdio.h, per POSIX 200x.
66107         * modules/getline (Files): Remove getline.h.
66108         (Depends-on): Add stdio.
66109         (configure.ac): Add module indicator.
66110         * modules/getdelim (Files): Remove getdelim.h.
66111         (Depends-on): Add stdio.
66112         (configure.ac): Add module indicator.
66113         * modules/stdio (Makefile.am): Work with new indicators.
66114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66115         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66116         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66117         * lib/getdelim.h: Delete.
66118         * lib/getline.h: Delete.
66119         * lib/stdio_.h (getdelim, getline): Declare.
66120         * modules/getdelim-tests: New module.
66121         * modules/getline-tests: Likewise.
66122         * tests/test-getdelim.c: New file.
66123         * tests/test-getline.c: Likewise.
66124         * NEWS: Document the change.
66125         * lib/getline.c: Update choice of header.
66126         * lib/csharpcomp.c: Likewise.
66127         * lib/getpass.c: Likewise.
66128         * lib/javacomp.c: Likewise.
66129         * lib/javaversion.c: Likewise.
66130         * lib/yesno.c: Likewise.
66131         * lib/getdelim.c: Likewise.
66132         (getdelim): Set errno on failure, and avoid memory leak.
66133
66134 2007-08-19  Bruno Haible  <bruno@clisp.org>
66135
66136         * modules/closein (Depends-on): Add freadahead.
66137         * lib/closein.c: Include freadahead.h.
66138         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66139         is zero.
66140
66141 2007-08-19  Bruno Haible  <bruno@clisp.org>
66142
66143         * modules/freadahead-tests: New file.
66144         * tests/test-freadahead.sh: New file.
66145         * tests/test-freadahead.c: New file.
66146
66147         * modules/freadahead: New file.
66148         * lib/freadahead.h: New file.
66149         * lib/freadahead.c: New file.
66150         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66151         fbufmode, fpurge, freadable, fwritable.
66152
66153 2007-08-19  Eric Blake  <ebb9@byu.net>
66154
66155         Test yesno in combination with closein.
66156         * lib/yesno.c (yesno): Document use of stdin.
66157         * modules/yesno-tests (Files): New module.
66158         * tests/test-yesno.c (main): New file.
66159         * tests/test-yesno.sh: Likewise.
66160
66161 2007-08-19  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66164         * lib/fseeko.c (rpl_fseeko): Likewise.
66165         * lib/fseterr.c (fseterr): Likewise.
66166
66167 2007-08-19  Bruno Haible  <bruno@clisp.org>
66168
66169         * tests/test-lseek.c (main): Disable a test for BeOS.
66170         * doc/functions/lseek.texi: Document the BeOS bug.
66171
66172 2007-08-19  Bruno Haible  <bruno@clisp.org>
66173             Eric Blake  <ebb9@byu.net>
66174
66175         * lib/lseek.c: Include <sys/stat.h>.
66176         (rpl_lseek): Add workaround code also for Unix platforms.
66177         Needed for BeOS.
66178         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66179         * doc/functions/lseek.texi: Document BeOS definiency.
66180
66181 2007-08-18  Bruno Haible  <bruno@clisp.org>
66182
66183         * modules/fstrcmp-tests: New file.
66184         * tests/test-fstrcmp.c: New file.
66185
66186 2007-08-18  Bruno Haible  <bruno@clisp.org>
66187
66188         * modules/fstrcmp: New file, from GNU gettext with modifications.
66189         * lib/fstrcmp.h: New file, from GNU gettext.
66190         * lib/fstrcmp.c: New file, from GNU gettext.
66191         * MODULES.html.sh (String handling): Add fstrcmp.
66192
66193 2007-08-18  Bruno Haible  <bruno@clisp.org>
66194
66195         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66196         'bool'.
66197         (diag, compareseq): Remove const from the ctxt argument.
66198         (USE_HEURISTIC): Undefine at the end.
66199
66200 2007-08-18  Jim Meyering  <jim@meyering.net>
66201
66202         New file: lib/idcache.h
66203         * NEWS: Mention the addition.
66204         * modules/idcache (Files): Add lib/idcache.h
66205         * lib/idcache.c: Include "idcache.h".
66206         Don't include <sys/types.h>.
66207         Add a FIXME comment.
66208         Move file-scoped "static" declarations to the top.
66209         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66210
66211 2007-08-17  Bruno Haible  <bruno@clisp.org>
66212         and Paul Eggert  <eggert@cs.ucla.edu>
66213
66214         * MODULES.html.sh: Add diffseq.
66215         * modules/diffseq: New file.
66216         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66217         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66218
66219 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66220
66221         Import changes from coreutils for bootstrap script.
66222
66223         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66224
66225         * build-aux/bootstrap (slurp): Work even in environments where
66226         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66227         current code does not slurp files whose names start with ".", and
66228         this looks like it might be a troublesome area.
66229
66230         2007-07-11  Jim Meyering  <jim@meyering.net>
66231
66232         If there's a GPL vN copyright comment, require that N == 3.
66233
66234         2007-07-08  Jim Meyering  <jim@meyering.net>
66235
66236         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66237         * build-aux/bootstrap (mam_template): Move definition out of loop.
66238
66239         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66240
66241         * build-aux/bootstrap (symlink_to_dir): Rename function from
66242         symlink_to_gnulib.  Add a directory parameter.  Update all
66243         callers.
66244         (cp_mark_as_generated): Also check for -- and link to -- files in
66245         gl/.
66246
66247         2007-07-08  Jim Meyering  <jim@meyering.net>
66248
66249         Adapt to deeper hierarchy in gnulib.
66250         * build-aux/bootstrap (symlink_to_dir): If the destination
66251         directory doesn't exist, create it. This is required at least for
66252         "lib/uniwidth/cjk.h".
66253
66254         2007-05-15  Jim Meyering  <jim@meyering.net>
66255
66256         * build-aux/bootstrap: Now that generated Makefile.am files
66257         are no longer under version control, they must be created at
66258         bootstrap time.
66259
66260 2007-08-14  Ben Pfaff  <blp@gnu.org>
66261
66262         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66263
66264 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66265
66266         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66267         given the changes below.
66268         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66269         even on hosts that have padding bits beyond the supported 64.
66270
66271 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66272
66273         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66274         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66275         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66276         depends on it.
66277         (xstrtol_error): Remove.
66278         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66279         but with a different signature.
66280         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66281         * lib/xstrtol-error.c: Include exitfail.h.
66282         (xstrtol_fatal): New function, with a different signature from the
66283         old xstrtol_error, so that the caller need not worry about passing
66284         in an exit status, or about storage management of the option argument.
66285         (xstrtol_error): Now a static function.  Redo signature to
66286         implement xstrtol_fatal.  Output the correct number of hyphens in
66287         front of the option so that the caller need not worry about
66288         storage management.
66289         (N_): New macro.
66290         (_): Remove; not used now.
66291         * modules/xstrtol: Depend on getopt.
66292         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66293         of old STRTOL_FATAL_ERROR macro.
66294         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66295         of test program.
66296         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66297         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66298
66299 2007-08-08  Eric Blake  <ebb9@byu.net>
66300
66301         * lib/xstrtol-error.c: Add missing include.
66302
66303         Move xstrtol messages into gnulib domain, when --pobase is used.
66304         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66305         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66306         * modules/xstrtol (Files): Distribute new file.
66307         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66308         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66309         * tests/test-xstrtol.c: ...into new file.
66310         * tests/test-xstrtoul.c: Also test xstrtoul.
66311         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66312         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66313         * tests/test-xstrtol.sh: Drive the tests.
66314         * tests/test-xstrtoimax.sh: Likewise.
66315         * tests/test-xstrtoumax.sh: Likewise.
66316         * modules/xstrtol-tests: New module.
66317         * modules/xstrtoimax-tests: Likewise.
66318         * modules/xstrtoumax-tests: Likewise.
66319
66320 2007-08-08  Jim Meyering  <jim@meyering.net>
66321
66322         New function: mfile_name_concat.
66323         * lib/filenamecat.c (mfile_name_concat): New function, just like
66324         file_name_concat, but return NULL upon failure rather than exiting
66325         with a diagnostic.
66326         * lib/filenamecat.h: Declare it.
66327
66328 2007-08-07  Bruno Haible  <bruno@clisp.org>
66329
66330         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66331         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66332         warning from gcc.
66333         Reported by Eric Blake.
66334
66335 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66336
66337         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66338         * modules/crypto/arcfour (License): Likewise.
66339         * modules/crypto/des-tests (License): Likewise.
66340         * modules/crypto/gc-arctwo-tests (License): Likewise.
66341         * modules/crypto/gc-des-tests (License): Likewise.
66342         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66343         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66344         * modules/crypto/gc-md2-tests (License): Likewise.
66345         * modules/crypto/gc-md4-tests (License): Likewise.
66346         * modules/crypto/gc-md5-tests (License): Likewise.
66347         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66348         * modules/crypto/gc-rijndael-tests (License): Likewise.
66349         * modules/crypto/gc-sha1-tests (License): Likewise.
66350         * modules/crypto/gc-tests (License): Likewise.
66351         * modules/crypto/hmac-md5 (License): Likewise.
66352         * modules/crypto/hmac-sha1 (License): Likewise.
66353         * modules/crypto/md2-tests (License): Likewise.
66354         * modules/crypto/md4-tests (License): Likewise.
66355         * modules/crypto/md5 (License): Likewise.
66356         * modules/crypto/rijndael (License): Likewise.
66357         * modules/crypto/sha1 (License): Likewise.
66358         * modules/memxor (License): Likewise.
66359
66360 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66361         and Bruno Haible  <bruno@clisp.org>
66362
66363         * NEWS: Describe interface changes to human, xstrtol.
66364         * lib/human.h: Include <xstrtol.h>.
66365         (human_options): Return enum strtol_error, not int.  Remove
66366         bool arg; take int * instead.
66367         * lib/human.c: Don't include "gettext.h".
66368         (_): Remove; no longer used.
66369         Don't include <xstrtol.h>, since human.h does it.
66370         (human_options): Adjust to abovementioned interface changes.
66371         Do not report error to stderr; that's now the caller's
66372         responsibility.
66373         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66374         interface change.
66375         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66376         Str, Argument_type_string.  All uses changed.  Put " argument"
66377         in diagnostics to make them clearer.  Change wording of suffix
66378         message for clarity.
66379         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66380         Argument_type_string.
66381         (STRTOL_FATAL_WARN): Remove; no longer used.
66382         * modules/human (Depends-on): Remove gettext-h.
66383
66384 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66385
66386         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66387
66388 2007-07-31  Bruno Haible  <bruno@clisp.org>
66389
66390         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66391         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66392         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66393
66394 2007-07-31  Bruno Haible  <bruno@clisp.org>
66395
66396         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66397         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66398
66399 2007-07-30  Bruno Haible  <bruno@clisp.org>
66400
66401         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66402         * modules/c-ctype (License): Likewise.
66403         * modules/c-strcase (License): Likewise.
66404         * modules/check-version (License): Likewise.
66405         * modules/iconv (License): Likewise.
66406         * modules/iconv_open (License): Likewise.
66407         * modules/read-file (License): Likewise.
66408         * modules/striconv (License): Likewise.
66409         * modules/strverscmp (License): Likewise.
66410         * modules/vasprintf (License): Likewise.
66411         * modules/crypto/des (License): Likewise.
66412         * modules/crypto/gc (License): Likewise.
66413         * modules/crypto/gc-arcfour (License): Likewise.
66414         * modules/crypto/gc-arctwo (License): Likewise.
66415         * modules/crypto/gc-des (License): Likewise.
66416         * modules/crypto/gc-hmac-md5 (License): Likewise.
66417         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66418         * modules/crypto/gc-md2 (License): Likewise.
66419         * modules/crypto/gc-md4 (License): Likewise.
66420         * modules/crypto/gc-md5 (License): Likewise.
66421         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66422         * modules/crypto/gc-random (License): Likewise.
66423         * modules/crypto/gc-rijndael (License): Likewise.
66424         * modules/crypto/gc-sha1 (License): Likewise.
66425         * modules/crypto/md2 (License): Likewise.
66426         * modules/crypto/md4 (License): Likewise.
66427
66428 2007-07-30  Jim Meyering  <jim@meyering.net>
66429
66430         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66431         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66432         it has valid stat data.  This bug would cause du not to count the
66433         sizes of inaccessible directories.
66434         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66435         in <http://bugzilla.redhat.com/250077>.
66436
66437 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66438             Bruno Haible  <bruno@clisp.org>
66439
66440         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66441         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66442         #include_next, gives a diagnostic about it, but reports no error in
66443         the exit code.
66444         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66445
66446 2007-07-24  Ben Pfaff  <blp@gnu.org>
66447
66448         Improve name: "count-one-bits" is better than "popcount".
66449         * MODULES.html.sh: Update name.
66450         * lib/popcount.h: Renamed lib/count-one-bits.h.
66451         (popcount): Renamed count_one_bits.
66452         (popcountl): Renamed count_one_bits_l.
66453         (popcountll): Renamed count_one_bits_ll.
66454         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66455         * modules/popcount: Renamed module/count-one-bits.
66456         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66457         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66458
66459 2007-07-23  Ben Pfaff  <blp@gnu.org>
66460
66461         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66462         better code generation, and add U to large constants to avoid
66463         warnings, in non-GCC case.
66464         Suggested by Bruno Haible.
66465
66466 2007-07-23  Ben Pfaff  <blp@gnu.org>
66467
66468         * lib/popcount.h: Use verify_true instead of if...abort.
66469         * modules/popcount: Depend on verify module.
66470         Suggested by Jim Meyering.
66471
66472 2007-07-23  Bruno Haible  <bruno@clisp.org>
66473
66474         * gnulib-tool (func_import): Create a .cvsignore file also when the
66475         directory is not yet in CVS but the toplevel directory is. When
66476         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66477         Reported by Karl Berry.
66478
66479 2007-07-22  Ben Pfaff  <blp@gnu.org>
66480
66481         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66482         case.
66483         Suggested by Eric Blake.
66484
66485 2007-07-22  Ben Pfaff  <blp@gnu.org>
66486
66487         New module: popcount.
66488         * MODULES.html.sh: Add popcount.
66489         * modules/popcount: New file.
66490         * modules/popcount-tests: New file.
66491         * tests/test-popcount.c: New file.
66492         * lib/popcount.h: New file.
66493         * m4/popcount.m4: New file.
66494
66495 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66496
66497         * build-aux/announce-gen: Update to GPLv3.
66498
66499         * build-aux/config.guess: Update from config.
66500
66501 2007-07-21  Bruno Haible  <bruno@clisp.org>
66502
66503         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66504         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66505
66506 2007-07-20  Jim Meyering  <jim@meyering.net>
66507
66508         * check-module: Diagnose a self-dependency.
66509
66510 2007-07-19  Bruno Haible  <bruno@clisp.org>
66511
66512         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66513         empty.
66514         Reported by Eric Blake.
66515
66516 2007-07-18  Bruno Haible  <bruno@clisp.org>
66517
66518         * gnulib-tool: New options --po-base, --po-domain.
66519         (func_usage): Document them.
66520         (pobase, po_domain): New variables.
66521         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66522         DEFAULT_TEXT_DOMAIN.
66523         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66524         (func_import): Consider pobase and po_domain. Create a po/ directory.
66525         (func_create_testdir): Set pobase and po_domain to empty.
66526         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66527         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66528
66529 2007-07-18  Bruno Haible  <bruno@clisp.org>
66530
66531         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66532         EXTRA_DIST augmentation for files in build-aux/.
66533
66534 2007-07-16  Bruno Haible  <bruno@clisp.org>
66535
66536         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66537         * modules/getdelim (License): Likewise.
66538
66539 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66540
66541         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66542         * modules/d-type (License): Likewise.
66543         * modules/extensions (License): Likewise.
66544         * modules/fnmatch (License): Likewise.
66545         * modules/fseeko (License): Likewise.
66546         * modules/getaddrinfo (License): Likewise.
66547         * modules/getline (License): Likewise.
66548         * modules/getlogin_r (License): Likewise.
66549         * modules/getpass (License): Likewise.
66550         * modules/gettimeofday (License): Likewise.
66551         * modules/glob (License): Likewise.
66552         * modules/inet_ntop (License): Likewise.
66553         * modules/malloc (License): Likewise.
66554         * modules/malloca (License): Likewise.
66555         * modules/memmem (License): Likewise.
66556         * modules/mempcpy (License): Likewise.
66557         * modules/memset (License): Likewise.
66558         * modules/minmax (License): Likewise.
66559         * modules/mktime (License): Likewise.
66560         * modules/netinet_in (License): Likewise.
66561         * modules/pathmax (License): Likewise.
66562         * modules/poll (License): Likewise.
66563         * modules/regex (License): Likewise.
66564         * modules/snprintf (License): Likewise.
66565         * modules/stdbool (License): Likewise.
66566         * modules/stdint (License): Likewise.
66567         * modules/stdio (License): Likewise.
66568         * modules/strcase (License): Likewise.
66569         * modules/strcasestr (License): Likewise.
66570         * modules/strdup (License): Likewise.
66571         * modules/string (License): Likewise.
66572         * modules/strndup (License): Likewise.
66573         * modules/strnlen (License): Likewise.
66574         * modules/strpbrk (License): Likewise.
66575         * modules/strptime (License): Likewise.
66576         * modules/strsep (License): Likewise.
66577         * modules/sys_select (License): Likewise.
66578         * modules/sys_socket (License): Likewise.
66579         * modules/sys_stat (License): Likewise.
66580         * modules/sys_time (License): Likewise.
66581         * modules/time (License): Likewise.
66582         * modules/time_r (License): Likewise.
66583         * modules/timegm (License): Likewise.
66584         * modules/unistd (License): Likewise.
66585         * modules/vsnprintf (License): Likewise.
66586         * modules/wctype (License): Likewise.
66587
66588 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66589
66590         * modules/argz (License): LGPLv2+.
66591
66592 2007-07-15  Karl Berry  <karl@gnu.org>
66593
66594         * doc/gnulib.texi: revise node structure per new fdl.texi.
66595
66596 2007-07-14  Bruno Haible  <bruno@clisp.org>
66597
66598         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66599         the output file.
66600         * lib/uniname/uninames.h: Regenerated.
66601
66602 2007-07-14  Karl Berry  <karl@gnu.org>
66603
66604         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66605         omitting sectioning and index commands.
66606
66607 2007-07-13  Bruno Haible  <bruno@clisp.org>
66608
66609         New gnulib-tool option --more-symlinks.
66610         * gnulib-tool (func_usage): Document --more-symlinks.
66611         (do_copyrights): New variable.
66612         Recognize option --more-symlinks.
66613         (func_import): Don't add a copyright notice transform to
66614         sed_transform_lib_file if do_copyrights is empty.
66615
66616 2007-07-13  Bruno Haible  <bruno@clisp.org>
66617
66618         * lib/vasnprintf.c (decimal_point_char): Define also if
66619         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66620         && !NEED_PRINTF_DIRECTIVE_A.
66621         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66622         Gary V. Vaughan <gary@gnu.org>.
66623
66624 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66625
66626         * lib/inttypes_.h: Undo previous change, since it was fixed
66627         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66628
66629 2007-07-13  Bruno Haible  <bruno@clisp.org>
66630
66631         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66632         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66633
66634 2007-07-13  Jim Meyering  <jim@meyering.net>
66635
66636         df: Don't fail for Tru64's "file-on-file mount".
66637         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66638         so we fall through and use statfs instead.  Details here:
66639         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66640         Reported by Albert Chin.
66641
66642 2007-07-13  Bruno Haible  <bruno@clisp.org>
66643
66644         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66645         * modules/configmake (License): Likewise.
66646         * modules/gettext (License): Likewise.
66647         * modules/gettext-h (License): Likewise.
66648         * modules/include_next (License): Likewise.
66649         * modules/link-warning (License): Likewise.
66650         * modules/localcharset (License): Likewise.
66651         * modules/localename (License): Likewise.
66652         * modules/lock (License): Likewise.
66653         * modules/relocatable-lib-lgpl (License): Likewise.
66654         * modules/size_max (License): Likewise.
66655         * modules/vasnprintf (License): Likewise.
66656         * modules/wchar (License): Likewise.
66657         * modules/xsize (License): Likewise.
66658
66659 2007-07-13  Bruno Haible  <bruno@clisp.org>
66660
66661         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66662         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66663
66664 2007-07-12  Bruno Haible  <bruno@clisp.org>
66665
66666         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66667         in the modules files.
66668
66669 2007-07-11  Karl Berry  <karl@gnu.org>
66670
66671         * MODULES.html.sh (func_module): use
66672          sed -e '\|^'"${includefile}"'$|d'
66673          instead of /.../d, to avoid errors on $includefile's containing /.
66674
66675 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66676
66677         * gnulib-tool (func_import): Avoid duplication of --avoid
66678         statements
66679         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66680         names to `_' in variable names.
66681
66682 2007-07-10  Eric Blake  <ebb9@byu.net>
66683
66684         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66685         * NEWS: Document this change.
66686
66687 2007-07-08  Bruno Haible  <bruno@clisp.org>
66688
66689         Update to Unicode 5.0.
66690         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66691         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66692         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66693         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66694         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66695         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66696         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66697         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66698         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66699         U+10A3F, U+1D242..U+1D244.
66700         (nonspacing_table_ind): Update.
66701         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66702         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66703
66704 2007-07-08  Bruno Haible  <bruno@clisp.org>
66705
66706         Update to Unicode 5.0.
66707         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66708         code transform. Extend the name index field of unicode_name_to_code and
66709         unicode_code_to_name from 16 to 24 bits.
66710         * lib/uniname/uniname.c (unicode_character_name,
66711         unicode_name_character): Add the range 0x12xxx to the code transform.
66712         * lib/uniname/uninames.h: Regenerated.
66713         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66714
66715 2007-07-07  Bruno Haible  <bruno@clisp.org>
66716
66717         * modules/wcwidth-tests: New file.
66718         * tests/test-wcwidth.c: New file.
66719
66720         Work around MacOS X wcwidth() bug.
66721         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66722         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66723         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66724         original wcwidth in non-UTF-8 locales.
66725         * modules/wcwidth (Depends-on): Add localcharset, streq,
66726         uniwidth/width.
66727         * doc/functions/wcwidth.texi: Update.
66728
66729 2007-07-07  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66732         (wcwidth): New declaration.
66733         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66734         macros.
66735         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66736         here. Prepare for creating <wchar.h> unconditionally.
66737         * modules/wchar (Depends-on): Add link-warning.
66738         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66739         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66740         * lib/wcwidth.h: Remove file.
66741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66742         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66743         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66744         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66745         (Include): Replace wcwidth.h with <wchar.h>.
66746         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66747         * lib/mbchar.h: Don't include wcwidth.h.
66748         * lib/mbswidth.c: Likewise.
66749         * NEWS: Mention the change.
66750
66751 2007-07-07  Bruno Haible  <bruno@clisp.org>
66752
66753         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66754         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66755         definition with an external declaration.
66756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66757         defined as a function. Remove AC_C_INLINE requirement.
66758         * modules/wcwidth (Files): Add lib/wcwidth.c.
66759         (Makefile.am): Remove redundant statement.
66760
66761 2007-07-07  Bruno Haible  <bruno@clisp.org>
66762
66763         * MODULES.html.sh (Unicode string functions): Add the new modules.
66764
66765         * tests/uniwidth/test-u32-strwidth.c: New file.
66766         * modules/uniwidth/u32-strwidth-tests: New file.
66767
66768         * lib/uniwidth/u32-strwidth.c: New file.
66769         * modules/uniwidth/u32-strwidth: New file.
66770
66771         * tests/uniwidth/test-u16-strwidth.c: New file.
66772         * modules/uniwidth/u16-strwidth-tests: New file.
66773
66774         * lib/uniwidth/u16-strwidth.c: New file.
66775         * modules/uniwidth/u16-strwidth: New file.
66776
66777         * tests/uniwidth/test-u8-strwidth.c: New file.
66778         * modules/uniwidth/u8-strwidth-tests: New file.
66779
66780         * lib/uniwidth/u8-strwidth.c: New file.
66781         * modules/uniwidth/u8-strwidth: New file.
66782
66783         * tests/uniwidth/test-u32-width.c: New file.
66784         * modules/uniwidth/u32-width-tests: New file.
66785
66786         * lib/uniwidth/u32-width.c: New file.
66787         * modules/uniwidth/u32-width: New file.
66788
66789         * tests/uniwidth/test-u16-width.c: New file.
66790         * modules/uniwidth/u16-width-tests: New file.
66791
66792         * lib/uniwidth/u16-width.c: New file.
66793         * modules/uniwidth/u16-width: New file.
66794
66795         * tests/uniwidth/test-u8-width.c: New file.
66796         * modules/uniwidth/u8-width-tests: New file.
66797
66798         * lib/uniwidth/u8-width.c: New file.
66799         * modules/uniwidth/u8-width: New file.
66800
66801         * tests/uniwidth/test-uc_width.c: New file.
66802         * modules/uniwidth/width-tests: New file.
66803
66804         * lib/uniwidth/width.c: New file, from GNU libiconv.
66805         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66806         * modules/uniwidth/width: New file.
66807
66808         * lib/uniwidth.h: New file, from GNU libiconv.
66809         * modules/uniwidth/base: New file.
66810
66811 2007-07-07  Bruno Haible  <bruno@clisp.org>
66812
66813         * lib/uniname.h: New file, from GNU gettext.
66814         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66815         * lib/uniname/uninames.h: New file, from GNU gettext.
66816         * lib/uniname/uniname.c: New file, from GNU gettext.
66817         * tests/uniname/test-uninames.sh: New file.
66818         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66819         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66820         * modules/uniname/base: New file.
66821         * modules/uniname/uniname: New file.
66822         * modules/uniname/uniname-tests: New file.
66823         * MODULES.html.sh (Unicode string functions): Add the new modules.
66824
66825 2007-07-06  Bruno Haible  <bruno@clisp.org>
66826
66827         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66828
66829 2007-07-06  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66832         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66833         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66834         include <sys/time.h>.
66835         Reported by Eric Blake.
66836
66837 2007-07-06  Eric Blake  <ebb9@byu.net>
66838
66839         Fix testing canonicalize on cygwin.
66840         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66841         Revert patch from 2007-06-19.
66842         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66843         canonicalize module is also in use.
66844         * tests/test-canonicalize.c: New file.
66845         * tests/test-canonicalize.sh: Likewise.
66846         * modules/canonicalize-tests: Likewise.
66847
66848 2007-07-06  Jim Meyering  <jim@meyering.net>
66849
66850         * lib/getugroups.c (getugroups): Detect getgrent failure.
66851         Adjust comment to reflect reality: this function may return -1.
66852
66853 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66854
66855         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66856         the new TP address.
66857         (usage): Fix typo
66858         (gnulib_mk): New variable.
66859
66860 2007-07-05  Jim Meyering  <jim@meyering.net>
66861
66862         Don't let endgrent clobber errno, no matter how improbable.
66863         * lib/getugroups.c (getugroups): Save and restore errno around
66864         endgrent call.
66865
66866         Close the group DB even when failing with 2^31 or more members.
66867         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66868
66869 2007-07-04  Jim Meyering  <jim@meyering.net>
66870
66871         * lib/getugroups.h: New file.
66872         * lib/getugroups.c: Include "getugroups.h".
66873         Remove uses of "register" keyword.
66874         Move local variable, "cp", down into scope where used.
66875         Give "username" parameter the "const" attribute.
66876         * modules/getugroups (Files): Add lib/getugroups.h
66877
66878 2007-07-04  Karl Berry  <karl@gnu.org>
66879
66880         * MODULES.html.sh (func_all_modules): Complete rename of
66881         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66882
66883 2007-07-02  Bruno Haible  <bruno@clisp.org>
66884
66885         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66886         mode, when inttypes.h comes from gnulib.
66887         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66888
66889 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66890
66891         * NEWS: Mention lgpl module name change.
66892
66893         * modules/lgpl-2.1: Renamed from lgpl.
66894
66895         * NEWS: Mention gpl module name change.
66896
66897         * modules/gpl-3.0: New file, based on gpl-2.0.
66898
66899         * modules/gpl-2.0: Renamed from gpl.
66900
66901         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66902         doc/gpl-2.0.texi.
66903
66904 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66905
66906         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66907         #define __STDC_LIMIT_MACROS temporarily while including
66908         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66909         Problem reported by Joel E. Denny in
66910         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66911
66912 2007-07-01  Bruno Haible  <bruno@clisp.org>
66913
66914         * lib/unistdio.h: New file.
66915         * lib/unistdio/u-asnprintf.h: New file.
66916         * lib/unistdio/u-asprintf.h: New file.
66917         * lib/unistdio/u-printf-args.c: New file.
66918         * lib/unistdio/u-printf-args.h: New file.
66919         * lib/unistdio/u-printf-parse.h: New file.
66920         * lib/unistdio/u-snprintf.h: New file.
66921         * lib/unistdio/u-sprintf.h: New file.
66922         * lib/unistdio/u-vasprintf.h: New file.
66923         * lib/unistdio/u-vsnprintf.h: New file.
66924         * lib/unistdio/u-vsprintf.h: New file.
66925         * lib/unistdio/ulc-asnprintf.c: New file.
66926         * lib/unistdio/ulc-asprintf.c: New file.
66927         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66928         * lib/unistdio/ulc-printf-parse.c: New file.
66929         * lib/unistdio/ulc-snprintf.c: New file.
66930         * lib/unistdio/ulc-sprintf.c: New file.
66931         * lib/unistdio/ulc-vasnprintf.c: New file.
66932         * lib/unistdio/ulc-vasprintf.c: New file.
66933         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66934         * lib/unistdio/ulc-vsnprintf.c: New file.
66935         * lib/unistdio/ulc-vsprintf.c: New file.
66936         * lib/unistdio/u8-asnprintf.c: New file.
66937         * lib/unistdio/u8-asprintf.c: New file.
66938         * lib/unistdio/u8-printf-parse.c: New file.
66939         * lib/unistdio/u8-snprintf.c: New file.
66940         * lib/unistdio/u8-sprintf.c: New file.
66941         * lib/unistdio/u8-vasnprintf.c: New file.
66942         * lib/unistdio/u8-vasprintf.c: New file.
66943         * lib/unistdio/u8-vsnprintf.c: New file.
66944         * lib/unistdio/u8-vsprintf.c: New file.
66945         * lib/unistdio/u8-u8-asnprintf.c: New file.
66946         * lib/unistdio/u8-u8-asprintf.c: New file.
66947         * lib/unistdio/u8-u8-snprintf.c: New file.
66948         * lib/unistdio/u8-u8-sprintf.c: New file.
66949         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66950         * lib/unistdio/u8-u8-vasprintf.c: New file.
66951         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66952         * lib/unistdio/u8-u8-vsprintf.c: New file.
66953         * lib/unistdio/u16-asnprintf.c: New file.
66954         * lib/unistdio/u16-asprintf.c: New file.
66955         * lib/unistdio/u16-printf-parse.c: New file.
66956         * lib/unistdio/u16-snprintf.c: New file.
66957         * lib/unistdio/u16-sprintf.c: New file.
66958         * lib/unistdio/u16-vasnprintf.c: New file.
66959         * lib/unistdio/u16-vasprintf.c: New file.
66960         * lib/unistdio/u16-vsnprintf.c: New file.
66961         * lib/unistdio/u16-vsprintf.c: New file.
66962         * lib/unistdio/u16-u16-asnprintf.c: New file.
66963         * lib/unistdio/u16-u16-asprintf.c: New file.
66964         * lib/unistdio/u16-u16-snprintf.c: New file.
66965         * lib/unistdio/u16-u16-sprintf.c: New file.
66966         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66967         * lib/unistdio/u16-u16-vasprintf.c: New file.
66968         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66969         * lib/unistdio/u16-u16-vsprintf.c: New file.
66970         * lib/unistdio/u32-asnprintf.c: New file.
66971         * lib/unistdio/u32-asprintf.c: New file.
66972         * lib/unistdio/u32-printf-parse.c: New file.
66973         * lib/unistdio/u32-snprintf.c: New file.
66974         * lib/unistdio/u32-sprintf.c: New file.
66975         * lib/unistdio/u32-vasnprintf.c: New file.
66976         * lib/unistdio/u32-vasprintf.c: New file.
66977         * lib/unistdio/u32-vsnprintf.c: New file.
66978         * lib/unistdio/u32-vsprintf.c: New file.
66979         * lib/unistdio/u32-u32-asnprintf.c: New file.
66980         * lib/unistdio/u32-u32-asprintf.c: New file.
66981         * lib/unistdio/u32-u32-snprintf.c: New file.
66982         * lib/unistdio/u32-u32-sprintf.c: New file.
66983         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66984         * lib/unistdio/u32-u32-vasprintf.c: New file.
66985         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66986         * lib/unistdio/u32-u32-vsprintf.c: New file.
66987         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66988         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66989         * tests/unistdio/test-ulc-printf1.h: New file.
66990         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66991         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66992         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66993         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66994         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66995         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66996         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66997         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66998         * tests/unistdio/test-u8-asnprintf1.c: New file.
66999         * tests/unistdio/test-u8-asnprintf1.h: New file.
67000         * tests/unistdio/test-u8-printf1.h: New file.
67001         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67002         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67003         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67004         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67005         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67006         * tests/unistdio/test-u8-vasprintf1.c: New file.
67007         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67008         * tests/unistdio/test-u8-vsprintf1.c: New file.
67009         * tests/unistdio/test-u16-asnprintf1.c: New file.
67010         * tests/unistdio/test-u16-asnprintf1.h: New file.
67011         * tests/unistdio/test-u16-printf1.h: New file.
67012         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67013         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67014         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67015         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67016         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67017         * tests/unistdio/test-u16-vasprintf1.c: New file.
67018         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67019         * tests/unistdio/test-u16-vsprintf1.c: New file.
67020         * tests/unistdio/test-u32-asnprintf1.c: New file.
67021         * tests/unistdio/test-u32-asnprintf1.h: New file.
67022         * tests/unistdio/test-u32-printf1.h: New file.
67023         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67024         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67025         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67026         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67027         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67028         * tests/unistdio/test-u32-vasprintf1.c: New file.
67029         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67030         * tests/unistdio/test-u32-vsprintf1.c: New file.
67031         * modules/unistdio/base: New file.
67032         * modules/unistdio/u-printf-args: New file.
67033         * modules/unistdio/ulc-asnprintf: New file.
67034         * modules/unistdio/ulc-asprintf: New file.
67035         * modules/unistdio/ulc-fprintf: New file.
67036         * modules/unistdio/ulc-printf-parse: New file.
67037         * modules/unistdio/ulc-snprintf: New file.
67038         * modules/unistdio/ulc-sprintf: New file.
67039         * modules/unistdio/ulc-vasnprintf: New file.
67040         * modules/unistdio/ulc-vasprintf: New file.
67041         * modules/unistdio/ulc-vfprintf: New file.
67042         * modules/unistdio/ulc-vsnprintf: New file.
67043         * modules/unistdio/ulc-vsprintf: New file.
67044         * modules/unistdio/u8-asnprintf: New file.
67045         * modules/unistdio/u8-asprintf: New file.
67046         * modules/unistdio/u8-printf-parse: New file.
67047         * modules/unistdio/u8-snprintf: New file.
67048         * modules/unistdio/u8-sprintf: New file.
67049         * modules/unistdio/u8-vasnprintf: New file.
67050         * modules/unistdio/u8-vasprintf: New file.
67051         * modules/unistdio/u8-vsnprintf: New file.
67052         * modules/unistdio/u8-vsprintf: New file.
67053         * modules/unistdio/u8-u8-asnprintf: New file.
67054         * modules/unistdio/u8-u8-asprintf: New file.
67055         * modules/unistdio/u8-u8-snprintf: New file.
67056         * modules/unistdio/u8-u8-sprintf: New file.
67057         * modules/unistdio/u8-u8-vasnprintf: New file.
67058         * modules/unistdio/u8-u8-vasprintf: New file.
67059         * modules/unistdio/u8-u8-vsnprintf: New file.
67060         * modules/unistdio/u8-u8-vsprintf: New file.
67061         * modules/unistdio/u16-asnprintf: New file.
67062         * modules/unistdio/u16-asprintf: New file.
67063         * modules/unistdio/u16-printf-parse: New file.
67064         * modules/unistdio/u16-snprintf: New file.
67065         * modules/unistdio/u16-sprintf: New file.
67066         * modules/unistdio/u16-vasnprintf: New file.
67067         * modules/unistdio/u16-vasprintf: New file.
67068         * modules/unistdio/u16-vsnprintf: New file.
67069         * modules/unistdio/u16-vsprintf: New file.
67070         * modules/unistdio/u16-u16-asnprintf: New file.
67071         * modules/unistdio/u16-u16-asprintf: New file.
67072         * modules/unistdio/u16-u16-snprintf: New file.
67073         * modules/unistdio/u16-u16-sprintf: New file.
67074         * modules/unistdio/u16-u16-vasnprintf: New file.
67075         * modules/unistdio/u16-u16-vasprintf: New file.
67076         * modules/unistdio/u16-u16-vsnprintf: New file.
67077         * modules/unistdio/u16-u16-vsprintf: New file.
67078         * modules/unistdio/u32-asnprintf: New file.
67079         * modules/unistdio/u32-asprintf: New file.
67080         * modules/unistdio/u32-printf-parse: New file.
67081         * modules/unistdio/u32-snprintf: New file.
67082         * modules/unistdio/u32-sprintf: New file.
67083         * modules/unistdio/u32-vasnprintf: New file.
67084         * modules/unistdio/u32-vasprintf: New file.
67085         * modules/unistdio/u32-vsnprintf: New file.
67086         * modules/unistdio/u32-vsprintf: New file.
67087         * modules/unistdio/u32-u32-asnprintf: New file.
67088         * modules/unistdio/u32-u32-asprintf: New file.
67089         * modules/unistdio/u32-u32-snprintf: New file.
67090         * modules/unistdio/u32-u32-sprintf: New file.
67091         * modules/unistdio/u32-u32-vasnprintf: New file.
67092         * modules/unistdio/u32-u32-vasprintf: New file.
67093         * modules/unistdio/u32-u32-vsnprintf: New file.
67094         * modules/unistdio/u32-u32-vsprintf: New file.
67095         * modules/unistdio/ulc-asnprintf-tests: New file.
67096         * modules/unistdio/ulc-vasnprintf-tests: New file.
67097         * modules/unistdio/ulc-vasprintf-tests: New file.
67098         * modules/unistdio/ulc-vsnprintf-tests: New file.
67099         * modules/unistdio/ulc-vsprintf-tests: New file.
67100         * modules/unistdio/u8-asnprintf-tests: New file.
67101         * modules/unistdio/u8-vasnprintf-tests: New file.
67102         * modules/unistdio/u8-vasprintf-tests: New file.
67103         * modules/unistdio/u8-vsnprintf-tests: New file.
67104         * modules/unistdio/u8-vsprintf-tests: New file.
67105         * modules/unistdio/u16-asnprintf-tests: New file.
67106         * modules/unistdio/u16-vasnprintf-tests: New file.
67107         * modules/unistdio/u16-vasprintf-tests: New file.
67108         * modules/unistdio/u16-vsnprintf-tests: New file.
67109         * modules/unistdio/u16-vsprintf-tests: New file.
67110         * modules/unistdio/u32-asnprintf-tests: New file.
67111         * modules/unistdio/u32-vasnprintf-tests: New file.
67112         * modules/unistdio/u32-vasprintf-tests: New file.
67113         * modules/unistdio/u32-vsnprintf-tests: New file.
67114         * modules/unistdio/u32-vsprintf-tests: New file.
67115         * MODULES.html.sh (Unicode string functions): Add the new modules.
67116
67117 2007-07-01  Bruno Haible  <bruno@clisp.org>
67118
67119         * lib/sprintf.c (sprintf): Limit the available length estimation,
67120         to avoid address wraparound.
67121         * lib/vsprintf.c (vsprintf): Likewise.
67122         * modules/sprintf-posix (Dependencies): Add stdint.
67123         * modules/vsprintf-posix (Dependencies): Likewise.
67124
67125 2007-07-01  Bruno Haible  <bruno@clisp.org>
67126
67127         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67128         Windows PATH as well. Conservative double-quoting. Comments.
67129
67130 2007-07-01  Bruno Haible  <bruno@clisp.org>
67131             Eric Blake  <ebb9@byu.net>
67132             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67133
67134         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67135         empty components in $PATH, denoting '.'.
67136
67137 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67138
67139         * gnulib-tool: Fix indentation.
67140         (func_create_megatestdir): Likewise.
67141         Report by Bruno Haible.
67142
67143 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67144
67145         Sync from Automake.
67146         * build-aux/gnupload: Fix shell portability issues with for loops.
67147         Report by Karl Berry.
67148
67149 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67150
67151         * build-aux/maint.mk (POURL): Use translationproject.org.
67152
67153 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67154             Bruno Haible  <bruno@clisp.org>
67155
67156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67157         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67158         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67159         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67160         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67161
67162 2007-06-27  Bruno Haible  <bruno@clisp.org>
67163
67164         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67165         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67166
67167 2007-06-26  Karl Berry  <karl@gnu.org>
67168
67169         * MODULES.html.sh: remove xreadlink-with-size.
67170
67171 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67172
67173         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67174         method that I hope also handles the double-include problem noted
67175         by Bruno Haible in
67176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67177
67178 2007-06-23  Bruno Haible  <bruno@clisp.org>
67179
67180         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67181         Don't let the 'mostlyclean' target fail if the last subdirectory could
67182         not be removed.
67183         Reported by Karl Berry.
67184
67185 2007-06-23  Bruno Haible  <bruno@clisp.org>
67186
67187         * gnulib-tool (echo): Add a speedier workaround for ksh.
67188         * tests/test-echo.sh: Likewise.
67189
67190 2007-06-23  Bruno Haible  <bruno@clisp.org>
67191
67192         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67193         * tests/test-echo.sh: Likewise.
67194
67195 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67196
67197         * gnulib-tool (IFS): Initialize early, so we don't set it to
67198         empty later.
67199         (self_abspathname): Rewrite algorithm to set it, reindent.
67200         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67201         (func_create_megatestdir): Merge some sed scripts.
67202
67203 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67204
67205         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67206         exposed by Sun Studio 11 cc on Solaris 8.
67207
67208 2007-06-22  Bruno Haible  <bruno@clisp.org>
67209
67210         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67211         backslashes.
67212         * tests/test-echo.sh: New file.
67213
67214 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67215
67216         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67217         simplify `sed_replace_build_aux' scripts, they are portable but
67218         echoing them with `echo' is not.
67219         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67220
67221 2007-06-21  Karl Berry  <karl@gnu.org>
67222
67223         * config/srclist.txt: guess we can't handle the licenses via
67224         srclist at the moment.
67225
67226 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67227
67228         * MODULES.html.sh: Add include_next.
67229         * modules/include_next: New file.
67230
67231 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67232
67233         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67234         INCLUDE_NEXT.
67235         (gl_CHECK_NEXT_HEADERS): New macro.
67236         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67237         the obsolescent gl_ABSOLUTE_HEADER.
67238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67239         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67240         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67241         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67242         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67243         * m4/math_h.m4 (gl_MATH_H): Likewise.
67244         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67245         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67246         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67247         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67248         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67249         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67250         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67251         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67252         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67253         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67255         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67256         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67257         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67258         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67259         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67260         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67261         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67262         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67263         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67264         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67265         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67266         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67267         * lib/float_.h: Likewise.
67268         * lib/inttypes_.h: Likewise.
67269         * lib/math_.h: Likewise.
67270         * lib/search_.h: Likewise.
67271         * lib/signal_.h: Likewise.
67272         * lib/stdint_.h: Likewise.
67273         * lib/stdio_.h: Likewise.
67274         * lib/stdlib_.h: Likewise.
67275         * lib/string_.h: Likewise.
67276         * lib/sys_stat_.h: Likewise.
67277         * lib/sys_time_.h: Likewise.
67278         * lib/time_.h: Likewise.
67279         * lib/unistd_.h: Likewise.
67280         * lib/wchar_.h: Likewise.
67281         * lib/wctype_.h: Likewise.
67282         * lib/dirent_.h: Likewise.
67283         * lib/iconv_.h: Likewise.
67284         * lib/locale_.h: Likewise.
67285         * lib/netinet_in_.h: Likewise.
67286         * lib/sys_select_.h: Likewise.
67287         * lib/sys_socket_.h: Likewise.
67288         * lib/sysexits_.h: Likewise.
67289         * modules/fcntl (Depends-on): Depend on include_next, not
67290         absolute_header.
67291         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67292         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67293         * modules/fchdir: Likewise.
67294         * modules/float: Likewise.
67295         * modules/iconv_open: Likewise.
67296         * modules/inttypes: Likewise.
67297         * modules/locale: Likewise.
67298         * modules/math: Likewise.
67299         * modules/netinet_in: Likewise.
67300         * modules/search: Likewise.
67301         * modules/signal: Likewise.
67302         * modules/stdint: Likewise.
67303         * modules/stdio: Likewise.
67304         * modules/stdlib: Likewise.
67305         * modules/string: Likewise.
67306         * modules/sys_select: Likewise.
67307         * modules/sys_socket: Likewise.
67308         * modules/sys_stat: Likewise.
67309         * modules/sys_time: Likewise.
67310         * modules/sysexits: Likewise.
67311         * modules/time: Likewise.
67312         * modules/unistd: Likewise.
67313         * modules/wchar: Likewise.
67314         * modules/wctype: Likewise.
67315         * modules/sys_stat: Change maintainer to "all".
67316         * modules/unistd: Likewise.
67317
67318 2007-06-20  Karl Berry  <karl@gnu.org>
67319
67320         * config/srclist.txt: track www changes in license files.
67321
67322 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67323
67324         * build-aux/bootstrap: Remove stray dot.
67325         Make sure build_aux settings are honored when linking
67326         gnulib_extra_files.
67327
67328 2007-06-19  Eric Blake  <ebb9@byu.net>
67329
67330         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67331         Allow compilation on cygwin.
67332
67333 2007-06-19  Jim Meyering  <jim@meyering.net>
67334
67335         xreadlink-with-size: Remove module.  No longer used.
67336         Ex-callers now use xreadlink or mreadlink-with-size.
67337         * modules/xreadlink-with-size: Remove module.
67338         * lib/xreadlink-with-size.c: Remove file.
67339         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67340         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67341         just before the function definition *is* accurate.
67342
67343         Eliminate one way canonicalize_filename_mode could exit.
67344         * lib/canonicalize.c (canonicalize_filename_mode):
67345         Use mreadlink_with_size, not xreadlink_with_size.
67346
67347 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         Detect porting problems to FreeBSD/arm, which has time_t wider than
67350         long int.  Original problem reported for GNU diff by Xin Li in
67351         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67352         * modules/getdate (Depends-on): Add intprops, verify.
67353         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67354         is an integer type no wider than long int.
67355
67356 2007-06-18  Jim Meyering  <jim@meyering.net>
67357
67358         New module: mreadlink-with-size.
67359         * MODULES.html.sh: Add mreadlink-with-size.
67360         * modules/mreadlink-with-size: New module
67361         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67362         not xreadlink-with-size.
67363         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67364
67365 2007-06-16  Bruno Haible  <bruno@clisp.org>
67366
67367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67368         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67369         Reported by Gary V. Vaughan <gary@gnu.org>.
67370
67371 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67372
67373         Revamp lchown so that it lives in unistd.h where it belongs.
67374         * lib/lchown.h: Remove.
67375         * lib/dirchownmod.c: Don't include lib/lchown.h.
67376         * lib/fchownat.c: Likewise.
67377         * lib/openat.c: Likewise.
67378         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67379         does not follow symlinks.
67380         (EOPNOTSUPP): Define if not defined.
67381         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67382         is defined to 0.
67383         (lchown): New decl.
67384         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67385         Do not check for lchown decl.
67386         Set REPLACE_LCHOWN.
67387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67388         REPLACE_LCHOWN.
67389         * modules/chown: Make it clear it follows symlinks.
67390         * modules/lchown: Make it clear it doesn't follow symlinks.
67391         (Files): Remove lib/lchown.h
67392         (Depends-on): Add unistd.
67393         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67394         (Include): Include <unistd.h>, not "lchown.h".
67395         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67396         REPLACE_LCHOWN.
67397
67398 2007-06-15  Jim Meyering  <jim@meyering.net>
67399
67400         Change license (GPL to LGPL) of fsusage and dependents.
67401         * modules/fsusage (License): Change to LGPL.
67402         * modules/full-read (License): Likewise.
67403         * modules/full-write (License): Likewise.
67404         * modules/safe-read (License): Likewise.
67405         * modules/safe-write (License): Likewise.
67406
67407 2007-06-14  Ben Pfaff  <blp@gnu.org>
67408
67409         Missing part of allocsa -> malloca transition.
67410         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67411         gl_MALLOCA.
67412
67413 2007-06-12  Bruno Haible  <bruno@clisp.org>
67414
67415         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67416         to ia64, x86_64, i386.
67417         Reported by Eric Blake.
67418
67419 2007-06-12  Bruno Haible  <bruno@clisp.org>
67420
67421         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67422         cross-compiling to x86_64.
67423
67424 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67425
67426         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67427         glitch reported by Ralf Wildenhues in
67428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67429
67430         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67431         Vin Shelton.
67432
67433 2007-06-11  Bruno Haible  <bruno@clisp.org>
67434
67435         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67436         replacement string.
67437         Reported by Eric Blake.
67438
67439 2007-06-10  Bruno Haible  <bruno@clisp.org>
67440
67441         Prepare vasnprintf code for use with Unicode strings.
67442         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67443         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67444         TYPE_U32_STRING.
67445         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67446         a_u32_string variants.
67447         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67448         * lib/printf-args.c: Don't include config.h and the specification
67449         header if PRINTF_FETCHARGS is already defined.
67450         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67451         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67452         TYPE_U16_STRING, TYPE_U32_STRING.
67453         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67454         u16_directive, u16_directives, u32_directive, u32_directives): New
67455         types.
67456         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67457         New declarations.
67458         * lib/printf-parse.c: Don't include config.h and the specification
67459         header if PRINTF_PARSE is already defined. Eliminate the set of
67460         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67461         them now. Include c-ctype.h.
67462         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67463         directive and CHAR_T_ONLY_ASCII.
67464         * lib/vasnprintf.c: Don't include config.h and the specification header
67465         if VASNPRINTF is already defined.
67466         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67467         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67468         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67469         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67470         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67471         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67472         code accordingly.
67473         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67474         pad_ourselves also in this case, with the 'c' and 's' directives, and
67475         with a different notion of "width".
67476         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67477
67478 2007-06-10  Bruno Haible  <bruno@clisp.org>
67479
67480         * modules/unistr/u32-mbsnlen: New file.
67481         * lib/unistr/u32-mbsnlen.c: New file.
67482
67483         * modules/unistr/u16-mbsnlen: New file.
67484         * lib/unistr/u16-mbsnlen.c: New file.
67485
67486         * modules/unistr/u8-mbsnlen: New file.
67487         * lib/unistr/u8-mbsnlen.c: New file.
67488
67489         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67490         declarations.
67491
67492 2007-06-10  Bruno Haible  <bruno@clisp.org>
67493
67494         * lib/string_.h (mbsnlen): New declaration.
67495         * lib/mbsnlen.c: New file.
67496         * m4/mbsnlen.m4: New file.
67497         * modules/mbsnlen: New file.
67498         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67499         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67500         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67501
67502 2007-06-10  Bruno Haible  <bruno@clisp.org>
67503
67504         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67505
67506 2007-06-10  Bruno Haible  <bruno@clisp.org>
67507
67508         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67509         * lib/mbuiter.h: Likewise.
67510
67511 2007-06-10  Bruno Haible  <bruno@clisp.org>
67512
67513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67514         declaration.
67515
67516 2007-06-10  Karl Berry  <karl@gnu.org>
67517
67518         * config/srclist.txt: remove gettext entries, Bruno prefers
67519         to update individually.
67520
67521 2007-06-10  Bruno Haible  <bruno@clisp.org>
67522
67523         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67524         'maxlen'. Ensure only length + width bytes are allocated, not
67525         length + 1 + width.
67526
67527 2007-06-09  Bruno Haible  <bruno@clisp.org>
67528
67529         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67530         (CHAR_T): Remove macro.
67531         (VASNPRINTF): Update.
67532
67533 2007-06-09  Bruno Haible  <bruno@clisp.org>
67534
67535         * MODULES.html.sh (Unicode string functions): Add the new modules.
67536
67537         * modules/uniconv/u32-conv-to-enc: New file.
67538         * lib/uniconv/u32-conv-to-enc.c: New file.
67539         * modules/uniconv/u32-conv-to-enc-tests: New file.
67540         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67541
67542         * modules/uniconv/u16-conv-to-enc: New file.
67543         * lib/uniconv/u16-conv-to-enc.c: New file.
67544         * lib/uniconv/u-conv-to-enc.h: New file.
67545         * modules/uniconv/u16-conv-to-enc-tests: New file.
67546         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67547
67548         * modules/uniconv/u8-conv-to-enc: New file.
67549         * lib/uniconv/u8-conv-to-enc.c: New file.
67550         * modules/uniconv/u8-conv-to-enc-tests: New file.
67551         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67552
67553         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67554         u32_conv_to_encoding): New declarations.
67555
67556 2007-06-09  Bruno Haible  <bruno@clisp.org>
67557
67558         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67559
67560 2007-06-09  Bruno Haible  <bruno@clisp.org>
67561
67562         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67563         * modules/malloca: Renamed from modules/allocsa, updated.
67564         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67565         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67566         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67567         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67568         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67569         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67570         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67571         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67572         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67573         * modules/c-strcasestr (Depends-on): Update.
67574         * lib/c-strcasestr.c: Update.
67575         * modules/c-strstr (Depends-on): Update.
67576         * lib/c-strstr.c: Update.
67577         * modules/canonicalize-lgpl (Depends-on): Update.
67578         * lib/canonicalize-lgpl.c: Update.
67579         * modules/clean-temp (Depends-on): Update.
67580         * lib/clean-temp.c: Update.
67581         * modules/csharpcomp (Depends-on): Update.
67582         * lib/csharpcomp.c: Update.
67583         * modules/csharpexec (Depends-on): Update.
67584         * lib/csharpexec.c: Update.
67585         * modules/javacomp (Depends-on): Update.
67586         * lib/javacomp.c: Update.
67587         * modules/javaexec (Depends-on): Update.
67588         * lib/javaexec.c: Update.
67589         * modules/mbscasestr (Depends-on): Update.
67590         * lib/mbscasestr.c: Update.
67591         * modules/mbsstr (Depends-on): Update.
67592         * lib/mbsstr.c: Update.
67593         * modules/setenv (Depends-on): Update.
67594         * lib/setenv.c: Update.
67595         * modules/strcasestr (Depends-on): Update.
67596         * lib/strcasestr.c: Update.
67597         * modules/striconveha (Depends-on): Update.
67598         * lib/striconveha.c: Update.
67599         * modules/relocatable-prog-wrapper (Files): Update.
67600         * lib/relocwrapper.c: Update.
67601         * build-aux/install-reloc: Update.
67602         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67603
67604 2007-06-08  Bruno Haible  <bruno@clisp.org>
67605
67606         Port to uClibc.
67607         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67608         * lib/fpurge.c (fpurge): Likewise.
67609         * lib/freading.c (freading): Likewise.
67610         * lib/fseeko.c (rpl_fseeko): Likewise.
67611         * lib/fseterr.c (fseterr): Likewise.
67612         * lib/fwriting.c (fwriting): Likewise.
67613         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67614
67615 2007-06-08  Bruno Haible  <bruno@clisp.org>
67616
67617         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67618         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67619         * modules/gettext (Files): Add m4/intlmacosx.m4.
67620
67621 2007-06-07  Bruno Haible  <bruno@clisp.org>
67622
67623         * modules/localename-tests: New file.
67624         * tests/test-localename.c: New file.
67625
67626         New module 'localename'.
67627         * lib/localename.h: New file.
67628         * lib/localename.c: New file, from GNU gettext.
67629         * m4/localename.m4: New file.
67630         * modules/localename: New file.
67631
67632 2007-06-07  Bruno Haible  <bruno@clisp.org>
67633
67634         Work around the lack of <wchar.h> on some builds of uClibc.
67635         * doc/headers/wchar.texi: Update.
67636         * lib/wchar_.h: Include <wchar.h> only if it exists.
67637         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67638         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67639         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67640         doesn't exist.
67641         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67642         * modules/mbfile (Depends-on): Add wchar.
67643         * modules/mbiter (Depends-on): Likewise.
67644         * modules/mbuiter (Depends-on): Likewise.
67645         Reported by Simon Josefsson.
67646
67647 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67648
67649         Work around problem reported by Steven M. Schweda in
67650         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67651         Tru64 5.1B with the Compaq compiler environment installed declares
67652         an 'isblank' function but does not define it in the C library.
67653         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67654         * lib/regex_internal.h (isblank): Likewise.
67655         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67656         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67657
67658 2007-06-05  Bruno Haible  <bruno@clisp.org>
67659
67660         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67661         ia64.
67662         * modules/printf-safe: New file.
67663         * modules/fprintf-posix (Depends-on): Add printf-safe.
67664         * modules/printf-posix (Depends-on): Likewise.
67665         * modules/snprintf-posix (Depends-on): Likewise.
67666         * modules/sprintf-posix (Depends-on): Likewise.
67667         * modules/vasnprintf-posix (Depends-on): Likewise.
67668         * modules/vasprintf-posix (Depends-on): Likewise.
67669         * modules/vfprintf-posix (Depends-on): Likewise.
67670         * modules/vprintf-posix (Depends-on): Likewise.
67671         * modules/vsnprintf-posix (Depends-on): Likewise.
67672         * modules/vsprintf-posix (Depends-on): Likewise.
67673         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67674         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67675         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67676         "no" on i386, x86_64, ia64.
67677         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67678         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67679         on i386, x86_64, ia64.
67680         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67681         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67682         on i386, x86_64, ia64.
67683         * tests/test-vasnprintf-posix.c: Include float.h.
67684         (LDBL80_WORDS): New macro.
67685         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67686         on i386, x86_64, ia64.
67687         * tests/test-vasprintf-posix.c: Include float.h.
67688         (LDBL80_WORDS): New macro.
67689         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67690         on i386, x86_64, ia64.
67691         * tests/test-snprintf-posix.c: Include float.h.
67692         * tests/test-sprintf-posix.c: Likewise.
67693         * tests/test-vsnprintf-posix.c: Likewise.
67694         * tests/test-vsprintf-posix.c: Likewise.
67695
67696 2007-06-05  Bruno Haible  <bruno@clisp.org>
67697
67698         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67699         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67700         non-IEEE numbers on i386, x86_64, ia64.
67701         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67702         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67703         * tests/test-isnanl.h: Include float.h.
67704         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67705
67706 2007-06-05  Bruno Haible  <bruno@clisp.org>
67707
67708         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67709         also the %a / %A. Handle the %a / %A code before this extra handling.
67710
67711 2007-06-05  Bruno Haible  <bruno@clisp.org>
67712
67713         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67714         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67715
67716 2007-06-05  Bruno Haible  <bruno@clisp.org>
67717
67718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67719         typo in variable name.
67720
67721 2007-06-05  Eric Blake  <ebb9@byu.net>
67722
67723         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67724         Reported by Simon Josefsson.
67725
67726 2007-06-04  Bruno Haible  <bruno@clisp.org>
67727
67728         Avoid test failures on some PowerPC platforms.
67729         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67730         Define differently for PowerPC.
67731         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67732         Reported by Gary V. Vaughan <gary@gnu.org>.
67733
67734 2007-06-02  Bruno Haible  <bruno@clisp.org>
67735
67736         Fix test-stdint failure on FreeBSD/ia64.
67737         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67738         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67739         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67740         * doc/headers/stdint.texi: Update.
67741
67742 2007-06-01  Bruno Haible  <bruno@clisp.org>
67743
67744         * tests/test-binary-io.c (main): Pass a third argument to open().
67745         Reported by Gary V. Vaughan <gary@gnu.org>.
67746
67747 2007-06-01  Bruno Haible  <bruno@clisp.org>
67748
67749         * doc/functions/frexpl.texi: Update for mingw.
67750
67751 2007-06-01  Bruno Haible  <bruno@clisp.org>
67752
67753         * tests/test-lseek.c (main): Disable test of errno for invalid third
67754         argument.
67755         * doc/functions/lseek.texi: Update.
67756         Reported by Gary V. Vaughan <gary@gnu.org>.
67757
67758 2007-05-28  Bruno Haible  <bruno@clisp.org>
67759
67760         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67761
67762 2007-05-31  Eric Blake  <ebb9@byu.net>
67763
67764         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67765         cross compiling.
67766
67767 2007-05-30  Eric Blake  <ebb9@byu.net>
67768         and Bruno Haible  <bruno@clisp.org>
67769
67770         Work around mingw test failures exposed by m4-1.4.9b.
67771         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67772         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67773         moment.
67774
67775 2007-05-30  Bruno Haible  <bruno@clisp.org>
67776
67777         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67778         assuming that they are closed. Needed on HP-UX 11.
67779
67780 2007-05-29  Bruno Haible  <bruno@clisp.org>
67781
67782         Fix a problem with #include_next.
67783         * lib/dirent_.h: Split the double-inclusion guard.
67784         * lib/fcntl_.h: Likewise.
67785         * lib/float_.h: Likewise.
67786         * lib/iconv_.h: Likewise.
67787         * lib/inttypes_.h: Likewise.
67788         * lib/locale_.h: Likewise.
67789         * lib/math_.h: Likewise.
67790         * lib/netinet_in_.h: Likewise.
67791         * lib/search_.h: Likewise.
67792         * lib/signal_.h: Likewise.
67793         * lib/stdint_.h: Likewise.
67794         * lib/stdio_.h: Likewise.
67795         * lib/stdlib_.h: Likewise.
67796         * lib/string_.h: Likewise.
67797         * lib/sys_select_.h: Likewise.
67798         * lib/sys_socket_.h: Likewise.
67799         * lib/sys_stat_.h: Likewise.
67800         * lib/sys_time_.h: Likewise.
67801         * lib/sysexits_.h: Likewise.
67802         * lib/time_.h: Likewise.
67803         * lib/unistd_.h: Likewise.
67804         * lib/wchar_.h: Likewise.
67805         * lib/wctype_.h: Likewise.
67806
67807 2007-05-29  Bruno Haible  <bruno@clisp.org>
67808
67809         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67810         for the moment.
67811
67812 2007-05-29  Bruno Haible  <bruno@clisp.org>
67813
67814         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67815         invocation.
67816         Reported by Eric Blake.
67817
67818 2007-05-29  Bruno Haible  <bruno@clisp.org>
67819
67820         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67821         compiling case.
67822
67823 2007-05-29  Eric Blake  <ebb9@byu.net>
67824             Bruno Haible  <bruno@clisp.org>
67825
67826         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67827         cross compiles.
67828
67829 2007-05-28  Eric Blake  <ebb9@byu.net>
67830
67831         * modules/closein-tests (test_closein_LDADD): Support test on
67832         cygwin with libtool.
67833
67834 2007-05-28  Bruno Haible  <bruno@clisp.org>
67835
67836         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67837         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67838         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67839         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67840         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67841         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67842         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67843         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67844         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67845
67846 2007-05-28  Eric Blake  <ebb9@byu.net>
67847
67848         Unconditionally include <config.h> in unit tests.
67849         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67850         * tests/test-allocsa.c, tests/test-arcfour.c,
67851         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67852         tests/test-array_list.c, tests/test-array_oset.c,
67853         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67854         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67855         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67856         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67857         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67858         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67859         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67860         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67861         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67862         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67863         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67864         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67865         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67866         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67867         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67868         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67869         test-md5.c, test-memmem.c, test-printf-posix.c,
67870         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67871         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67872         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67873         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67874         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67875         test-vasnprintf-posix2.c, test-vasnprintf.c,
67876         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67877         test-vfprintf-posix.c, test-vprintf-posix.c,
67878         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67879         test-xvasprintf.c: Likewise.
67880
67881 2007-05-28  Bruno Haible  <bruno@clisp.org>
67882
67883         * gnulib-tool (func_import): Remember the --with-tests command-line
67884         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67885         Reported by Eric Blake.
67886
67887 2007-05-28  Bruno Haible  <bruno@clisp.org>
67888
67889         * modules/ftell-tests: New file.
67890         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67891         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67892
67893         * lib/ftell.c: New file.
67894         * modules/ftell: New file.
67895         * m4/ftell.m4: New file.
67896         * doc/functions/ftell.texi: Update.
67897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67898         REPLACE_FTELL.
67899         * lib/stdio_.h (rpl_ftell): New declaration.
67900         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67901         REPLACE_FTELL.
67902
67903 2007-05-28  Eric Blake  <ebb9@byu.net>
67904
67905         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67906
67907 2007-05-28  Bruno Haible  <bruno@clisp.org>
67908
67909         * modules/fseek-tests: New file.
67910         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67911         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67912
67913         * lib/fseek.c: New file.
67914         * modules/fseek: New file.
67915         * m4/fseek.m4: New file.
67916         * doc/functions/fseek.texi: Update.
67917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67918         REPLACE_FSEEK.
67919         * lib/stdio_.h (rpl_fseek): New declaration.
67920         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67921         REPLACE_FSEEK.
67922
67923 2007-05-28  Bruno Haible  <bruno@clisp.org>
67924
67925         * lib/stdio_.h (fflush): More comments.
67926
67927 2007-05-28  Bruno Haible  <bruno@clisp.org>
67928
67929         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67930         runtime test.
67931
67932 2007-05-28  Eric Blake  <ebb9@byu.net>
67933
67934         Improve lseek module.
67935         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67936         * lib/unistd_.h (lseek): Scale back link warning message.
67937         * tests/test-lseek.c: Beef up test.
67938         * tests/test-lseek.sh: Exercise more facets of lseek.
67939         Reported by Bruno Haible.
67940
67941 2007-05-28  Bruno Haible  <bruno@clisp.org>
67942
67943         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67944         to define.
67945
67946 2007-05-27  Bruno Haible  <bruno@clisp.org>
67947
67948         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67949
67950 2007-05-27  Bruno Haible  <bruno@clisp.org>
67951
67952         * modules/openmp: New file.
67953         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67954         Noah Misch.
67955
67956 2007-05-26  Bruno Haible  <bruno@clisp.org>
67957
67958         * modules/chdir-long (Depends-on): Add fchdir.
67959         * modules/chdir-safer (Depends-on): Likewise.
67960         * modules/fts (Depends-on): Likewise.
67961         * modules/fts-lgpl (Depends-on): Likewise.
67962         * modules/openat (Depends-on): Likewise.
67963         * modules/savewd (Depends-on): Likewise.
67964
67965 2007-05-24  Eric Blake  <ebb9@byu.net>
67966
67967         Fix lseek on mingw.
67968         * modules/lseek: New module.
67969         * m4/lseek.m4: New file.
67970         * lib/lseek.c: New file.
67971         * modules/lseek-tests: New file.
67972         * tests/test-lseek.c: New file.
67973         * tests/test-lseek.sh: New file.
67974         * MODULES.html.sh: Document lseek module.
67975         * modules/fflush (Depends-on): Add lseek, fseeko.
67976         * modules/fseeko (Depends-on): Likewise.
67977         * modules/ftello (Depends-on): Likewise.
67978         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67979         broken.
67980         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67981         broken.
67982         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67983         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67984         * lib/ftello.c (rpl_ftello): Likewise.
67985         * tests/test-fseeko.c (main): Test this.
67986         * tests/test-fseeko.sh: Likewise.
67987         * tests/test-ftello.c (main): Likewise.
67988         * tests/test-ftello.sh: Likewise.
67989         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67990         implies replacing fseek.
67991         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67992         HAVE_FTELLO.
67993         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67994         * modules/unistd (Makefile.am): Likewise.
67995         * lib/unistd_.h (lseek): Declare a replacement.
67996         * doc/functions/lseek.texi (lseek): Document this fix.
67997         * doc/functions/fseek.texi (fseek): Likewise.
67998         * doc/functions/ftell.texi (ftell): Likewise.
67999
68000 2007-05-24  Bruno Haible  <bruno@clisp.org>
68001
68002         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68003         in the printed representation of a NaN.
68004         * tests/test-vasprintf-posix.c (test_function): Likewise.
68005         * tests/test-snprintf-posix.h (test_function): Likewise.
68006         * tests/test-sprintf-posix.h (test_function): Likewise.
68007         Reported by Eric Blake.
68008
68009 2007-05-23  Eric Blake  <ebb9@byu.net>
68010
68011         Fix fseeko/ftello on cygwin 1.5.24.
68012         * doc/functions/fseeko.texi (fseeko): Document the fix.
68013         * doc/functions/ftello.texi (ftello): Document the fix.
68014         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68015         * doc/functions/stdout.text (stdout): New file.
68016         * doc/functions/stderr.text (stderr): New file.
68017         * doc/gnulib.texi (Function Substitutes): Use new files.
68018         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68019         prior to 1.7.0.
68020         * tests/test-ftello.c (main): Likewise for ftello.
68021         * tests/test-fseeko.sh: New file.
68022         * tests/test-ftello.sh: New file.
68023         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68024         with seekable stdin.
68025         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68026         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68027         (gl_REPLACE_FSEEKO): New macro.
68028         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68029         * modules/fseeko (Files): Distribute fseeko.c.
68030         * modules/ftello (Files): Distribute ftello.c.
68031         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68032         mode.
68033         * lib/ftello.c (rpl_ftello): New file.
68034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68035         fseeko, ftello.
68036         (gl_STDIN_LARGE_OFFSET): New macro.
68037         * modules/stdio (Makefile.am): Perform the replacement.
68038         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68039
68040 2007-05-23  Bruno Haible  <bruno@clisp.org>
68041
68042         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68043         GNULIB_POSIXCHECK is defined.
68044
68045 2007-05-21  Bruno Haible  <bruno@clisp.org>
68046
68047         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68048         Check also the output for NaN arguments. When cross-compiling, guess
68049         no on IRIX.
68050         * lib/vasnprintf.c: Update comments.
68051         * tests/test-vasnprintf-posix.c (strisnan): New function.
68052         (test_function): Use it.
68053         * tests/test-vasprintf-posix.c (strisnan): New function.
68054         (test_function): Use it.
68055         * tests/test-snprintf-posix.h (strisnan): New function.
68056         (test_function): Use it.
68057         * tests/test-sprintf-posix.h (strisnan): New function.
68058         (test_function): Use it.
68059         Reported by Eric Blake.
68060
68061 2007-05-20  Bruno Haible  <bruno@clisp.org>
68062
68063         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68064         numbers that fails on BeOS.
68065         * doc/functions/frexpl.texi: Update.
68066
68067 2007-05-20  Jim Meyering  <jim@meyering.net>
68068
68069         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68070         forced upon us by glibc-2.6.
68071
68072 2007-05-20  Bruno Haible  <bruno@clisp.org>
68073
68074         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68075         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68076         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68077         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68078         NEED_PRINTF_INFINITE.
68079         (is_infinitel): New function.
68080         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68081         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68082         gl_PREREQ_VASNPRINTF_INFINITE.
68083         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68085         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68086         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68087         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68088         gl_PREREQ_VASNPRINTF_INFINITE.
68089         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68090         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68092         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68093         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68094         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68095         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68096         * doc/functions/fprintf.texi: Update.
68097         * doc/functions/printf.texi: Update.
68098         * doc/functions/snprintf.texi: Update.
68099         * doc/functions/sprintf.texi: Update.
68100         * doc/functions/vfprintf.texi: Update.
68101         * doc/functions/vprintf.texi: Update.
68102         * doc/functions/vsnprintf.texi: Update.
68103         * doc/functions/vsprintf.texi: Update.
68104
68105 2007-05-20  Bruno Haible  <bruno@clisp.org>
68106
68107         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68108         was not found in libc.
68109         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68110
68111 2007-05-20  Bruno Haible  <bruno@clisp.org>
68112
68113         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68114         printed as "-nan" instead of "nan".
68115         * tests/test-vasprintf-posix.c (test_function): Likewise.
68116         * tests/test-snprintf-posix.h (test_function): Likewise.
68117         * tests/test-sprintf-posix.h (test_function): Likewise.
68118         Needed for HP-UX 11.
68119
68120 2007-05-20  Jim Meyering  <jim@meyering.net>
68121
68122         Fix buggy test for the fchownat-deref bug.
68123         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68124         symlink required for the run-test.  Without it, this test would
68125         always declare that fchownat doesn't work, and client code would
68126         unnecessarily use the replacement function with fixed libc.
68127         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68128         Reported by Greg Schafer.
68129
68130 2007-05-19  Bruno Haible  <bruno@clisp.org>
68131
68132         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68133         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68134         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68135         Needed for IRIX 6.5 and Solaris 2.5.1.
68136
68137 2007-05-19  Bruno Haible  <bruno@clisp.org>
68138
68139         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68140         (test_function): Skip tests involving -0.0 on platforms where
68141         -0.0 = 0.0.
68142         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68143         (test_function): Skip tests involving -0.0 on platforms where
68144         -0.0 = 0.0.
68145         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68146         (test_function): Skip tests involving -0.0 on platforms where
68147         -0.0 = 0.0.
68148         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68149         (test_function): Skip tests involving -0.0 on platforms where
68150         -0.0 = 0.0.
68151         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68152         tests.
68153         * tests/test-printf-posix.h (test_function): Likewise.
68154         * tests/test-printf-posix.output: Remove all -0.0 related results.
68155         Needed for IRIX 6.5.
68156
68157 2007-05-19  Bruno Haible  <bruno@clisp.org>
68158
68159         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68160         printed as "nan0x7fffffff" instead of "nan".
68161         * tests/test-vasprintf-posix.c (test_function): Likewise.
68162         * tests/test-snprintf-posix.h (test_function): Likewise.
68163         * tests/test-sprintf-posix.h (test_function): Likewise.
68164         * tests/test-fprintf-posix.h (NaN): Remove macro.
68165         (test_function): Remove all NaN related tests.
68166         * tests/test-printf-posix.h (NaN): Remove macro.
68167         (test_function): Remove all NaN related tests.
68168         * tests/test-printf-posix.output: Remove all NaN related results.
68169         Needed for IRIX 6.5.
68170
68171 2007-05-19  Bruno Haible  <bruno@clisp.org>
68172
68173         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68174         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68175
68176 2007-05-19  Bruno Haible  <bruno@clisp.org>
68177
68178         * lib/float_.h: New file.
68179         * m4/float_h.m4: New file.
68180         * modules/float: New file.
68181         * modules/isnanl (Dependencies): Add float.
68182         * modules/isnanl-nolibm (Dependencies): Likewise.
68183         * modules/mathl (Dependencies): Likewise.
68184         * modules/printf-frexpl (Dependencies): Likewise.
68185         * modules/signbit (Dependencies): Likewise.
68186         * modules/vasnprintf (Dependencies): Likewise.
68187         * doc/headers/float.texi: Update.
68188
68189 2007-05-19  Jim Meyering  <jim@meyering.net>
68190
68191         * lib/utimens.c (gl_futimens): Rename from futimens,
68192         now that glibc-2.6 declares futimens.
68193         * lib/utimens.h: Likewise.
68194
68195 2007-05-19  Bruno Haible  <bruno@clisp.org>
68196
68197         Avoid test failures on mingw.
68198         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68199         * tests/test-printf-posix.sh: Likewise.
68200         * tests/test-vfprintf-posix.sh: Likewise.
68201         * tests/test-vprintf-posix.sh: Likewise.
68202
68203 2007-05-19  Bruno Haible  <bruno@clisp.org>
68204
68205         Fix *printf result for NaN, Inf, -0.0 on mingw.
68206         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68207         * lib/vasnprintf.c: Include math.h and isnan.h.
68208         (is_infinite_or_zero): New function.
68209         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68210         values in the %f, %F, %e, %E, %g, %G directives.
68211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68212         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68213         gl_PRINTF_INFINITE and test its result. Invoke
68214         gl_PREREQ_VASNPRINTF_INFINITE.
68215         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68216         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68217         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68218         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68219         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68220         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68222         * doc/functions/fprintf.texi: Update.
68223         * doc/functions/printf.texi: Update.
68224         * doc/functions/snprintf.texi: Update.
68225         * doc/functions/sprintf.texi: Update.
68226         * doc/functions/vfprintf.texi: Update.
68227         * doc/functions/vprintf.texi: Update.
68228         * doc/functions/vsnprintf.texi: Update.
68229         * doc/functions/vsprintf.texi: Update.
68230
68231 2007-05-19  Bruno Haible  <bruno@clisp.org>
68232
68233         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68234         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68235         Instead of multiplying with 10^k, set extra_zeroes to k.
68236         (scale10_round_long_double): Remove function.
68237
68238 2007-05-18  Bruno Haible  <bruno@clisp.org>
68239
68240         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68241         introduced on 2007-05-06.
68242
68243 2007-05-18  Bruno Haible  <bruno@clisp.org>
68244
68245         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68246         %g directives.
68247         * tests/test-vasprintf-posix.c (test_function): Likewise.
68248         * tests/test-snprintf-posix.h (test_function): Likewise.
68249         * tests/test-sprintf-posix.h (test_function): Likewise.
68250
68251 2007-05-18  Bruno Haible  <bruno@clisp.org>
68252
68253         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68254         (strmatch): New function.
68255         (test_function): Test the %f directive on numbers of various exponents.
68256         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68257         (strmatch): New function.
68258         (test_function): Test the %f directive on numbers of various exponents.
68259         * tests/test-snprintf-posix.h (strmatch): New function.
68260         (test_function): Test the %f directive on numbers of various exponents.
68261         * tests/test-sprintf-posix.h (strmatch): New function.
68262         (test_function): Test the %f directive on numbers of various exponents.
68263         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68264         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68265         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68266         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68267
68268 2007-05-18  Bruno Haible  <bruno@clisp.org>
68269
68270         Add support for 'long double' number output.
68271         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68272         * lib/vasnprintf.c: Include math.h and float+.h.
68273         (mp_limb_t): New type.
68274         (GMP_LIMB_BITS): New macro.
68275         (mp_twolimb_t): New type.
68276         (GMP_TWOLIMB_BITS): New macro.
68277         (mpn_t): New type.
68278         (multiply, divide, convert_to_decimal, decode_long_double,
68279         scale10_round_long_double, scale10_round_decimal_long_double,
68280         floorlog10l): New functions.
68281         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68282         for the %f, %F, %e, %E, %g, %G directives.
68283         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68284         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68285         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68286         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68288         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68289         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68290         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68291         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68292         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68293         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68294         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68295         * modules/snprintf-posix (Depends-on): Likewise.
68296         * modules/sprintf-posix (Depends-on): Likewise.
68297         * modules/vasnprintf-posix (Depends-on): Likewise.
68298         * modules/vasprintf-posix (Depends-on): Likewise.
68299         * modules/vfprintf-posix (Depends-on): Likewise.
68300         * modules/vsnprintf-posix (Depends-on): Likewise.
68301         * modules/vsprintf-posix (Depends-on): Likewise.
68302         * modules/vasnprintf (Files): Add lib/float+.h.
68303         * doc/functions/fprintf.texi: Update.
68304         * doc/functions/printf.texi: Update.
68305         * doc/functions/snprintf.texi: Update.
68306         * doc/functions/sprintf.texi: Update.
68307         * doc/functions/vfprintf.texi: Update.
68308         * doc/functions/vprintf.texi: Update.
68309         * doc/functions/vsnprintf.texi: Update.
68310         * doc/functions/vsprintf.texi: Update.
68311
68312 2007-05-18  Bruno Haible  <bruno@clisp.org>
68313
68314         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68315
68316 2007-05-18  Bruno Haible  <bruno@clisp.org>
68317
68318         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68319         for printing 64-bit integers. Needed for mingw.
68320
68321 2007-05-18  Bruno Haible  <bruno@clisp.org>
68322
68323         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68324         gl_FUNC_FREXPL_WORKS.
68325         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68326
68327 2007-05-18  Bruno Haible  <bruno@clisp.org>
68328
68329         * modules/frexpl-nolibm-tests: New file.
68330
68331         * modules/frexpl-nolibm: New file.
68332         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68333
68334 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68335
68336         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68337         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68338         GCC 4.2, which otherwise issues a lot of warnings.
68339         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68340         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68341         Likewise.
68342         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68343         * modules/iconv_open (iconv.h): Likewise.
68344         * modules/locale (locale.h): Likewise.
68345         * modules/netinet_in (netinet/in.h): Likewise.
68346         * modules/sys_select (sys_select.h): Likewise.
68347         * modules/sys_socket (sys/socket.h): Likewise.
68348         * modules/sys_stat (sys/stat.h): Likewise.
68349         * modules/sysexits (sysexits.h): Likewise.
68350         * modules/unistd (unistd.h): Likewise.
68351
68352 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68353
68354         * modules/closein-tests (Makefile.am): Distribute
68355         `test-closein.sh'.
68356
68357 2007-05-17  Bruno Haible  <bruno@clisp.org>
68358
68359         * tests/test-printf-posix.output: Renamed from
68360         tests/test-fprintf-posix.out.
68361         * modules/fprintf-posix-tests: Update.
68362         * modules/printf-posix-tests: Update.
68363         * modules/vfprintf-posix-tests: Update.
68364         * modules/vprintf-posix-tests: Update.
68365         * tests/test-fprintf-posix.sh: Update.
68366         * tests/test-printf-posix.sh: Update.
68367         * tests/test-vfprintf-posix.sh: Update.
68368         * tests/test-vprintf-posix.sh: Update.
68369         Reported by Ralf Wildenhues.
68370
68371 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68372
68373         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68374         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68375         GCC 4.2, which otherwise issues a lot of warnings.
68376         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68377         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68378         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68379         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68380         it should no longer be needed.
68381         * lib/string_.h: Likewise.
68382         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68383         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68384         * modules/inttypes (inttypes.h): Likewise.
68385         * modules/math (math.h): Likewise.
68386         * modules/search (search.h): Likewise.
68387         * modules/signal (signal.h): Likewise.
68388         * modules/stdint (stdint.h): Likewise.
68389         * modules/stdio (stdio.h): Likewise.
68390         * modules/stdlib (stdlib.h): Likewise.
68391         * modules/string (string.h): Likewise.
68392         * modules/sys_time (sys/time.h): Likewise.
68393         * modules/time (time.h): Likewise.
68394         * modules/wchar (wchar.h): Likewise.
68395         * modules/wctype (wtype.h): Likewise.
68396
68397 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68398
68399         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68400
68401 2007-05-13  Bruno Haible  <bruno@clisp.org>
68402
68403         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68404         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68405         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68406         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68407         (gl_PREREQ_STRTOK_R): Don't require it here.
68408
68409 2007-05-13  Bruno Haible  <bruno@clisp.org>
68410
68411         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68412         when used in C++ mode.
68413
68414 2007-05-12  Bruno Haible  <bruno@clisp.org>
68415
68416         * lib/linebuffer.h: Tweak doc.
68417         * lib/linebuffer.c: Likewise.
68418
68419 2007-05-12  James Youngman  <jay@gnu.org>
68420
68421         * lib/linebuffer.c (readlinebuffer_delim): New function,
68422         like readlinebuffer, but use a caller-specified delimiter.
68423         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68424         as the delimiter.
68425         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68426
68427 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68428
68429         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68430         * modules/openat (Files): Remove openat-die.c.
68431         (Depends-on): Add openat-die.
68432         * modules/openat-die: New module.
68433
68434 2007-05-06  Bruno Haible  <bruno@clisp.org>
68435
68436         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68437         Update with info about Cygwin.
68438         * doc/functions/fprintf.texi: Update.
68439         * doc/functions/printf.texi: Update.
68440         * doc/functions/snprintf.texi: Update.
68441         * doc/functions/sprintf.texi: Update.
68442         * doc/functions/vfprintf.texi: Update.
68443         * doc/functions/vprintf.texi: Update.
68444         * doc/functions/vsnprintf.texi: Update.
68445         * doc/functions/vsprintf.texi: Update.
68446         Reported by Eric Blake.
68447
68448 2007-05-06  Bruno Haible  <bruno@clisp.org>
68449
68450         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68451         padding ourselves for the floating-point directives.
68452         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68454         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68455         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68456         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68457         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68458         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68459         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68460         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68461         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68462         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68464         * tests/test-snprintf-posix.h (test_function): Also check the width
68465         and some flags in the %f directive.
68466         * tests/test-sprintf-posix.h (test_function): Likewise.
68467         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68468         * tests/test-vasprintf-posix.c (test_function): Likewise.
68469         * doc/functions/fprintf.texi: Update.
68470         * doc/functions/printf.texi: Update.
68471         * doc/functions/snprintf.texi: Update.
68472         * doc/functions/sprintf.texi: Update.
68473         * doc/functions/vfprintf.texi: Update.
68474         * doc/functions/vprintf.texi: Update.
68475         * doc/functions/vsnprintf.texi: Update.
68476         * doc/functions/vsprintf.texi: Update.
68477
68478 2007-05-06  Bruno Haible  <bruno@clisp.org>
68479
68480         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68481         pass the ' flag character to sprintf or snprintf.
68482         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68483         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68485         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68486         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68487         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68488         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68489         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68490         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68491         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68493         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68494         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68495         flag.
68496         * tests/test-sprintf-posix.h (test_function): Likewise.
68497         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68498         * tests/test-vasprintf-posix.c (test_function): Likewise.
68499         * doc/functions/fprintf.texi: Update.
68500         * doc/functions/printf.texi: Update.
68501         * doc/functions/snprintf.texi: Update.
68502         * doc/functions/sprintf.texi: Update.
68503         * doc/functions/vfprintf.texi: Update.
68504         * doc/functions/vprintf.texi: Update.
68505         * doc/functions/vsnprintf.texi: Update.
68506         * doc/functions/vsprintf.texi: Update.
68507
68508 2007-05-01  Bruno Haible  <bruno@clisp.org>
68509
68510         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68511
68512 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68513
68514         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68515         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68516
68517 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68520         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68521         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68522
68523 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68524
68525         * lib/argp-help.c (struct hol_entry): New member `ord'.
68526         (HOL_ENTRY_PTRCMP): Use ord for comparison
68527         (hol_sort): Initialize ord.
68528
68529 2007-05-01  Bruno Haible  <bruno@clisp.org>
68530
68531         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68532         Reported by Eric Blake.
68533         * doc/gnulib.texi (Function Substitutes): Update.
68534
68535 2007-05-01  Bruno Haible  <bruno@clisp.org>
68536
68537         * doc/functions.texi: Remove file, now redundant through
68538         doc/functions/*.texi.
68539
68540 2007-05-01  Bruno Haible  <bruno@clisp.org>
68541
68542         * modules/argp (Depends-on): Add sleep.
68543
68544 2007-05-01  Bruno Haible  <bruno@clisp.org>
68545
68546         * modules/sleep-tests: New file.
68547         * tests/test-sleep.c: New file.
68548
68549         * modules/sleep: New file.
68550         * lib/sleep.c: New file.
68551         * m4/sleep.m4: New file.
68552         * lib/unistd_.h (sleep): New declaration.
68553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68554         HAVE_SLEEP.
68555         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68556         * doc/functions/sleep.texi: Document the sleep module.
68557
68558 2007-05-01  Bruno Haible  <bruno@clisp.org>
68559
68560         * lib/sigprocmask.h: Remove file.
68561         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68562         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68563         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68564         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68565         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68566         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68567         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68568         HAVE_SIGSET_T as a shell variable.
68569         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68570         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68571         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68572         (Depends-on): Add signal. Remove verify.
68573         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68574         (Include): Mention <signal.h> instead of sigprocmask.h.
68575         * NEWS: Mention the change.
68576         * lib/fatal-signal.c: Don't include sigprocmask.h.
68577
68578 2007-05-01  Bruno Haible  <bruno@clisp.org>
68579
68580         * modules/signal: New file.
68581         * lib/signal_.h: New file.
68582         * m4/signal_h.m4: New file.
68583
68584 2007-05-01  Bruno Haible  <bruno@clisp.org>
68585
68586         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68587         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68588         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68589         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68590
68591 2007-05-01  Bruno Haible  <bruno@clisp.org>
68592
68593         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68594         configure time.
68595         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68596         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68597         * modules/sys_stat (Makefile.am): Substitute their values into
68598         sys/stat.h.
68599
68600 2007-05-01  Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68603         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68604         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68605
68606 2007-05-01  Bruno Haible  <bruno@clisp.org>
68607
68608         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68609         'assert' module here.
68610
68611 2007-05-01  Bruno Haible  <bruno@clisp.org>
68612
68613         * doc/functions/*.texi: New files.
68614         * doc/functions/google-ranking.txt: New file.
68615         * doc/gnulib.texi (Function Substitutes): New chapter.
68616         (ctime, inet_ntoa): Remove sections.
68617         * doc/ctime.texi: Remove file.
68618         * doc/inet_ntoa.texi: Remove file.
68619         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68620         dependencies.
68621         (%.info): New rule, specifying a --reference-limit.
68622
68623 2007-05-01  Bruno Haible  <bruno@clisp.org>
68624
68625         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68626
68627 2007-05-01  Bruno Haible  <bruno@clisp.org>
68628
68629         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68630         the portability of 'mkdir' to mingw systems.
68631
68632 2007-05-01  Bruno Haible  <bruno@clisp.org>
68633
68634         * doc/headers/google-ranking.txt: New file.
68635
68636 2007-04-30  Eric Blake  <ebb9@byu.net>
68637
68638         Prefer fseeko to fseek.
68639         * modules/getpass (Depends-on): Add fseeko.
68640         * lib/getpass.c (getpass): Use fseeko, not fseek.
68641
68642 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68643
68644         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68645         assumes the sorting is stable, while most qsort implementations
68646         are not.  Use argument addresses to ensure they never compare as
68647         equal.
68648
68649         * tests/test-argp-2.sh (usage-indent test): Fix output
68650         (func_compare): Restore diff options
68651         * tests/test-argp.c: Restore #include "progname.h"
68652
68653 2007-04-29  Bruno Haible  <bruno@clisp.org>
68654
68655         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68657         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68659         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68660         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68661         (TESTS, check_PROGRAMS): Add test-snprintf.
68662         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68663         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68664         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68665         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68666         assertions that fail on HP-UX, OSF/1, or IRIX.
68667         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68668
68669 2007-04-29  Bruno Haible  <bruno@clisp.org>
68670
68671         * MODULES.html.sh (posix_functions): Remove 'contents'.
68672
68673 2007-04-29  Karl Berry  <karl@gnu.org>
68674
68675         * config/srclist.txt (gendocs_template_min): new entry.
68676
68677 2007-04-29  Bruno Haible  <bruno@clisp.org>
68678
68679         Work around fpurge bug on BSD systems.
68680         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68681         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68682         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68683         fpurge to rpl_fpurge if the system already has this function.
68684         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68685         the case where the system already has this function. Correct invariants
68686         on BSD systems.
68687         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68688         BSD systems.
68689
68690 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68691
68692         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68693         proposed by Sven Verdoolaege.
68694
68695         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68696         options.
68697         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68698         (usage and help tests): Update
68699
68700 2007-04-29  Bruno Haible  <bruno@clisp.org>
68701
68702         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68703         Print more information in case of failure. Disable a test on BeOS.
68704
68705 2007-04-29  Bruno Haible  <bruno@clisp.org>
68706
68707         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68708         This helps debugging on systems on which no gdb is available.
68709
68710 2007-04-29  Bruno Haible  <bruno@clisp.org>
68711
68712         * lib/freading.h: Improve comments.
68713         * lib/fwriting.h: Likewise.
68714         * tests/test-freading.c (main): Don't check freading immediately after
68715         repositioning. Needed for glibc.
68716
68717 2007-04-29  Bruno Haible  <bruno@clisp.org>
68718
68719         * lib/freading.c (freading): Trivial simplification.
68720
68721 2007-04-28  Bruno Haible  <bruno@clisp.org>
68722
68723         * tests/test-fwriting.c (main): Also test the interaction between
68724         fflush and fwriting.
68725         * modules/fwriting-tests (Depends-on): Add fflush.
68726
68727         * tests/test-freading.c (main): Also test the interaction between
68728         fflush and freading.
68729         * modules/freading-tests (Depends-on): Add fflush.
68730
68731 2007-04-28  Bruno Haible  <bruno@clisp.org>
68732
68733         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68734         fseeko and ftello.
68735         Suggested by Eric Blake.
68736
68737 2007-04-28  Jim Meyering  <jim@meyering.net>
68738
68739         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68740         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68741         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68742
68743 2007-04-27  Eric Blake  <ebb9@byu.net>
68744
68745         * doc/headers/assert.texi (assert.h): Document assert module use.
68746
68747 2007-04-27  Bruno Haible  <bruno@clisp.org>
68748
68749         * doc/headers/*.texi: New files.
68750         * doc/gnulib.texi (Header File Substitutes): New chapter.
68751         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68752         dependencies.
68753         (standards.info ,standards.html, standards.dvi): Update dependencies.
68754         (mostlyclean, clean): New targets.
68755
68756 2007-04-27  Bruno Haible  <bruno@clisp.org>
68757
68758         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68759         * modules/sysexits (Files, Makefile.am): Update.
68760
68761         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68762         * modules/sys_socket (Files, Makefile.am): Update.
68763
68764         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68765         * modules/sys_stat (Files, Makefile.am): Update.
68766
68767 2007-04-27  Eric Blake  <ebb9@byu.net>
68768
68769         * lib/freading.h: Improve comments.
68770         * lib/fwriting.h: Likewise.
68771         * lib/fflush.c: Likewise.
68772
68773         Fix closein for mingw.
68774         * modules/closein-tests: Add tests for closein.
68775         * tests/test-closein.c: New file.
68776         * tests/test-closein.sh: Likewise.
68777         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68778         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68779
68780 2007-04-27  Bruno Haible  <bruno@clisp.org>
68781
68782         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68783         version is < 6.
68784         * lib/math_.h [__DECC]: Likewise.
68785         * lib/stdio_.h [__DECC]: Likewise.
68786         * lib/stdlib_.h [__DECC]: Likewise.
68787         * lib/string_.h [__DECC]: Likewise.
68788         * lib/time_.h [__DECC]: Likewise.
68789         * lib/wchar_.h [__DECC]: Likewise.
68790         * lib/wctype_.h [__DECC]: Likewise.
68791
68792 2007-04-27  Bruno Haible  <bruno@clisp.org>
68793
68794         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68795
68796 2007-04-27  Bruno Haible  <bruno@clisp.org>
68797
68798         * lib/fflush.c: Add comments.
68799         * modules/fpurge-tests (Depends-on): Add fflush.
68800         * modules/freadable-tests (Depends-on): Likewise.
68801         * modules/fwritable-tests (Depends-on): Likewise.
68802
68803 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68804
68805         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68806         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68807         Report by Bruno Haible <bruno@clisp.org>.
68808
68809 2007-04-26  Eric Blake  <ebb9@byu.net>
68810
68811         Fix fflush on mingw.
68812         * modules/fflush (Depends-on): Add freading.
68813         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68814         but unread data.
68815
68816 2007-04-26  Eric Blake  <ebb9@byu.net>
68817         and Bruno Haible  <bruno@clisp.org>
68818
68819         Implement freading and fwriting.
68820         * lib/freading.c: New file.
68821         * lib/freading.h: Likewise.
68822         * m4/freading.m4: Likewise.
68823         * modules/freading: Likewise.
68824         * modules/freading-tests: Likewise.
68825         * tests/test-freading.c: Likewise.
68826         * lib/fwriting.c: New file.
68827         * lib/fwriting.h: Likewise.
68828         * m4/fwriting.m4: Likewise.
68829         * modules/fwriting: Likewise.
68830         * modules/fwriting-tests: Likewise.
68831         * tests/test-fwriting.c: Likewise.
68832         * MODULES.html.sh (File stream based Input/Output): Mention them.
68833
68834 2007-04-26  Bruno Haible  <bruno@clisp.org>
68835
68836         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68837         'long' when we assume it.
68838         Suggested by Eric Blake.
68839
68840 2007-04-26  Bruno Haible  <bruno@clisp.org>
68841
68842         Ensure fseeko, ftello are declared on glibc systems.
68843         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68844         * modules/fseeko (configure.ac-early): Likewise.
68845         * modules/ftello (configure.ac-early): Likewise.
68846         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68847         AC_FUNC_FSEEKO for this.
68848         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68849         (gl_CHECK_FSEEKO): Remove macro.
68850
68851 2007-04-26  Bruno Haible  <bruno@clisp.org>
68852
68853         * tests/test-fflush.c (main): Also check the ftell result after
68854         fflush and fseek/fseeko.
68855         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68856         file descriptor position cache in the stream.
68857         * lib/fseeko.c (rpl_fseeko): Likewise.
68858
68859 2007-04-26  Bruno Haible  <bruno@clisp.org>
68860
68861         * modules/fflush-tests (Depends-on): Add fseeko.
68862
68863 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68864             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68865
68866         * lib/argz_.h: ensure error_t definition is obtained in same
68867         mechanism system argz.h would have.
68868         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68869         argz facilities are known bad.  Err on the side of caution if
68870         cross-compiling.
68871
68872 2007-04-25  Eric Blake  <ebb9@byu.net>
68873
68874         * lib/fpurge.c (includes): Use stdlib.h for free.
68875         * tests/test-fflush.c (main): Also test fflush-fseeko.
68876
68877 2007-04-25  Bruno Haible  <bruno@clisp.org>
68878
68879         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68880         * lib/fseeko.c: New file.
68881         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68882         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68883         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68884         gl_FUNC_FSEEKO.
68885         (gl_FUNC_FSEEKO): Invoke it.
68886         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68887         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68888         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68889
68890 2007-04-25  Bruno Haible  <bruno@clisp.org>
68891
68892         * modules/fflush (Depends-on): Add ftello.
68893
68894 2007-04-25  Bruno Haible  <bruno@clisp.org>
68895
68896         * modules/ftello-tests: New file.
68897         * tests/test-ftello.c: New file.
68898
68899         * modules/ftello: New file.
68900         * m4/ftello.m4: New file.
68901         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68902         HAVE_FTELLO.
68903         * lib/stdio_.h (ftello): New declaration.
68904         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68905         HAVE_FTELLO.
68906
68907 2007-04-25  Bruno Haible  <bruno@clisp.org>
68908
68909         * modules/fseeko-tests: New file.
68910         * tests/test-fseeko.c: New file.
68911
68912         * modules/fseeko: New file.
68913         * m4/fseeko.m4: New file.
68914         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68915         HAVE_FSEEKO.
68916         * lib/stdio_.h (fseeko): New declaration.
68917         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68918         HAVE_FSEEKO.
68919
68920 2007-04-25  Bruno Haible  <bruno@clisp.org>
68921
68922         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68923
68924 2007-04-25  Bruno Haible  <bruno@clisp.org>
68925
68926         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68927         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68928         * tests/test-unistd.c: Likewise.
68929         * tests/test-fcntl.c: Likewise.
68930
68931 2007-04-23  Eric Blake  <ebb9@byu.net>
68932
68933         * lib/fflush.c: Fix missing include.
68934         Reported by Bruno Haible.
68935
68936 2007-04-23  Bruno Haible  <bruno@clisp.org>
68937
68938         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68939         Reported by Eric Blake.
68940
68941 2007-04-23  Bruno Haible  <bruno@clisp.org>
68942
68943         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68944
68945 2007-04-23  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68948
68949 2007-04-23  Bruno Haible  <bruno@clisp.org>
68950
68951         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68952         Needed on HP-UX 11.
68953
68954 2007-04-16  Eric Blake  <ebb9@byu.net>
68955
68956         Make fflush rely on fpurge.
68957         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68958         open coding all variants.
68959         * modules/fflush (Depends-on): Add fpurge and unistd.
68960         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68961         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68962
68963         Fix --with-tests compilation on cygwin.
68964         * modules/argmatch-tests (Makefile.am): List gnulib library first
68965         in LDADD.
68966         * modules/argp-tests (Makefile.am): Likewise.
68967         * modules/array-list-tests (Makefile.am): Likewise.
68968         * modules/array-oset-tests (Makefile.am): Likewise.
68969         * modules/avltree-list-tests (Makefile.am): Likewise.
68970         * modules/avltree-oset-tests (Makefile.am): Likewise.
68971         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68972         * modules/carray-list-tests (Makefile.am): Likewise.
68973         * modules/dirname-tests (Makefile.am): Likewise.
68974         * modules/frexp-tests (Makefile.am): Likewise.
68975         * modules/isnanl-tests (Makefile.am): Likewise.
68976         * modules/linked-list-tests (Makefile.am): Likewise.
68977         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68978         * modules/lock-tests (Makefile.am): Likewise.
68979         * modules/rbtree-list-tests (Makefile.am): Likewise.
68980         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68981         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68982         * modules/tls-tests (Makefile.am): Likewise.
68983         * modules/tsearch-tests (Makefile.am): Likewise.
68984         * modules/xvasprintf-tests (Makefile.am): Likewise.
68985
68986         Fix fpurge for cygwin.
68987         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68988         value.
68989         * modules/fpurge-tests (Depends-on): Clean up trash.
68990
68991 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68992
68993         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68994
68995         * m4/autobuild.m4: Re-indent.
68996
68997 2007-04-13  Bruno Haible  <bruno@clisp.org>
68998
68999         * modules/fpurge-tests: New file.
69000         * tests/test-fpurge.c: New file.
69001
69002         * modules/fpurge: New file.
69003         * lib/fpurge.h: New file.
69004         * lib/fpurge.c: New file.
69005         * m4/fpurge.m4: New file.
69006
69007 2007-04-13  Bruno Haible  <bruno@clisp.org>
69008
69009         * modules/fbufmode-tests: New file.
69010         * tests/test-fbufmode.c: New file.
69011
69012         * modules/fbufmode: New file.
69013         * lib/fbufmode.h: New file.
69014         * lib/fbufmode.c: New file.
69015         * m4/fbufmode.m4: New file.
69016
69017 2007-04-13  Bruno Haible  <bruno@clisp.org>
69018
69019         * modules/fwritable-tests: New file.
69020         * tests/test-fwritable.c: New file.
69021
69022         * modules/fwritable: New file.
69023         * lib/fwritable.h: New file.
69024         * lib/fwritable.c: New file.
69025         * m4/fwritable.m4: New file.
69026
69027 2007-04-13  Bruno Haible  <bruno@clisp.org>
69028
69029         * modules/freadable-tests: New file.
69030         * tests/test-freadable.c: New file.
69031
69032         * modules/freadable: New file.
69033         * lib/freadable.h: New file.
69034         * lib/freadable.c: New file.
69035         * m4/freadable.m4: New file.
69036
69037 2007-04-13  Bruno Haible  <bruno@clisp.org>
69038
69039         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69040         MOSTLYCLEANFILES.
69041
69042 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69043
69044         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69045         gzip bootstrap.conf to avoid dragging in i18n machinery.
69046         (gnulib_tool_option): Use it.
69047
69048 2007-04-13  Bruno Haible  <bruno@clisp.org>
69049
69050         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69051         %F directives.
69052         * tests/test-vasprintf-posix.c (test_function): Likewise.
69053         * tests/test-snprintf-posix.h (test_function): Likewise.
69054         * tests/test-sprintf-posix.h (test_function): Likewise.
69055         * tests/test-fprintf-posix.h (test_function): Likewise.
69056         * tests/test-printf-posix.h (test_function): Likewise.
69057         * tests/test-fprintf-posix.out: Likewise.
69058
69059 2007-04-13  Bruno Haible  <bruno@clisp.org>
69060
69061         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69062         * modules/tls-tests (configure.ac): Likewise.
69063         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69064
69065 2007-04-13  Bruno Haible  <bruno@clisp.org>
69066
69067         * lib/tls.c (glthread_tls_get): Fix return type.
69068         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69069
69070 2007-04-12  Eric Blake  <ebb9@byu.net>
69071
69072         * modules/gettime (Depends-on): Remove gettime.
69073         Reported by Dmitry V. Levin.
69074
69075 2007-04-12  Bruno Haible  <bruno@clisp.org>
69076
69077         * modules/fflush (Include): Mention <stdio.h>.
69078         * modules/strtoimax (Include): Mention <inttypes.h>.
69079         * modules/strtoumax (Include): Likewise.
69080
69081 2007-04-12  Eric Blake  <ebb9@byu.net>
69082
69083         * .cvsignore: New file.
69084         * .gitignore: Likewise.
69085
69086 2007-04-12  Bruno Haible  <bruno@clisp.org>
69087
69088         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69089         not before, since $(LDADD) often contains libgnu.a.
69090         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69091         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69092         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69093         Needed on Cygwin.
69094
69095 2007-04-12  Eric Blake  <ebb9@byu.net>
69096
69097         Work around glibc's failure to flush stdin on fclose.
69098         * lib/closein.c (close_stdin): Flush stdin before closing.
69099
69100         Work around glibc's failure to reset seekable stdin on exit.
69101         * modules/closein: New module.
69102         * lib/closein.c: New file.
69103         * lib/closein.h: Likewise.
69104         * m4/closein.m4: Likewise.
69105         * MODULES.html.sh (File stream based Input/Output): Document it.
69106
69107 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69108
69109         * gnulib-tool: Rename generated 'autobuild' script to
69110         'do-autobuild' in --create-megatestdir output.
69111
69112         * doc/gnulib.texi (Build robot for gnulib): Fix.
69113
69114 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69115
69116         * modules/sysexits (Depends-on): Add absolute-header.
69117
69118 2007-04-12  Eric Blake  <ebb9@byu.net>
69119
69120         No need to preserve errno on success.
69121         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69122         Reported by Bruno Haible.
69123
69124 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69125
69126         * MODULES.html.sh (Support for maintaining and releasing
69127         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69128
69129 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69130
69131         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69132
69133 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69134
69135         * modules/autobuild: New module.
69136
69137         * m4/autobuild.m4: New file.
69138
69139 2007-04-11  Bruno Haible  <bruno@clisp.org>
69140
69141         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69142         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69143         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69145         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69146         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69147         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69148         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69149         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69150         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69151         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69152         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69153         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69154         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69155         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69156         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69158         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69159         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69160         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69163         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69166         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69169         Reported by Eric Blake.
69170
69171 2007-04-11  Bruno Haible  <bruno@clisp.org>
69172
69173         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69174
69175 2007-04-10  Bruno Haible  <bruno@clisp.org>
69176
69177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69178         for NaN and Infinity. Needed on FreeBSD 6.1.
69179         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69180         regarding results for "%010a" of Infinity and NaN.
69181         * tests/test-vasprintf-posix.c (test_function): Likewise.
69182         * tests/test-snprintf-posix.h (test_function): Likewise.
69183         * tests/test-sprintf-posix.h (test_function): Likewise.
69184         * tests/test-fprintf-posix.h (test_function): Likewise.
69185         * tests/test-printf-posix.h (test_function): Likewise.
69186         * tests/test-fprintf-posix.out: Likewise.
69187
69188 2007-04-10  Bruno Haible  <bruno@clisp.org>
69189
69190         * modules/locale-tests: New file.
69191         * tests/test-locale.c: New file.
69192
69193         * modules/locale: New file.
69194         * lib/locale_.h: New file.
69195         * m4/locale_h.m4: New file.
69196
69197 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69198             Bruno Haible  <bruno@clisp.org>
69199
69200         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69201         be determined, test for availability of the copysignf, copysign,
69202         copysignl functions.
69203         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69204         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69205         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69206
69207 2007-04-09  Eric Blake  <ebb9@byu.net>
69208
69209         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69210         * modules/stdio (Makefile.am): Support fflush.
69211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69212         * modules/fflush: New file.
69213         * lib/fflush.c: Likewise.
69214         * m4/fflush.m4: Likewise.
69215         * modules/fflush-tests: New test.
69216         * tests/test-fflush.c: Likewise.
69217         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69218
69219 2007-04-06  Bruno Haible  <bruno@clisp.org>
69220
69221         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69222         (VASNPRINTF): Use signbit for faster determination whether to print a
69223         minus sign.
69224         * modules/vasnprintf (Files): Remove lib/float+.h.
69225         * modules/fprintf-posix (Depends-on): Add signbit.
69226         * modules/snprintf-posix (Depends-on): Likewise.
69227         * modules/sprintf-posix (Depends-on): Likewise.
69228         * modules/vasnprintf-posix (Depends-on): Likewise.
69229         * modules/vasprintf-posix (Depends-on): Likewise.
69230         * modules/vfprintf-posix (Depends-on): Likewise.
69231         * modules/vsnprintf-posix (Depends-on): Likewise.
69232         * modules/vsprintf-posix (Depends-on): Likewise.
69233
69234 2007-04-06  Bruno Haible  <bruno@clisp.org>
69235
69236         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69237         * tests/test-frexpl.c (main): Likewise.
69238         * tests/test-ldexpl.c (main): Likewise.
69239         * modules/frexp-tests (Depends-on): Add signbit.
69240         * modules/frexpl-tests (Depdends-on): Likewise.
69241         * modules/ldexpl-tests (Depdends-on): Likewise.
69242
69243 2007-04-06  Bruno Haible  <bruno@clisp.org>
69244
69245         * modules/signbit-tests: New file.
69246         * tests/test-signbit.c: New file.
69247
69248         * modules/signbit: New file.
69249         * lib/signbitf.c: New file.
69250         * lib/signbitd.c: New file.
69251         * lib/signbitl.c: New file.
69252         * m4/signbit.m4: New file.
69253         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69254         (signbit): New macro.
69255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69256         REPLACE_SIGNBIT.
69257         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69258         REPLACE_FREXPL into math.h.
69259
69260 2007-04-06  Bruno Haible  <bruno@clisp.org>
69261
69262         * modules/isnanf-nolibm-tests: New file.
69263         * tests/test-isnanf.c: New file.
69264
69265         * modules/isnanf-nolibm: New file.
69266         * lib/isnanf.h: New file.
69267         * lib/isnanf.c: New file.
69268         * lib/isnan.c: Consider the USE_FLOAT macro.
69269         * m4/isnanf.m4: New file.
69270
69271 2007-04-06  Bruno Haible  <bruno@clisp.org>
69272
69273         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69274         (Link): New section.
69275
69276         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69277
69278 2007-04-06  Bruno Haible  <bruno@clisp.org>
69279
69280         Assume the 'long double' type.
69281         * m4/longdouble.m4: Remove file.
69282         * config/srclist.txt: Don't mention longdouble.m4.
69283         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69284         * lib/float+.h: Likewise.
69285         * lib/frexp.c: Likewise.
69286         * lib/printf-args.h: Likewise.
69287         * lib/printf-args.c: Likewise.
69288         * lib/printf-frexp.c: Likewise.
69289         * lib/printf-parse.c: Likewise.
69290         * lib/vasnprintf.c: Likewise.
69291         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69292         * m4/intl.m4: Likewise.
69293         * m4/isnanl.m4: Likewise.
69294         * m4/printf.m4: Likewise.
69295         * m4/printf-frexpl.m4: Likewise.
69296         * m4/vasnprintf.m4: Likewise.
69297         * modules/allocsa (Files): Remove m4/longdouble.m4.
69298         * modules/gettext (Files): Likewise.
69299         * modules/relocatable-prog-wrapper (Files): Likewise.
69300         * modules/vasnprintf (Files): Likewise.
69301         * modules/isnanl (Files): Likewise.
69302         (Include): Simplify.
69303         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69304         (Include): Simplify.
69305         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69306         (Include): Simplify.
69307         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69308         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69309         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69310         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69311         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69312         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69313         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69314         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69315         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69316         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69317         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69318         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69319         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69320         * tests/test-isnanl.c: Likewise.
69321         * tests/test-snprintf-posix.h: Likewise.
69322         * tests/test-sprintf-posix.h: Likewise.
69323         * tests/test-vasnprintf-posix.c: Likewise.
69324         * tests/test-vasnprintf-posix2.c: Likewise.
69325         * tests/test-vasprintf-posix.c: Likewise.
69326
69327 2007-04-06  Bruno Haible  <bruno@clisp.org>
69328
69329         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69330         * lib/math_.h [__DECC]: Include the overridden include file through
69331         #include_next, outside the double-inclusion guard.
69332         * lib/stdio_.h [__DECC]: Likewise.
69333         * lib/stdlib_.h [__DECC]: Likewise.
69334         * lib/string_.h [__DECC]: Likewise.
69335         * lib/time_.h [__DECC]: Likewise.
69336         * lib/wchar_.h [__DECC]: Likewise.
69337         * lib/wctype_.h [__DECC]: Likewise.
69338         * lib/inttypes_.h [__DECC]: Likewise.
69339         Reported by Albert Chin <china@thewrittenword.com> in
69340         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69341
69342 2007-04-04  Eric Blake  <ebb9@byu.net>
69343
69344         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69345         1.5.x.
69346
69347 2007-04-04  Bruno Haible  <bruno@clisp.org>
69348
69349         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69350         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69351
69352 2007-04-04  Bruno Haible  <bruno@clisp.org>
69353
69354         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69355         results for "%010a" of Infinity and NaN.
69356         * tests/test-vasprintf-posix.c (test_function): Likewise.
69357         * tests/test-snprintf-posix.h (test_function): Likewise.
69358         * tests/test-sprintf-posix.h (test_function): Likewise.
69359         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69360         * tests/test-printf-posix.h (test_function): Likewise.
69361         * tests/test-fprintf-posix.out: Update.
69362         Needed for FreeBSD 6.1.
69363
69364 2007-04-04  Bruno Haible  <bruno@clisp.org>
69365
69366         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69367         directly used by the gnulib modules nor by gnulib-tool.
69368
69369 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * DEPENDENCIES: Give overall description of version dependency
69372         desirability.  Use more-typical names for apps.
69373         Add shell, coreutils, diffutils, grep, tar, gzip.
69374
69375 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69376
69377         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69378
69379 2007-04-04  Karl Berry  <karl@gnu.org>
69380
69381         * MODULES.html.sh (func_module): missing '.
69382
69383 2007-04-03  Bruno Haible  <bruno@clisp.org>
69384
69385         * modules/argmatch-tests (Makefile.am): New variable
69386         test_argmatch_LDADD.
69387         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69388         * modules/array-list-tests (Makefile.am): New variable
69389         test_array_list_LDADD.
69390         * modules/array-oset-tests (Makefile.am): New variable
69391         test_array_oset_LDADD.
69392         * modules/avltree-list-tests (Makefile.am): New variable
69393         test_avltree_list_LDADD.
69394         * modules/avltree-oset-tests (Makefile.am): New variable
69395         test_avltree_oset_LDADD.
69396         * modules/avltreehash-list-tests (Makefile.am): New variable
69397         test_avltreehash_list_LDADD.
69398         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69399         test_canonicalize_lgpl_LDADD.
69400         * modules/carray-list-tests (Makefile.am): New variable
69401         test_carray_list_LDADD.
69402         * modules/dirname-tests (Makefile.am): New variable
69403         test_dirname_LDADD.
69404         * modules/linked-list-tests (Makefile.am): New variable
69405         test_linked_list_LDADD.
69406         * modules/linkedhash-list-tests (Makefile.am): New variable
69407         test_linkedhash_list_LDADD.
69408         * modules/rbtree-list-tests (Makefile.am): New variable
69409         test_rbtree_list_LDADD.
69410         * modules/rbtree-oset-tests (Makefile.am): New variable
69411         test_rbtree_oset_LDADD.
69412         * modules/rbtreehash-list-tests (Makefile.am): New variable
69413         test_rbtreehash_list_LDADD.
69414         * modules/xvasprintf-tests (Makefile.am): New variable
69415         test_xvasprintf_LDADD.
69416         Reported by Eric Blake.
69417
69418 2007-04-03  Eric Blake  <ebb9@byu.net>
69419
69420         * DEPENDENCIES: Weaken m4 requirements.
69421
69422 2007-04-03  Bruno Haible  <bruno@clisp.org>
69423
69424         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69425         * modules/isnanl-tests (configure.ac): Likewise.
69426
69427 2007-04-03  Ben Pfaff  <blp@gnu.org>
69428
69429         * modules/iconv_open: Add $(srcdir)/ to source directory
69430         references in Makefile fragments that call gperf, to fix VPATH
69431         builds.
69432
69433 2007-04-03  Bruno Haible  <bruno@clisp.org>
69434
69435         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69436         * lib/ldexpl.c: Undo last change.
69437
69438 2007-04-03  Bruno Haible  <bruno@clisp.org>
69439
69440         * modules/printf-frexpl (Depends-on): Undo last change.
69441         (Files): Add m4/ldexpl.m4.
69442
69443 2007-04-03  Bruno Haible  <bruno@clisp.org>
69444
69445         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69446         * modules/isnanl (Link): New section.
69447
69448         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69449         * modules/frexp (Link): New section.
69450
69451         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69452         * modules/frexpl (Link): New section.
69453
69454         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69455         * modules/ldexpl (Link): New section.
69456
69457 2007-04-03  Bruno Haible  <bruno@clisp.org>
69458
69459         * modules/TEMPLATE-EXTENDED: New file.
69460         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69461
69462 2007-04-03  Bruno Haible  <bruno@clisp.org>
69463
69464         * DEPENDENCIES: New file.
69465         Suggested by Simon Josefsson.
69466
69467 2007-04-03  Bruno Haible  <bruno@clisp.org>
69468
69469         * doc/gnulib.texi: Escape @.
69470
69471 2007-04-03  James Youngman  <jay@gnu.org>
69472         and Paul Eggert  <eggert@cs.ucla.edu>
69473
69474         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69475         birthtime on all systems that have birthtime, not just those which
69476         use st_birthtimensec rather than st_birthtim.  Putting zero in
69477         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69478         that the birth time is not available for files on an NFS mount.
69479
69480 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69481
69482         * modules/memxor: Move back from crypto/, suggested by Bruno.
69483         * modules/crypto/hmac-sha1: Fix memxor dependency.
69484
69485         * modules/crypto/gc: Moved from ../.
69486
69487 2007-04-02  Eric Blake  <ebb9@byu.net>
69488
69489         * lib/ldexpl.c (includes): Avoid libm.
69490
69491         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69492
69493 2007-04-02  Bruno Haible  <bruno@clisp.org>
69494
69495         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69496         on IRIX.
69497
69498 2007-04-02  Bruno Haible  <bruno@clisp.org>
69499
69500         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69501         x86 or x86_64 platforms running MacOS X.
69502         Reported by Ryan Schmidt <@ryandesign.com>.
69503
69504 2007-04-02  Bruno Haible  <bruno@clisp.org>
69505
69506         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69507         i386.
69508
69509 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69510
69511         * modules/crypto/arcfour: Moved from ../.
69512         * modules/crypto/arcfour-tests: Moved from ../.
69513         * modules/crypto/arctwo: Moved from ../.
69514         * modules/crypto/arctwo-tests: Moved from ../.
69515         * modules/crypto/des: Moved from ../.
69516         * modules/crypto/des-tests: Moved from ../.
69517         * modules/crypto/gc-arcfour: Moved from ../.
69518         * modules/crypto/gc-arcfour-tests: Moved from ../.
69519         * modules/crypto/gc-arctwo: Moved from ../.
69520         * modules/crypto/gc-arctwo-tests: Moved from ../.
69521         * modules/crypto/gc-des: Moved from ../.
69522         * modules/crypto/gc-des-tests: Moved from ../.
69523         * modules/crypto/gc-hmac-md5: Moved from ../.
69524         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69525         * modules/crypto/gc-hmac-sha1: Moved from ../.
69526         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69527         * modules/crypto/gc-md2: Moved from ../.
69528         * modules/crypto/gc-md2-tests: Moved from ../.
69529         * modules/crypto/gc-md4: Moved from ../.
69530         * modules/crypto/gc-md4-tests: Moved from ../.
69531         * modules/crypto/gc-md5: Moved from ../.
69532         * modules/crypto/gc-md5-tests: Moved from ../.
69533         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69534         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69535         * modules/crypto/gc-random: Moved from ../.
69536         * modules/crypto/gc-rijndael: Moved from ../.
69537         * modules/crypto/gc-rijndael-tests: Moved from ../.
69538         * modules/crypto/gc-sha1: Moved from ../.
69539         * modules/crypto/gc-sha1-tests: Moved from ../.
69540         * modules/crypto/gc-tests: Moved from ../.
69541         * modules/crypto/hmac-md5: Moved from ../.
69542         * modules/crypto/hmac-md5-tests: Moved from ../.
69543         * modules/crypto/hmac-sha1: Moved from ../.
69544         * modules/crypto/hmac-sha1-tests: Moved from ../.
69545         * modules/crypto/md2: Moved from ../.
69546         * modules/crypto/md2-tests: Moved from ../.
69547         * modules/crypto/md4: Moved from ../.
69548         * modules/crypto/md4-tests: Moved from ../.
69549         * modules/crypto/md5: Moved from ../.
69550         * modules/crypto/md5-tests: Moved from ../.
69551         * modules/crypto/memxor: Moved from ../.
69552         * modules/crypto/rijndael: Moved from ../.
69553         * modules/crypto/rijndael-tests: Moved from ../.
69554         * modules/crypto/sha1: Moved from ../.
69555
69556 2007-03-30  James Youngman  <jay@gnu.org>
69557
69558         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69559         rename() to change the ctime of a file (because ctime is unaffected
69560         by rename on jfs2 on AIX 5.1).
69561         (main): Start by doing cleanup, in case a previous run failed leaving
69562         test files behind.
69563
69564 2007-03-31  Bruno Haible  <bruno@clisp.org>
69565
69566         Support old proprietary implementations of iconv.
69567         * modules/iconv_open: New file.
69568         * lib/iconv_.h: New file.
69569         * m4/iconv_h.m4: New file.
69570         * lib/iconv_open.c: New file.
69571         * lib/iconv_open-aix.gperf: New file.
69572         * lib/iconv_open-hpux.gperf: New file.
69573         * lib/iconv_open-irix.gperf: New file.
69574         * lib/iconv_open-osf.gperf: New file.
69575         * m4/iconv_open.m4: New file.
69576         * modules/linebreak (Depends-on): Add iconv_open.
69577         * modules/striconv (Depends-on): Likewise.
69578         * modules/striconveh (Depends-on): Likewise.
69579         * modules/unicodeio (Depends-on): Likewise.
69580         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69581         (iconv_t)(-1).
69582         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69583         conversion if cd is (iconv_t)(-1).
69584         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69585         is not possible.
69586
69587 2007-03-31  Bruno Haible  <bruno@clisp.org>
69588
69589         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69590         work on Solaris either. Protect also second use of "autodetect_jp".
69591
69592 2007-03-31  Bruno Haible  <bruno@clisp.org>
69593
69594         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69595         the function is not present.
69596
69597 2007-03-31  Bruno Haible  <bruno@clisp.org>
69598
69599         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69600         the function is not present.
69601
69602 2007-03-31  Bruno Haible  <bruno@clisp.org>
69603
69604         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69605         a bug in HP-UX iconv_open().
69606
69607 2007-03-31  Bruno Haible  <bruno@clisp.org>
69608
69609         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69610         (Mathematics <math.h>): New section, add fpieee.
69611         (Input/output <stdio.h>): Add fseterr.
69612         (Mathematics <math.h>): New section, add printf-frexp.
69613         (Container data structures): Add sublist.
69614         (Core language properties): Add fpucw, inline.
69615         (Functions for greatest-width integer types <inttypes.h>): Add
69616         imaxabs, imaxdiv, inttypes.
69617         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69618         isnanl-nolibm, ldexp.
69619         (Mathematics <math.h>): New section, add printf-frexpl.
69620         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69621         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69622         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69623         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69624         (Unicode string functions): Add unistr/u*-mbtoucr.
69625         (Java): Add javacomp-script, javaexec-script.
69626         (C#): Add csharpcomp-script, csharpexec-script.
69627         (Support for building libraries and executables): Add havelib,
69628         relocatable-*.
69629         (Support for maintaining and releasing projects): Renamed from
69630         'Support for maintaining and release projects'. Add announce-gen.
69631
69632 2007-03-31  Bruno Haible  <bruno@clisp.org>
69633
69634         * README: Talk primarily about git.
69635         (git and CVS): Renamed from CVS.
69636         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69637         gnulib is available through git.
69638         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69639
69640 2007-03-30  Bruno Haible  <bruno@clisp.org>
69641
69642         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69643         * lib/poll_.h: Likewise.
69644         * lib/stat_.h: Likewise.
69645         * lib/sys_time_.h: Likewise.
69646         * lib/sysexit_.h: Likewise.
69647         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69648         * lib/stdbool_.h: Likewise.
69649         * lib/byteswap_.h: Add double-inclusion guard.
69650
69651 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69652
69653         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69654
69655 2007-03-30  Karl Berry  <karl@gnu.org>
69656
69657         * config/srclist-update: double space after USA in the license
69658         substitution, since that's how it's usually (?) written.
69659
69660 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69663         reported by Bruno Haible.
69664
69665 2007-03-29  Bruno Haible  <bruno@clisp.org>
69666
69667         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69668         a bug in AIX iconv().
69669
69670 2007-03-29  Bruno Haible  <bruno@clisp.org>
69671
69672         * modules/ldexpl-tests: New file.
69673         * tests/test-ldexpl.c: New file.
69674
69675 2007-03-29  Bruno Haible  <bruno@clisp.org>
69676
69677         * lib/ldexpl.c: Include fpucw.h.
69678         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69679         multiplication.
69680         * modules/ldexpl (Depends-on): Add fpucw.
69681
69682 2007-03-29  Bruno Haible  <bruno@clisp.org>
69683
69684         * modules/ldexpl: New file.
69685         * m4/ldexpl.m4: New file.
69686         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69687         set.
69688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69689         REPLACE_LDEXPL.
69690         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69691         REPLACE_LDEXPL.
69692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69693         gl_FUNC_LDEXPL_WORKS.
69694         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69695         * modules/mathl (Files): Remove lib/ldexpl.c.
69696         (Depends-on): Add ldexpl.
69697
69698 2007-03-29  Bruno Haible  <bruno@clisp.org>
69699
69700         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69701
69702 2007-03-29  Bruno Haible  <bruno@clisp.org>
69703
69704         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69705         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69706         and possibly also HP-UX.
69707         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69708         work on AIX, IRIX, HP-UX, OSF/1.
69709         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69710         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69711         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69712         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69713         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69714         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69715
69716 2007-03-29  Bruno Haible  <bruno@clisp.org>
69717
69718         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69719
69720 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69721
69722         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69723         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69724
69725 2007-03-29  Eric Blake  <ebb9@byu.net>
69726
69727         * lib/acl-internal.h: Remove redundant include.
69728         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69729         Cygwin when a file is locked.
69730
69731 2007-03-29  Bruno Haible  <bruno@clisp.org>
69732
69733         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69734         file.
69735         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69736
69737 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69738
69739         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69740         try to remove a parent directory if the child couldn't be removed
69741         (except for the first rmdir, which could fail because the child
69742         doesn't exist).  Problem reported by Jeff Blaine in
69743         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69744
69745 2007-03-28  Bruno Haible  <bruno@clisp.org>
69746
69747         * lib/striconveh.c (utf8conv_carefully): New function.
69748         (mem_cd_iconveh_internal): Invoke it.
69749
69750 2007-03-28  Bruno Haible  <bruno@clisp.org>
69751
69752         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69753         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69754         input.
69755         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69756         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69757         unistr/u8-uctomb.
69758
69759 2007-03-28  Bruno Haible  <bruno@clisp.org>
69760
69761         * modules/unistr/u8-mbtoucr: New file.
69762         * lib/unistr/u8-mbtoucr.c: New file.
69763         * modules/unistr/u16-mbtoucr: New file.
69764         * lib/unistr/u16-mbtoucr.c: New file.
69765         * modules/unistr/u16-mbtoucr: New file.
69766         * lib/unistr/u16-mbtoucr.c: New file.
69767         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69768
69769 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69770             Bruno Haible  <bruno@clisp.org>
69771
69772         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69773         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69774         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69775
69776         * m4/stdio_h.m4: Add stubs for vasprintf too.
69777
69778         * modules/stdio: Support vasprintf in sed command.
69779
69780         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69781         vasprintf.h.  Add stdio module indicator.
69782
69783         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69784         vasprintf.h.
69785
69786         * lib/vasprintf.h: File removed.
69787
69788         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69789         * lib/vasprintf.c: Ditto.
69790         * lib/xvasprintf.c: Ditto.
69791         * tests/test-vasprintf-posix.c: Ditto.
69792         * tests/test-vasprintf.c: Ditto.
69793
69794 2007-03-27  Bruno Haible  <bruno@clisp.org>
69795
69796         Make vasnprintf multithread-safe.
69797         * lib/vasnprintf.c (decimal_point_char): New function.
69798         (VASNPRINTF): Use it.
69799         Suggested by Simon Josefsson.
69800
69801 2007-03-27  Eric Blake  <ebb9@byu.net>
69802
69803         Support sub-second birthtime on cygwin.
69804         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69805         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69806         (get_stat_birthtime): Also work with st_birthtim.
69807
69808 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69811         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69812         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69813         (get_stat_birthtime_ns): Simplify compile-time tests.
69814         (get_stat_birthtime): Change the API to look like
69815         get_stat_mtime etc., except return a negative tv_nsec on error.
69816         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69817         Don't check for "spare" fields.
69818         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69819         or for struct stat.st_birthtime, as these tests aren't used.
69820         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69821
69822 2007-03-27  Bruno Haible  <bruno@clisp.org>
69823
69824         * lib/stat-time.h: Include <sys/stat.h>.
69825
69826 2007-03-27  James Youngman  <jay@gnu.org>
69827
69828         * lib/stat-time.h (get_stat_birthtime): New function for
69829           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69830         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69831           and its variants.
69832         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69833         * modules/stat-time-test: New file.
69834         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69835
69836 2007-03-26  Bruno Haible  <bruno@clisp.org>
69837
69838         Better support of signalling NaNs.
69839         * lib/atanl.c: Include isnanl.h.
69840         (atanl): Perform test for NaN at the beginning of the function and
69841         through a call to isnanl.
69842         * lib/cosl.c: Include isnanl.h.
69843         (cosl): Perform test for NaN at the beginning of the function and
69844         through a call to isnanl.
69845         * lib/ldexpl.c: Include isnanl.h.
69846         (ldexpl): Perform test for NaN through a call to isnanl.
69847         * lib/logl.c: Include isnanl.h.
69848         (logl): Perform test for NaN at the beginning of the function and
69849         through a call to isnanl.
69850         * lib/sinl.c: Include isnanl.h.
69851         (sinl): Perform test for NaN at the beginning of the function and
69852         through a call to isnanl.
69853         * lib/sqrtl.c: Include isnanl.h.
69854         (sqrtl): Perform test for NaN at the beginning of the function and
69855         through a call to isnanl.
69856         * lib/tanl.c: Include isnanl.h.
69857         (tanl): Perform test for NaN at the beginning of the function and
69858         through a call to isnanl.
69859         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69860         * modules/mathl (Depends-on): Add isnanl.
69861
69862 2007-03-26  Eric Blake  <ebb9@byu.net>
69863
69864         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69865         regression in logic sense of previous patch.
69866
69867 2007-03-26  Bruno Haible  <bruno@clisp.org>
69868
69869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69870         unportable shell command "if ! ...".
69871         Reported by Ralf Wildenhues.
69872
69873 2007-03-25  Bruno Haible  <bruno@clisp.org>
69874
69875         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69876         <sysexits.h> file, and only add EX_CONFIG.
69877         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69878         absolute file name and whether it is sufficient. Substitute also
69879         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69880         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69881         ABSOLUTE_SYSEXITS_H into sysexits.h.
69882
69883 2007-03-25  Bruno Haible  <bruno@clisp.org>
69884
69885         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69886         hints is NULL.
69887
69888 2007-03-25  Bruno Haible  <bruno@clisp.org>
69889
69890         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69891         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69892
69893 2007-03-25  Bruno Haible  <bruno@clisp.org>
69894
69895         * lib/vasnprintf.c: Include langinfo.h.
69896         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69897         multithread-safe.
69898         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69899         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69904         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69905         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69906         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69907         Reported by Simon Josefsson.
69908
69909 2007-03-25  Bruno Haible  <bruno@clisp.org>
69910
69911         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69912         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69913         * modules/vasnprintf (Depends-on): Add stdint.
69914
69915 2007-03-25  Bruno Haible  <bruno@clisp.org>
69916
69917         * modules/fpieee: New file.
69918         * m4/fpieee.m4: New file.
69919         * modules/isnan-nolibm (Depends-on): Add fpieee.
69920         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69921         * modules/isnanl (Depends-on): Add fpieee.
69922
69923 2007-03-25  Bruno Haible  <bruno@clisp.org>
69924
69925         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69926
69927 2007-03-25  Bruno Haible  <bruno@clisp.org>
69928
69929         Avoid test failures on IRIX 6.5.
69930         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69931         (main): Use it.
69932         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69933         macros.
69934         (main): Use them.
69935
69936 2007-03-25  Bruno Haible  <bruno@clisp.org>
69937
69938         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69939         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69940         exists but doesn't work.
69941         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69942         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69944         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69945         math.h.
69946
69947 2007-03-25  Bruno Haible  <bruno@clisp.org>
69948
69949         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69950         returns inf. Needed on IRIX 6.5.
69951
69952 2007-03-25  Bruno Haible  <bruno@clisp.org>
69953
69954         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69955         (main): Use isnanl instead of x != x idiom.
69956         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69957
69958         * tests/test-frexp.c: Include isnan.h.
69959         (main): Use isnan instead of x != x idiom.
69960         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69961
69962 2007-03-25  Bruno Haible  <bruno@clisp.org>
69963
69964         * tests/test-frexp.c (NaN): New function/macro.
69965         (main): Use it instead of 0.0 / 0.0.
69966         * tests/test-isnan.c (NaN): New function/macro.
69967         (main): Use it instead of 0.0 / 0.0.
69968         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69969         (test_function): Use it instead of 0.0 / 0.0.
69970         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69971         (test_function): Use it instead of 0.0 / 0.0.
69972         * tests/test-snprintf-posix.h (NaN): New function/macro.
69973         (test_function): Use it instead of 0.0 / 0.0.
69974         * tests/test-sprintf-posix.h (NaN): New function/macro.
69975         (test_function): Use it instead of 0.0 / 0.0.
69976         * tests/test-fprintf-posix.h (NaN): New function/macro.
69977         (test_function): Use it instead of 0.0 / 0.0.
69978         * tests/test-printf-posix.h (NaN): New function/macro.
69979         (test_function): Use it instead of 0.0 / 0.0.
69980
69981         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69982
69983 2007-03-25  Bruno Haible  <bruno@clisp.org>
69984
69985         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69986
69987 2007-03-25  Bruno Haible  <bruno@clisp.org>
69988
69989         * lib/regexec.c (merge_state_with_log): Make static.
69990
69991 2007-03-25  Bruno Haible  <bruno@clisp.org>
69992
69993         * lib/trigl.c (kernel_rem_pio2): Make static.
69994
69995 2007-03-25  Bruno Haible  <bruno@clisp.org>
69996
69997         * lib/sincosl.c (sincosl_table): Make static.
69998
69999 2007-03-25  Bruno Haible  <bruno@clisp.org>
70000
70001         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70002         if the compiler does not support C99.
70003
70004 2007-03-25  Bruno Haible  <bruno@clisp.org>
70005
70006         * modules/time (Makefile.am): Ensure all rule action lines start with a
70007         tab.
70008
70009 2007-03-24  Bruno Haible  <bruno@clisp.org>
70010
70011         * modules/tsearch-tests: New file.
70012         * tests/test-tsearch.sh: New file.
70013         * tests/test-tsearch.c: New file, mostly copied from glibc.
70014
70015         * modules/search-tests: New file.
70016         * tests/test-search.c: New file.
70017
70018         * modules/search: New file.
70019         * lib/search_.h: New file, incorporating lib/tsearch.h.
70020         * m4/search_h.m4: New file.
70021         * lib/tsearch.h: Remove file.
70022         * lib/tsearch.c: Include search.h instead of tsearch.h.
70023         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70024         HAVE_TSEARCH.
70025         * modules/tsearch (Files): Remove lib/tsearch.h.
70026         (Depends-on): Add search.
70027         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70028         (Include): Change tsearch.h into search.h.
70029
70030 2007-03-24  Bruno Haible  <bruno@clisp.org>
70031
70032         * modules/fpucw: New file.
70033         * lib/fpucw.h: New file.
70034         * lib/frexp.c: Include fpucw.h.
70035         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70036         (FUNC): Use them.
70037         * lib/printf-frexp.c: Include fpucw.h.
70038         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70039         (FUNC): Use them.
70040         * lib/vasnprintf.c: Include fpucw.h.
70041         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70042         'long double' calculations.
70043         * tests/test-frexpl.c: Include fpucw.h.
70044         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70045         * tests/test-printf-frexpl.c: Include fpucw.h.
70046         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70047         * modules/frexpl (Depends-on): Add fpucw.
70048         * modules/printf-frexpl (Depends-on): Likewise.
70049         * modules/fprintf-posix (Depends-on): Likewise.
70050         * modules/snprintf-posix (Depends-on): Likewise.
70051         * modules/sprintf-posix (Depends-on): Likewise.
70052         * modules/vasnprintf-posix (Depends-on): Likewise.
70053         * modules/vasprintf-posix (Depends-on): Likewise.
70054         * modules/vfprintf-posix (Depends-on): Likewise.
70055         * modules/vsnprintf-posix (Depends-on): Likewise.
70056         * modules/vsprintf-posix (Depends-on): Likewise.
70057         * modules/frexpl-tests (Depends-on): Likewise.
70058         * modules/printf-frexpl-tests (Depends-on): Likewise.
70059
70060 2007-03-24  Bruno Haible  <bruno@clisp.org>
70061
70062         * lib/float+.h: New file.
70063         * lib/isnan.c: Include float+.h.
70064         (SIZE): New macro.
70065         (FUNC): Compare only SIZE bytes of the value.
70066         * lib/vasnprintf.c: Include float+.h.
70067         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70068         SIZEOF_LDBL or SIZEOF_DBL bytes.
70069         * modules/isnan-nolibm (Files): Add lib/float+.h.
70070         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70071         * modules/isnanl (Files): Add lib/float+.h.
70072         * modules/vasnprintf (Files): Add lib/float+.h.
70073
70074 2007-03-24  Bruno Haible  <bruno@clisp.org>
70075
70076         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70077         include isnanl-nolibm.h.
70078
70079 2007-03-24  Bruno Haible  <bruno@clisp.org>
70080
70081         * tests/test-read-file.c (main): Don't produce spurious output for
70082         expected situations. Make the test fail if it encountered unexpected
70083         results.
70084
70085 2007-03-24  Bruno Haible  <bruno@clisp.org>
70086
70087         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70088         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70089
70090 2007-03-24  Bruno Haible  <bruno@clisp.org>
70091
70092         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70093
70094 2007-03-24  Bruno Haible  <bruno@clisp.org>
70095
70096         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70097         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70098
70099         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70100         * modules/utf8-ucs4: Turn into a symbolic link to module
70101         unistr/u8-mbtouc.
70102
70103         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70104         utf8-ucs4-unsafe.
70105         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70106         unistr/u8-mbtouc-unsafe.
70107
70108         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70109         * modules/utf16-ucs4: Turn into a symbolic link to module
70110         unistr/u16-mbtouc.
70111
70112         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70113         utf16-ucs4-unsafe.
70114         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70115         unistr/u16-mbtouc-unsafe.
70116
70117         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70118         * modules/ucs4-utf8: Turn into a symbolic link to module
70119         unistr/u8-ubtomb.
70120
70121         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70122         * modules/ucs4-utf16: Turn into a symbolic link to module
70123         unistr/u16-ubtomb.
70124
70125 2007-03-24  Bruno Haible  <bruno@clisp.org>
70126
70127         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70128         Enable the function only if HAVE_INLINE.
70129         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70130         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70131         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70132         Enable the function only if HAVE_INLINE.
70133         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70134         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70135         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70136         Enable the function only if HAVE_INLINE.
70137         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70138         Enable the function only if HAVE_INLINE.
70139         * modules/utf8-ucs4: Update.
70140         * modules/utf8-ucs4-unsafe: Update.
70141         * modules/utf16-ucs4: Update.
70142         * modules/utf16-ucs4-unsafe: Update.
70143         * modules/ucs4-utf8: Update.
70144         * modules/ucs4-utf16: Update.
70145
70146 2007-03-24  Bruno Haible  <bruno@clisp.org>
70147
70148         * lib/utf8-ucs4.h: Remove file.
70149         * lib/utf8-ucs4-unsafe.h: Remove file.
70150         * lib/utf16-ucs4.h: Remove file.
70151         * lib/utf16-ucs4-unsafe.h: Remove file.
70152         * lib/ucs4-utf8.h: Remove file.
70153         * lib/ucs4-utf16.h: Remove file.
70154         * lib/unistr.h: Include their previous contents.
70155         * m4/utf-ucs4.m4: Remove file.
70156         * m4/ucs4-utf.m4: Remove file.
70157         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70158         (Depends-on): Add unistr/base.
70159         (configure.ac): Remove gl_UTF_UCS4.
70160         (Makefile.am): Update.
70161         (Include): Change to unistr.h.
70162         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70163         (Depends-on): Add unistr/base.
70164         (configure.ac): Remove gl_UTF_UCS4.
70165         (Makefile.am): Update.
70166         (Include): Change to unistr.h.
70167         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70168         (Depends-on): Add unistr/base.
70169         (configure.ac): Remove gl_UTF_UCS4.
70170         (Makefile.am): Update.
70171         (Include): Change to unistr.h.
70172         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70173         (Depends-on): Add unistr/base.
70174         (configure.ac): Remove gl_UTF_UCS4.
70175         (Makefile.am): Update.
70176         (Include): Change to unistr.h.
70177         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70178         (Depends-on): Add unistr/base.
70179         (configure.ac): Remove gl_UCS4_UTF.
70180         (Makefile.am): Update.
70181         (Include): Change to unistr.h.
70182         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70183         (Depends-on): Add unistr/base.
70184         (configure.ac): Remove gl_UCS4_UTF.
70185         (Makefile.am): Update.
70186         (Include): Change to unistr.h.
70187         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70188         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70189         utf8-ucs4-unsafe.h.
70190         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70191         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70192         utf16-ucs4-unsafe.h.
70193         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70194         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70195         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70196         * lib/unistr/u8-strchr.c: Likewise.
70197         * lib/unistr/u8-strrchr.c: Likewise.
70198         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70199         * lib/unistr/u16-strchr.c: Likewise.
70200         * lib/unistr/u16-strrchr.c: Likewise.
70201         * lib/striconveh.c: Update.
70202         * lib/linebreak.c: Update.
70203
70204 2007-03-24  Bruno Haible  <bruno@clisp.org>
70205
70206         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70207         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70208
70209 2007-03-22  Bruno Haible  <bruno@clisp.org>
70210
70211         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70212
70213 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70214
70215         * MODULES.html.sh (File system functions): New module write-any-file.
70216         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70217         * m4/write-any-file.m4: New files.
70218
70219 2007-03-23  Eric Blake  <ebb9@byu.net>
70220
70221         * gnulib-tool: Rearrange space-tab sequences, since some editors
70222         like to eat them.
70223
70224 2007-03-23  Eric Blake  <ebb9@byu.net>
70225
70226         * lib/version-etc.c (version_etc_va): Update license wording to
70227         be more concise.  Recommended by Richard Stallman.
70228
70229 2007-03-22  Bruno Haible  <bruno@clisp.org>
70230
70231         * lib/poll.c (MSG_PEEK): New fallback definition.
70232
70233 2007-03-22  Bruno Haible  <bruno@clisp.org>
70234
70235         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70236         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70237         (main): Update.
70238         Fixes a compilation error on BeOS.
70239
70240 2007-03-22  Bruno Haible  <bruno@clisp.org>
70241
70242         * modules/frexpl-tests: New file.
70243         * tests/test-frexpl.c: New file.
70244
70245         * modules/frexpl: New file.
70246         * m4/frexpl.m4: New file.
70247         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70248         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70250         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70251         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70252         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70253
70254 2007-03-22  Bruno Haible  <bruno@clisp.org>
70255
70256         * lib/frexpl.c: Share code with lib/frexp.c.
70257         * modules/mathl (Files): Add lib/frexp.c.
70258         (Depends-on): Add isnanl-nolibm.
70259
70260 2007-03-22  Bruno Haible  <bruno@clisp.org>
70261
70262         * modules/printf-frexp (Files): Add m4/frexp.m4.
70263         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70264         only if the found frexp function actually works.
70265
70266 2007-03-22  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/frexp.c: Remove older implementation that uses divisions.
70269
70270 2007-03-21  Bruno Haible  <bruno@clisp.org>
70271
70272         * modules/frexp-tests: New file.
70273         * tests/test-frexp.c: New file.
70274
70275         * modules/frexp: New file.
70276         * lib/frexp.c: New file.
70277         * m4/frexp.m4: New file.
70278         * lib/math_.h (frexp): New declaration.
70279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70280         REPLACE_FREXP.
70281         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70282
70283 2007-03-21  Bruno Haible  <bruno@clisp.org>
70284
70285         * modules/isnanl-tests: New file.
70286         * tests/test-isnanl.c: New file.
70287
70288         * modules/isnanl: New file.
70289         * lib/isnanl.h: New file.
70290         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70291         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70292         gl_FUNC_ISNANL_WORKS.
70293         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70294         New macros.
70295
70296 2007-03-21  Bruno Haible  <bruno@clisp.org>
70297
70298         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70299         lib/isnanl.h.
70300         (Include): Update.
70301         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70302         * lib/vasnprintf.c: Update.
70303         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70304         tests/test-isnanl.h, remove tests/test-isnanl.c.
70305         (Makefile.am): Update.
70306         * tests/test-isnanl-nolibm.c: New file.
70307         * tests/test-isnanl.h: New file.
70308         * tests/test-isnanl.c: Remove file.
70309
70310 2007-03-21  Jim Meyering  <jim@meyering.net>
70311
70312         When trying to open ".", treat ESTALE like EACCES.
70313         * lib/savewd.c (savewd_save): Resort to forking not just upon
70314         failure with EACCES, but also when errno is ESTALE.
70315
70316 2007-03-20  Bruno Haible  <bruno@clisp.org>
70317
70318         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70319         Needed on AIX 5.1. Reported by Matthew Woehlke.
70320
70321 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70322
70323         Suggestions by Bruno Haible:
70324         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70325         our own.
70326         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70327         * modules/acl (Depends-on): Add gettext.
70328
70329 2007-03-19  Bruno Haible  <bruno@clisp.org>
70330
70331         * modules/iconvme: Remove file.
70332         * lib/iconvme.h: Remove file.
70333         * lib/iconvme.c: Remove file.
70334         * m4/iconvme.m4: Remove file.
70335
70336 2007-03-19  Bruno Haible  <bruno@clisp.org>
70337
70338         * doc/relocatable-maint.texi: Break long shell script line.
70339         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70340
70341 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70342
70343         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70344         handle file_has_acl.
70345         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70346         * lib/acl.c: Move header inclusions and related macro defns into
70347         lib/acl-internal.h.
70348         (S_ISLNK): Remove defn, since that's now done for us.
70349         (file_has_acl): Move to lib/file-has-acl.c.
70350         Call acl_trivial if available.  This is the crucial part of the fix.
70351         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70352         shared within the library.  Rewrite a bit, partly to make it compatible
70353         with the GNU coding style.
70354         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70355         Remove unnecessary double-quotes.
70356         Don't test for acl_to_text; the build will catch that.
70357         Replace acl_entries if it doesn't exist and it is needed.
70358         Check for -lsec and acl_trivial (as used on Solaris 10).
70359         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70360         lib/file-has-acl.c.
70361         (Depends-on): Add sys_stat, for S_ISLNK.
70362
70363 2007-03-19  Ben Pfaff  <blp@gnu.org>
70364
70365         * doc/gnulib.texi: Fix typos.
70366         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70367
70368 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70369
70370         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70371         If size is zero here, buf must be zero.
70372
70373 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70374
70375         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70376         <bruno@clisp.org>.
70377
70378 2007-03-18  Bruno Haible  <bruno@clisp.org>
70379
70380         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70381         Suggested by Eric Blake.
70382
70383 2007-03-18  Ben Pfaff  <blp@gnu.org>
70384
70385         * doc/relocatable.texi: Recommend using as prefix a directory
70386         that does not exist and will never be created.  Based on
70387         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70388         and others.
70389
70390 2007-03-17  Bruno Haible  <bruno@clisp.org>
70391
70392         * lib/fchownat.c: Include lchown.h.
70393
70394 2007-03-17  Bruno Haible  <bruno@clisp.org>
70395
70396         Fix endless loop when the given allocated size was > INT_MAX.
70397         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70398         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70399         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70400         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70401         * lib/sprintf.c (sprintf): Likewise.
70402
70403 2007-03-17  Bruno Haible  <bruno@clisp.org>
70404
70405         * tests/test-argp-2.sh (func_compare): Output a context diff.
70406
70407 2007-03-17  Bruno Haible  <bruno@clisp.org>
70408
70409         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70410         locale's decimal-point character.
70411
70412 2007-03-17  Bruno Haible  <bruno@clisp.org>
70413
70414         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70415         before comparing it. Needed because on some platforms (e.g. x86) a
70416         'long double' occupies less bytes than sizeof (long double).
70417
70418 2007-03-17  Bruno Haible  <bruno@clisp.org>
70419
70420         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70421         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70422         * tests/test-getaddrinfo.c (simple): Likewise.
70423         * tests/test-read-file.c (main): Likewise.
70424
70425 2007-03-17  Bruno Haible  <bruno@clisp.org>
70426
70427         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70428
70429 2007-03-17  Bruno Haible  <bruno@clisp.org>
70430
70431         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70432         unused variable.
70433
70434 2007-03-17  Bruno Haible  <bruno@clisp.org>
70435
70436         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70437         * tests/test-c-strncasecmp.c: Likewise.
70438
70439 2007-03-17  Bruno Haible  <bruno@clisp.org>
70440
70441         * modules/stdlib (Depends-on): Add unistd.
70442         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70443         Needed for MacOS X 10.3.
70444
70445 2007-03-17  Bruno Haible  <bruno@clisp.org>
70446
70447         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70448
70449 2007-03-17  Bruno Haible  <bruno@clisp.org>
70450
70451         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70452
70453 2007-03-17  Bruno Haible  <bruno@clisp.org>
70454
70455         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70456         to reflect files copied from gnulib (with or without modifications).
70457         Suggested by Jim Meyering.
70458
70459 2007-03-17  Eric Blake  <ebb9@byu.net>
70460
70461         * NEWS: Document stdlib change from 2007-02-18.
70462
70463 2007-03-17  Jim Meyering  <jim@meyering.net>
70464
70465         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70466         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70467         someone uses a name containing shell meta-characters.
70468         Reported by Alfred M. Szmidt.
70469
70470         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70471
70472 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70473
70474         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70475         and copy gettext configuration files only if configure.ac contains
70476         a use of AM_GNU_GETTEXT_VERSION.
70477
70478 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70479
70480         * build-aux/bootstrap (gnulib_name): New variable.
70481         (gnulib_tool_options): Use it.
70482
70483 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70484
70485         * tests/test-des.c: Use new namespace.
70486
70487 2007-03-15  Bruno Haible  <bruno@clisp.org>
70488
70489         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70490         Reported by James Youngman <jay@gnu.org>.
70491
70492 2007-03-15  Bruno Haible  <bruno@clisp.org>
70493
70494         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70495         declared prototype. Needed with cc on OSF/1 5.1.
70496
70497 2007-03-15  Bruno Haible  <bruno@clisp.org>
70498
70499         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70500         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70501         (struct gl_list_implementation): Add dispose_fn argument to the
70502         'create_empty', 'create' methods.
70503         (struct gl_list_impl_base): Add field 'dispose_fn'.
70504         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70505         argument.
70506         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70507         dispose_fn argument.
70508         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70509         dispose_fn on the dropped values.
70510         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70511         dispose_fn argument.
70512         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70513         dropped values.
70514         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70515         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70516         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70517         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70518         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70519         argument.
70520         (gl_tree_list_free): Call dispose_fn on the dropped values.
70521         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70522         the dropped values.
70523         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70524         Add dispose_fn argument.
70525         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70526         Call dispose_fn on the dropped values.
70527         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70528         Add dispose_fn argument.
70529         (gl_sublist_create): Initialize the 'dispose_fn' field.
70530         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70531         * tests/test-array_list.c (main): Update.
70532         * tests/test-carray_list.c (main): Update.
70533         * tests/test-avltree_list.c (main): Update.
70534         * tests/test-rbtree_list.c (main): Update.
70535         * tests/test-avltreehash_list.c (main): Update.
70536         * tests/test-rbtreehash_list.c (main): Update.
70537         * tests/test-linked_list.c (main): Update.
70538         * tests/test-linkedhash_list.c (main): Update.
70539         * tests/test-array_oset.c (main): Update.
70540
70541 2007-03-15  Bruno Haible  <bruno@clisp.org>
70542
70543         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70544         (gl_oset_create_empty): Add dispose_fn argument.
70545         (struct gl_oset_implementation): Add dispose_fn argument to
70546         'create_empty' method.
70547         (struct gl_oset_impl_base): Add dispose_fn field.
70548         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70549         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70550         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70551         values.
70552         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70553         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70554         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70555         dropped value.
70556         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70557         dropped value.
70558         * tests/test-array_oset.c (main): Update.
70559         * tests/test-avltree_oset.c (main): Update.
70560         * tests/test-rbtree_oset.c (main): Update.
70561         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70562
70563 2007-03-13  Bruno Haible  <bruno@clisp.org>
70564
70565         * tests/test-stdbool.c (i): Update after last patch.
70566
70567 2007-03-12  Bruno Haible  <bruno@clisp.org>
70568
70569         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70570         the iswprint macro. Needed on Solaris 2.5.1.
70571
70572 2007-03-12  Bruno Haible  <bruno@clisp.org>
70573
70574         * tests/test-printf-frexp.c (main): Declare x as volatile.
70575
70576 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70577
70578         * doc/gnulib.texi (Build robot for gnulib): New section.
70579
70580 2007-03-12  Jim Meyering  <jim@meyering.net>
70581
70582         * build-aux/bootstrap: New file.
70583         * build-aux/bootstrap.conf: New file, from coreutils.
70584
70585 2007-03-11  Bruno Haible  <bruno@clisp.org>
70586
70587         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70588
70589 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70590
70591         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70592         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70593         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70594
70595 2007-03-11  Bruno Haible  <bruno@clisp.org>
70596
70597         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70598         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70599
70600 2007-03-11  Bruno Haible  <bruno@clisp.org>
70601
70602         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70603         formula. Needed for SunPRO C 5.0.
70604
70605 2007-03-11  Bruno Haible  <bruno@clisp.org>
70606
70607         * modules/long-options (Depends-on): Add getopt.
70608
70609 2007-03-11  Bruno Haible  <bruno@clisp.org>
70610
70611         * modules/modechange (Depends-on): Add stdbool.
70612
70613 2007-03-11  Bruno Haible  <bruno@clisp.org>
70614
70615         * modules/i-ring (Depends-on): Add stdbool.
70616
70617 2007-03-11  Bruno Haible  <bruno@clisp.org>
70618
70619         * modules/gc-des (Depends-on): Add stdbool.
70620
70621 2007-03-11  Bruno Haible  <bruno@clisp.org>
70622
70623         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70624
70625 2007-03-11  Bruno Haible  <bruno@clisp.org>
70626
70627         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70628
70629 2007-03-11  Bruno Haible  <bruno@clisp.org>
70630
70631         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70632
70633 2007-03-11  Bruno Haible  <bruno@clisp.org>
70634
70635         * lib/vasnprintf.c (sprintf): Undefine.
70636
70637 2007-03-11  Bruno Haible  <bruno@clisp.org>
70638
70639         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70640         initializers in SunPRO C and Compaq C compilers.
70641
70642 2007-03-11  Bruno Haible  <bruno@clisp.org>
70643
70644         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70645         decrementing code ANSI C compliant.
70646
70647 2007-03-11  Bruno Haible  <bruno@clisp.org>
70648
70649         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70650         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70651
70652 2007-03-11  Bruno Haible  <bruno@clisp.org>
70653
70654         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70655         <stdbool.h> substitute doesn't pass.
70656
70657 2007-03-11  Bruno Haible  <bruno@clisp.org>
70658
70659         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70660
70661 2007-03-11  Bruno Haible  <bruno@clisp.org>
70662
70663         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70664         script, for submission to autobuild.josefsson.org.
70665
70666 2007-03-10  Bruno Haible  <bruno@clisp.org>
70667
70668         * modules/canonicalize-lgpl-tests: New file.
70669         * tests/test-canonicalize-lgpl.sh: New file.
70670         * tests/test-canonicalize-lgpl.c: New file.
70671
70672         * modules/c-strcase-tests: New file.
70673         * tests/test-c-strcase.sh: New file.
70674         * tests/test-c-strcasecmp.c: New file.
70675         * tests/test-c-strncasecmp.c: New file.
70676
70677         * modules/atexit-tests: New file.
70678         * tests/test-atexit.sh: New file.
70679         * tests/test-atexit.c: New file.
70680
70681 2007-03-10  Bruno Haible  <bruno@clisp.org>
70682
70683         * tests/test-binary-io.sh: Use temporary filenames that are not so
70684         likely to clash with those of other tests (in a parallel make).
70685         * tests/test-binary-io.c: Likewise.
70686
70687 2007-03-10  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70690         fallback; use #error instead.
70691         Suggested by Simon Josefsson.
70692
70693 2007-03-10  Bruno Haible  <bruno@clisp.org>
70694
70695         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70696         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70697         first and the last.
70698
70699 2007-03-10  Bruno Haible  <bruno@clisp.org>
70700
70701         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70702
70703 2007-03-10  Bruno Haible  <bruno@clisp.org>
70704
70705         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70706         "make distcheck".
70707         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70708         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70709         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70710
70711 2007-03-10  Bruno Haible  <bruno@clisp.org>
70712
70713         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70714         variable.
70715         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70716         variable.
70717
70718 2007-03-09  Eric Blake  <ebb9@byu.net>
70719         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70720
70721         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70722         types are not being provided by gnulib.
70723         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70724         types are supported.
70725
70726 2007-03-10  Bruno Haible  <bruno@clisp.org>
70727
70728         * lib/stdio_.h (__attribute__): New macro.
70729         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70730         vsprintf): Specify __attribute__ __format__ for GCC.
70731         Suggested by Eric Blake.
70732
70733 2007-03-09  Bruno Haible  <bruno@clisp.org>
70734
70735         * modules/printf-posix-tests: New file.
70736         * tests/test-printf-posix.sh: New file.
70737         * tests/test-printf-posix.c: New file.
70738
70739         * modules/printf-posix: New file.
70740         * lib/printf.c: New file.
70741         * m4/printf-posix-rpl.m4: New file.
70742         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70743         REPLACE_PRINTF.
70744         * lib/stdio_.h (printf): New declaration.
70745         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70746         ____strfmon____): New macros.
70747         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70748         REPLACE_PRINTF.
70749
70750 2007-03-09  Bruno Haible  <bruno@clisp.org>
70751
70752         * tests/test-vasnprintf-posix2.sh: New file.
70753         * tests/test-vasnprintf-posix2.c: New file.
70754         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70755         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70756         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70757
70758         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70759         a locale dependent decimal point, rather than always '.'.
70760
70761 2007-03-09  Eric Blake  <ebb9@byu.net>
70762
70763         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70764         spite of platforms like Tandem/NSK that define it to -1.
70765
70766 2007-03-08  Bruno Haible  <bruno@clisp.org>
70767
70768         * modules/vprintf-posix-tests: New file.
70769         * tests/test-vprintf-posix.sh: New file.
70770         * tests/test-vprintf-posix.c: New file.
70771         * tests/test-printf-posix.h: New file.
70772
70773         * modules/vprintf-posix: New file.
70774         * lib/vprintf.c: New file.
70775         * m4/vprintf-posix.m4: New file.
70776         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70777         REPLACE_VPRINTF.
70778         * lib/stdio_.h (vprintf): New declaration.
70779         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70780         REPLACE_VPRINTF.
70781
70782 2007-03-08  Bruno Haible  <bruno@clisp.org>
70783
70784         * modules/fprintf-posix-tests: New file.
70785         * tests/test-fprintf-posix.sh: New file.
70786         * tests/test-fprintf-posix.c: New file.
70787
70788         * modules/fprintf-posix: New file.
70789         * lib/fprintf.c: New file.
70790         * m4/fprintf-posix.m4: New file.
70791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70792         REPLACE_FPRINTF.
70793         * lib/stdio_.h (fprintf): New declaration.
70794         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70795         REPLACE_FPRINTF.
70796
70797 2007-03-08  Bruno Haible  <bruno@clisp.org>
70798
70799         * modules/vfprintf-posix-tests: New file.
70800         * tests/test-vfprintf-posix.sh: New file.
70801         * tests/test-vfprintf-posix.c: New file.
70802         * tests/test-fprintf-posix.h: New file.
70803         * tests/test-fprintf-posix.out: New file.
70804
70805         * modules/vfprintf-posix: New file.
70806         * lib/vfprintf.c: New file.
70807         * m4/vfprintf-posix.m4: New file.
70808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70809         REPLACE_VFPRINTF.
70810         * lib/stdio_.h (vfprintf): New declaration.
70811         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70812         REPLACE_VFPRINTF.
70813
70814 2007-03-08  Bruno Haible  <bruno@clisp.org>
70815
70816         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70817
70818 2007-03-08  Bruno Haible  <bruno@clisp.org>
70819
70820         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70821         instead of 'expr' invocations.
70822         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70826         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70827         Suggested by Paul Eggert.
70828
70829 2007-03-08  Bruno Haible  <bruno@clisp.org>
70830
70831         * modules/fseterr-tests: New file.
70832         * tests/test-fseterr.c: New file.
70833
70834         * modules/fseterr: New file.
70835         * lib/fseterr.h: New file.
70836         * lib/fseterr.c: New file.
70837
70838 2007-03-08  Bruno Haible  <bruno@clisp.org>
70839
70840         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70841         * lib/getopt_.h: Likewise.
70842         * lib/mbswidth.h: Likewise.
70843         * lib/setenv.h: Likewise.
70844         * lib/vasnprintf.h: Likewise.
70845         * lib/vasprintf.h: Likewise.
70846         * lib/verror.h: Likewise.
70847         * lib/xsetenv.h: Likewise.
70848         * lib/xvasprintf.h: Likewise.
70849
70850 2007-03-08  Jim Meyering  <jim@meyering.net>
70851
70852         * users.txt: Add parted.
70853
70854         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70855
70856 2007-03-07  Bruno Haible  <bruno@clisp.org>
70857
70858         * m4/printf.m4: Make the shell script snippets copy&pastable.
70859
70860 2007-03-02  Bruno Haible  <bruno@clisp.org>
70861
70862         * lib/netinet_in_.h: New file.
70863         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70864         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70865         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70866         (Depends-on): Add absolute-header.
70867         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70868         into netinet/in.h.
70869
70870 2007-03-03  Bruno Haible  <bruno@clisp.org>
70871
70872         * lib/sys_select_.h: New file.
70873         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70874         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70875         * modules/sys_select (Files): Add lib/sys_select_.h.
70876         (Depends-on): Add absolute-header.
70877         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70878         into sys/select.h.
70879
70880 2007-03-02  Bruno Haible  <bruno@clisp.org>
70881
70882         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70883         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70884         values.
70885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70886         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70887         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70888         * modules/sys_socket (Depends-on): Add absolute-header.
70889         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70890         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70891         (Include): Remove requirement of inclusion of <sys/types.h>.
70892
70893 2007-03-02  Bruno Haible  <bruno@clisp.org>
70894
70895         * lib/byteswap_.h (bswap_32): Fix formula.
70896
70897 2007-03-06  Bruno Haible  <bruno@clisp.org>
70898
70899         * modules/sprintf-posix-tests: New file.
70900         * tests/test-sprintf-posix.c: New file.
70901
70902         * modules/sprintf-posix: New file.
70903         * lib/sprintf.c: New file.
70904         * m4/sprintf-posix.m4: New file.
70905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70906         REPLACE_SPRINTF.
70907         * lib/stdio_.h (sprintf): New declaration.
70908         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70909         REPLACE_SPRINTF.
70910
70911 2007-03-06  Bruno Haible  <bruno@clisp.org>
70912
70913         * modules/vsprintf-posix-tests: New file.
70914         * tests/test-vsprintf-posix.c: New file.
70915         * tests/test-sprintf-posix.h: New file.
70916
70917         * modules/vsprintf-posix: New file.
70918         * lib/vsprintf.c: New file.
70919         * m4/vsprintf-posix.m4: New file.
70920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70921         REPLACE_VSPRINTF.
70922         * lib/stdio_.h (vsprintf): New declaration.
70923         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70924         REPLACE_VSPRINTF.
70925
70926 2007-03-06  Bruno Haible  <bruno@clisp.org>
70927
70928         * modules/vsnprintf (Depend-on): Remove minmax.
70929
70930 2007-03-06  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/snprintf-posix-tests: New file.
70933         * tests/test-snprintf-posix.c: New file.
70934
70935         * modules/snprintf-posix: New file.
70936         * m4/snprintf-posix.m4: New file.
70937         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70938         gl_FUNC_SNPRINTF.
70939         (gl_FUNC_SNPRINTF): Invoke it.
70940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70941         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70942         is set.
70943         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70944
70945 2007-03-06  Bruno Haible  <bruno@clisp.org>
70946
70947         * modules/vsnprintf-posix-tests: New file.
70948         * tests/test-vsnprintf-posix.c: New file.
70949         * tests/test-snprintf-posix.h: New file.
70950
70951         * modules/vsnprintf-posix: New file.
70952         * m4/vsnprintf-posix.m4: New file.
70953         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70954         gl_FUNC_VSNPRINTF.
70955         (gl_FUNC_VSNPRINTF): Invoke it.
70956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70957         * lib/stdio_.h (vsnprintf): Define as a replacement if
70958         REPLACE_VSNPRINTF is set.
70959         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70960
70961 2007-03-06  Bruno Haible  <bruno@clisp.org>
70962
70963         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70964         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70965
70966 2007-03-06  Bruno Haible  <bruno@clisp.org>
70967
70968         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70969         (asinl): Declare also if HAVE_DECL_ASINL is set.
70970         (atanl): Declare also if HAVE_DECL_ATANL is set.
70971         (ceill): Declare also if HAVE_DECL_CEILL is set.
70972         (cosl): Declare also if HAVE_DECL_COSL is set.
70973         (expl): Declare also if HAVE_DECL_EXPL is set.
70974         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70975         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70976         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70977         (logl): Declare also if HAVE_DECL_LOGL is set.
70978         (sinl): Declare also if HAVE_DECL_SINL is set.
70979         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70980         (tanl): Declare also if HAVE_DECL_TANL is set.
70981         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70982         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70983         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70984         declaration of frexpl, ldexpl.
70985         * modules/printf-frexpl (Depends-on): Add math.
70986         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70987
70988 2007-03-05  Bruno Haible  <bruno@clisp.org>
70989
70990         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70991         frexpl and ldexpl are declared.
70992         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70993
70994 2007-03-05  Bruno Haible  <bruno@clisp.org>
70995
70996         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70997         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70998
70999 2007-03-05  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/stdio_.h: Include <stddef.h>.
71002
71003 2007-03-05  Bruno Haible  <bruno@clisp.org>
71004
71005         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71006
71007 2007-03-05  Bruno Haible  <bruno@clisp.org>
71008
71009         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71010         NetBSD 4, from Ralf Wildenhues.
71011
71012 2007-03-04  Bruno Haible  <bruno@clisp.org>
71013
71014         * lib/vasprintf.h: Update #if logic for the case when the functions
71015         exist but are overridden.
71016
71017 2007-03-04  Bruno Haible  <bruno@clisp.org>
71018
71019         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71020         implementations: glibc-2.4 and MacOS X 10.3.
71021         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71022         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71023         * tests/test-vasprintf-posix.c (test_function): Likewise.
71024
71025 2007-03-04  Bruno Haible  <bruno@clisp.org>
71026
71027         * modules/vasprintf-posix-tests: New file.
71028         * tests/test-vasprintf-posix.c: New file.
71029
71030         * modules/vasprintf-posix: New file.
71031         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71032         defined.
71033         * m4/vasprintf-posix.m4: New file.
71034         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71035         gl_FUNC_VASPRINTF.
71036         (gl_FUNC_VASPRINTF): Invoke it.
71037         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71038         here.
71039         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71040
71041 2007-03-04  Bruno Haible  <bruno@clisp.org>
71042
71043         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71044         REPLACE_GETTIMEOFDAY.
71045         * modules/sys_time (Makefile.am): Likewise.
71046         * m4/sys_time_h.m4: Likewise.
71047         * m4/gettimeofday.m4: Likewise.
71048
71049 2007-03-04  Bruno Haible  <bruno@clisp.org>
71050
71051         * modules/vasnprintf-posix-tests: New file.
71052         * tests/test-vasnprintf-posix.c: New file.
71053
71054         * modules/vasnprintf-posix: New file.
71055         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71056         printf-frexpl.h.
71057         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71058         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71059         REPLACE_VASNPRINTF is defined.
71060         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71061         gl_FUNC_VASNPRINTF.
71062         (gl_FUNC_VASNPRINTF): Invoke it.
71063         * m4/vasnprintf-posix.m4: New file.
71064         * m4/printf.m4: New file.
71065
71066 2007-03-04  Bruno Haible  <bruno@clisp.org>
71067
71068         Compile progreloc.c only if --enable-relocatable is specified.
71069         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71070         if --enable-relocatable was specified.
71071         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71072         lib_SOURCES.
71073
71074 2007-03-04  Jim Meyering  <jim@meyering.net>
71075
71076         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71077         Use it consistently, rather than enumerating errno constants.
71078
71079 2007-03-04  Bruno Haible  <bruno@clisp.org>
71080
71081         * modules/xvasprintf-tests: New file.
71082         * tests/test-xvasprintf.c: New file.
71083
71084         * modules/vasprintf-tests: New file.
71085         * tests/test-vasprintf.c: New file.
71086
71087         * modules/vasnprintf-tests: New file.
71088         * tests/test-vasnprintf.c: New file.
71089
71090         * modules/vsnprintf-tests: New file.
71091         * tests/test-vsnprintf.c: New file.
71092
71093         * modules/snprintf-tests: New file.
71094         * tests/test-snprintf.c: New file.
71095
71096 2007-03-04  Bruno Haible  <bruno@clisp.org>
71097
71098         Compile relocatable.c only if --enable-relocatable is specified.
71099         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71100         gl_RELOCATABLE_LIBRARY.
71101         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71102         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71103         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71104         gl_RELOCATABLE_LIBRARY.
71105         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71106         (Makefile.am): Remove lib_SOURCES.
71107         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71108         gl_RELOCATABLE_LIBRARY.
71109         (Makefile.am): Remove lib_SOURCES.
71110         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71111         always.
71112         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71113         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71114
71115 2007-03-04  Bruno Haible  <bruno@clisp.org>
71116
71117         * modules/argmatch-tests: New file.
71118         * tests/test-argmatch.c: New file.
71119
71120         * tests/test-allocsa.c (main): Halve the number of loop runs.
71121
71122         * modules/alloca-opt-tests: New file.
71123         * tests/test-alloca-opt.c: New file.
71124
71125 2007-03-04  Jim Meyering  <jim@meyering.net>
71126
71127         Work around difference between Linux ACLs and Solaris 10 ZFS.
71128         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71129         for EINVAL.
71130
71131 2007-03-03  Bruno Haible  <bruno@clisp.org>
71132
71133         * modules/relocatable-prog (Depends-on): Add back progreloc's
71134         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71135
71136 2007-03-03  Bruno Haible  <bruno@clisp.org>
71137
71138         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71139         * modules/relocatable-lib: New file.
71140
71141 2007-03-03  Bruno Haible  <bruno@clisp.org>
71142
71143         * modules/relocatable-prog: Renamed from modules/relocatable.
71144         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71145
71146 2007-03-03  Bruno Haible  <bruno@clisp.org>
71147
71148         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71149         m4/relocatable-lib.m4.
71150         (Depends-on): Remove 'relocatable'.
71151         (configure.ac): Add gl_RELOCATABLE_NOP.
71152
71153 2007-03-03  Bruno Haible  <bruno@clisp.org>
71154
71155         * modules/relocatable-prog-wrapper: New file.
71156         * modules/relocatable (Depends-on): Add it. Remove all other
71157         dependencies except progname.
71158         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71159
71160         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71161         (gl_FUNC_STRERROR): Nop.
71162         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71163
71164         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71165         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71166
71167         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71168         (gl_FUNC_READLINK): Update.
71169
71170         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71171
71172 2007-03-03  Bruno Haible  <bruno@clisp.org>
71173
71174         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71175         * modules/xreadlink (Depends-on): Add unistd.
71176         * modules/xreadlink-with-size (Depends-on): Likewise.
71177
71178 2007-03-03  Bruno Haible  <bruno@clisp.org>
71179
71180         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71181         extracted from gt_FUNC_SETENV.
71182         (gt_FUNC_SETENV): Remove macro.
71183         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71184         remove gt_FUNC_SETENV.
71185
71186 2007-03-03  Bruno Haible  <bruno@clisp.org>
71187
71188         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71189         ENABLE_RELOCATABLE here.
71190         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71191
71192 2007-03-03  Bruno Haible  <bruno@clisp.org>
71193
71194         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71195         * tests/test-rbtreehash_list.c: Include progname.h.
71196         (main): Call set_program_name.
71197
71198         * modules/rbtree-oset-tests (Depends-on): Add progname.
71199         * tests/test-rbtree_oset.c: Include progname.h.
71200         (main): Call set_program_name.
71201
71202         * modules/rbtree-list-tests (Depends-on): Add progname.
71203         * tests/test-rbtree_list.c: Include progname.h.
71204         (main): Call set_program_name.
71205
71206         * modules/linked-list-tests (Depends-on): Add progname.
71207         * tests/test-linked_list.c: Include progname.h.
71208         (main): Call set_program_name.
71209
71210 2007-03-03  Bruno Haible  <bruno@clisp.org>
71211
71212         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71213         All uses of __restrict changed to _Restrict_.
71214         * lib/glob_.h (__restrict): Remove macro.
71215
71216 2007-03-02  Bruno Haible  <bruno@clisp.org>
71217
71218         * modules/gettext (configure.ac): Require gettext infrastructure
71219         from version 0.16.1.
71220
71221 2007-03-02  Bruno Haible  <bruno@clisp.org>
71222
71223         * modules/linkedhash-list-tests (Depends-on): Add progname.
71224         * tests/test-linkedhash_list.c: Include progname.h.
71225         (main): Call set_program_name.
71226
71227         * modules/carray-list-tests (Depends-on): Add progname.
71228         * tests/test-carray_list.c: Include progname.h.
71229         (main): Call set_program_name.
71230
71231         * modules/avltreehash-list-tests (Depends-on): Add progname.
71232         * tests/test-avltreehash_list.c: Include progname.h.
71233         (main): Call set_program_name.
71234
71235         * modules/avltree-oset-tests (Depends-on): Add progname.
71236         * tests/test-avltree_oset.c: Include progname.h.
71237         (main): Call set_program_name.
71238
71239         * modules/avltree-list-tests (Depends-on): Add progname.
71240         * tests/test-avltree_list.c: Include progname.h.
71241         (main): Call set_program_name.
71242
71243         * modules/array-oset-tests (Depends-on): Add progname.
71244         * tests/test-array_oset.c: Include progname.h.
71245         (main): Call set_program_name.
71246
71247         * modules/array-list-tests (Depends-on): Add progname.
71248         * tests/test-array_list.c: Include progname.h.
71249         (main): Call set_program_name.
71250
71251         * modules/argp-tests (Depends-on): Add progname.
71252         * tests/test-argp.c: Include argp.h first. Include progname.h.
71253         (main): Call set_program_name.
71254
71255 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * doc/gnulib-tool.texi (Initial import): Reword description of
71258         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71259         limited effect even if defined after the first system include.
71260
71261 2007-03-01  Bruno Haible  <bruno@clisp.org>
71262
71263         * build-aux/config.libpath: Update to libtool-1.5.22.
71264         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71265
71266 2007-03-01  Bruno Haible  <bruno@clisp.org>
71267
71268         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71269         foo_CFLAGS.
71270         Reported by Ralf Wildenhues.
71271
71272 2007-03-01  Bruno Haible  <bruno@clisp.org>
71273
71274         * build-aux/install-reloc: Remove object files left over by some
71275         compilers.
71276         Reported by Ralf Wildenhues.
71277
71278 2007-03-01  Bruno Haible  <bruno@clisp.org>
71279
71280         * build-aux/install-reloc: Break long lines.
71281
71282 2007-03-01  Bruno Haible  <bruno@clisp.org>
71283
71284         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71285         Reported by Ralf Wildenhues.
71286
71287 2007-03-01  Bruno Haible  <bruno@clisp.org>
71288
71289         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71290         include ordering constraints.
71291
71292 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71293
71294         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71295         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71296         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71297         as another example.
71298         * lib/time_.h: Fix misspelling.
71299         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71300         Require gl_HEADER_TIME_H_DEFAULTS.
71301         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71302         * m4/time_r.m4 (gl_TIME_R): Likewise.
71303         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71304
71305 2007-03-01  Bruno Haible  <bruno@clisp.org>
71306
71307         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71308         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71309
71310 2007-03-01  Jim Meyering  <jim@meyering.net>
71311
71312         * modules/xreadlink (Maintainer): Add my name.
71313         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71314
71315 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71316             Bruno Haible  <bruno@clisp.org>
71317
71318         * build-aux/install-reloc: Compile also c-ctype.c.
71319         * build-aux/relocatable.sh.in: New file.
71320         * doc/relocatable.texi: New file.
71321         * doc/relocatable-maint.texi: New file.
71322         * doc/gnulib.texi: Include relocatable-maint.texi.
71323         * lib/progreloc.c: Include unistd.h unconditionally.
71324         * lib/relocwrapper.c: Include unistd.h unconditionally.
71325         Include c-ctype.h.
71326         (add_dotbin): Use c_tolower.
71327         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71328         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71329         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71330         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71331         to m4/relocatable-lib.m4.
71332         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71333         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71334         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71335         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71336         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71337         * modules/relocatable: New file.
71338         * modules/relocatable-lib: New file.
71339         * modules/relocatable-script: New file.
71340
71341 2007-02-28  Bruno Haible  <bruno@clisp.org>
71342
71343         Import --enable-relocatable infrastructure.
71344         * build-aux/config.libpath: New file, from GNU gettext.
71345         * build-aux/install-reloc: New file, from GNU gettext.
71346         * build-aux/reloc-ldflags: New file, from GNU gettext.
71347         * lib/relocatable.h: New file, from GNU gettext.
71348         * lib/relocatable.c: New file, from GNU gettext.
71349         * lib/relocwrapper.c: New file, from GNU gettext.
71350         * m4/relocatable.m4: New file, from GNU gettext.
71351
71352 2007-02-28  Bruno Haible  <bruno@clisp.org>
71353
71354         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71355
71356         * modules/xreadlink: New file, from GNU gettext with modifications.
71357         * lib/xreadlink.c: New file, from GNU gettext.
71358         * lib/xreadlink.h: Add comments.
71359         (xreadlink): New declaration.
71360
71361         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71362         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71363         lib/xreadlink-with-size.c.
71364         (configure.ac): Remove gl_XREADLINK invocation.
71365         (Makefile.am): Augment lib_SOURCES.
71366         * m4/xreadlink.m4: Remove file.
71367         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71368         (xreadlink_with_size): Renamed from xreadink.
71369         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71370         * modules/canonicalize (Depends-on): Replace xreadlink with
71371         xreadlink-with-size.
71372         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71373
71374 2007-02-25  Jim Meyering  <jim@meyering.net>
71375
71376         * build-aux/announce-gen: When complaining about excess arguments,
71377         list them.
71378
71379 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71380
71381         * README: Document signed integer overflow situation more
71382         accurately.
71383
71384 2007-02-25  Bruno Haible  <bruno@clisp.org>
71385
71386         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71387         'a' or 'A' conversion.
71388
71389 2007-02-25  Bruno Haible  <bruno@clisp.org>
71390
71391         * modules/filename: Renamed from modules/pathname.
71392         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71393         lib/concatpath.c with lib/concat-filename.c.
71394         (Makefile.am): Update.
71395         (Include): Replace pathname.h with filename.h.
71396         * lib/filename.h: Renamed from lib/pathname.h.
71397         (concatenated_filename): Renamed from concatenated_pathname.
71398         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71399         (concatenated_filename): Renamed from concatenated_pathname.
71400         * lib/findprog.c: Include filename.h instead of pathname.h.
71401         (find_in_path): Update.
71402         * lib/javacomp.c: Include filename.h instead of pathname.h.
71403         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71404         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71405         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71406         is_oldgcj_14_13_usable, is_javac_usable): Update.
71407         * lib/javaexec.c: Include filename.h instead of pathname.h.
71408         (execute_java_class): Update.
71409         * modules/findprog: Update.
71410         * modules/javacomp: Update.
71411         * modules/javaexec: Update.
71412         * MODULES.html.sh (File system functions): Add 'filename', remove
71413         'pathname'.
71414
71415 2007-02-25  Bruno Haible  <bruno@clisp.org>
71416
71417         * modules/printf-frexpl-tests: New file.
71418         * tests/test-printf-frexpl.c: New file.
71419
71420         * modules/printf-frexpl: New file.
71421         * lib/printf-frexpl.h: New file.
71422         * lib/printf-frexpl.c: New file.
71423         * m4/printf-frexpl.m4: New file.
71424
71425 2007-02-25  Bruno Haible  <bruno@clisp.org>
71426
71427         * modules/printf-frexp-tests: New file.
71428         * tests/test-printf-frexp.c: New file.
71429
71430         * modules/printf-frexp: New file.
71431         * lib/printf-frexp.h: New file.
71432         * lib/printf-frexp.c: New file.
71433         * m4/printf-frexp.m4: New file.
71434
71435 2007-02-25  Bruno Haible  <bruno@clisp.org>
71436
71437         Assume automake >= 1.10 for the tests.
71438         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71439         * modules/arctwo-tests: Likewise.
71440         * modules/argp-tests: Likewise.
71441         * modules/avltree-list-tests: Likewise.
71442         * modules/avltree-oset-tests: Likewise.
71443         * modules/avltreehash-list-tests: Likewise.
71444         * modules/carray-list-tests: Likewise.
71445         * modules/crc-tests: Likewise.
71446         * modules/des-tests: Likewise.
71447         * modules/gc-arcfour-tests: Likewise.
71448         * modules/gc-arctwo-tests: Likewise.
71449         * modules/gc-des-tests: Likewise.
71450         * modules/gc-hmac-md5-tests: Likewise.
71451         * modules/gc-hmac-sha1-tests: Likewise.
71452         * modules/gc-md2-tests: Likewise.
71453         * modules/gc-md4-tests: Likewise.
71454         * modules/gc-md5-tests: Likewise.
71455         * modules/gc-pbkdf2-sha1-tests: Likewise.
71456         * modules/gc-rijndael-tests: Likewise.
71457         * modules/gc-sha1-tests: Likewise.
71458         * modules/gc-tests: Likewise.
71459         * modules/getaddrinfo-tests: Likewise.
71460         * modules/hmac-md5-tests: Likewise.
71461         * modules/hmac-sha1-tests: Likewise.
71462         * modules/linked-list-tests: Likewise.
71463         * modules/linkedhash-list-tests: Likewise.
71464         * modules/lock-tests: Likewise.
71465         * modules/md2-tests: Likewise.
71466         * modules/md4-tests: Likewise.
71467         * modules/md5-tests: Likewise.
71468         * modules/rbtree-list-tests: Likewise.
71469         * modules/rbtree-oset-tests: Likewise.
71470         * modules/rbtreehash-list-tests: Likewise.
71471         * modules/read-file-tests: Likewise.
71472         * modules/rijndael-tests: Likewise.
71473         * modules/stdint-tests: Likewise.
71474         * modules/tls-tests: Likewise.
71475
71476 2007-02-24  Bruno Haible  <bruno@clisp.org>
71477
71478         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71479         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71480         function; instead check whether isnan with a double argument links.
71481         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71482         function; instead check whether isnan with a 'long double' argument
71483         links.
71484         Reported by Eric Blake <ebb9@byu.net>.
71485
71486 2007-02-24  Bruno Haible  <bruno@clisp.org>
71487
71488         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71489         defined.
71490         * lib/isnanl.c: Remove all code. Just include isnan.c.
71491         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71492
71493 2007-02-25  Jim Meyering  <jim@meyering.net>
71494
71495         Avoid conflicting types for 'unsetenv' on FreeBSD.
71496         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71497         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71498         in stdlib.h.
71499
71500 2007-02-24  Bruno Haible  <bruno@clisp.org>
71501
71502         * modules/isnanl-nolibm-tests: New file.
71503         * tests/test-isnanl.c: New file.
71504
71505         * modules/isnanl-nolibm: New file.
71506         * lib/isnanl.h: New file.
71507         * lib/isnanl.c: New file.
71508         * m4/isnanl.m4: New file.
71509
71510 2007-02-24  Bruno Haible  <bruno@clisp.org>
71511
71512         * modules/isnan-nolibm-tests: New file.
71513         * tests/test-isnan.c: New file.
71514
71515         * modules/isnan-nolibm: New file.
71516         * lib/isnan.h: New file.
71517         * lib/isnan.c: New file.
71518         * m4/isnan.m4: New file.
71519
71520 2007-02-24  Bruno Haible  <bruno@clisp.org>
71521
71522         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71523         assume that an exponent fits in 20 bits.
71524
71525 2007-02-24  Jim Meyering  <jim@meyering.net>
71526
71527         * m4/regex.m4: Update the description of the configure-time option,
71528         --without-included-regex, to state accurately what the defaults are,
71529         and perhaps to give people an idea why using this option is risky.
71530
71531 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71534         loops on small arguments.  This attempts to avoid the problem
71535         Bruno Haible reported for AIX 4.3.2 in
71536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71537
71538 2007-02-23  Bruno Haible  <bruno@clisp.org>
71539
71540         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71541         Needed for help2man.
71542
71543 2007-02-23  Karl Berry  <karl@gnu.org>
71544
71545         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71546         exists, foo.h should be cvs-ignored, not committed.
71547
71548 2007-02-23  Eric Blake  <ebb9@byu.net>
71549
71550         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71551         * lib/stat-time.h (includes): Likewise.
71552         * lib/utimecmp.c (includes): Likewise.
71553         * lib/utimens.h (includes): Likewise.
71554         * lib/getdate.y (includes): Also include "timespec.h" for use
71555         internal to the module.
71556         * modules/utimens (Depends-on): Revert yesterday's patch.
71557         * modules/nanosleep (Depends-on): Add missing dependency.
71558
71559 2007-02-22  Bruno Haible  <bruno@clisp.org>
71560
71561         * lib/glob.c: Don't include getlogin_r.h.
71562
71563 2007-02-22  Jim Meyering  <jim@meyering.net>
71564
71565         * modules/utimens (Depends-on): Add timespec, required for
71566         utimens.h's inclusion of timespec.h.
71567
71568 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71569
71570         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71571         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71572         Schwab in
71573         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71574         I'll try to think of a better way to fix the Solaris problem.
71575
71576         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71577         like glibc; on Solaris 10, it fails with errno == EINVAL.
71578         POSIX says the behavior is unspecified if the first argument is NULL,
71579         so play it safe and never pass NULL to the system getcwd.
71580
71581 2007-02-21  Jim Meyering  <jim@meyering.net>
71582
71583         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71584         of gettimeofday.  It would conflict with the one now always
71585         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71586         an IRIX 6.5 build failure.
71587
71588 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71589
71590         Minor fixups to port to Solaris 10 with Sun C 5.8.
71591         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71592         * modules/getcwd (Depends-on): Add dirfd.
71593         * lib/putenv.c (putenv): #undef it.
71594         (rpl_putenv): New decl.
71595         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71596
71597 2007-02-20  Bruno Haible  <bruno@clisp.org>
71598
71599         * modules/stdio-tests: New file.
71600         * tests/test-stdio.c: New file.
71601
71602         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71603         (Depends-on): Add stdio.
71604         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71605         (Include): Use <stdio.h> instead of vsnprintf.h.
71606         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71607         HAVE_DECL_VSNPRINTF.
71608         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71609
71610         * modules/snprintf (Files): Remove lib/snprintf.h.
71611         (Depends-on): Add stdio.
71612         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71613         (Include): Use <stdio.h> instead of snprintf.h.
71614         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71615         HAVE_DECL_SNPRINTF.
71616         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71617         * lib/getaddrinfo.c: Likewise.
71618
71619         * modules/stdio: New file.
71620         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71621         * lib/snprintf.h: Remove file.
71622         * lib/vsnprintf.h: Remove file.
71623         * lib/.cppi-disable: Remove snprintf.h.
71624         * m4/stdio_h.m4: New file.
71625         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71626
71627 2007-02-20  Jim Meyering  <jim@meyering.net>
71628
71629         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71630         used by e.g., mingw.  From Bruno Haible.
71631
71632 2007-02-19  Bruno Haible  <bruno@clisp.org>
71633
71634         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71635         warnings.
71636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71637
71638 2007-02-19  Bruno Haible  <bruno@clisp.org>
71639
71640         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71641         from mingw users.
71642
71643 2007-02-19  Bruno Haible  <bruno@clisp.org>
71644
71645         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71646         warnings.
71647         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71648
71649 2007-02-19  Jim Meyering  <jim@meyering.net>
71650
71651         Don't use FD after a successful "fdopendir (fd)".
71652         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71653         Reset it by calling dirfd on the just-obtained DIR*.
71654
71655         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71656         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71657
71658 2007-02-18  Bruno Haible  <bruno@clisp.org>
71659
71660         * lib/readlink.c: Include <unistd.h>.
71661         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71662         HAVE_READLINK.
71663         * modules/readlink (Depends-on): Add unistd.
71664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71665         (Include): Add <unistd.h>.
71666
71667         * lib/getlogin_r.h: Remove file.
71668         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71669         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71670         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71671         HAVE_DECL_GETLOGIN_R.
71672         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71674         (Include): Use <unistd.h> instead of getlogin_r.h.
71675
71676         * lib/getcwd.h: Remove file.
71677         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71678         * lib/xgetcwd.c: Likewise.
71679         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71680         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71681         * modules/getcwd (Files): Remove lib/getcwd.h.
71682         (Depends-on): Add unistd.
71683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71684         (Include): Use <unistd.h> instad of getcwd.h.
71685
71686         * lib/ftruncate.c: Include <unistd.h> first.
71687         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71688         Set HAVE_FTRUNCATE.
71689         * modules/ftruncate (Depends-on): Add unistd.
71690         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71691
71692         * lib/fchdir.c: Include <unistd.h> first.
71693         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71694         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71695         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71696         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71697         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71698
71699         * lib/dup2.c: Include <unistd.h> first.
71700         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71701         HAVE_DUP2.
71702         * modules/dup2 (Depends-on): Add unistd.
71703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71704
71705         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71706         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71707         REPLACE_CHOWN. Don't define chown as a macro here.
71708         * modules/chown (Depends-on): Add unistd.
71709         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71710
71711         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71712         Add definition for GL_LINK_WARNING.
71713         (chown, dup2): New declarations.
71714         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71715         link warning.
71716         (ftruncate): New declaration.
71717         (getcwd): New declaration, taken from old getcwd.h.
71718         (getlogin_r): New declaration, taken from old getlogin_r.h.
71719         (readlink): New declaration.
71720         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71721         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71722         (gl_PREREQ_UNISTD): Remove macro.
71723         (gl_UNISTD_MODULE_INDICATOR): New macro.
71724         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71725         many new variables. Don't set UNISTD_H.
71726         * modules/unistd (Description): Change.
71727         (Depends-on): Add link-warning.
71728         (configure.ac): Update.
71729         (Makefile.am): Create unistd.h always. Substitute many new variables
71730         into it.
71731
71732 2007-02-18  Bruno Haible  <bruno@clisp.org>
71733
71734         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71735         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71736         HAVE_GETSUBOPT.
71737         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71738         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71739         * lib/getsubopt.h: Remove file.
71740         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71741         (Depends-on): Add stdlib.
71742         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71743         (Includes): Use <stdlib.h> instead of getsubopt.h.
71744         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71745         Set HAVE_GETSUBOPT.
71746         * lib/getsubopt.c: Don't include getsubopt.h.
71747
71748 2007-02-18  Bruno Haible  <bruno@clisp.org>
71749
71750         * modules/fchdir (Depends-on): Add dup2.
71751
71752 2007-02-18  Bruno Haible  <bruno@clisp.org>
71753
71754         * lib/stdlib_.h: Handle glibc's special invocation convention
71755         specially.
71756
71757 2007-02-18  Bruno Haible  <bruno@clisp.org>
71758
71759         * modules/stdlib-tests: New file.
71760         * tests/test-stdlib.c: New file.
71761
71762         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71763         (Depends-on): Add stdlib.
71764         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71765         (Includes): Use <stdlib.h> instead of mkstemp.h.
71766         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71767         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71768         * lib/mkstemp.c: Don't include mkstemp.h.
71769         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71770         * lib/stdlib--.h: Don't include mkstemp.h.
71771
71772         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71773         (Depends-on): Add stdlib.
71774         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71775         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71776         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71777         HAVE_MKDTEMP.
71778         * lib/mkdtemp.c: Don't include mkdtemp.h.
71779         * lib/clean-temp.c: Don't include mkdtemp.h.
71780
71781         * modules/exit (Files): Remove lib/exit.h.
71782         (Depends-on): Add stdlib.
71783         (Makefile.am): Remove lib_SOURCES.
71784         (Include): Use <stdlib.h> instead of exit.h.
71785         * lib/argmatch.c: Don't include exit.h.
71786         * lib/execute.c: Likewise.
71787         * lib/pagealign_alloc.c: Likewise.
71788         * lib/pipe.c: Likewise.
71789         * lib/wait-process.c: Likewise.
71790         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71791         * lib/exitfail.c: Likewise.
71792         * lib/savewd.c: Likewise.
71793         * lib/xsetenv.c: Likewise.
71794
71795         * modules/stdlib: New file.
71796         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71797         and extra comments about mkstemp().
71798         * lib/exit.h: Remove file.
71799         * lib/mkdtemp.h: Remove file.
71800         * lib/mkstemp.h: Remove file.
71801         * m4/stdlib_h.m4: New file.
71802         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71803
71804 2007-02-18  Bruno Haible  <bruno@clisp.org>
71805
71806         * modules/math-tests: New file.
71807         * tests/test-math.c: New file.
71808
71809         * modules/math: New file.
71810         * modules/mathl (Files): Remove lib/mathl.h.
71811         (Depends-on): Add math.
71812         (Makefile.am): Don't mention mathl.h.
71813         (Include): Use <math.h> instead of mathl.h.
71814         * lib/math_.h: New file.
71815         * lib/mathl.h: Remove file.
71816         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71817         mathl.h.
71818         * lib/asinl.c: Likewise.
71819         * lib/atanl.c: Likewise.
71820         * lib/ceill.c: Likewise.
71821         * lib/cosl.c: Likewise.
71822         * lib/expl.c: Likewise.
71823         * lib/floorl.c: Likewise.
71824         * lib/frexpl.c: Likewise.
71825         * lib/ldexpl.c: Likewise.
71826         * lib/logl.c: Likewise.
71827         * lib/sincosl.c: Likewise.
71828         * lib/sinl.c: Likewise.
71829         * lib/sqrtl.c: Likewise.
71830         * lib/tanl.c: Likewise.
71831         * lib/trigl.c: Likewise.
71832         * m4/math_h.m4: New file.
71833         * MODULES.html.sh (Mathematics): Add math.
71834
71835 2007-02-17  Bruno Haible  <bruno@clisp.org>
71836
71837         * modules/wctype-tests: New file.
71838         * tests/test-wctype.c: New file.
71839
71840         * modules/wchar-tests: New file.
71841         * tests/test-wchar.c: New file.
71842
71843         * modules/unistd-tests: New file.
71844         * tests/test-unistd.c: New file.
71845
71846         * modules/time-tests: New file.
71847         * tests/test-time.c: New file.
71848
71849         * modules/sysexits-tests: New file.
71850         * tests/test-sysexits.c: New file.
71851
71852         * modules/sys_time-tests: New file.
71853         * tests/test-sys_time.c: New file.
71854
71855         * modules/sys_stat-tests: New file.
71856         * tests/test-sys_stat.c: New file.
71857
71858         * modules/sys_socket-tests: New file.
71859         * tests/test-sys_socket.c: New file.
71860
71861         * modules/sys_select-tests: New file.
71862         * tests/test-sys_select.c: New file.
71863
71864         * modules/string-tests: New file.
71865         * tests/test-string.c: New file.
71866
71867         * modules/stdbool-tests: New file.
71868         * tests/test-stdbool.c: New file.
71869
71870         * modules/netinet_in-tests: New file.
71871         * tests/test-netinet_in.c: New file.
71872
71873         * modules/inttypes-tests: New file.
71874         * tests/test-inttypes.c: New file.
71875
71876         * modules/fcntl-tests: New file.
71877         * tests/test-fcntl.c: New file.
71878
71879         * modules/byteswap-tests: New file.
71880         * tests/test-byteswap.c: New file.
71881
71882         * modules/arpa_inet-tests: New file.
71883         * tests/test-arpa_inet.c: New file.
71884
71885 2007-02-17  Bruno Haible  <bruno@clisp.org>
71886
71887         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71888         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71889         if the corresponding module is not enabled. Emit link warnings if
71890         the function is used nevertheless.
71891         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71892         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71893         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71894         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71895         * modules/inttypes (Depends-on): Add link-warning.
71896         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71897         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71898         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71899         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71900         * modules/imaxdiv (configure.ac): Likewise.
71901         * modules/strtoimax (configure.ac): Likewise.
71902         * modules/strtoumax (configure.ac): Likewise.
71903
71904 2007-02-17  Bruno Haible  <bruno@clisp.org>
71905
71906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71907         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71908         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71909         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71910
71911 2007-02-17  Bruno Haible  <bruno@clisp.org>
71912
71913         * modules/link-warning: New file.
71914         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71915         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71916         * modules/string (Depends-on): Add link-warning.
71917         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71918         string.h.
71919         * MODULES.html.sh (Support for building libraries and executables): Add
71920         link-warning.
71921
71922 2007-02-17  Bruno Haible  <bruno@clisp.org>
71923
71924         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71925         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71926         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71927         long lines.
71928
71929 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71930             Bruno Haible  <bruno@clisp.org>
71931
71932         * modules/tmpfile: New file.
71933         * lib/tmpfile.c: New file.
71934         * m4/tmpfile.m4: New file.
71935         * MODULES.html.sh (func_all_modules): New section "Input/output".
71936
71937 2007-02-15  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71940         (supports_delete_on_close): New function.
71941         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71942
71943 2007-02-14  Bruno Haible  <bruno@clisp.org>
71944
71945         * modules/mbspcasecmp-tests: New file.
71946         * tests/test-mbspcasecmp.sh: New file.
71947         * tests/test-mbspcasecmp.c: New file.
71948
71949         New module mbspcasecmp.
71950         * modules/mbspcasecmp: New file.
71951         * lib/mbspcasecmp.c: New file.
71952         * lib/string_.h (strncasecmp): Change warning message.
71953         (mbspcasecmp): New declaration.
71954         * m4/mbspcasecmp.m4: New file.
71955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71956         GNULIB_MBSPCASECMP.
71957         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71958         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71959
71960 2007-02-14  Bruno Haible  <bruno@clisp.org>
71961
71962         * modules/mbsncasecmp-tests: New file.
71963         * tests/test-mbsncasecmp.sh: New file.
71964         * tests/test-mbsncasecmp.c: New file.
71965
71966         New module mbsncasecmp.
71967         * modules/mbsncasecmp: New file.
71968         * lib/mbsncasecmp.c: New file.
71969         * lib/string_.h (mbsncasecmp): New declaration.
71970         * m4/mbsncasecmp.m4: New file.
71971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71972         GNULIB_MBSNCASECMP.
71973         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71974         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71975
71976 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71977
71978         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71979         Verify that it doesn't overlap with our flags.
71980         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71981         do not have the desired effect in multibyte locales; instead, use
71982         mbscasecmp.
71983         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71984         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71985         we don't require GNU fnmatch ourselves (if our users require it, they
71986         should do so explicitly).
71987
71988         Fix regex code so it doesn't rely on strcasecmp.
71989         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71990         Otherwise, include gnulib's langinfo.h.
71991         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71992         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71993         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71994         * modules/regex (FILES): Remove m4/codeset.m4.
71995         (Depends-on): Add localcharset.  Remove strcase.
71996
71997 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71998
71999         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72000         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72001
72002 2007-02-13  Bruno Haible  <bruno@clisp.org>
72003
72004         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72005         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72006
72007 2007-02-12  Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72010         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72011         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72012         time warning rather than a link error.
72013
72014 2007-02-12  Bruno Haible  <bruno@clisp.org>
72015
72016         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72017         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72018         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72019
72020 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72021
72022         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72023         args, not 2.
72024
72025 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         New module 'time', so that apps can include <time.h> as per
72028         POSIX and GNU instead of separate include files like time_r.h
72029         and timegm.h.  This implementation tries out a simpler approach
72030         for replacing decls in standard include files (as compared to
72031         the string module), somewhat as an experiment.
72032
72033         * config/srclist.txt: Comment out mktime.c for now.
72034         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72035         since it doesn't apply any more.  Use generic wording instead.
72036         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72037         'time'.
72038         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72039         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72040         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72041         Don't include <sys/types.h>; no longer needed since we assume C89.
72042         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72043         * lib/strftime.c: Likewise.
72044         * lib/time_r.c: Likewise.
72045         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72046         * lib/nanosleep.c: Include <time.h> first, to check interface.
72047         * lib/strptime.c: Likewise.
72048         * lib/time_r.c: Likewise.
72049         * lib/timegm.c: Likewise.
72050         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72051         needed.
72052         * lib/timegm.c: Don't include timegm.h; no longer needed.
72053         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72054         time.h now handles any problems in that area.
72055         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72056         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72057         that time.h defines struct timespec.
72058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72059         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72060         handles that.
72061         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72062         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72063         needed.  Set REPLACE_LOCALTIME.
72064         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72065         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72066         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72067         nanosleep; time_h.m4 now does that.  Don't require
72068         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72069         module handles this now.
72070         * modules/getdate (Depends-on): Remove timespec.  Add time.
72071         * modules/nanosleep (Depends-on): Likewise.
72072         * modules/stat-time (Depends-on): Likewise.
72073         * modules/nanosleep (Include): Include time.h, not timespec.h.
72074         * modules/strptime (Files): Remove lib/strptime.h.
72075         (Depends-on): Add extensions, time.
72076         (Include): Include time.h, not strptime.h.
72077         * modules/time_r (Files): Remove lib/time_r.h.
72078         (Depends-on): Add time.
72079         (Include): Include time.h, not time_r.h.
72080         * modules/timegm: Likewise.
72081         * modules/timespec (Description): Now does timespec-related decls
72082         of our own, instead of struct timespec itself.
72083         (Depends-on): Add time; remove extensions.
72084         (Maintainer): Add self.
72085         * modules/utimecmp (Depends-on): Add time; remove timespec.
72086         * modules/utimens (Depends-on): Likewise.
72087         * modules/xnanosleep (Depends-on): Likewise.
72088
72089 2007-02-11  Bruno Haible  <bruno@clisp.org>
72090
72091         * lib/c-strstr.c: Include allocsa.h.
72092         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72093         * lib/c-strcasestr.c: Include allocsa.h.
72094         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72095         * lib/strcasestr.c: Include allocsa.h.
72096         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72097         * lib/mbsstr.c: Include allocsa.h.
72098         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72099         allocsa/freesa instead of malloc/free.
72100         * lib/mbscasestr.c: Include allocsa.h.
72101         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72102         allocsa/freesa instead of malloc/free.
72103         * modules/c-strstr (Depends-on): Add allocsa.
72104         * modules/c-strcasestr (Depends-on): Likewise.
72105         * modules/strcasestr (Depends-on): Likewise.
72106         * modules/mbsstr (Depends-on): Likewise.
72107         * modules/mbscasestr (Depends-on): Likewise.
72108
72109 2007-02-11  Bruno Haible  <bruno@clisp.org>
72110
72111         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72112
72113         * modules/mbsspn-tests: New file.
72114         * tests/test-mbsspn.sh: New file.
72115         * tests/test-mbsspn.c: New file.
72116
72117 2007-02-11  Bruno Haible  <bruno@clisp.org>
72118
72119         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72120
72121         * modules/mbspbrk-tests: New file.
72122         * tests/test-mbspbrk.sh: New file.
72123         * tests/test-mbspbrk.c: New file.
72124
72125 2007-02-11  Bruno Haible  <bruno@clisp.org>
72126
72127         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72128         unneeded cast.
72129
72130         * modules/mbscspn-tests: New file.
72131         * tests/test-mbscspn.sh: New file.
72132         * tests/test-mbscspn.c: New file.
72133
72134 2007-02-11  Bruno Haible  <bruno@clisp.org>
72135
72136         * modules/mbscasecmp-tests: New file.
72137         * tests/test-mbscasecmp.sh: New file.
72138         * tests/test-mbscasecmp.c: New file.
72139
72140 2007-02-11  Bruno Haible  <bruno@clisp.org>
72141
72142         Ensure O(n) worst-case complexity of mbscasestr.
72143         * lib/mbscasestr.c: Include stdbool.h.
72144         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72145         functions.
72146         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72147         the bookkeeping indicates that it's worth it.
72148         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72149
72150         * modules/mbscasestr-tests: New file.
72151         * tests/test-mbscasestr1.c: New file.
72152         * tests/test-mbscasestr2.sh: New file.
72153         * tests/test-mbscasestr2.c: New file.
72154         * tests/test-mbscasestr3.sh: New file.
72155         * tests/test-mbscasestr3.c: New file.
72156         * tests/test-mbscasestr4.sh: New file.
72157         * tests/test-mbscasestr4.c: New file.
72158         * m4/locale-tr.m4: New file.
72159
72160 2007-02-11  Bruno Haible  <bruno@clisp.org>
72161
72162         Ensure O(n) worst-case complexity of mbsstr.
72163         * lib/mbsstr.c: Include stdbool.h.
72164         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72165         functions.
72166         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72167         bookkeeping indicates that it's worth it.
72168         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72169
72170         * modules/mbsstr-tests: New file.
72171         * tests/test-mbsstr1.c: New file.
72172         * tests/test-mbsstr2.sh: New file.
72173         * tests/test-mbsstr2.c: New file.
72174         * tests/test-mbsstr3.sh: New file.
72175         * tests/test-mbsstr3.c: New file.
72176         * m4/locale-fr.m4: New file.
72177
72178 2007-02-11  Bruno Haible  <bruno@clisp.org>
72179
72180         * lib/mbsrchr.c (mbsrchr): Fix bug.
72181
72182         * modules/mbsrchr-tests: New file.
72183         * tests/test-mbsrchr.sh: New file.
72184         * tests/test-mbsrchr.c: New file.
72185
72186 2007-02-11  Bruno Haible  <bruno@clisp.org>
72187
72188         * lib/mbschr.c (mbschr): Fix bug.
72189
72190         * modules/mbschr-tests: New file.
72191         * tests/test-mbschr.sh: New file.
72192         * tests/test-mbschr.c: New file.
72193         * m4/locale-zh.m4: New file.
72194
72195 2007-02-11  Bruno Haible  <bruno@clisp.org>
72196
72197         Support for copying multibyte string iterators.
72198         * lib/mbiter.h: Include <string.h>.
72199         (mbiter_multi_copy): New function.
72200         (mbi_copy): New macro.
72201         * lib/mbuiter.h: Include <string.h>.
72202         (mbuiter_multi_copy): New function.
72203         (mbui_copy): New macro.
72204
72205 2007-02-11  Bruno Haible  <bruno@clisp.org>
72206
72207         New module mbslen.
72208         * modules/mbslen: New file.
72209         * lib/mbslen.c: New file.
72210         * lib/string_.h (mbslen): New declaration.
72211         * m4/mbslen.m4: New file.
72212         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72213         GNULIB_MBSLEN.
72214         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72215         * MODULES.html.sh (Internationalization functions): Add mbslen.
72216
72217 2007-02-11  Bruno Haible  <bruno@clisp.org>
72218
72219         Ensure O(n) worst-case complexity of strcasestr substitute.
72220         * lib/strcasestr.c: Include stdbool.h.
72221         (knuth_morris_pratt): New function.
72222         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72223         bookkeeping indicates that it's worth it.
72224         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72225
72226         * modules/strcasestr-tests: New file.
72227         * tests/test-strcasestr.c: New file.
72228
72229 2007-02-11  Bruno Haible  <bruno@clisp.org>
72230
72231         Ensure O(n) worst-case complexity of c_strcasestr.
72232         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72233         (knuth_morris_pratt): New function.
72234         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72235         the bookkeeping indicates that it's worth it.
72236         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72237
72238         * modules/c-strcasestr-tests: New file.
72239         * tests/test-c-strcasestr.c: New file.
72240
72241 2007-02-11  Bruno Haible  <bruno@clisp.org>
72242
72243         Ensure O(n) worst-case complexity of c_strstr.
72244         * lib/c-strstr.c: Include stdbool.h, string.h.
72245         (knuth_morris_pratt): New function.
72246         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72247         bookkeeping indicates that it's worth it.
72248         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72249
72250         * lib/c-strstr.c: Complete rewrite for maintainability.
72251
72252         * modules/c-strstr-tests: New file.
72253         * tests/test-c-strstr.c: New file.
72254
72255 2007-02-11  Bruno Haible  <bruno@clisp.org>
72256
72257         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72258         5.2.1 and earlier, whereby \055 was treated just like the range
72259         delimiter '-'.
72260         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72261
72262 2007-02-08  Bruno Haible  <bruno@clisp.org>
72263
72264         * modules/regex (Depends-on): Add stdbool.
72265         Reported by Dalibor Topic <robilad@kaffe.org>.
72266
72267 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72268
72269         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72270         Prefer returning from main to exiting from it.
72271         Remove unnecessary parens after sizeof.
72272
72273 2007-02-05  Bruno Haible  <bruno@clisp.org>
72274
72275         New module mbssep.
72276         * modules/mbssep: New file.
72277         * lib/mbssep.c: New file.
72278         * lib/string_.h (strsep): Add a conditional link warning.
72279         (mbssep): New declaration.
72280         * m4/mbssep.m4: New file.
72281         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72282         GNULIB_MBSSEP.
72283         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72284         * MODULES.html.sh (Internationalization functions): Add mbssep.
72285
72286 2007-02-05  Bruno Haible  <bruno@clisp.org>
72287
72288         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72289         Optimize search in case of 1 delimiter.
72290
72291 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72292
72293         * lib/acl.h: Include sys/types.h before sys/acl.h.
72294
72295 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72296
72297         Merge upstream fix for glibc bugzilla #3957:
72298
72299         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72300
72301         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72302         bit for RE_HAT_LISTS_NOT_NEWLINE.
72303         (build_charclass_op): Remove bogus comment.
72304
72305 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72306
72307         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72308
72309 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72312         * lib/memmem.c [!defined _LIBC]: Include config.h.
72313
72314 2007-02-04  Bruno Haible  <bruno@clisp.org>
72315
72316         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72317         warning message.
72318
72319 2007-02-04  Bruno Haible  <bruno@clisp.org>
72320
72321         New module mbstok_r.
72322         * modules/mbstok_r: New file.
72323         * lib/mbstok_r.c: New file.
72324         * lib/string_.h (strtok_r): Change argument names to match the
72325         comments. Add a conditional link warning.
72326         (mbstok_r): New declaration.
72327         * m4/mbstok_r.m4: New file.
72328         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72329         GNULIB_MBSTOK_R.
72330         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72331         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72332
72333 2007-02-04  Bruno Haible  <bruno@clisp.org>
72334
72335         New module mbsspn.
72336         * modules/mbsspn: New file.
72337         * lib/mbsspn.c: New file.
72338         * lib/string_.h (strspn): Add a conditional link warning.
72339         (mbsspn): New declaration.
72340         * m4/mbsspn.m4: New file.
72341         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72342         GNULIB_MBSSPN.
72343         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72344         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72345
72346 2007-02-04  Bruno Haible  <bruno@clisp.org>
72347
72348         New module mbspbrk.
72349         * modules/mbspbrk: New file.
72350         * lib/mbspbrk.c: New file.
72351         * lib/string_.h (strpbrk): Add a conditional link warning.
72352         (mbspbrk): New declaration.
72353         * m4/mbspbrk.m4: New file.
72354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72355         GNULIB_MBSPBRK.
72356         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72357         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72358
72359 2007-02-04  Bruno Haible  <bruno@clisp.org>
72360
72361         New module mbscspn.
72362         * modules/mbscspn: New file.
72363         * lib/mbscspn.c: New file.
72364         * lib/string_.h (strcspn): Add a conditional link warning.
72365         (mbscspn): New declaration.
72366         * m4/mbscspn.m4: New file.
72367         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72368         GNULIB_MBSCSPN.
72369         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72370         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72371
72372 2007-02-04  Bruno Haible  <bruno@clisp.org>
72373
72374         New module mbscasestr, reduced goal of strcasestr.
72375         * modules/mbscasestr: New file.
72376         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72377         (mbscasestr): Renamed from strcasestr.
72378         * lib/strcasestr.c: Don't include mbuiter.h.
72379         (strcasestr): Remove support for multibyte locales.
72380         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72381         Change the conditional link warning.
72382         (mbscasestr): New declaration.
72383         * m4/mbscasestr.m4: New file.
72384         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72385         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72386         REPLACE_STRCASESTR.
72387         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72389         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72390         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72391         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72392         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72393         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72394         (Depends-on): Remove mbuiter.
72395         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72396
72397 2007-02-04  Bruno Haible  <bruno@clisp.org>
72398
72399         Simplify handling of strncasecmp.
72400         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72401         the conditional link warning.
72402         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72403         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72404         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72405         * modules/strcase (configure.ac): Don't invoke
72406         gl_STRING_MODULE_INDICATOR.
72407         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72408
72409 2007-02-04  Bruno Haible  <bruno@clisp.org>
72410
72411         New module mbscasecmp, reduced goal of strcasecmp.
72412         * modules/mbscasecmp: New file.
72413         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72414         (mbscasecmp): Renamed from strcasecmp.
72415         * lib/strcasecmp.c: Don't include mbuiter.h.
72416         (strcasecmp): Remove support for multibyte locales.
72417         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72418         Change the conditional link warning.
72419         (mbscasecmp): New declaration.
72420         * m4/mbscasecmp.m4: New file.
72421         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72422         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72423         REPLACE_STRCASECMP.
72424         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72426         GNULIB_MBSCASECMP.
72427         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72428         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72429         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72430         (Depends-on): Remove mbuiter.
72431         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72432
72433 2007-02-04  Bruno Haible  <bruno@clisp.org>
72434
72435         New module mbsstr. Remove module strstr.
72436         * modules/mbsstr: New file.
72437         * modules/strstr: Remove file.
72438         * lib/mbsstr.c: Renamed from lib/strstr.c.
72439         (mbsstr): Renamed from strstr.
72440         * lib/string_.h (strstr): Remove declaration. Change the conditional
72441         link warning.
72442         (mbsstr): New declaration.
72443         * m4/mbsstr.m4: New file.
72444         * m4/strstr.m4: Remove file.
72445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72446         REPLACE_STRSTR.
72447         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72448         Don't initialize GNULIB_STRSTR.
72449         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72450         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72451         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72452         (Support for systems lacking ANSI C 89): Remove strstr.
72453
72454 2007-02-04  Bruno Haible  <bruno@clisp.org>
72455
72456         New module mbsrchr.
72457         * modules/mbsrchr: New file.
72458         * lib/mbsrchr.c: New file.
72459         * lib/string_.h (strrchr): Add a conditional link warning.
72460         (mbsrchr): New declaration.
72461         * m4/mbsrchr.m4: New file.
72462         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72463         GNULIB_MBSRCHR.
72464         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72465         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72466
72467 2007-02-04  Bruno Haible  <bruno@clisp.org>
72468
72469         New module mbschr.
72470         * modules/mbschr: New file.
72471         * lib/mbschr.c: New file.
72472         * lib/string_.h (strchr): Add a conditional link warning.
72473         (mbschr): New declaration.
72474         * m4/mbschr.m4: New file.
72475         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72476         GNULIB_MBSCHR.
72477         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72478         * MODULES.html.sh (Internationalization functions): Add mbschr.
72479
72480 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72481
72482         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72483
72484         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72485
72486 2007-02-04  Bruno Haible  <bruno@clisp.org>
72487
72488         New module description section 'configure.ac-early'.
72489         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72490         (func_get_autoconf_early_snippet): New function.
72491         (func_import, func_create_testdir): Use it. Remove special cases for
72492         modules 'extensions' and 'lock'.
72493         * modules/extensions (configure.ac-early): Require
72494         gl_USE_SYSTEM_EXTENSIONS.
72495         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72496
72497 2007-02-04  Bruno Haible  <bruno@clisp.org>
72498
72499         Make use of gcj-4.3's -fsource and -ftarget option.
72500         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72501         and if so try the options -fsource and -ftarget.
72502         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72503         source_version, ftarget_option, target_version arguments.
72504         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72505         (is_envjavac_oldgcj_14_14_usable): Renamed from
72506         is_envjavac_gcj_14_14_usable.
72507         (is_envjavac_oldgcj_14_13_usable): Renamed from
72508         is_envjavac_gcj_14_13_usable.
72509         (is_gcj_present): Update.
72510         (is_gcj_43, is_gcj43_usable): New functions.
72511         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72512         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72513         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72514         try the options -fsource and -ftarget.
72515
72516 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72519         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72520         larger value.
72521
72522 2007-02-03  Jim Meyering  <jim@meyering.net>
72523
72524         Give tools a better chance to allocate space for very large buffers.
72525         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72526
72527         Make pwd and readlink work also when run with an unreadable parent dir
72528         on systems with openat support.
72529         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72530         provided getcwd function, even when we have openat support.
72531         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72532
72533 2007-02-02  Bruno Haible  <bruno@clisp.org>
72534
72535         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72536         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72537         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72538         portability problems if one of these functions is only used on specific
72539         platforms.
72540         Reported by Paul Eggert.
72541
72542 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72543
72544         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72545         is causing more trouble than it's curing.
72546         * lib/regex_internal.h (__mempcpy): Remove.
72547         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72548         (and make the code a tad smaller to boot).
72549         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72550
72551 2007-02-02  Jim Meyering  <jim@meyering.net>
72552
72553         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72554         section, not in the Makefile.am: one.
72555
72556 2007-02-02  Eric Blake  <ebb9@byu.net>
72557
72558         * lib/strchrnul.c: Always include config.h first.
72559
72560         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72561         gnulib strstr is not necessary here.
72562
72563 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72564
72565         * m4/socklen.m4: Fix typo.
72566
72567 2007-02-02  Eric Blake  <ebb9@byu.net>
72568
72569         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72570         * modules/netinet_in (Makefile.am): Likewise.
72571
72572 2007-02-01  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/string_.h (GL_LINK_WARNING): New macro.
72575         (strcasecmp, strstr, strcasestr): If provided by the system,
72576         conditionally define as a macro that leads to a warning instead of to
72577         an error.
72578         (strncasecmp): Conditionally define as a macro that leads to a warning.
72579
72580 2007-02-01  Karl Berry  <karl@gnu.org>
72581
72582         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72583
72584 2007-02-01  Bruno Haible  <bruno@clisp.org>
72585
72586         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72587         renamings.
72588
72589 2007-02-01  Eric Blake  <ebb9@byu.net>
72590
72591         * modules/regex (Depends-on): Revert dependence on mempcpy.
72592         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72593         module's definition of mempcpy.
72594         Reported by Paul Eggert.
72595
72596 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72597
72598         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72599         the symbol XYZ before redefining it.  This fixes a problem with
72600         programs that don't use XYZ, when compiled on systems that define
72601         XYZ to something else.
72602
72603 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72604
72605         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72606         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72607         writeable to group or other and (2) is intended to have a special
72608         mode bit that is set or cleared.  In such a case, the directory
72609         should be neither group- nor other-writeable until the special
72610         mode bits are right.
72611
72612 2007-01-31  Eric Blake  <ebb9@byu.net>
72613
72614         * modules/mountlist (Depends-on): Add strstr.
72615
72616         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72617         bug.
72618         * modules/string (Makefile.am): Remove redundant replacement.
72619         * modules/regex (Depends-on): Add mempcpy.
72620
72621 2007-01-31  Bruno Haible  <bruno@clisp.org>
72622
72623         New module description field 'Link'.
72624         * gnulib-tool (func_usage): Document --extract-link-directive.
72625         (sed_extract_prog): Recognize 'Link' directive.
72626         (func_get_link_directive): New function.
72627         (func_import): Show summary of link directives.
72628         Handle --extract-link-directive option.
72629         * modules/acl (Link): New section.
72630         * modules/clock-time (Link): New section.
72631         * modules/euidaccess (Link): New section.
72632         * modules/gettext (Link): New section.
72633         * modules/iconv (Link): New section.
72634         * modules/lock (Link): New section.
72635         * modules/nanosleep (Link): New section.
72636         * modules/readline (Link): New section.
72637
72638 2007-01-27  Bruno Haible  <bruno@clisp.org>
72639
72640         Enforce the use of gnulib modules for unportable <string.h> functions.
72641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72642         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72643         (gl_HEADER_STRING_H_BODY): Require it.
72644         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72645         the symbol XYZ to one that gives a link error.
72646         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72647         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72648         * modules/mempcpy (configure.ac): Likewise.
72649         * modules/memrchr (configure.ac): Likewise.
72650         * modules/stpcpy (configure.ac): Likewise.
72651         * modules/stpncpy (configure.ac): Likewise.
72652         * modules/strcase (configure.ac): Likewise.
72653         * modules/strcasestr (configure.ac): Likewise.
72654         * modules/strchrnul (configure.ac): Likewise.
72655         * modules/strdup (configure.ac): Likewise.
72656         * modules/strndup (configure.ac): Likewise.
72657         * modules/strnlen (configure.ac): Likewise.
72658         * modules/strpbrk (configure.ac): Likewise.
72659         * modules/strsep (configure.ac): Likewise.
72660         * modules/strstr (configure.ac): Likewise.
72661         * modules/strtok_r (configure.ac): Likewise.
72662
72663 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72664
72665         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72666
72667 2007-01-30  Jim Meyering  <jim@meyering.net>
72668
72669         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72670
72671 2007-01-29  Bruno Haible  <bruno@clisp.org>
72672
72673         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72674         * lib/execute.c: Likewise.
72675         * lib/pipe.c: Likewise.
72676         * lib/printf-args.h: Likewise.
72677         * lib/printf-args.c: Likewise.
72678         * lib/printf-parse.c: Likewise.
72679         * lib/vasnprintf.c: Likewise.
72680
72681 2007-01-29  Eric Blake  <ebb9@byu.net>
72682
72683         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72684         declaration.
72685
72686 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72687
72688         * lib/strptime.h (strptime): Use 'restrict' for args where
72689         POSIX requires this.
72690         * lib/strptime.c (strptime): Likewise.
72691         Change license notice from LGPL to GPL, since gnulib-tool will
72692         change this as needed.
72693         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72694         defined.
72695         Include "strptime.h" first, to check interface.
72696         Do not #undef _LIBC and _NL_CURRENT.
72697         Do not include <stdlib.h>; no longer needed.
72698         Include "time_r.h" and declare ptime_locale_status
72699         only if _LIBC is not defined.
72700         (__P): Remove unused macro.
72701         (match_string): Bring back glibc version, but use it only if _LIBC
72702         is defined.
72703         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72704         Remove unnecessary assertion and abort() call.
72705         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72706         * m4/strptime.m4: Fix serial number comment.
72707         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72708         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72709         (Depends-on): Add time_r.
72710
72711 2007-01-29  Bruno Haible  <bruno@clisp.org>
72712
72713         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72714         strptime.
72715         * modules/strptime (Depends-on): Add stdbool.
72716         * lib/strptime.h: Include <time.h> always. Add comments.
72717
72718 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72719
72720         * modules/strptime: New file.
72721         * lib/strptime.h: New file.
72722         * lib/strptime.c: New file.
72723         * m4/strptime.m4: New file.
72724
72725 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72726
72727         * MODULES.html.sh: New module mpsort.
72728         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72729
72730         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72731         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72732         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72733         All uses changed.
72734         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72735         All uses changed.
72736         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72737         to _Restrict_.
72738         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72739         the parameter matches the prototype.
72740
72741 2007-01-28  Jim Meyering  <jim@meyering.net>
72742
72743         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72744         sys/time.h here, reverting that part of the previous patch:
72745         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72746
72747 2007-01-28  Bruno Haible  <bruno@clisp.org>
72748
72749         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72750         value of $(SYS_TIME_H).
72751         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72752         remove it conditionally, too. [added by Jim Meyering]
72753         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72754         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72755         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72756         GETTIMEOFDAY_REPLACEMENT to 1.
72757
72758 2007-01-28  Bruno Haible  <bruno@clisp.org>
72759
72760         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72761         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72763         Set UNISTD_H instead of UNISTD_H2.
72764         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72765
72766 2007-01-28  Bruno Haible  <bruno@clisp.org>
72767
72768         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72769         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72770
72771 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72772
72773         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72774         (func_create_testdir): Ensure C locale for `grep' and `tr'
72775         character ranges.
72776         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72777         ACLOCAL_AMFLAGS parsing state machine.
72778
72779 2007-01-27  Bruno Haible  <bruno@clisp.org>
72780
72781         * modules/unistr/base: Update.
72782
72783 2007-01-27  Bruno Haible  <bruno@clisp.org>
72784
72785         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72786         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72787         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72788         modules/unistr/u32-mbtouc.
72789         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72790         * lib/unistr.h: Update.
72791         * lib/linebreak.c: Update.
72792         * modules/unistr/u32-mbtouc: Renamed from
72793         modules/unistr/u32-mbtouc-safe.
72794         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72795         * lib/unistr.h: Update.
72796         * lib/unistr/u32-to-u8.c: Update.
72797         * lib/unistr/u32-to-u16.c: Update.
72798
72799 2007-01-27  Bruno Haible  <bruno@clisp.org>
72800
72801         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72802         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72803         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72804         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72805         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72806         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72807         modules/unistr/u16-mbtouc.
72808         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72809         * lib/unistr.h: Update.
72810         * lib/linebreak.c: Update.
72811         * modules/linebreak: Update.
72812         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72813         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72814         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72815         * modules/unistr/u16-mbtouc: Renamed from
72816         modules/unistr/u16-mbtouc-safe.
72817         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72818         * lib/unistr.h: Update.
72819         * lib/unistr/u16-to-u8.c: Update.
72820         * modules/unistr/u16-to-u8: Update.
72821         * lib/unistr/u16-to-u32.c: Update.
72822         * modules/unistr/u16-to-u32: Update.
72823
72824 2007-01-27  Bruno Haible  <bruno@clisp.org>
72825
72826         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72827         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72828         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72829         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72830         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72831         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72832         modules/unistr/u8-mbtouc.
72833         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72834         * lib/unistr.h: Update.
72835         * lib/striconveh.c: Update.
72836         * modules/striconveh: Update.
72837         * lib/linebreak.c: Update.
72838         * modules/linebreak: Update.
72839         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72840         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72841         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72842         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72843         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72844         * lib/unistr.h: Update.
72845         * lib/striconveh.c: Update.
72846         * modules/striconveh: Update.
72847         * lib/unistr/u8-to-u16.c: Update.
72848         * modules/unistr/u8-to-u16: Update.
72849         * lib/unistr/u8-to-u32.c: Update.
72850         * modules/unistr/u8-to-u32: Update.
72851
72852 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72853
72854         Sync from Libtool.
72855         * lib/argz.c: Do not include strings.h nor memory.h, include
72856         string.h unconditionally.  Patch by Simon Josefsson.
72857
72858 2007-01-27  Bruno Haible  <bruno@clisp.org>
72859
72860         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72861         from gl_HEADER_STRING_H_BODY.
72862         (gl_HEADER_STRING_H_BODY): Require it.
72863         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72864         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72865         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72866         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72867         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72868         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72870         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72871         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72872         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72873         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72874         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72875         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72876         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72877         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72878
72879 2007-01-27  Bruno Haible  <bruno@clisp.org>
72880
72881         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72882         check_PROGRAMS into noinst_PROGRAMS.
72883         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72884         check_PROGRAMS in this case.
72885         (func_import): Set for_test to false.
72886         (func_create_testdir): Set for_test to true.
72887
72888 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72889             Bruno Haible  <bruno@clisp.org>
72890
72891         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72892         (Depends-on): Add string.
72893         (Includes): Use <string.h> instead of strcasestr.h.
72894         * modules/string (Makefile.am): Also substitute the value of
72895         REPLACE_STRCASESTR.
72896         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72897         assume strcasestr is declared in <string.h> not <strings.h>. Also
72898         set REPLACE_STRCASESTR.
72899         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72900         REPLACE_STRCASESTR.
72901         * lib/strcasestr.h: Remove file.
72902         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72903         * lib/string_.h (strcasestr): New declaration.
72904
72905 2007-01-27  Bruno Haible  <bruno@clisp.org>
72906
72907         * lib/string_.h: Use 'extern'.
72908
72909 2007-01-27  Jim Meyering  <jim@meyering.net>
72910
72911         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72912         of set-but-not-used local, "q".
72913
72914         * lib/mempcpy.c: Include <config.h> before <string.h>.
72915         This fixes a compilation error on HP-UX, due to the system's
72916         "restrict"-using mempcpy prototype.
72917
72918 2007-01-26  Bruno Haible  <bruno@clisp.org>
72919
72920         Small optimization.
72921         * lib/javacomp.c: Include c-strstr.h.
72922          (is_envjavac_gcj): Use c_strstr instead of strstr.
72923         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72924
72925 2007-01-26  Bruno Haible  <bruno@clisp.org>
72926
72927         * MODULES.html.sh (Unicode string functions): Add the new modules.
72928
72929         * modules/uniconv/u32-strconv-to-locale: New file.
72930         * lib/uniconv/u32-strconv-to-locale.c: New file.
72931
72932         * modules/uniconv/u16-strconv-to-locale: New file.
72933         * lib/uniconv/u16-strconv-to-locale.c: New file.
72934
72935         * modules/uniconv/u8-strconv-to-locale: New file.
72936         * lib/uniconv/u8-strconv-to-locale.c: New file.
72937
72938         * modules/uniconv/u32-strconv-from-locale: New file.
72939         * lib/uniconv/u32-strconv-from-locale.c: New file.
72940
72941         * modules/uniconv/u16-strconv-from-locale: New file.
72942         * lib/uniconv/u16-strconv-from-locale.c: New file.
72943
72944         * modules/uniconv/u8-strconv-from-locale: New file.
72945         * lib/uniconv/u8-strconv-from-locale.c: New file.
72946
72947         * modules/uniconv/u32-strconv-to-enc: New file.
72948         * lib/uniconv/u32-strconv-to-enc.c: New file.
72949         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72950         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72951
72952         * modules/uniconv/u16-strconv-to-enc: New file.
72953         * lib/uniconv/u16-strconv-to-enc.c: New file.
72954         * lib/uniconv/u-strconv-to-enc.h: New file.
72955         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72956         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72957
72958         * modules/uniconv/u8-strconv-to-enc: New file.
72959         * lib/uniconv/u8-strconv-to-enc.c: New file.
72960         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72961         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72962
72963         * modules/uniconv/u32-strconv-from-enc: New file.
72964         * lib/uniconv/u32-strconv-from-enc.c: New file.
72965         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72966         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72967
72968         * modules/uniconv/u16-strconv-from-enc: New file.
72969         * lib/uniconv/u16-strconv-from-enc.c: New file.
72970         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72971         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72972
72973         * modules/uniconv/u8-strconv-from-enc: New file.
72974         * lib/uniconv/u8-strconv-from-enc.c: New file.
72975         * lib/uniconv/u-strconv-from-enc.h: New file.
72976         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72977         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72978
72979         * modules/uniconv/u32-conv-from-enc: New file.
72980         * lib/uniconv/u32-conv-from-enc.c: New file.
72981         * modules/uniconv/u32-conv-from-enc-tests: New file.
72982         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72983
72984         * modules/uniconv/u16-conv-from-enc: New file.
72985         * lib/uniconv/u16-conv-from-enc.c: New file.
72986         * lib/uniconv/u-conv-from-enc.h: New file.
72987         * modules/uniconv/u16-conv-from-enc-tests: New file.
72988         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72989
72990         * modules/uniconv/u8-conv-from-enc: New file.
72991         * lib/uniconv/u8-conv-from-enc.c: New file.
72992         * modules/uniconv/u8-conv-from-enc-tests: New file.
72993         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72994
72995         * modules/uniconv/base: New file.
72996         * lib/uniconv.h: New file.
72997
72998 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72999
73000         * doc/gnulib-tool.texi (Initial import): Update to match current
73001         behavior with strdup module.
73002         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73003         * lib/memmem.h: Remove; all uses removed.  This is now done
73004         by <string.h>.
73005         * lib/mempcpy.h: Likewise.
73006         * lib/memrchr.h: Likewise.
73007         * lib/stpcpy.h: Likewise.
73008         * lib/stpncpy.h: Likewise.
73009         * lib/strcase.h: Likewise.
73010         * lib/strchrnul.h: Likewise.
73011         * lib/strdup.h: Likewise.
73012         * lib/strndup.h: Likewise.
73013         * lib/strnlen.h: Likewise.
73014         * lib/strpbrk.h: Likewise.
73015         * lib/strsep.h: Likewise.
73016         * lib/strstr.h: Likewise.
73017         * lib/strtok_r.h: Likewise.
73018         * lib/string_.h: New file.
73019         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73020         Rely on <string.h> instead.
73021         * lib/canon-host.c: Likewise.
73022         * lib/chdir-long.c: Likewise.
73023         * lib/concatpath.c: Likewise.
73024         * lib/exclude.c: Likewise.
73025         * lib/fchdir.c: Likewise.
73026         * lib/getaddrinfo.c: Likewise.
73027         * lib/getcwd.c: Likewise.
73028         * lib/getsubopt.c: Likewise.
73029         * lib/glob.c: Likewise.
73030         * lib/hard-locale.c: Likewise.
73031         * lib/iconvme.c: Likewise.
73032         * lib/javacomp.c: Likewise.
73033         * lib/mempcpy.c: Likewise.
73034         * lib/memrchr.c: Likewise.
73035         * lib/regex_internal.h: Likewise.
73036         * lib/stpncpy.c: Likewise.
73037         * lib/strcasecmp.c: Likewise.
73038         * lib/strchrnul.c: Likewise.
73039         * lib/strdup.c: Likewise.
73040         * lib/striconv.c: Likewise.
73041         * lib/striconveh.c: Likewise.
73042         * lib/striconveha.c: Likewise.
73043         * lib/strncasecmp.c: Likewise.
73044         * lib/strndup.c: Likewise.
73045         * lib/strnlen.c: Likewise.
73046         * lib/strsep.c: Likewise.
73047         * lib/strstr.c: Likewise.
73048         * lib/strtok_r.c: Likewise.
73049         * lib/userspec.c: Likewise.
73050         * lib/w32spawn.h: Likewise.
73051         * lib/xstrndup.c: Likewise.
73052         * lib/mountlist.c (strstr): Remove decl.
73053         * m4/string_h.m4: New file.
73054         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73055         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73056         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73057         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73058         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73059         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73060         Set REPLACE_STRCASECMP if necessary.
73061         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73062         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73063         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73064         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73065         HAVE_DECL_STRDUP if necessary.
73066         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73067         since gl_FUNC_STRNDUP does that now.
73068         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73069         Check for decl here...
73070         (gl_PREREQ_STRNLEN): ... not here.
73071         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73072         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73073         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73074         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73075         necessary.
73076         * modules/string: New file.
73077         * modules/memmem (Files): Remove special-purpose include file.
73078         (Depends-on): Add string.
73079         (Include): Include <string.h>, not the removed file.
73080         * modules/mempcpy: Likewise.
73081         * modules/memrchr: Likewise.
73082         * modules/stpcpy: Likewise.
73083         * modules/stpncpy: Likewise.
73084         * modules/strcase: Likewise.
73085         * modules/strchrnul: Likewise.
73086         * modules/strdup: Likewise.
73087         * modules/strndup: Likewise.
73088         * modules/strnlen: Likewise.
73089         * modules/strpbrk: Likewise.
73090         * modules/strsep: Likewise.
73091         * modules/strstr: Likewise.
73092         * modules/strtok_r: Likewise.
73093         * tests/test-dirname.c: Don't include "strdup.h", since
73094         <string.h> now suffices.
73095         * tests/test-memmem.c: Don't include "memmem.h", since
73096         <string.h> now suffices.
73097
73098 2007-01-25  Bruno Haible  <bruno@clisp.org>
73099
73100         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73101         *resultp is 0.
73102
73103         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73104         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73105         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73106         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73107
73108         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73109         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73110         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73111         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73112         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73113         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73114
73115 2007-01-24  Bruno Haible  <bruno@clisp.org>
73116
73117         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73118         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73119         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73120         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73121         gl_FUNC_FTS_CORE.
73122         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73123         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73124         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73125         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73126         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73127         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73128         gl_FUNC_FCHOWNAT.
73129         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73130         gl_FUNC_STRFTIME.
73131         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73132         Reported by Ralf Wildenhues.
73133
73134 2007-01-24  Bruno Haible  <bruno@clisp.org>
73135
73136         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73137         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73138         gl_GETADDRINFO.
73139         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73140         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73141         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73142
73143 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73144
73145         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73146         Don't use 'exit'; just return from 'main'.
73147         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73148
73149         * lib/fnmatch_.h: Readjust white space and comments to match
73150         glibc, to avoid spurious diffs.
73151
73152 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73153
73154         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73155         2004-12-01 change by Jakub Jelinek, since this code won't compile
73156         if !LIBC.  Problem reported by Bob Proulx.
73157
73158 2007-01-23  Bruno Haible  <bruno@clisp.org>
73159
73160         * lib/striconveh.c: Include c-strcaseeq.h.
73161         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73162         * modules/striconveh (Depends-on): Add c-strcaseeq.
73163
73164 2007-01-23  Bruno Haible  <bruno@clisp.org>
73165
73166         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73167
73168         * modules/c-strcaseeq: New file.
73169         * lib/c-strcaseeq.h: New file.
73170
73171         * modules/streq: New file.
73172         * lib/streq.h: New file.
73173
73174 2007-01-23  Bruno Haible  <bruno@clisp.org>
73175
73176         * modules/striconveha-tests: New file.
73177         * tests/test-striconveha.c: New file.
73178
73179         * lib/striconveha.h: Include <stdbool.h>.
73180         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73181         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73182         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73183         (mem_iconveha): New function.
73184         (str_iconveha_notranslit): Renamed from str_iconveha.
73185         (str_iconveha): New function.
73186         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73187         c-strcase.
73188
73189 2007-01-23  Bruno Haible  <bruno@clisp.org>
73190
73191         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73192         encodings without forgiving before trying any encoding with handler.
73193         (str_iconveha): Try all encodings without forgiving before trying any
73194         encoding with handler.
73195
73196 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         Import the following changes from libc.
73199
73200         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73201
73202         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73203
73204         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73205
73206         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73207         normal_bracket label.
73208
73209         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73210
73211         [BZ #361]
73212         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73213         to normal_bracket after fetching the next character.
73214
73215 2007-01-22  Bruno Haible  <bruno@clisp.org>
73216
73217         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73218         argument.
73219         * lib/striconveh.c (iconv_carefully_1): New function.
73220         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73221         argument.
73222         (str_cd_iconveh): Update.
73223         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73224         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73225         * tests/test-striconveh.c (MAGIC): New macro.
73226         (new_offsets): New function.
73227         (main): Test call with and without offsets.
73228
73229 2007-01-22  Bruno Haible  <bruno@clisp.org>
73230
73231         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73232         * modules/sys_select (Makefile.am): Likewise.
73233         * modules/sys_socket (Makefile.am): Likewise.
73234         * modules/sys_time (Makefile.am): Likewise.
73235
73236 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73237
73238         * modules/gettimeofday (License): Change from GPL to LGPL, since
73239         gettimeofday is a library function.
73240
73241 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73242
73243         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73244
73245 2007-01-21  Bruno Haible  <bruno@clisp.org>
73246
73247         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73248
73249 2007-01-21  Bruno Haible  <bruno@clisp.org>
73250
73251         * modules/striconveha: New file.
73252         * lib/striconveha.h: New file.
73253         * lib/striconveha.c: New file.
73254         * MODULES.html.sh (Internationalization functions): Add striconveha.
73255         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73256         string.
73257         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73258
73259 2007-01-21  Bruno Haible  <bruno@clisp.org>
73260
73261         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73262         * lib/striconveh.c (str_iconveh): Likewise.
73263
73264 2007-01-21  Bruno Haible  <bruno@clisp.org>
73265
73266         * lib/striconveh.h (mem_iconveh): New declaration.
73267         * lib/striconveh.c (mem_iconveh): New function.
73268         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73269
73270 2007-01-21  Bruno Haible  <bruno@clisp.org>
73271
73272         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73273
73274         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73275         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73276         original result buffer.
73277         (str_cd_iconveh): Update.
73278         * tests/test-striconveh.c (main): Update.
73279
73280         * lib/striconv.h (mem_cd_iconv): Change specification.
73281         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73282         result buffer.
73283         (str_cd_iconv): Update.
73284         * tests/test-striconv.c (main): Update.
73285
73286 2007-01-21  Bruno Haible  <bruno@clisp.org>
73287
73288         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73289
73290 2007-01-20  Jim Meyering  <jim@meyering.net>
73291
73292         * lib/userspec.c (parse_with_separator): If a user or group string
73293         starts with "+", skip the corresponding name-to-ID look-up, since
73294         such a look-up must fail: user and group names may not include "+".
73295
73296 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73297
73298         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73299         since we now assume the sys_time module.
73300         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73301         check for sys/time.h; no longer needed.
73302         * modules/poll (Depends-on): Depend on sys_time.
73303
73304 2007-01-18  Bruno Haible  <bruno@clisp.org>
73305
73306         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73307         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73308
73309         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73310         gettimeofday.
73311
73312         * tests/test-gettimeofday.c: Include <time.h>.
73313         (dummy): Remove variable.
73314
73315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73316         gl_HEADER_SYS_TIME_H.
73317         (gl_HEADER_SYS_TIME_H): New macro.
73318
73319         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73320         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73321         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73322         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73323         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73324         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73325         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73326         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73327         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73328         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73329         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73330
73331         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73332         last change; it caused a compilation error when cross-compiling to
73333         Cygwin.
73334
73335 2007-01-18  Jim Meyering  <jim@meyering.net>
73336
73337         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73338         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73339         than the race-prone "test -d sys || mkdir sys".
73340         (configure.ac): Use AC_PROG_MKDIR_P.
73341         * modules/sys_select: Likewise.
73342         * modules/sys_socket: Likewise.
73343         * modules/sys_time: Likewise.
73344
73345 2007-01-18  Eric Blake  <ebb9@byu.net>
73346
73347         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73348         replace gettimeofday.
73349         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73350         name, to avoid infinite recursion.
73351
73352 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73355         module sys_time.
73356         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73357         assume timespec.h defines struct timeval.
73358         * lib/settime.c: Likewise.
73359         * lib/utimens.c: Likewise.
73360         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73361         since we now assume the gettimeofday module.
73362         * lib/tempname.c (__gen_tempname): Likewise.
73363         * lib/gettimeofday.h: Remove.
73364         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73365         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73366         Include <time.h>, for 'time()'.
73367         (localtime_buffer_addr): Also use this workaround if
73368         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73369         to simplify the uses.  All uses changed.
73370         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73371         that #undef is inside {}, and 'const' follows type name consistently.
73372         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73373         (gettimeofday): Do not use the maximum possible value for
73374         tv->tv_usec, since that might break usages other than ls.c.
73375         Instead, we'll leave ls.c alone.  This undoes today's patch
73376         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73377         we've never observed the problem but might as well keep the
73378         canary.
73379         * lib/nanosleep.c: Include timespec.h first, for interface check.
73380         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73381         now assume the sys_time module.
73382         * lib/tempname.c: Likewise.
73383         * lib/timespec.h: Likewise.
73384         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73385         needed.
73386         * lib/strftime.c: Likewise.
73387         * lib/timespec.h: Likewise.
73388         * lib/posixtm.c: Include posixtm.h first, for interface check.
73389         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73390         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73391         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73392         * lib/sys_time_.h: New file.
73393         * lib/timespec.h (struct timespec): Use long int, not long.
73394         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73395         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73396         Remove obsolescent call to AC_HEADER_TIME.
73397         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73399         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73400         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73401         Likewise.
73402         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73403         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73405         into the sys_time module.  Check for gettimeofday just once.
73406         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73407         for gettimeofday signature to just check the signature.  Merely
73408         compile it, since linking doesn't test signature.  Improve test for
73409         whether gettimeofday.o is actually needed.
73410         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73411         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73412         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73413         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73414         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73415         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73416         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73417         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73418         than worrying about sys/time.h.
73419         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73420         Don't bother worrying about TIME_WITH_SYS_TIME.
73421         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73422         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73423         * m4/sys_time_h.m4: New file.
73424         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73425         Don't include sys/time.h.  Return from main rather than exiting.
73426         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73427         all uses changed.
73428         * modules/gethrxtime (Depends-on): Add sys_time.
73429         * modules/gettime (Depends-on): Likewise.
73430         * modules/gettimeofday (Depends-on): Likewise.
73431         * modules/nanosleep (Depends-on): Likewise.
73432         * modules/settime (Depends-on): Likewise.
73433         * modules/tempname (Depends-on): Likewise.
73434         * modules/utimens (Depends-on): Likewise.
73435         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73436         (Include): Change back to <sys/time.h>.
73437         (Maintainer): Add self.
73438         * modules/sys_time: New file.
73439         * modules/tempname (Depends-on): Add gettimeofday.
73440         * tests/test-gettimeofday.c: Include <sys/time.h>
73441         rather than gettimeofday.h.
73442
73443 2007-01-17  Bruno Haible  <bruno@clisp.org>
73444
73445         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73446         the license default to GPL.
73447         (func_create_testdir): Don't complain if a module is LGPL and its
73448         tests module depends on GPLed modules.
73449
73450 2007-01-17  Bruno Haible  <bruno@clisp.org>
73451
73452         * lib/gettimeofday.c (gettimeofday): Add code for the case
73453         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73454         maximum possible value for tv->tv_usec, rather than the minimum one.
73455
73456 2005-10-08  Martin Lambers  <marlam@marlam.de>
73457 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73458 2007-01-16  Bruno Haible  <bruno@clisp.org>
73459
73460         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73461         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73462         gl_FUNC_GETTIMEOFDAY.
73463         (Include): Add gettimeofday.h.
73464         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73465         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73466         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73467         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73468         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73469         * lib/gettimeofday.h: New file.
73470         * lib/gettimeofday.c: Include <sys/timeb.h>.
73471         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73472         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73473         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73474         fall back on time().
73475
73476         * tests/test-gettimeofday.c: New file.
73477         * modules/gettimeofday-tests: New file.
73478
73479 2007-01-16  Eric Blake  <ebb9@byu.net>
73480
73481         * modules/fnmatch (Depends-on): Depend on wchar.
73482         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73483         * m4/fnmatch.m4: Likewise.
73484         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73485         * m4/mbchar.m4: Likewise.
73486         * modules/mbswidth (Depends-on): Depend on wchar.
73487         * lib/mbswidth.c: Assume <wchar.h>.
73488         * m4/mbswidth.m4: Likewise.
73489         * modules/quotearg (Depends-on): Depend on wchar.
73490         * lib/quotearg.c: Assume <wchar.h>.
73491         * m4/quotearg.m4: Likewise.
73492         * modules/regex (Depends-on): Depend on wchar.
73493         * lib/regex_internal.h: Assume <wchar.h>.
73494         * m4/regex.m4: Likewise.
73495         * modules/stdint (Depends-on): Depend on wchar.
73496         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73497         * m4/stdint.m4: Likewise.
73498         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73499         * modules/strftime (Depends-on): Depend on wchar.
73500         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73501         * modules/strtol (Depends-on): Depend on wchar.
73502         * lib/strtol.c: Assume <wchar.h>.
73503         * modules/wcwidth (Depends-on): Depend on wchar.
73504         * lib/wcwidth.h: Assume <wchar.h>.
73505         * m4/wcwidth.m4: Likewise.
73506
73507 2007-01-16  Bruno Haible  <bruno@clisp.org>
73508
73509         * modules/csharpexec-script: New, created from...
73510         * modules/csharpexec: ... this.
73511
73512 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73513
73514         * modules/javaexec-script: New, created from...
73515         * modules/javaexec: ... this.
73516
73517 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73518
73519         * modules/poll (Dependencies): Add sys_select.
73520
73521 2007-01-15  Jim Meyering  <jim@meyering.net>
73522
73523         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73524         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73525         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73526         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73527
73528 2007-01-15  Bruno Haible  <bruno@clisp.org>
73529
73530         * modules/striconveh: New file.
73531         * lib/striconveh.h: New file.
73532         * lib/striconveh.c: New file.
73533         * MODULES.html.sh (Internationalization functions): Add striconveh.
73534
73535         * modules/striconveh-tests: New file.
73536         * tests/test-striconveh.c: New file.
73537
73538 2007-01-15  Bruno Haible  <bruno@clisp.org>
73539
73540         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73541         not from GNU libiconv or GNU libc.
73542
73543 2007-01-15  Bruno Haible  <bruno@clisp.org>
73544
73545         * doc/gnulib-intro.texi (Copyright): Explain the different license
73546         terms for module descriptions, autoconf macros, tests, documentation.
73547
73548 2007-01-14  Bruno Haible  <bruno@clisp.org>
73549
73550         * modules/striconv-tests: New file.
73551         * tests/test-striconv.c: New file.
73552
73553 2007-01-14  Bruno Haible  <bruno@clisp.org>
73554
73555         * modules/iconv-tests: New file.
73556         * tests/test-iconv.c: New file.
73557
73558 2007-01-14  Bruno Haible  <bruno@clisp.org>
73559
73560         * gnulib-tool (func_get_license): For test modules, use the license of
73561         the main module.
73562
73563 2007-01-14  Bruno Haible  <bruno@clisp.org>
73564
73565         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73566         if iconv is found to exist.
73567
73568 2007-01-14  Bruno Haible  <bruno@clisp.org>
73569
73570         * modules/c-ctype-tests: New file.
73571         * tests/test-c-ctype.c: New file.
73572
73573 2007-01-14  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/binary-io-tests: New file.
73576         * tests/test-binary-io.sh: New file.
73577         * tests/test-binary-io.c: New file.
73578
73579 2007-01-14  Bruno Haible  <bruno@clisp.org>
73580
73581         * modules/array-oset-tests: New file.
73582         * tests/test-array_oset.c: New file.
73583
73584 2007-01-14  Bruno Haible  <bruno@clisp.org>
73585
73586         * modules/array-list-tests: New file.
73587         * tests/test-array_list.c: New file.
73588
73589 2007-01-14  Bruno Haible  <bruno@clisp.org>
73590
73591         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73592         and make.
73593         Reported by Simon Josefsson in
73594         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73595
73596 2007-01-14  Bruno Haible  <bruno@clisp.org>
73597
73598         * modules/allocsa-tests: New file.
73599         * tests/test-allocsa.c: New file.
73600
73601 2007-01-14  Bruno Haible  <bruno@clisp.org>
73602
73603         * modules/fchdir (Depends-on): Add absolute-header.
73604         * modules/unistd (Depends-on): Likewise.
73605
73606 2006-12-30  Bruno Haible  <bruno@clisp.org>
73607
73608         * modules/fchdir: New file.
73609         * modules/unistd (Files): Add lib/unistd_.h.
73610         (Makefile.am): Generate unistd.h from unistd_.h.
73611         * lib/fchdir.c: New file.
73612         * lib/dirent_.h: New file.
73613         * lib/unistd_.h: New file.
73614         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73615         * m4/fchdir.m4: New file.
73616         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73617         (gl_HEADER_UNISTD): Invoke it.
73618         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73619         function.
73620         * lib/backupfile.c (opendir, closedir): Undefine.
73621         * lib/chown.c (open, close): Undefine.
73622         * lib/clean-temp.c (open, close): Undefine.
73623         * lib/copy-file.c (open, close): Undefine.
73624         * lib/execute.c (open, close): Undefine.
73625         * lib/fsusage.c (open, close): Undefine.
73626         * lib/gc-gnulib.c (open, close): Undefine.
73627         * lib/getcwd.c (opendir, closedir): Undefine.
73628         * lib/glob.c (opendir, closedir): Undefine.
73629         * lib/javacomp.c (open, close): Undefine.
73630         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73631         * lib/openat-proc.c (open, close): Undefine.
73632         * lib/pagealign_alloc.c (open, close): Undefine.
73633         * lib/pipe.c (open, close): Undefine.
73634         * lib/progreloc.c (open, close): Undefine.
73635         * lib/savedir.c (opendir, closedir): Undefine.
73636         * lib/utime.c (open, close): Undefine.
73637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73638
73639 2007-01-10  Bruno Haible  <bruno@clisp.org>
73640
73641         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73642
73643 2007-01-12  Eric Blake  <ebb9@byu.net>
73644
73645         Provide a robust <wchar.h>.  Further simplifications are now
73646         possible in other modules, but not included here.
73647         * modules/wchar: New module.
73648         * m4/wchar.m4: New file.
73649         * lib/wchar_.h: Likewise.
73650         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73651         of the new module.
73652         * MODULES.html.sh (Extended multibyte and wide character utilities):
73653         New section.
73654
73655 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73656
73657         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73658         to a reasonable default for memory allocation.
73659         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73660         file system that reports garbage st_size values for symlinks.
73661         Problem reported by Liyang Hu.
73662
73663 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73664
73665         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73666         Emacs .#* auto-save files).
73667
73668 2007-01-11  Bruno Haible  <bruno@clisp.org>
73669
73670         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73671         directory.
73672
73673 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73674
73675         Use @...@ consistently in lib/wctype_.h.
73676         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73677         on it being set to 1 or 0.
73678         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73679         go back to AC_SUBSTing it.
73680         * modules/wctype (Makefile.am): Undo previous change.
73681
73682 2007-01-10  Eric Blake  <ebb9@byu.net>
73683
73684         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73685         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73686         * modules/wctype (Makefile.am): Likewise.
73687         Reported by Chris McGuire.
73688
73689 2007-01-10  Jim Meyering  <jim@meyering.net>
73690
73691         fts.c: a small readability/maintainability improvement
73692         * lib/fts.c (fts_read): Make this code slightly more readable and
73693         maintainable by hoisting the "sp->fts_cur = p" assignments to
73694         immediately follow the statements that set P.  Derived from
73695         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73696
73697 2007-01-10  Eric Blake  <ebb9@byu.net>
73698
73699         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73700         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73702         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73703         Reported by Chris McGuire.
73704
73705 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73706
73707         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73708         in sed script.
73709
73710 2007-01-09  Bruno Haible  <bruno@clisp.org>
73711
73712         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73713         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73714         variables.
73715         (func_module): Use them.
73716
73717 2007-01-09  Bruno Haible  <bruno@clisp.org>
73718
73719         * modules/unistr/base: New file.
73720         * lib/unistr.h: New file.
73721
73722         * modules/unistr/u8-to-u16: New file.
73723         * lib/unistr/u8-to-u16.c: New file.
73724
73725         * modules/unistr/u8-to-u32: New file.
73726         * lib/unistr/u8-to-u32.c: New file.
73727
73728         * modules/unistr/u16-to-u8: New file.
73729         * lib/unistr/u16-to-u8.c: New file.
73730
73731         * modules/unistr/u16-to-u32: New file.
73732         * lib/unistr/u16-to-u32.c: New file.
73733
73734         * modules/unistr/u32-to-u8: New file.
73735         * lib/unistr/u32-to-u8.c: New file.
73736
73737         * modules/unistr/u32-to-u16: New file.
73738         * lib/unistr/u32-to-u16.c: New file.
73739
73740         * modules/unistr/u8-check: New file.
73741         * modules/unistr/u16-check: New file.
73742         * modules/unistr/u32-check: New file.
73743         * lib/unistr/u8-check.c: New file.
73744         * lib/unistr/u16-check.c: New file.
73745         * lib/unistr/u32-check.c: New file.
73746
73747         * modules/unistr/u8-chr: New file.
73748         * modules/unistr/u16-chr: New file.
73749         * modules/unistr/u32-chr: New file.
73750         * lib/unistr/u8-chr.c: New file.
73751         * lib/unistr/u16-chr.c: New file.
73752         * lib/unistr/u32-chr.c: New file.
73753
73754         * modules/unistr/u8-cmp: New file.
73755         * modules/unistr/u16-cmp: New file.
73756         * modules/unistr/u32-cmp: New file.
73757         * lib/unistr/u8-cmp.c: New file.
73758         * lib/unistr/u16-cmp.c: New file.
73759         * lib/unistr/u32-cmp.c: New file.
73760
73761         * modules/unistr/u8-cpy: New file.
73762         * modules/unistr/u16-cpy: New file.
73763         * modules/unistr/u32-cpy: New file.
73764         * lib/unistr/u8-cpy.c: New file.
73765         * lib/unistr/u16-cpy.c: New file.
73766         * lib/unistr/u32-cpy.c: New file.
73767         * lib/unistr/u-cpy.h: New file.
73768
73769         * modules/unistr/u8-cpy-alloc: New file.
73770         * modules/unistr/u16-cpy-alloc: New file.
73771         * modules/unistr/u32-cpy-alloc: New file.
73772         * lib/unistr/u8-cpy-alloc.c: New file.
73773         * lib/unistr/u16-cpy-alloc.c: New file.
73774         * lib/unistr/u32-cpy-alloc.c: New file.
73775         * lib/unistr/u-cpy-alloc.h: New file.
73776
73777         * modules/unistr/u8-endswith: New file.
73778         * modules/unistr/u16-endswith: New file.
73779         * modules/unistr/u32-endswith: New file.
73780         * lib/unistr/u8-endswith.c: New file.
73781         * lib/unistr/u16-endswith.c: New file.
73782         * lib/unistr/u32-endswith.c: New file.
73783         * lib/unistr/u-endswith.h: New file.
73784
73785         * modules/unistr/u8-mblen: New file.
73786         * modules/unistr/u16-mblen: New file.
73787         * modules/unistr/u32-mblen: New file.
73788         * lib/unistr/u8-mblen.c: New file.
73789         * lib/unistr/u16-mblen.c: New file.
73790         * lib/unistr/u32-mblen.c: New file.
73791
73792         * modules/unistr/u8-mbtouc: New file.
73793         * modules/unistr/u16-mbtouc: New file.
73794         * modules/unistr/u32-mbtouc: New file.
73795         * lib/unistr/u8-mbtouc.c: New file.
73796         * lib/unistr/u16-mbtouc.c: New file.
73797         * lib/unistr/u32-mbtouc.c: New file.
73798
73799         * modules/unistr/u8-mbtouc-safe: New file.
73800         * modules/unistr/u16-mbtouc-safe: New file.
73801         * modules/unistr/u32-mbtouc-safe: New file.
73802         * lib/unistr/u8-mbtouc-safe.c: New file.
73803         * lib/unistr/u16-mbtouc-safe.c: New file.
73804         * lib/unistr/u32-mbtouc-safe.c: New file.
73805
73806         * modules/unistr/u8-move: New file.
73807         * modules/unistr/u16-move: New file.
73808         * modules/unistr/u32-move: New file.
73809         * lib/unistr/u8-move.c: New file.
73810         * lib/unistr/u16-move.c: New file.
73811         * lib/unistr/u32-move.c: New file.
73812         * lib/unistr/u-move.h: New file.
73813
73814         * modules/unistr/u8-next: New file.
73815         * modules/unistr/u16-next: New file.
73816         * modules/unistr/u32-next: New file.
73817         * lib/unistr/u8-next.c: New file.
73818         * lib/unistr/u16-next.c: New file.
73819         * lib/unistr/u32-next.c: New file.
73820
73821         * modules/unistr/u8-prev: New file.
73822         * modules/unistr/u16-prev: New file.
73823         * modules/unistr/u32-prev: New file.
73824         * lib/unistr/u8-prev.c: New file.
73825         * lib/unistr/u16-prev.c: New file.
73826         * lib/unistr/u32-prev.c: New file.
73827
73828         * modules/unistr/u8-set: New file.
73829         * modules/unistr/u16-set: New file.
73830         * modules/unistr/u32-set: New file.
73831         * lib/unistr/u8-set.c: New file.
73832         * lib/unistr/u16-set.c: New file.
73833         * lib/unistr/u32-set.c: New file.
73834         * lib/unistr/u-set.h: New file.
73835
73836         * modules/unistr/u8-startswith: New file.
73837         * modules/unistr/u16-startswith: New file.
73838         * modules/unistr/u32-startswith: New file.
73839         * lib/unistr/u8-startswith.c: New file.
73840         * lib/unistr/u16-startswith.c: New file.
73841         * lib/unistr/u32-startswith.c: New file.
73842         * lib/unistr/u-startswith.h: New file.
73843
73844         * modules/unistr/u8-stpcpy: New file.
73845         * modules/unistr/u16-stpcpy: New file.
73846         * modules/unistr/u32-stpcpy: New file.
73847         * lib/unistr/u8-stpcpy.c: New file.
73848         * lib/unistr/u16-stpcpy.c: New file.
73849         * lib/unistr/u32-stpcpy.c: New file.
73850         * lib/unistr/u-stpcpy.h: New file.
73851
73852         * modules/unistr/u8-stpncpy: New file.
73853         * modules/unistr/u16-stpncpy: New file.
73854         * modules/unistr/u32-stpncpy: New file.
73855         * lib/unistr/u8-stpncpy.c: New file.
73856         * lib/unistr/u16-stpncpy.c: New file.
73857         * lib/unistr/u32-stpncpy.c: New file.
73858         * lib/unistr/u-stpncpy.h: New file.
73859
73860         * modules/unistr/u8-strcat: New file.
73861         * modules/unistr/u16-strcat: New file.
73862         * modules/unistr/u32-strcat: New file.
73863         * lib/unistr/u8-strcat.c: New file.
73864         * lib/unistr/u16-strcat.c: New file.
73865         * lib/unistr/u32-strcat.c: New file.
73866         * lib/unistr/u-strcat.h: New file.
73867
73868         * modules/unistr/u8-strchr: New file.
73869         * modules/unistr/u16-strchr: New file.
73870         * modules/unistr/u32-strchr: New file.
73871         * lib/unistr/u8-strchr.c: New file.
73872         * lib/unistr/u16-strchr.c: New file.
73873         * lib/unistr/u32-strchr.c: New file.
73874
73875         * modules/unistr/u8-strcmp: New file.
73876         * modules/unistr/u16-strcmp: New file.
73877         * modules/unistr/u32-strcmp: New file.
73878         * lib/unistr/u8-strcmp.c: New file.
73879         * lib/unistr/u16-strcmp.c: New file.
73880         * lib/unistr/u32-strcmp.c: New file.
73881
73882         * modules/unistr/u8-strcpy: New file.
73883         * modules/unistr/u16-strcpy: New file.
73884         * modules/unistr/u32-strcpy: New file.
73885         * lib/unistr/u8-strcpy.c: New file.
73886         * lib/unistr/u16-strcpy.c: New file.
73887         * lib/unistr/u32-strcpy.c: New file.
73888         * lib/unistr/u-strcpy.h: New file.
73889
73890         * modules/unistr/u8-strcspn: New file.
73891         * modules/unistr/u16-strcspn: New file.
73892         * modules/unistr/u32-strcspn: New file.
73893         * lib/unistr/u8-strcspn.c: New file.
73894         * lib/unistr/u16-strcspn.c: New file.
73895         * lib/unistr/u32-strcspn.c: New file.
73896         * lib/unistr/u-strcspn.h: New file.
73897
73898         * modules/unistr/u8-strdup: New file.
73899         * modules/unistr/u16-strdup: New file.
73900         * modules/unistr/u32-strdup: New file.
73901         * lib/unistr/u8-strdup.c: New file.
73902         * lib/unistr/u16-strdup.c: New file.
73903         * lib/unistr/u32-strdup.c: New file.
73904         * lib/unistr/u-strdup.h: New file.
73905
73906         * modules/unistr/u8-strlen: New file.
73907         * modules/unistr/u16-strlen: New file.
73908         * modules/unistr/u32-strlen: New file.
73909         * lib/unistr/u8-strlen.c: New file.
73910         * lib/unistr/u16-strlen.c: New file.
73911         * lib/unistr/u32-strlen.c: New file.
73912         * lib/unistr/u-strlen.h: New file.
73913
73914         * modules/unistr/u8-strmblen: New file.
73915         * modules/unistr/u16-strmblen: New file.
73916         * modules/unistr/u32-strmblen: New file.
73917         * lib/unistr/u8-strmblen.c: New file.
73918         * lib/unistr/u16-strmblen.c: New file.
73919         * lib/unistr/u32-strmblen.c: New file.
73920
73921         * modules/unistr/u8-strmbtouc: New file.
73922         * modules/unistr/u16-strmbtouc: New file.
73923         * modules/unistr/u32-strmbtouc: New file.
73924         * lib/unistr/u8-strmbtouc.c: New file.
73925         * lib/unistr/u16-strmbtouc.c: New file.
73926         * lib/unistr/u32-strmbtouc.c: New file.
73927
73928         * modules/unistr/u8-strncat: New file.
73929         * modules/unistr/u16-strncat: New file.
73930         * modules/unistr/u32-strncat: New file.
73931         * lib/unistr/u8-strncat.c: New file.
73932         * lib/unistr/u16-strncat.c: New file.
73933         * lib/unistr/u32-strncat.c: New file.
73934         * lib/unistr/u-strncat.h: New file.
73935
73936         * modules/unistr/u8-strncmp: New file.
73937         * modules/unistr/u16-strncmp: New file.
73938         * modules/unistr/u32-strncmp: New file.
73939         * lib/unistr/u8-strncmp.c: New file.
73940         * lib/unistr/u16-strncmp.c: New file.
73941         * lib/unistr/u32-strncmp.c: New file.
73942
73943         * modules/unistr/u8-strncpy: New file.
73944         * modules/unistr/u16-strncpy: New file.
73945         * modules/unistr/u32-strncpy: New file.
73946         * lib/unistr/u8-strncpy.c: New file.
73947         * lib/unistr/u16-strncpy.c: New file.
73948         * lib/unistr/u32-strncpy.c: New file.
73949         * lib/unistr/u-strncpy.h: New file.
73950
73951         * modules/unistr/u8-strnlen: New file.
73952         * modules/unistr/u16-strnlen: New file.
73953         * modules/unistr/u32-strnlen: New file.
73954         * lib/unistr/u8-strnlen.c: New file.
73955         * lib/unistr/u16-strnlen.c: New file.
73956         * lib/unistr/u32-strnlen.c: New file.
73957         * lib/unistr/u-strnlen.h: New file.
73958
73959         * modules/unistr/u8-strpbrk: New file.
73960         * modules/unistr/u16-strpbrk: New file.
73961         * modules/unistr/u32-strpbrk: New file.
73962         * lib/unistr/u8-strpbrk.c: New file.
73963         * lib/unistr/u16-strpbrk.c: New file.
73964         * lib/unistr/u32-strpbrk.c: New file.
73965         * lib/unistr/u-strpbrk.h: New file.
73966
73967         * modules/unistr/u8-strrchr: New file.
73968         * modules/unistr/u16-strrchr: New file.
73969         * modules/unistr/u32-strrchr: New file.
73970         * lib/unistr/u8-strrchr.c: New file.
73971         * lib/unistr/u16-strrchr.c: New file.
73972         * lib/unistr/u32-strrchr.c: New file.
73973
73974         * modules/unistr/u8-strspn: New file.
73975         * modules/unistr/u16-strspn: New file.
73976         * modules/unistr/u32-strspn: New file.
73977         * lib/unistr/u8-strspn.c: New file.
73978         * lib/unistr/u16-strspn.c: New file.
73979         * lib/unistr/u32-strspn.c: New file.
73980         * lib/unistr/u-strspn.h: New file.
73981
73982         * modules/unistr/u8-strstr: New file.
73983         * modules/unistr/u16-strstr: New file.
73984         * modules/unistr/u32-strstr: New file.
73985         * lib/unistr/u8-strstr.c: New file.
73986         * lib/unistr/u16-strstr.c: New file.
73987         * lib/unistr/u32-strstr.c: New file.
73988         * lib/unistr/u-strstr.h: New file.
73989
73990         * modules/unistr/u8-strtok: New file.
73991         * modules/unistr/u16-strtok: New file.
73992         * modules/unistr/u32-strtok: New file.
73993         * lib/unistr/u8-strtok.c: New file.
73994         * lib/unistr/u16-strtok.c: New file.
73995         * lib/unistr/u32-strtok.c: New file.
73996         * lib/unistr/u-strtok.h: New file.
73997
73998         * modules/unistr/u8-uctomb: New file.
73999         * modules/unistr/u16-uctomb: New file.
74000         * modules/unistr/u32-uctomb: New file.
74001         * lib/unistr/u8-uctomb.c: New file.
74002         * lib/unistr/u16-uctomb.c: New file.
74003         * lib/unistr/u32-uctomb.c: New file.
74004
74005         * MODULES.html.sh (Unicode string functions): Add the new modules.
74006
74007 2007-01-08  Bruno Haible  <bruno@clisp.org>
74008
74009         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74010         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74011         subdirectories.
74012
74013 2007-01-08  Karl Berry  <karl@gnu.org>
74014
74015         * doc/error.texi: mention that main() fns must set program_name
74016         when progname is used.
74017
74018 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74021         WCTYPE_H is empty, for the benefit of builds from non-distclean
74022         directories.  Problem reported by Eric Blake in
74023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74024
74025 2007-01-08  Bruno Haible  <bruno@clisp.org>
74026
74027         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74028         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74029         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74030         PROVIDE_CANONICALIZE_FILENAME_MODE.
74031         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74032
74033 2007-01-08  Bruno Haible  <bruno@clisp.org>
74034
74035         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74036         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74037         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74038         * lib/fts.c: Likewise.
74039         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74040
74041 2006-12-25  Bruno Haible  <bruno@clisp.org>
74042
74043         * modules/utf8-ucs4-safe: New file.
74044         * lib/utf8-ucs4-safe.h: New file.
74045         * lib/unistr/utf8-ucs4-safe.c: New file.
74046
74047         * modules/utf16-ucs4-safe: New file.
74048         * lib/utf16-ucs4-safe.h: New file.
74049         * lib/unistr/utf16-ucs4-safe.c: New file.
74050
74051         * MODULES.html.sh (Unicode string functions): Add the new modules.
74052
74053 2007-01-08  Bruno Haible  <bruno@clisp.org>
74054
74055         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74056         (Depends-on): Add unitypes.
74057         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74058         (u8_mbtouc_aux): Move out to separate file.
74059         (u8_mbtouc): Use ucs4_t, uint8_t types.
74060         * lib/unistr/utf8-ucs4.c: New file.
74061
74062         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74063         (Depends-on): Add unitypes.
74064         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74065         (u16_mbtouc_aux): Move out to separate file.
74066         (u16_mbtouc): Use ucs4_t, uint16_t types.
74067         * lib/unistr/utf16-ucs4.c: New file.
74068
74069         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74070         (Depends-on): Add unitypes.
74071         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74072         (u8_uctomb_aux): Move out to separate file.
74073         (u8_uctomb): Use ucs4_t, uint8_t types.
74074         * lib/unistr/ucs4-utf8.c: New file.
74075
74076         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74077         (Depends-on): Add unitypes.
74078         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74079         (u16_uctomb_aux): Move out to separate file.
74080         (u16_uctomb): Use ucs4_t, uint16_t types.
74081         * lib/unistr/ucs4-utf16.c: New file.
74082
74083 2006-12-25  Bruno Haible  <bruno@clisp.org>
74084
74085         * modules/unitypes: New file.
74086         * lib/unitypes.h: New file.
74087         * MODULES.html.sh (func_all_modules): New section "Unicode string
74088         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74089         this section. Add unitypes.
74090
74091 2007-01-08  Bruno Haible  <bruno@clisp.org>
74092
74093         Avoid variable names that conflict with those from libtool.
74094         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74095         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74096         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74097         library_names_spec to acl_library_names_spec, hardcode_* to
74098         acl_hardcode_*.
74099         Reported by Ralf Wildenhues.
74100
74101 2007-01-08  Bruno Haible  <bruno@clisp.org>
74102
74103         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74104         definition.
74105         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74106         definition.
74107         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74108         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74109         definition.
74110         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74111         definition.
74112         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74113         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74114         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74115         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74116         definition.
74117         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74118         definition.
74119         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74120         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74121         GC_USE_<algorithm>.
74122         * lib/gc-libgcrypt.c: Likewise.
74123         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74124         * modules/gc-arctwo (configure.ac): Likewise.
74125         * modules/gc-des (configure.ac): Likewise.
74126         * modules/gc-hmac-md5 (configure.ac): Likewise.
74127         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74128         * modules/gc-md2 (configure.ac): Likewise.
74129         * modules/gc-md4 (configure.ac): Likewise.
74130         * modules/gc-md5 (configure.ac): Likewise.
74131         * modules/gc-random (configure.ac): Likewise.
74132         * modules/gc-rijndael (configure.ac): Likewise.
74133         * modules/gc-sha1 (configure.ac): Likewise.
74134
74135 2007-01-08  Bruno Haible  <bruno@clisp.org>
74136
74137         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74138         macro definition.
74139         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74140         definition.
74141         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74142         definition.
74143         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74144         * modules/fcntl-safer (configure.ac): Likewise.
74145         * modules/fopen-safer (configure.ac): Likewise.
74146         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74147         GNULIB_FWRITEERROR macro definition.
74148
74149 2007-01-08  Bruno Haible  <bruno@clisp.org>
74150
74151         * m4/gnulib-common.m4: New file.
74152         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74153         (func_get_filelist): Add m4/gnulib-common.m4.
74154
74155 2007-01-08  Bruno Haible  <bruno@clisp.org>
74156
74157         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74158         command.
74159
74160 2007-01-08  Jim Meyering  <jim@meyering.net>
74161
74162         Use a more robust test for a "can't happen" condition.
74163         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74164         narrowed the st_size value.  Presuming the "can't happen" condition
74165         is true, that narrowing could conceivably convert an invalid st_size
74166         value into a valid one.  Instead, use a change based on Matthew
74167         Woehlke's original patch.
74168
74169         Slight readability improvement: use an assert-like macro
74170         in place of literal "abort ()" uses.
74171         * lib/fts.c (fts_assert): Define.
74172         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74173         Use this macro instead of a bare 'abort'.
74174
74175 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74176
74177         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74178         simply work around them.
74179         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74180         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74181         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74182         declaring.
74183         Don't bother to define as macros, since the standard doesn't require it.
74184         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74185         longer worry about IRIX 5.3.
74186         (HAVE_WCTYPE_CTMP_BUG): Remove.
74187
74188 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74189
74190         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74191         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74192         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74193         Problems reported by Georg Schwarz for IRIX 5.3.
74194
74195         * gnulib-tool (autoconf_minversion): Take the maximum version number
74196         found, not the minimum.  Problem reported by James Youngman.
74197
74198 2007-01-03  Karl Berry  <karl@gnu.org>
74199
74200         * doc/error.texi: new file, explaining interaction with progname.
74201         * doc/gnulib.texi: include it.  Update copyright.
74202
74203 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74204
74205         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74206         AC_CANONICAL_HOST, to improve autobuild outputs.
74207
74208 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74209             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74210
74211         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74212         sockets, server sockets, and other file descriptors.  Count errors
74213         to compute the return value.  Reorder the code a bit to be easier
74214         to follow.  Don't set event bits that were not requested (except
74215         POLLERR and POLLHUP).
74216
74217 2007-01-01  Bruno Haible  <bruno@clisp.org>
74218
74219         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74220
74221 2007-01-03  Jim Meyering  <jim@meyering.net>
74222
74223         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74224
74225 2007-01-02  Bruno Haible  <bruno@clisp.org>
74226
74227         * modules/settime (Include): Require timespec.h.
74228         * modules/nanosleep (Include): Likewise.
74229
74230 2007-01-01  Bruno Haible  <bruno@clisp.org>
74231
74232         * gnulib-tool (func_emit_copyright_notice): Bump year.
74233         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74234
74235 2007-01-01  Bruno Haible  <bruno@clisp.org>
74236
74237         Improve support for OpenBSD.
74238         * build-aux/config.rpath (libname_spec): Export.
74239         (library_names_spec): New variable. Export.
74240         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74241         library_names_spec from the config.rpath output. Locate shared library
74242         through the name pattern in library_names_spec.
74243
74244 2007-01-01  Eric Blake  <ebb9@byu.net>
74245
74246         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74247
74248 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74251         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74252         assume the C locale, and avoid an "eval" that could cause trouble.
74253         Problem with SORT reported by Bob Proulx.
74254
74255         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74256         Define.  Trivial patch from Henning Nielsen Lund, originally
74257         sent to bug-grep@gnu.org today.
74258
74259 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74260
74261         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74262         struct stat.  Problem reported by Henning Nielsen Lund.
74263         * lib/acl.c: Include acl.h first, to check interface.  Don't
74264         bother to include sys/types.h and sys/stat.h again.
74265
74266 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74267
74268         Import the following change from libc; problem reported by
74269         Sven Verdoolaege.
74270
74271         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74272
74273         [BZ #1373]
74274         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74275
74276 2006-12-28  Jim Meyering  <jim@meyering.net>
74277
74278         * build-aux/announce-gen: Do not assume that the package
74279         builds any of tar.gz, tar.bz2, and .xdelta files.
74280         Suggestion from Simon Josefsson.
74281
74282 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74283
74284         * modules/announce-gen: New file.
74285
74286 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74287
74288         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74289         handles its gotchas now.
74290         * lib/mbswidth.c: Likewise.
74291         * lib/wcwidth.h: Likewise.
74292         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74293         and iswcntrl; the wctype module does this stuff now.
74294         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74295         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74296         * modules/mbchar (Depends-on): Add wctype.
74297         * modules/mbswidth (Depends-on): Likewise.
74298         * modules/wcwidth (Depends-on): Likewise.
74299
74300 2006-12-27  Eric Blake  <ebb9@byu.net>
74301
74302         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74303         module uses more than what <wctype.h> is required to provide.
74304
74305 2006-12-26  Eric Blake  <ebb9@byu.net>
74306
74307         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74308
74309 2006-12-26  Eric Blake  <ebb9@byu.net>
74310
74311         * modules/absolute-header: New module.
74312         * modules/fcntl (Depends-on): Depend on it.
74313         * modules/inttypes (Depends-on): Likewise.
74314         * modules/stdint (Depends-on): Likewise.
74315         * modules/sys_stat (Depends-on): Likewise.
74316         * modules/wctype (Depends-on): Likewise.
74317         * MODULES.html.sh (Support for building libraries and
74318         executables): Document it.
74319
74320 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * gnulib-tool (SED): Remove, undoing previous change.
74323         The problem was that it broke coreutils on Solaris, because
74324         "sed --posix" leaked into a makefile.
74325         (sed): New alias, if 'alias' and GNU sed.
74326
74327 2006-12-24  Jim Meyering  <jim@meyering.net>
74328
74329         Work around an fchownat bug in glibc-2.4:
74330         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74331         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74332         in spite of the -P option.
74333         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74334         New macros.
74335         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74336         * modules/openat (Files): Add lib/fchownat.c.
74337         * lib/openat.c (fchownat): Don't define here.  Move to...
74338         * lib/fchownat.c: ...this new file.
74339
74340 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74341
74342         Fix bug reported by Bruno Haible in
74343         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74344         where quotearg.c didn't compile on Mac OS X 10.2 because it
74345         lacks <wchar.h> and wint_t.
74346         * lib/wctype_.h (__wctype_wint_t): New type.
74347         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74348         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74349         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74350         Arg is now of type __wctype_wint_t, not wint_t.
74351         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74352         substitute HAVE_WINT_T.
74353         * modules/wctype (Files): Add m4/wint_t.m4.
74354         (wctype.h): Substitute HAVE_WINT_T.
74355
74356 2006-12-23  Bruno Haible  <bruno@clisp.org>
74357
74358         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74359
74360 2006-12-23  Bruno Haible  <bruno@clisp.org>
74361
74362         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74363         S_ISLNK.
74364         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74365         mingw.
74366
74367 2006-12-22  Bruno Haible  <bruno@clisp.org>
74368
74369         * lib/copy-file.c: Include acl.h.
74370         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74371         Close the file descriptors only after being done with copy_acl.
74372         * modules/copy-file (Depends-on): Add acl.
74373
74374 2006-12-22  Bruno Haible  <bruno@clisp.org>
74375
74376         * gnulib-tool (SED): New variable.
74377         Use $SED instead of sed everywhere.
74378
74379 2006-12-22  Bruno Haible  <bruno@clisp.org>
74380
74381         * modules/no-c++: New file.
74382         * m4/no-c++.m4: New file.
74383         * MODULES.html.sh (Support for building libraries and executables):
74384         Add no-c++.
74385
74386 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74389         Include <limits.h>, and use its INT_MAX to rewrite the
74390         j loop so that it does not overflow 'int'.  Problem reported by
74391         Ralf Wildenhues in
74392         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74393         Play it safe by shifting left by 1 rather than multiplying by 2,
74394         as GCC is less likely to optimize this away when the value
74395         is signed (when it assumes overflow leads to undefined behavior).
74396         Also, don't assume time_t uses two's complement.
74397
74398 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * MODULES.html.sh: New module wctype.
74401         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74402         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74403         <wctype.h>, since the new wctype module should fix this.
74404         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74405         the wctype module should arrange for it.
74406         * lib/regex_internal.h: Likewise.
74407         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74408         since the wctype module should handle this now.
74409         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74410         * modules/fnmatch (Depends-on): Add wctype.
74411         * modules/quotearg (Depends-on): Likewise.
74412         * modules/regex (Depends-on): Likewise.
74413
74414 2006-12-19  Bruno Haible  <bruno@clisp.org>
74415
74416         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74417         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74418
74419 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74420
74421         * modules/savewd (Depends-on): Fix dependency on fcntl.
74422
74423 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74426         conforms to C99, rather than relying on the user's environment
74427         setting of STDINT_H.
74428
74429 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74430         and Eric Blake  <ebb9@byu.net>
74431
74432         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74433         This is more consistent with the other defines here.
74434         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74435         Port to z/OS.  Problem reported by Paul Gilmartin.
74436         Change local vars to use gl_ prefix rather than ac_.
74437         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74438         with other defines.
74439         * modules/double-slash-root: New module.
74440         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74441         (Depends-on): Add double-slash-root.
74442         * MODULES.html.sh (File system functions): Mention new module.
74443
74444 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74445
74446         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74447         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74448         This is for the benefit of gzip, which doesn't do i18n.
74449
74450 2006-12-12  Jim Meyering  <jim@meyering.net>
74451
74452         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74453         Reported by Andreas Schwab <schwab@suse.de>.
74454
74455 2006-12-12  Bruno Haible  <bruno@clisp.org>
74456
74457         Merge these changes.
74458         2006-09-05  Bruno Haible  <bruno@clisp.org>
74459         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74460         iconv_alloc succeeded.
74461         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74462         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74463         test for " && dest " at the end - dest is always != NULL there. Call
74464         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74465         with 2xNULL arguments, also to flush the state storage. Handle the
74466         IRIX iconv behaviour. Realloc the final result, to throw away unused
74467         memory.
74468
74469 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74472         and fchmodat unconditionally, since glibc 2.4 has them.
74473         Problem reported by Arkadiusz Miskiewicz.
74474
74475 2006-12-10  Bruno Haible  <bruno@clisp.org>
74476
74477         * gnulib-tool (func_import): Show the include files only for those
74478         modules that are copied and specified.
74479         Reported by Karl Berry.
74480
74481 2006-12-08  Jim Meyering  <jim@meyering.net>
74482
74483         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74484         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74485
74486         * build-aux/announce-gen: Add two new options, both optional:
74487         --bootstrap-tools=TOOL_LIST
74488               a comma-separated list of tools, e.g.,
74489               autoconf,automake,bison,gnulib
74490         --gnulib-snapshot-date=DATE
74491               if gnulib is in the bootstrap tool list,
74492               then report this as the snapshot date.
74493               If not specified, use the current date/time.
74494               If you specify a date here, be sure it's UTC.
74495
74496 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74497
74498         * tests/test-argp-2.sh: Fix test to match actual output.
74499         (func_compare): Fix sed script to be portable.
74500
74501 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74502
74503         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74504         workaround for this case.  It is not autoconfigured now; offhand
74505         it's hard to see how to autoconfigure it.
74506
74507 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74510         a directory that is about to be chowned.  Such a directory's
74511         initial file permissions should permit the owner only and this
74512         should not be changed until after the chown, since the group and
74513         other bits would be incorrect if they granted permission before
74514         the chown.
74515
74516         Fix porting problem for iswctype reported by Georg Schwarz in:
74517         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74518         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74519         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74520         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74521         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74522
74523 2006-12-03  Jim Meyering  <jim@meyering.net>
74524
74525         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74526         p->fts_statp may not yet be defined.
74527         (fts_read): Instead, set it in the caller, once p->fts_statp is
74528         sure to be defined, and corresponds to a top-level directory.
74529         This bug made du -x fail.  Here's the coreutils test case:
74530         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74531         Reported by Mike Frysinger.
74532
74533 2006-12-01  Jim Meyering  <jim@meyering.net>
74534
74535         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74536         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74537         Reported by Simon Josefsson.
74538
74539 2006-11-30  Jim Meyering  <jim@meyering.net>
74540
74541         * m4/warning.m4: Use the all-permissive copyright notice
74542         recommended by RMS (rather than LGPL).
74543         * m4/vararrays.m4: Likewise.
74544         * m4/flexmember.m4: Likewise.
74545
74546 2006-11-29  Bruno Haible  <bruno@clisp.org>
74547
74548         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74549         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74550         using +=.
74551         Reported by Simon Josefsson <simon@josefsson.org>.
74552
74553 2006-11-28  James Youngman <jay@gnu.org>
74554
74555         * README: Advise users that they might find the bug-gnulib@gnu.org
74556         and autotools-announce@gnu.org mailing lists useful.
74557
74558 2006-11-28  Bruno Haible  <bruno@clisp.org>
74559
74560         * m4/ptrdiff_max.m4: Remove file.
74561
74562 2006-11-21  Bruno Haible  <bruno@clisp.org>
74563
74564         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74565         _AC_COMPUTE_INT.
74566         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74567         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74568         _AC_COMPUTE_INT.
74569         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74570         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74571         _AC_COMPUTE_INT.
74572         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74573
74574 2006-11-28  Jim Meyering  <jim@meyering.net>
74575
74576         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74577         warning from "gcc -Wshadow" about shadowing the builtin.
74578
74579 2006-11-27  Bruno Haible  <bruno@clisp.org>
74580
74581         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74582         _AC_COMPUTE_INT.
74583         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74584
74585 2006-11-27  Bruno Haible  <bruno@clisp.org>
74586             Paul Eggert  <eggert@cs.ucla.edu>
74587
74588         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74589
74590 2006-11-26  Bruno Haible  <bruno@clisp.org>
74591
74592         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74593         noinst_LTLIBRARIES.
74594
74595 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74596             Bruno Haible  <bruno@clisp.org>
74597
74598         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74599         if compiling with "gcc -ansi".
74600
74601 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74602
74603         Fix some incompatibilities with gcc -ansi -pedantic.
74604         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74605         if compiling pedantically with GCC, unless it's C99 or later.
74606         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74607         it mishandles gcc -ansi -pedantic as well.
74608         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74609         if gcc -pedantic.
74610         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74611         initializers for struct if -pedantic, unless it's C99 or later.
74612
74613 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74614
74615         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74616         Don't close an fd more than once. Identical atimes indicate
74617         success, not failure.
74618
74619 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74620
74621         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74622
74623 2006-11-23  Jim Meyering  <jim@meyering.net>
74624
74625         * build-aux/announce-gen: New file.  From coreutils.
74626
74627 2006-11-22  Jim Meyering  <jim@meyering.net>
74628
74629         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74630         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74631         (fts_read): Use a temporary to narrow the overused st_size member
74632         before using it in a switch statement.  Reported by Matthew Woehlke.
74633
74634         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74635         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74636
74637 2006-11-20  Bruno Haible  <bruno@clisp.org>
74638
74639         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74640         changequote instead of pairs of brackets.
74641         Reported by Andreas Schwab <schwab@suse.de>.
74642
74643 2006-11-21  Jim Meyering  <jim@meyering.net>
74644
74645         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74646         so as to remain compatible with older compilers.
74647         Patch from Michael Deutschmann.
74648
74649 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74650
74651         * MODULES.html.sh (File system functions): Add openat.
74652
74653         * lib/openat.h (rpl_fstatat): New macro, if
74654         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74655         (fstatat): Define to rpl_fstatat under the same conditions,
74656         unless COMPILING_FSTATAT.
74657         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74658         seems to have the bug.
74659         * lib/fstatat.c: New file.
74660         * modules/openat (Files): Add it.
74661
74662 2006-11-20  Bruno Haible  <bruno@clisp.org>
74663
74664         * Makefile: New file.
74665
74666 2006-11-20  Jim Meyering  <jim@meyering.net>
74667
74668         The beginnings of syntax-related checks for gnulib.
74669         * lib/Makefile: New file.
74670         * lib/t-idcache: New script.  Ensure that the two halves of
74671         idcache.c stay in sync.
74672
74673         * lib/idcache.c: Adjust comments in user- and group- portions to
74674         be more accurate, and to be consistent with one another.
74675
74676 2006-11-20  Jim Meyering  <jim@meyering.net>
74677
74678         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74679         continue using the flexible array member (thus, this module performs
74680         half as many malloc calls), with the addition that...
74681         (getgroup, getuser): Consistently record a non-match via an empty
74682         "name" string, and map an empty string match to a NULL return value.
74683         * modules/idcache (Depends-on): Re-add flexmember.
74684
74685         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74686         (getuidbyname, getgroup, getgidbyname): Likewise.
74687
74688         Use cleaner syntax: NULL rather than 0.
74689         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74690
74691 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74694         It mishandled the case where the group was missing.
74695         Problem reported by Greg Schafer.
74696         * modules/idcache: Likewise.
74697
74698 2006-11-18  Jim Meyering  <jim@meyering.net>
74699
74700         * check-module (%exempt_header): Add exception for some
74701         conditionally-included headers.
74702
74703         * modules/i-ring (Depends-on): Add verify.
74704         (License): Change to LGPL.
74705
74706 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74709         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74710         and inttostr.h.  Use snprintf rather than uinttostr, so that
74711         LGPLed code doesn't depend on GPLed.
74712
74713 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74714
74715         * modules/inline (License): Change from GPL to LGPL.
74716
74717 2006-11-17  Jim Meyering  <jim@meyering.net>
74718
74719         * modules/d-type (License): Switch to LGPL.
74720
74721 2006-11-15  Bruno Haible  <bruno@clisp.org>
74722
74723         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74724
74725 2006-11-15  Eric Blake  <ebb9@byu.net>
74726
74727         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74728         the module dependency.
74729
74730 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74731             Bruno Haible  <bruno@clisp.org>
74732
74733         * gnulib-tool (func_create_testdir): Add license consistency check.
74734
74735 2006-11-15  Eric Blake  <ebb9@byu.net>
74736
74737         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74738         random "(cached)" in configure output.
74739
74740 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74741
74742         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74743         test for conforming inttypes.h is both announced and cached.
74744
74745         * MODULES.html.sh (seen_modules, seen_files): New variables.
74746         (func_module): Rewrite to use a few less gnulib-tool and sed
74747         invocations.  Avoid a couple of quadratic algorithms for ...
74748         (missed_modules, missed_files): ... these, with ...
74749         (func_append, func_tmpdir): ... these new functions, from
74750         gnulib-tool.  Analogously, install traps for cleanup.
74751
74752         * tests/test-gc.c (main): Remove unused variables.
74753         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74754
74755 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74756
74757         * modules/inttostr (License): Change to LGPL.
74758
74759 2006-11-14  Eric Blake  <ebb9@byu.net>
74760
74761         * modules/tempname (License): Change to LGPL.
74762
74763 2006-11-14  Eric Blake  <ebb9@byu.net>
74764
74765         * doc/functions.texi (Function Portability): *printf functions on
74766         Cygwin now understand all POSIX size specifiers.
74767
74768 2006-11-14  Bruno Haible  <bruno@clisp.org>
74769
74770         * modules/c-ctype (License): Change to LGPL.
74771
74772 2006-11-12  Bruno Haible  <bruno@clisp.org>
74773
74774         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74775         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74776         for GNOME libraries, for which the include files are installed in
74777         subdirectories of $prefix/include.
74778
74779 2006-11-12  Bruno Haible  <bruno@clisp.org>
74780
74781         * m4/lib-link.m4: Require at least autoconf-2.54.
74782         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74783         name to underscores for the --with option.
74784
74785 2006-11-13  Bruno Haible  <bruno@clisp.org>
74786
74787         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74788         the tests directory.
74789         Reported by Ralf Wildenhues.
74790
74791 2006-11-13  Bruno Haible  <bruno@clisp.org>
74792
74793         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74794         (func_emit_initmacro_end): Undo the override here.
74795         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74796         Works around the famous automake error in coreutils.
74797
74798 2006-11-13  Eric Blake  <ebb9@byu.net>
74799
74800         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74801         element, not its node.
74802
74803 2006-11-12  Bruno Haible  <bruno@clisp.org>
74804
74805         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74806         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74807
74808 2006-11-12  Bruno Haible  <bruno@clisp.org>
74809
74810         * gnulib-tool: New option --local-symlink.
74811         (func_usage): Document it.
74812         (lsymbolic): New variable.
74813         (func_import, func_create_testdir): If --symlink was not specified,
74814         test whether --local-symlink was specified and the file comes from
74815         the local_gnulib_dir.
74816
74817 2006-11-12  Bruno Haible  <bruno@clisp.org>
74818
74819         * gnulib-tool (func_ln): New function.
74820         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74821
74822 2006-11-12  Bruno Haible  <bruno@clisp.org>
74823
74824         Finish support for source files in subdirectories.
74825         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74826         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74827         AUTOMAKE_OPTIONS.
74828         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74829
74830 2006-11-12  Bruno Haible  <bruno@clisp.org>
74831
74832         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74833         EXTRA_lib_SOURCES augmentation.
74834         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74835
74836 2006-11-12  Jim Meyering  <jim@meyering.net>
74837
74838         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74839         file descriptors.  This also averts a failure on systems with
74840         native openat support when a traversed directory lacks "x" access.
74841         * lib/fts_.h: Include "i-ring.h"
74842         (struct FTS) [fts_fd_ring]: New member.
74843         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74844         (FCHDIR): Add parentheses.
74845         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74846         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74847         When descending, rather than simply closing the previous
74848         fts_cwd_fd value, push that file descriptor onto the ring.
74849         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74850         (fts_open): Initialize the new fd_ring member.
74851         (fts_close): Clear the ring.
74852         (fts_safe_changedir): When possible, use our new fd_ring to skip
74853         the diropen and fstat and dev/ino comparison that would normally
74854         accompany a virtual `chdir ("..")'.
74855
74856         * modules/fts (Depends-on): Add i-ring.
74857         * modules/i-ring: New module.
74858         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74859         * m4/i-ring.m4: New file.
74860
74861 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74862
74863         * gnulib-tool (func_create_testdir): Fix replacement of
74864         `build-aux' in configure.ac.  Run autotools in gltests
74865         subdirectory.
74866         (func_create_testdir, func_create_megatestdir, test): There is
74867         no need for '--force' in most autotool invocations in a new
74868         tree.  Actually fail the whole test if any of the tools, or the
74869         configure or make stages fail.
74870
74871         Sync from Automake.
74872         * build-aux/gnupload: Revert last change.  Add pointer to upload
74873         instructions of the GNU Maintenance Instructions.
74874         Suggestion by Karl Berry.
74875
74876 2006-11-10  Jim Meyering  <jim@meyering.net>
74877
74878         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74879
74880 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74883         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74884         (bind_textdomain_codeset) [! ENABLE_NLS]:
74885         Evaluate all the arguments.  That way, callers get compatible behavior
74886         if the arguments have side effects.  Also, it avoids some GCC
74887         diagnostics in some cases; Joel E. Denny reported problems when Bison
74888         was configured with --enable-gcc-warnigs.
74889
74890 2006-11-10  Jim Meyering  <jim@meyering.net>
74891
74892         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74893         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74894         account.
74895
74896 2006-11-10  Jim Meyering  <jim@meyering.net>
74897
74898         * modules/inline: New file/module.
74899         * modules/xalloc (Files): Remove m4/inline.m4.
74900         (Depends-on): Add inline, instead.
74901         * modules/oset: Likewise.
74902         * modules/list: Likewise.
74903
74904 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74905
74906         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74907         Problem reported by Matthew Woehlke.
74908
74909 2006-11-09  Bruno Haible  <bruno@clisp.org>
74910
74911         * lib/tempname.c (gen_tempname): Remove variant that invokes
74912         __gen_tempname.
74913         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74914         __gen_tempname.
74915
74916 2006-11-08  Bruno Haible  <bruno@clisp.org>
74917
74918         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74919         to 'yes' instead of 'cross-compiling'.
74920
74921 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74922
74923         * lib/quotearg.h (quotearg_free): New decl.
74924         * lib/quotearg.c (quotearg_free): New function.
74925         (slot0, nslots, slotvec0, slotvec):
74926         Now file-scope so that quotearg_free can get at them.
74927
74928 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74929
74930         Sync from Automake.
74931         * build-aux/gnupload: Add missing 'gnu' to example URL.
74932         Report by Karl Berry.
74933
74934 2006-11-08  Bruno Haible  <bruno@clisp.org>
74935
74936         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74937         Suggested by Paul Eggert.
74938
74939 2006-11-08  Jim Meyering  <jim@meyering.net>
74940
74941         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74942         It's already included if !_LIBC.
74943         (fts_safe_changedir): Add a comment.
74944
74945 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74946
74947         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74948         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74949         Matthew Woehlke.
74950
74951         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74952         definitions up, to avoid colliding with change below.
74953         (static_inline) [HAVE_INLINE]: New macro.
74954         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74955         Provide extern decls when !HAVE_INLINE.  Do not define unless
74956         static_inline is defined, either by us or by xmalloc.c.  Use
74957         static_inline rather than static inline.
74958         (XCALLOC): Optimize sizeof(T) = 1 case.
74959         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74960
74961 2006-11-07  Bruno Haible  <bruno@clisp.org>
74962
74963         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74964         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74965         AC_C_INLINE.
74966         * modules/xalloc (Files): Add m4/inline.m4.
74967
74968 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74969
74970         * README: Fix typo.
74971         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74972         (Miscellanous Notes): ...from this.
74973
74974 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74977         Mention that offsetof should be used instead of sizeof.
74978         From Bruno Haible.
74979
74980 2006-11-07  Bruno Haible  <bruno@clisp.org>
74981
74982         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74983
74984 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74987         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74988         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74989         (gl_tree_add_before, gl_tree_add_after):
74990         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74991         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74992         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74993         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74994         (gl_linked_add_after, gl_linked_add_at): Likewise.
74995         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74996         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74997         (gl_tree_add_before, gl_tree_add_after): Likewise.
74998         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74999         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75000         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75001
75002 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75003
75004         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75005
75006 2006-11-06  Bruno Haible  <bruno@clisp.org>
75007
75008         * m4/inline.m4: New file.
75009         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75010         * modules/list (Files): Add m4/inline.m4.
75011         * modules/oset (Files): Likewise.
75012
75013 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75014
75015         * lib/idcache.c: Include <stddef.h>, for offsetof.
75016         (struct userid.name): Change from char * to a flexible array member.
75017         All uses changed.
75018         * modules/idcache (Depends-on): Add flexmember.
75019
75020         * MODULES.html.sh (Core language properties): New module flexmember.
75021         * modules/flexmember, m4/flexmember.m4: New files.
75022
75023         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75024         inline functions that are identical with the old xnmalloc_inline,
75025         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75026         that we can avoid some unnecessary integer multiplications and
75027         divisions in the common case where the element size is known at
75028         compile time.
75029         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75030         needed.
75031         (xnboundedmalloc): Remove.
75032         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75033         arguments, for consistency with rest of this header.
75034         (xcharalloc): Rewrite using XNMALLOC.
75035         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75036         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75037         versions have been moved to lib/xalloc.h and renamed to be the
75038         non-*_inline versions.
75039         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75040         and xnrealloc functions, since those functions are now inline and
75041         now call us.
75042         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75043         renaming described above.
75044         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75045         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75046         captures the dependency in AC_C_INLINE.
75047
75048         New module canonicalize-lgpl, proposed by Charles Wilson in
75049         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75050         with a few small changes afterwards.
75051         * MODULES.html.sh (File system functions): New module
75052         canonicalize-lgpl.
75053         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75054         and canonicalize_file_name.
75055         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75056         * modules/canonicalize-lgpl: New files.
75057
75058 2006-11-05  Bruno Haible  <bruno@clisp.org>
75059
75060         * gnulib-tool (func_import, func_create_testdir): Create directories
75061         also for files in subdirectories of lib/.
75062
75063 2006-11-05  Bruno Haible  <bruno@clisp.org>
75064
75065         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75066         ANSI C compliant.
75067
75068 2006-11-03  Bruno Haible  <bruno@clisp.org>
75069
75070         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75071         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75072         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75073         (xnboundedmalloc): New inline function.
75074         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75075         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75076         xmalloc.
75077         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75078         xmalloc.
75079         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75080         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75081         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75082         xmalloc.
75083         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75084         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75085         xmalloc.
75086         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75087         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75088         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75089         xmalloc.
75090         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75091         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75092         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75093         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75094         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75095         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75096         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75097
75098 2006-11-03  Bruno Haible  <bruno@clisp.org>
75099
75100         * lib/c-ctype.h [C++]: Define functions without name mangling.
75101         * lib/fwriteerror.h [C++]: Likewise.
75102         * lib/gcd.h [C++]: Likewise.
75103         * lib/linebreak.h [C++]: Likewise.
75104
75105 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75106
75107         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75108         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75109         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75110         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75111         Check for functions and headers just once.
75112         Check for declaration of canonicalize_file_name.
75113         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75114
75115 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75116
75117         * gnulib-tool (func_import): Fix typo in actioncmd.
75118
75119 2006-11-02  Bruno Haible  <bruno@clisp.org>
75120
75121         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75122         newline sequence in the Makefile.am snippet as a space, like "make"
75123         does.
75124         Reported by Roger Persson <perrog@gmail.com>.
75125
75126 2006-11-01  Bruno Haible  <bruno@clisp.org>
75127
75128         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75129         already declared in <string.h>.
75130         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75131
75132 2006-11-01  Bruno Haible  <bruno@clisp.org>
75133
75134         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75135         * lib/strcase.h: Include <string.h>.
75136         (strcasecmp): Define to rpl_strcasecmp here.
75137
75138 2006-11-01  Bruno Haible  <bruno@clisp.org>
75139
75140         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75141
75142 2006-11-01  Eric Blake  <ebb9@byu.net>
75143
75144         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75145
75146         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75147
75148 2006-10-29  Bruno Haible  <bruno@clisp.org>
75149
75150         Make it compile in C++ mode.
75151         * lib/full-write.c (full_rw): Add a cast.
75152
75153 2006-11-01  Bruno Haible  <bruno@clisp.org>
75154
75155         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75156         be POSIX compliant.
75157         Reported by Roger Persson <perrog@gmail.com>.
75158
75159 2006-11-01  Eric Blake  <ebb9@byu.net>
75160
75161         * lib/getopt_.h: Fix comments.
75162
75163 2006-10-31  Eric Blake  <ebb9@byu.net>
75164
75165         * modules/tmpdir (Depends-on): Add sys_stat.
75166         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75167         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75168         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75169         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75170         tempname.
75171
75172 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75173
75174         Avoid some C++ diagnostics reported by Bruno Haible.
75175         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75176         xmalloc.
75177         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75178         (struct slotvec): Move to top level.
75179         (quotearg_n_options): Rewrite to avoid xmalloc.
75180         * lib/xalloc.h (xcharalloc): New function.
75181         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75182         [defined __cplusplus]: Add function template that provides result
75183         type propagation.  This part of the change is from Bruno Haible.
75184
75185 2006-10-29  Bruno Haible  <bruno@clisp.org>
75186
75187         Make it compile in C++ mode.
75188         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75189         * lib/strnlen1.c (strnlen1): Cast memchr result.
75190         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75191         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75192         (create_temp_dir): Rename local variable 'template'.
75193         (compile_csharp_using_sscli): Add cast.
75194         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75195         * lib/findprog.c (find_in_path): Likewise.
75196         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75197         * lib/wait-process.c (register_slave_subprocess): Likewise.
75198
75199 2006-10-22  Bruno Haible  <bruno@clisp.org>
75200
75201         * modules/tsearch: New file.
75202         * lib/tsearch.h: New file.
75203         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75204         * m4/tsearch.m4: New file.
75205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75206
75207 2006-10-29  Eric Blake  <ebb9@byu.net>
75208
75209         * lib/arcfour.c: Assume config.h.
75210         * lib/arctwo.c: Likewise.
75211         * lib/base64.c: Likewise.
75212         * lib/check-version.c: Likewise.
75213         * lib/crc.c: Likewise.
75214         * lib/des.c: Likewise.
75215         * lib/gc-gnulib.c: Likewise.
75216         * lib/gc-libgcrypt.c: Likewise.
75217         * lib/gc-pbkdf2-sha1.c: Likewise.
75218         * lib/getaddrinfo.c: Likewise.
75219         * lib/getdelim.c: Likewise.
75220         * lib/getline.c: Likewise.
75221         * lib/hmac-md5.c: Likewise.
75222         * lib/hmac-sha1.c: Likewise.
75223         * lib/iconvme.c: Likewise.
75224         * lib/md2.c: Likewise.
75225         * lib/md4.c: Likewise.
75226         * lib/memxor.c: Likewise.
75227         * lib/read-file.c: Likewise.
75228         * lib/readline.c: Likewise.
75229         * lib/rijndael-alg-fst.c: Likewise.
75230         * lib/rijndael-api-fst.c: Likewise.
75231         * lib/xgetdomainname.c: Likewise.
75232
75233 2006-10-28  Eric Blake  <ebb9@byu.net>
75234
75235         * lib/xstrndup.c: Assume config.h.
75236
75237 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75238
75239         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75240         stat-macros.h is now for our own macros, whereas stat_h is for
75241         macros in the <sys/stat.h> name space.
75242         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75243         (STAT_MACROS_H): Remove.
75244         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75245         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75246         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75247         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75248         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75249         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75250         Move these macros to ...
75251         * lib/stat_.h: here.  Don't include stat-macros.h.
75252         * lib/canonicalize.c: Don't include stat-macros.h.
75253         * lib/chown.c: Likewise.
75254         * lib/euidaccess.c: Likewise.
75255         * lib/file-type.c: Likewise.
75256         * lib/filemode.c: Likewise.
75257         * lib/glob.c: Likewise.
75258         * lib/isapipe.c: Likewise.
75259         * lib/lchown.c: Likewise.
75260         * lib/lstat.c: Likewise.
75261         * lib/mkdir-p.c: Likewise.
75262         * lib/rmdir.c: Likewise.
75263         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75264         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75265         unless mkdir isn't declared, to speed up 'configure'.
75266         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75267         would define all the S_* symbols.
75268         * modules/canonicalize (Depends-on):
75269         Depend on sys_stat, not stat-macros.
75270         * modules/chown: Likewise.
75271         * modules/euidaccess: Likewise.
75272         * modules/filemode: Likewise.
75273         * modules/file-type: Likewise.
75274         * modules/glob: Likewise.
75275         * modules/isapipe: Likewise.
75276         * modules/lchown: Likewise.
75277         * modules/lstat: Likewise.
75278         * modules/mkancesdirs: Likewise.
75279         * modules/rmdir: Likewise.
75280         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75281         * modules/modechange: Likewise.
75282         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75283         (configure.ac): Remove gl_STAT_MACROS.
75284         * modules/sys_stat (Depends-on): Remove stat-macros.
75285
75286 2006-10-27  Bruno Haible  <bruno@clisp.org>
75287
75288         * m4/signed.m4: Remove file.
75289         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75290         invocation.
75291         * modules/vasnprintf (Files): Remove m4/signed.m4.
75292
75293 2006-10-27  Bruno Haible  <bruno@clisp.org>
75294
75295         Update to GNU gettext 0.16.
75296         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75297         m4/inttypes-h.m4, m4/signed.m4.
75298         * m4/gettext.m4: Update to GNU gettext 0.16.
75299         * m4/intl.m4: New file, from GNU gettext.
75300         * m4/intldir.m4: New file, from GNU gettext.
75301         * config/srclist.txt: Update
75302
75303 2006-10-27  Eric Blake  <ebb9@byu.net>
75304
75305         * MODULES.html.sh: Document tempname.
75306         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75307         dependencies.
75308         (Files): Move lib/tempname.c...
75309         * modules/tempname: ...to this new module.
75310         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75311         (gl_PREREQ_TEMPNAME): Move...
75312         * m4/tempname.m4: ...to this new file.
75313         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75314         * modules/sys_stat (Depends-on): Add stat-macros.
75315         * lib/stat_.h (includes): Pick up stat macros.
75316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75317         if stat macros are broken.
75318         * lib/tempname.c (includes): No need to include "stat-macros.h".
75319         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75320         (direxists, __path_search) [!_LIBC]: Don't compile these in
75321         gnulib; the tmpdir module covers that.
75322         * lib/tempname.h: New file.
75323
75324 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         * COPYING: Explain how gnulib-tool converts licence headers.
75327         Almost all wording by Eric Blake.
75328
75329 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75330
75331         * lib/mbchar.h (is_basic_table): Make read-only.
75332         * lib/mbchar.c (is_basic_table): Likewise.
75333         Reported by John Darrington.
75334
75335 2006-10-25  Bruno Haible  <bruno@clisp.org>
75336
75337         * lib/progname.h (set_program_name): Undefine before defining.
75338
75339 2006-10-25  Bruno Haible  <bruno@clisp.org>
75340
75341         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75342         false for non-gcc C++ compilers.
75343         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75344
75345 2006-10-24  Bruno Haible  <bruno@clisp.org>
75346
75347         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75348         iconv implementations like Irix iconv.
75349
75350 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75351
75352         * modules/vararrays: New file.
75353         * m4/vararrays.m4: New file, taken from diffutils.
75354         * MODULES.html.sh: New module vararrays.
75355
75356 2006-10-24  Karl Berry  <karl@gnu.org>
75357
75358         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75359         Don't call GNU Unix.
75360
75361 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75362
75363         * users.txt: Add Libtool.
75364
75365         Sync from Libtool:
75366
75367         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75370         to gnulib's policy of including config.h unconditionally.
75371
75372 2006-10-24  Bruno Haible  <bruno@clisp.org>
75373
75374         * modules/wcwidth (Files): Add m4/wint_t.m4.
75375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75376         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75377
75378 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75379
75380         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75381         to pacify GCC with some -W flags enabled.  Problem reported by
75382         Bruno Haible.
75383
75384 2006-10-24  Jim Meyering  <jim@meyering.net>
75385
75386         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75387         Reported by Karl Berry.
75388
75389 2006-10-23  Bruno Haible  <bruno@clisp.org>
75390
75391         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75392
75393 2006-10-24  Bruno Haible  <bruno@clisp.org>
75394
75395         * lib/gl_list.h: Use C comment style, not C++ comment style.
75396
75397 2006-10-23  Eric Blake  <ebb9@byu.net>
75398
75399         * lib/getaddrinfo.c (includes): Add missing include.
75400
75401 2006-10-23  Bruno Haible  <bruno@clisp.org>
75402             Paul Eggert  <eggert@cs.ucla.edu>
75403
75404         Ability to rename obstack_free.
75405         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75406         obstack_free.
75407         (obstack_free): Invoke the __obstack_free macro.
75408         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75409
75410 2006-10-23  Bruno Haible  <bruno@clisp.org>
75411             Paul Eggert  <eggert@cs.ucla.edu>
75412
75413         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75414         __argc, __argv from the declaration. (They are defined as macros on
75415         mingw.)
75416
75417 2006-10-22  Bruno Haible  <bruno@clisp.org>
75418
75419         * doc/gnulib-intro.texi: New file.
75420         * doc/gnulib.texi: Include it.
75421
75422 2006-10-21  Bruno Haible  <bruno@clisp.org>
75423
75424         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75425         "Introduction", "Miscellanous Notes", "Particular Modules".
75426
75427 2006-10-21  Bruno Haible  <bruno@clisp.org>
75428
75429         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75430         Change mostlyclean-local rule to avoid sh syntax error from bash
75431         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75432
75433 2006-10-23  Jim Meyering  <jim@meyering.net>
75434
75435         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75436         in place of snprintf.
75437
75438         * modules/inttostr (Files): Add lib/uinttostr.c.
75439         * lib/uinttostr.c (inttostr): New file/function.
75440         * lib/inttostr.h (uinttostr): Declare.
75441         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75442         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75443         Add uinttostr.
75444         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75445
75446 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75447
75448         * lib/canonicalize.c (ELOOP): Define if not already defined.
75449         Problem reported by Bruno Haible in
75450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75451
75452 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75453
75454         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75455         Problem reported by Perry Smith and Ville Laurikari.
75456
75457         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75458         uses.
75459
75460 2006-10-19  Bruno Haible  <bruno@clisp.org>
75461
75462         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75463         for mingw.
75464
75465 2006-10-19  Bruno Haible  <bruno@clisp.org>
75466
75467         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75468         Needed for mingw.
75469
75470 2006-10-19  Bruno Haible  <bruno@clisp.org>
75471
75472         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75473
75474 2006-10-19  Bruno Haible  <bruno@clisp.org>
75475
75476         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75477         it.
75478
75479 2006-10-19  Bruno Haible  <bruno@clisp.org>
75480
75481         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75482         invocation.
75483
75484 2006-10-19  Bruno Haible  <bruno@clisp.org>
75485
75486         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75487         mountlist by default.
75488
75489 2006-10-16  Bruno Haible  <bruno@clisp.org>
75490
75491         * lib/c-strstr.c: Include c-strstr.h.
75492
75493 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75494
75495         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75496         in a slash.
75497
75498 2006-10-18  Bruno Haible  <bruno@clisp.org>
75499
75500         * lib/lock.h [C++]: Wrap definitions in extern "C".
75501
75502 2006-10-18  Bruno Haible  <bruno@clisp.org>
75503
75504         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75505         gl_LIBOBJS list.
75506
75507 2006-10-18  Bruno Haible  <bruno@clisp.org>
75508
75509         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75510
75511 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * lib/xstrtol.h: Include gettext.h.
75514         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75515         Problem reported by Eric Blake.
75516         * modules/xstrtol (Depends-on): Add gettext-h.
75517
75518 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75519
75520         * lib/strftime.c (advance): New macro.
75521         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75522         incomplete type, so you can't add 0 to it.  Problem and patch
75523         reported by Eelco Dolstra for dietlibc.
75524
75525 2006-10-18  Jim Meyering  <jim@meyering.net>
75526
75527         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75528         type for a local, and rename it: s/up/user_proc/.
75529
75530 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75531
75532         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75533         READ_UTMP_USER_PROCESS.
75534         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75535
75536 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75539         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75540
75541 2006-10-17  Eric Blake  <ebb9@byu.net>
75542
75543         * lib/sigprocmask.c (sigprocmask): Fix typo.
75544
75545         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75546
75547         * modules/clean-temp (Makefile.am): Don't add to make output...
75548         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75549         config.h.
75550
75551 2006-10-17  Bruno Haible  <bruno@clisp.org>
75552
75553         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75554         differently if DEFAULT_TEXT_DOMAIN is set.
75555
75556 2006-10-16  Bruno Haible  <bruno@clisp.org>
75557
75558         * lib/clean-temp.c: Include fwriteerror.h.
75559
75560 2006-10-16  Bruno Haible  <bruno@clisp.org>
75561
75562         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75563
75564 2006-10-16  Bruno Haible  <bruno@clisp.org>
75565
75566         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75567         * lib/sigprocmask.h: Include <sys/types.h>.
75568         (sigset_t): Use the system's definition if present.
75569
75570 2006-10-17  Eric Blake  <ebb9@byu.net>
75571
75572         * lib/xvasprintf.c (includes): Assume config.h.
75573         * lib/xasprintf.c (includes): Likewise.
75574
75575 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75578         at least as wide as intmax_t.
75579
75580 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75581
75582         (Imported from Automake.)
75583         * build-aux/gnupload: Update to version 1.1 of directive file.
75584
75585 2006-10-16  Eric Blake  <ebb9@byu.net>
75586
75587         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75588         match Automake 1.10a.
75589
75590 2006-10-14  Bruno Haible  <bruno@clisp.org>
75591
75592         * modules/sigprocmask: New file.
75593         * lib/sigprocmask.h: New file.
75594         * lib/sigprocmask.c: New file.
75595         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75596         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75597         request sigprocmask.o.
75598         (gl_PREREQ_SIGPROCMASK): New macro.
75599         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75600         (Depends-on): Add sigprocmask.
75601         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75602         gt_SIGNALBLOCKING. Test for 'raise' only once.
75603         * lib/fatal-signal.c: Include sigprocmask.h.
75604         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75605         unblock_fatal_signals): Define always.
75606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75607         sigprocmask.
75608
75609 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75610
75611         Sync from Automake.
75612         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75613         which incorrectly sets the mode of an existing destination
75614         directory.  In some cases the unpatched install-sh could do the
75615         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75616         system.  We hope this is rare in practice, but it's clearly worth
75617         fixing.  Problem reported by Alex Unleashed in
75618         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75619         Also, don't bother to check for -m bugs unless we're using -m;
75620         suggested by Stepan Kasal.
75621
75622 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75623
75624         Sync from Automake.
75625         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75626         `-c' flag, so they appear at the same position as in %FASTDEP%
75627         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75628         which ignores unknown options only after the first non-option.
75629         Bug report against M4 by Nelson H. F. Beebe.
75630
75631 2006-10-13  Jim Meyering  <jim@meyering.net>
75632
75633         Fix a bug in yesterday's change.
75634         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75635         p->fts_statp->st_dev would be used uninitialized.
75636         Ensures that we always call fts_stat on the very first entry.
75637         Miklos Szeredi reported that find -xdev stopped working.
75638
75639 2006-10-12  Bruno Haible  <bruno@clisp.org>
75640
75641         * gnulib-tool (func_get_automake_snippet): Append an automatically
75642         computed EXTRA_DIST augmentation.
75643         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75644         * modules/alloca-opt (Makefile.am): Likewise.
75645         * modules/allocsa (Makefile.am): Likewise.
75646         * modules/arcfour (Makefile.am): Likewise.
75647         * modules/arctwo (Makefile.am): Likewise.
75648         * modules/argmatch (Makefile.am): Likewise.
75649         * modules/argz (Makefile.am): Likewise.
75650         * modules/atexit (Makefile.am): Likewise.
75651         * modules/backupfile (Makefile.am): Likewise.
75652         * modules/byteswap (Makefile.am): Likewise.
75653         * modules/c-strtod (Makefile.am): Likewise.
75654         * modules/c-strtold (Makefile.am): Likewise.
75655         * modules/calloc (Makefile.am): Likewise.
75656         * modules/canon-host (Makefile.am): Likewise.
75657         * modules/canonicalize (Makefile.am): Likewise.
75658         * modules/chdir-long (Makefile.am): Likewise.
75659         * modules/chdir-safer (Makefile.am): Likewise.
75660         * modules/check-version (Makefile.am): Likewise.
75661         * modules/chown (Makefile.am): Likewise.
75662         * modules/cloexec (Makefile.am): Likewise.
75663         * modules/close-stream (Makefile.am): Likewise.
75664         * modules/closeout (Makefile.am): Likewise.
75665         * modules/crc (Makefile.am): Likewise.
75666         * modules/csharpexec (Makefile.am): Likewise.
75667         * modules/cycle-check (Makefile.am): Likewise.
75668         * modules/des (Makefile.am): Likewise.
75669         * modules/dev-ino (Makefile.am): Likewise.
75670         * modules/dirfd (Makefile.am): Likewise.
75671         * modules/dirname (Makefile.am): Likewise.
75672         * modules/dup2 (Makefile.am): Likewise.
75673         * modules/eealloc (Makefile.am): Likewise.
75674         * modules/error (Makefile.am): Likewise.
75675         * modules/euidaccess (Makefile.am): Likewise.
75676         * modules/exclude (Makefile.am): Likewise.
75677         * modules/exitfail (Makefile.am): Likewise.
75678         * modules/fcntl-safer (Makefile.am): Likewise.
75679         * modules/fcntl (Makefile.am): Likewise.
75680         * modules/file-type (Makefile.am): Likewise.
75681         * modules/fileblocks (Makefile.am): Likewise.
75682         * modules/filemode (Makefile.am): Likewise.
75683         * modules/filenamecat (Makefile.am): Likewise.
75684         * modules/fnmatch (Makefile.am): Likewise.
75685         * modules/fopen-safer (Makefile.am): Likewise.
75686         * modules/fpending (Makefile.am): Likewise.
75687         * modules/fprintftime (Makefile.am): Likewise.
75688         * modules/free (Makefile.am): Likewise.
75689         * modules/fsusage (Makefile.am): Likewise.
75690         * modules/ftruncate (Makefile.am): Likewise.
75691         * modules/fts (Makefile.am): Likewise.
75692         * modules/gc-arcfour (Makefile.am): Likewise.
75693         * modules/gc-des (Makefile.am): Likewise.
75694         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75695         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75696         * modules/gc-md4 (Makefile.am): Likewise.
75697         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75698         * modules/gc-sha1 (Makefile.am): Likewise.
75699         * modules/gc (Makefile.am): Likewise.
75700         * modules/getaddrinfo (Makefile.am): Likewise.
75701         * modules/getcwd (Makefile.am): Likewise.
75702         * modules/getdelim (Makefile.am): Likewise.
75703         * modules/getdomainname (Makefile.am): Likewise.
75704         * modules/getgroups (Makefile.am): Likewise.
75705         * modules/gethostname (Makefile.am): Likewise.
75706         * modules/gethrxtime (Makefile.am): Likewise.
75707         * modules/getline (Makefile.am): Likewise.
75708         * modules/getloadavg (Makefile.am): Likewise.
75709         * modules/getlogin_r (Makefile.am): Likewise.
75710         * modules/getndelim2 (Makefile.am): Likewise.
75711         * modules/getopt (Makefile.am): Likewise.
75712         * modules/getpagesize (Makefile.am): Likewise.
75713         * modules/getpass-gnu (Makefile.am): Likewise.
75714         * modules/getpass (Makefile.am): Likewise.
75715         * modules/getsubopt (Makefile.am): Likewise.
75716         * modules/gettime (Makefile.am): Likewise.
75717         * modules/gettimeofday (Makefile.am): Likewise.
75718         * modules/getugroups (Makefile.am): Likewise.
75719         * modules/getusershell (Makefile.am): Likewise.
75720         * modules/glob (Makefile.am): Likewise.
75721         * modules/group-member (Makefile.am): Likewise.
75722         * modules/hard-locale (Makefile.am): Likewise.
75723         * modules/hash (Makefile.am): Likewise.
75724         * modules/hmac-md5 (Makefile.am): Likewise.
75725         * modules/hmac-sha1 (Makefile.am): Likewise.
75726         * modules/human (Makefile.am): Likewise.
75727         * modules/idcache (Makefile.am): Likewise.
75728         * modules/imaxabs (Makefile.am): Likewise.
75729         * modules/imaxdiv (Makefile.am): Likewise.
75730         * modules/inet_ntop (Makefile.am): Likewise.
75731         * modules/inet_pton (Makefile.am): Likewise.
75732         * modules/intprops (Makefile.am): Likewise.
75733         * modules/inttostr (Makefile.am): Likewise.
75734         * modules/inttypes (Makefile.am): Likewise.
75735         * modules/isapipe (Makefile.am): Likewise.
75736         * modules/javaversion (Makefile.am): Likewise.
75737         * modules/lchmod (Makefile.am): Likewise.
75738         * modules/lchown (Makefile.am): Likewise.
75739         * modules/localcharset (Makefile.am): Likewise.
75740         * modules/long-options (Makefile.am): Likewise.
75741         * modules/lstat (Makefile.am): Likewise.
75742         * modules/malloc (Makefile.am): Likewise.
75743         * modules/mathl (Makefile.am): Likewise.
75744         * modules/mbchar (Makefile.am): Likewise.
75745         * modules/md2 (Makefile.am): Likewise.
75746         * modules/md4 (Makefile.am): Likewise.
75747         * modules/md5 (Makefile.am): Likewise.
75748         * modules/memcasecmp (Makefile.am): Likewise.
75749         * modules/memchr (Makefile.am): Likewise.
75750         * modules/memcmp (Makefile.am): Likewise.
75751         * modules/memcoll (Makefile.am): Likewise.
75752         * modules/memcpy (Makefile.am): Likewise.
75753         * modules/memmem (Makefile.am): Likewise.
75754         * modules/memmove (Makefile.am): Likewise.
75755         * modules/mempcpy (Makefile.am): Likewise.
75756         * modules/memrchr (Makefile.am): Likewise.
75757         * modules/memset (Makefile.am): Likewise.
75758         * modules/memxor (Makefile.am): Likewise.
75759         * modules/mkancesdirs (Makefile.am): Likewise.
75760         * modules/mkdir-p (Makefile.am): Likewise.
75761         * modules/mkdir (Makefile.am): Likewise.
75762         * modules/mkdtemp (Makefile.am): Likewise.
75763         * modules/mkstemp (Makefile.am): Likewise.
75764         * modules/mktime (Makefile.am): Likewise.
75765         * modules/modechange (Makefile.am): Likewise.
75766         * modules/mountlist (Makefile.am): Likewise.
75767         * modules/nanosleep (Makefile.am): Likewise.
75768         * modules/obstack (Makefile.am): Likewise.
75769         * modules/openat (Makefile.am): Likewise.
75770         * modules/pagealign_alloc (Makefile.am): Likewise.
75771         * modules/pathmax (Makefile.am): Likewise.
75772         * modules/physmem (Makefile.am): Likewise.
75773         * modules/poll (Makefile.am): Likewise.
75774         * modules/posixtm (Makefile.am): Likewise.
75775         * modules/posixver (Makefile.am): Likewise.
75776         * modules/putenv (Makefile.am): Likewise.
75777         * modules/quote (Makefile.am): Likewise.
75778         * modules/quotearg (Makefile.am): Likewise.
75779         * modules/raise (Makefile.am): Likewise.
75780         * modules/read-file (Makefile.am): Likewise.
75781         * modules/readline (Makefile.am): Likewise.
75782         * modules/readlink (Makefile.am): Likewise.
75783         * modules/readtokens (Makefile.am): Likewise.
75784         * modules/readutmp (Makefile.am): Likewise.
75785         * modules/realloc (Makefile.am): Likewise.
75786         * modules/regex (Makefile.am): Likewise.
75787         * modules/rename-dest-slash (Makefile.am): Likewise.
75788         * modules/rename (Makefile.am): Likewise.
75789         * modules/rijndael (Makefile.am): Likewise.
75790         * modules/rmdir (Makefile.am): Likewise.
75791         * modules/rpmatch (Makefile.am): Likewise.
75792         * modules/safe-read (Makefile.am): Likewise.
75793         * modules/safe-write (Makefile.am): Likewise.
75794         * modules/same-inode (Makefile.am): Likewise.
75795         * modules/same (Makefile.am): Likewise.
75796         * modules/save-cwd (Makefile.am): Likewise.
75797         * modules/savedir (Makefile.am): Likewise.
75798         * modules/setenv (Makefile.am): Likewise.
75799         * modules/settime (Makefile.am): Likewise.
75800         * modules/sha1 (Makefile.am): Likewise.
75801         * modules/sig2str (Makefile.am): Likewise.
75802         * modules/snprintf (Makefile.am): Likewise.
75803         * modules/stat-macros (Makefile.am): Likewise.
75804         * modules/stat-time (Makefile.am): Likewise.
75805         * modules/stdbool (Makefile.am): Likewise.
75806         * modules/stdint (Makefile.am): Likewise.
75807         * modules/stdlib-safer (Makefile.am): Likewise.
75808         * modules/stpcpy (Makefile.am): Likewise.
75809         * modules/stpncpy (Makefile.am): Likewise.
75810         * modules/strcase (Makefile.am): Likewise.
75811         * modules/strcasestr (Makefile.am): Likewise.
75812         * modules/strchrnul (Makefile.am): Likewise.
75813         * modules/strcspn (Makefile.am): Likewise.
75814         * modules/strdup (Makefile.am): Likewise.
75815         * modules/strerror (Makefile.am): Likewise.
75816         * modules/strftime (Makefile.am): Likewise.
75817         * modules/strndup (Makefile.am): Likewise.
75818         * modules/strnlen (Makefile.am): Likewise.
75819         * modules/strpbrk (Makefile.am): Likewise.
75820         * modules/strsep (Makefile.am): Likewise.
75821         * modules/strstr (Makefile.am): Likewise.
75822         * modules/strtod (Makefile.am): Likewise.
75823         * modules/strtoimax (Makefile.am): Likewise.
75824         * modules/strtok_r (Makefile.am): Likewise.
75825         * modules/strtol (Makefile.am): Likewise.
75826         * modules/strtoll (Makefile.am): Likewise.
75827         * modules/strtoul (Makefile.am): Likewise.
75828         * modules/strtoull (Makefile.am): Likewise.
75829         * modules/strtoumax (Makefile.am): Likewise.
75830         * modules/strverscmp (Makefile.am): Likewise.
75831         * modules/sys_socket (Makefile.am): Likewise.
75832         * modules/sys_stat (Makefile.am): Likewise.
75833         * modules/sysexits (Makefile.am): Likewise.
75834         * modules/time_r (Makefile.am): Likewise.
75835         * modules/timegm (Makefile.am): Likewise.
75836         * modules/timespec (Makefile.am): Likewise.
75837         * modules/tmpfile-safer (Makefile.am): Likewise.
75838         * modules/trim (Makefile.am): Likewise.
75839         * modules/unistd-safer (Makefile.am): Likewise.
75840         * modules/unlinkdir (Makefile.am): Likewise.
75841         * modules/unlocked-io (Makefile.am): Likewise.
75842         * modules/userspec (Makefile.am): Likewise.
75843         * modules/utime (Makefile.am): Likewise.
75844         * modules/utimecmp (Makefile.am): Likewise.
75845         * modules/utimens (Makefile.am): Likewise.
75846         * modules/vasnprintf (Makefile.am): Likewise.
75847         * modules/vasprintf (Makefile.am): Likewise.
75848         * modules/vsnprintf (Makefile.am): Likewise.
75849         * modules/xalloc (Makefile.am): Likewise.
75850         * modules/xgetcwd (Makefile.am): Likewise.
75851         * modules/xnanosleep (Makefile.am): Likewise.
75852         * modules/xreadlink (Makefile.am): Likewise.
75853         * modules/xstrtod (Makefile.am): Likewise.
75854         * modules/xstrtol (Makefile.am): Likewise.
75855         * modules/xstrtold (Makefile.am): Likewise.
75856         * modules/yesno (Makefile.am): Likewise.
75857         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75858
75859 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * modules/error (Makefile.am): Distribute files through
75862         EXTRA_DIST, not lib_SOURCES.
75863
75864 2006-10-12  Eric Blake  <ebb9@byu.net>
75865
75866         * modules/error (Makefile.am): Distribute files in /lib.
75867         * modules/obstack (Makefile.am): Likewise.
75868
75869 2006-10-12  Bruno Haible  <bruno@clisp.org>
75870
75871         * modules/acl (Makefile.am): Distribute all files in lib/ through
75872         EXTRA_DIST.
75873         * modules/arcfour (Makefile.am): Likewise.
75874         * modules/arctwo (Makefile.am): Likewise.
75875         * modules/argmatch (Makefile.am): Likewise.
75876         * modules/argz (Makefile.am): Likewise.
75877         * modules/atexit (Makefile.am): Likewise.
75878         * modules/backupfile (Makefile.am): Likewise.
75879         * modules/c-strtod (Makefile.am): Likewise.
75880         * modules/c-strtold (Makefile.am): Likewise.
75881         * modules/calloc (Makefile.am): Likewise.
75882         * modules/canon-host (Makefile.am): Likewise.
75883         * modules/canonicalize (Makefile.am): Likewise.
75884         * modules/chdir-long (Makefile.am): Likewise.
75885         * modules/chdir-safer (Makefile.am): Likewise.
75886         * modules/check-version (Makefile.am): Likewise.
75887         * modules/chown (Makefile.am): Likewise.
75888         * modules/cloexec (Makefile.am): Likewise.
75889         * modules/close-stream (Makefile.am): Likewise.
75890         * modules/closeout (Makefile.am): Likewise.
75891         * modules/crc (Makefile.am): Likewise.
75892         * modules/cycle-check (Makefile.am): Likewise.
75893         * modules/des (Makefile.am): Likewise.
75894         * modules/dirfd (Makefile.am): Likewise.
75895         * modules/dirname (Makefile.am): Likewise.
75896         * modules/dup2 (Makefile.am): Likewise.
75897         * modules/euidaccess (Makefile.am): Likewise.
75898         * modules/exclude (Makefile.am): Likewise.
75899         * modules/exitfail (Makefile.am): Likewise.
75900         * modules/fcntl-safer (Makefile.am): Likewise.
75901         * modules/file-type (Makefile.am): Likewise.
75902         * modules/fileblocks (Makefile.am): Likewise.
75903         * modules/filemode (Makefile.am): Likewise.
75904         * modules/filenamecat (Makefile.am): Likewise.
75905         * modules/fnmatch (Makefile.am): Likewise.
75906         * modules/fopen-safer (Makefile.am): Likewise.
75907         * modules/fpending (Makefile.am): Likewise.
75908         * modules/fprintftime (Makefile.am): Likewise.
75909         * modules/free (Makefile.am): Likewise.
75910         * modules/fsusage (Makefile.am): Likewise.
75911         * modules/ftruncate (Makefile.am): Likewise.
75912         * modules/fts (Makefile.am): Likewise.
75913         * modules/gc (Makefile.am): Likewise.
75914         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75915         * modules/getaddrinfo (Makefile.am): Likewise.
75916         * modules/getcwd (Makefile.am): Likewise.
75917         * modules/getdelim (Makefile.am): Likewise.
75918         * modules/getdomainname (Makefile.am): Likewise.
75919         * modules/getgroups (Makefile.am): Likewise.
75920         * modules/gethostname (Makefile.am): Likewise.
75921         * modules/gethrxtime (Makefile.am): Likewise.
75922         * modules/getline (Makefile.am): Likewise.
75923         * modules/getloadavg (Makefile.am): Likewise.
75924         * modules/getlogin_r (Makefile.am): Likewise.
75925         * modules/getopt (Makefile.am): Likewise.
75926         * modules/getpass (Makefile.am): Likewise.
75927         * modules/getpass-gnu (Makefile.am): Likewise.
75928         * modules/getsubopt (Makefile.am): Likewise.
75929         * modules/gettime (Makefile.am): Likewise.
75930         * modules/gettimeofday (Makefile.am): Likewise.
75931         * modules/getugroups (Makefile.am): Likewise.
75932         * modules/getusershell (Makefile.am): Likewise.
75933         * modules/glob (Makefile.am): Likewise.
75934         * modules/group-member (Makefile.am): Likewise.
75935         * modules/hard-locale (Makefile.am): Likewise.
75936         * modules/hash (Makefile.am): Likewise.
75937         * modules/hmac-md5 (Makefile.am): Likewise.
75938         * modules/hmac-sha1 (Makefile.am): Likewise.
75939         * modules/human (Makefile.am): Likewise.
75940         * modules/idcache (Makefile.am): Likewise.
75941         * modules/imaxabs (Makefile.am): Likewise.
75942         * modules/imaxdiv (Makefile.am): Likewise.
75943         * modules/inet_ntop (Makefile.am): Likewise.
75944         * modules/inet_pton (Makefile.am): Likewise.
75945         * modules/inttostr (Makefile.am): Likewise.
75946         * modules/isapipe (Makefile.am): Likewise.
75947         * modules/lchown (Makefile.am): Likewise.
75948         * modules/long-options (Makefile.am): Likewise.
75949         * modules/lstat (Makefile.am): Likewise.
75950         * modules/malloc (Makefile.am): Likewise.
75951         * modules/mathl (Makefile.am): Likewise.
75952         * modules/mbchar (Makefile.am): Likewise.
75953         * modules/md2 (Makefile.am): Likewise.
75954         * modules/md4 (Makefile.am): Likewise.
75955         * modules/md5 (Makefile.am): Likewise.
75956         * modules/memcasecmp (Makefile.am): Likewise.
75957         * modules/memchr (Makefile.am): Likewise.
75958         * modules/memcmp (Makefile.am): Likewise.
75959         * modules/memcoll (Makefile.am): Likewise.
75960         * modules/memcpy (Makefile.am): Likewise.
75961         * modules/memmem (Makefile.am): Likewise.
75962         * modules/memmove (Makefile.am): Likewise.
75963         * modules/mempcpy (Makefile.am): Likewise.
75964         * modules/memrchr (Makefile.am): Likewise.
75965         * modules/memset (Makefile.am): Likewise.
75966         * modules/memxor (Makefile.am): Likewise.
75967         * modules/mkancesdirs (Makefile.am): Likewise.
75968         * modules/mkdir (Makefile.am): Likewise.
75969         * modules/mkdir-p (Makefile.am): Likewise.
75970         * modules/mkdtemp (Makefile.am): Likewise.
75971         * modules/mkstemp (Makefile.am): Likewise.
75972         * modules/mktime (Makefile.am): Likewise.
75973         * modules/modechange (Makefile.am): Likewise.
75974         * modules/mountlist (Makefile.am): Likewise.
75975         * modules/nanosleep (Makefile.am): Likewise.
75976         * modules/openat (Makefile.am): Likewise.
75977         * modules/pagealign_alloc (Makefile.am): Likewise.
75978         * modules/physmem (Makefile.am): Likewise.
75979         * modules/poll (Makefile.am): Likewise.
75980         * modules/posixtm (Makefile.am): Likewise.
75981         * modules/posixver (Makefile.am): Likewise.
75982         * modules/putenv (Makefile.am): Likewise.
75983         * modules/quote (Makefile.am): Likewise.
75984         * modules/quotearg (Makefile.am): Likewise.
75985         * modules/raise (Makefile.am): Likewise.
75986         * modules/read-file (Makefile.am): Likewise.
75987         * modules/readline (Makefile.am): Likewise.
75988         * modules/readlink (Makefile.am): Likewise.
75989         * modules/readtokens (Makefile.am): Likewise.
75990         * modules/readutmp (Makefile.am): Likewise.
75991         * modules/realloc (Makefile.am): Likewise.
75992         * modules/regex (Makefile.am): Likewise.
75993         * modules/rename (Makefile.am): Likewise.
75994         * modules/rename-dest-slash (Makefile.am): Likewise.
75995         * modules/rijndael (Makefile.am): Likewise.
75996         * modules/rmdir (Makefile.am): Likewise.
75997         * modules/rpmatch (Makefile.am): Likewise.
75998         * modules/safe-read (Makefile.am): Likewise.
75999         * modules/safe-write (Makefile.am): Likewise.
76000         * modules/same (Makefile.am): Likewise.
76001         * modules/save-cwd (Makefile.am): Likewise.
76002         * modules/savedir (Makefile.am): Likewise.
76003         * modules/setenv (Makefile.am): Likewise.
76004         * modules/settime (Makefile.am): Likewise.
76005         * modules/sha1 (Makefile.am): Likewise.
76006         * modules/sig2str (Makefile.am): Likewise.
76007         * modules/snprintf (Makefile.am): Likewise.
76008         * modules/stdlib-safer (Makefile.am): Likewise.
76009         * modules/stpcpy (Makefile.am): Likewise.
76010         * modules/stpncpy (Makefile.am): Likewise.
76011         * modules/strcase (Makefile.am): Likewise.
76012         * modules/strcasestr (Makefile.am): Likewise.
76013         * modules/strchrnul (Makefile.am): Likewise.
76014         * modules/strcspn (Makefile.am): Likewise.
76015         * modules/strdup (Makefile.am): Likewise.
76016         * modules/strerror (Makefile.am): Likewise.
76017         * modules/strftime (Makefile.am): Likewise.
76018         * modules/strndup (Makefile.am): Likewise.
76019         * modules/strnlen (Makefile.am): Likewise.
76020         * modules/strpbrk (Makefile.am): Likewise.
76021         * modules/strsep (Makefile.am): Likewise.
76022         * modules/strstr (Makefile.am): Likewise.
76023         * modules/strtod (Makefile.am): Likewise.
76024         * modules/strtoimax (Makefile.am): Likewise.
76025         * modules/strtok_r (Makefile.am): Likewise.
76026         * modules/strtol (Makefile.am): Likewise.
76027         * modules/strtoll (Makefile.am): Likewise.
76028         * modules/strtoul (Makefile.am): Likewise.
76029         * modules/strtoull (Makefile.am): Likewise.
76030         * modules/strtoumax (Makefile.am): Likewise.
76031         * modules/strverscmp (Makefile.am): Likewise.
76032         * modules/time_r (Makefile.am): Likewise.
76033         * modules/timegm (Makefile.am): Likewise.
76034         * modules/tmpfile-safer (Makefile.am): Likewise.
76035         * modules/unistd-safer (Makefile.am): Likewise.
76036         * modules/unlinkdir (Makefile.am): Likewise.
76037         * modules/userspec (Makefile.am): Likewise.
76038         * modules/utime (Makefile.am): Likewise.
76039         * modules/utimecmp (Makefile.am): Likewise.
76040         * modules/utimens (Makefile.am): Likewise.
76041         * modules/vasnprintf (Makefile.am): Likewise.
76042         * modules/vasprintf (Makefile.am): Likewise.
76043         * modules/vsnprintf (Makefile.am): Likewise.
76044         * modules/xalloc (Makefile.am): Likewise.
76045         * modules/xgetcwd (Makefile.am): Likewise.
76046         * modules/xnanosleep (Makefile.am): Likewise.
76047         * modules/xreadlink (Makefile.am): Likewise.
76048         * modules/xstrtod (Makefile.am): Likewise.
76049         * modules/xstrtol (Makefile.am): Likewise.
76050         * modules/xstrtold (Makefile.am): Likewise.
76051         * modules/yesno (Makefile.am): Likewise.
76052
76053 2006-10-12  Jim Meyering  <jim@meyering.net>
76054
76055         * m4/getloadavg.m4: Revert the change below.
76056
76057         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76058         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76059         fail with a symlink, which is what coreutils' ./bootstrap now
76060         creates by default.
76061
76062 2006-10-12  Bruno Haible  <bruno@clisp.org>
76063
76064         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76065         mingw.
76066         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76067         MSVC and mingw explicitly.
76068
76069 2006-10-11  Simon Josefsson  <jas@extundo.com>
76070             Bruno Haible  <bruno@clisp.org>
76071
76072         Add support for multiple gnulib-tool invocations in the scope of a
76073         single configure.ac file.
76074         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76075         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76076         with the same contents as the _LIBADD variable.
76077         (func_emit_initmacro_start, func_emit_initmacro_end,
76078         func_emit_initmacro_done): New functions.
76079         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76080         gl_LIBOBJS and gl_LTLIBOBJS.
76081
76082 2006-10-11  Bruno Haible  <bruno@clisp.org>
76083
76084         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76085         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76086         autoreconf. Instead, invoke autopoint explicitly but move back the
76087         *.m4 files from gnulib.
76088
76089 2006-10-11  Bruno Haible  <bruno@clisp.org>
76090
76091         * gnulib-tool (func_usage): Make module names after --create-testdir
76092         optional.
76093         (func_create_testdir): If no module was specified, use nearly all
76094         modules.
76095
76096 2006-10-12  Jim Meyering  <jim@meyering.net>
76097
76098         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76099         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76100         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76101         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76102         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76103         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76104         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76105         (fts_set_stat_required): New function.
76106         (fts_open): Defer the calls to fts_stat, if possible or requested.
76107         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76108         into fts_stat itself.
76109         (fts_read): Perform any required (deferred) fts_stat call.
76110         (fts_build): Likewise, for the directory we're about to open and read.
76111         In the readdir loop, carefully decide whether each entry will require
76112         an eventual call to fts_stat, using dirent.d_type info if available.
76113         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76114         a command line argument into this function.  Update all callers.
76115         Map a return value of FTS_DOT to FTS_D for a command line argument.
76116         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76117         Thanks to Miklos Szeredi for his tenacity and for the initial
76118         bug report about "find" failing on a FUSE-based file system.
76119
76120         * lib/fts.c (fts_open): Use consistent indentation.
76121
76122 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76123
76124         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76125         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76126         reported by Jim Meyering.  All uses of cache variables renamed
76127         to match Autoconf's.
76128         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76129         the other one.
76130
76131         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76132         Fix misspelling in diagnostic.
76133
76134 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76137         defined.  Problem reported by Matthew Woehlke.
76138
76139         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76140         Add support for Tandem NonStop R series.
76141         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76142         Use new macro.
76143
76144         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76145         (has_trailing_slash): Omit size arg; all callers changed.
76146         Omit 'inline', since it doesn't help performance and we'd
76147         need to configure it.
76148         Don't count //, ///, etc. as having a trailing slash.
76149         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76150         (rpl_rename_dest_slash): On failure, use rename's errno rather
76151         than (in some cases) an incorrect or junk errno.
76152         Simplify code by removing need to compute length; this does
76153         cause it to make two passes instead of one over the file name,
76154         but it's worth it.
76155
76156         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76157         change, since Autoconf's version may no longer be appropriate now
76158         that we are using CVS Autoconf's version.  Add support for Tandem.
76159
76160 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76161             Bruno Haible  <bruno@clisp.org>
76162
76163         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76164         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76165         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76166         gl_AC_TYPE_LONG_LONG.
76167
76168         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76169         instead of HAVE_LONG_LONG.
76170         * lib/printf-args.c (printf_fetchargs): Likewise.
76171         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76172         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76173         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76174         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76175         gl_AC_TYPE_LONG_LONG.
76176
76177 2006-10-11  Bruno Haible  <bruno@clisp.org>
76178
76179         * m4/longlong.m4: Add comments.
76180         * m4/ulonglong.m4: Likewise.
76181
76182 2006-10-10  Bruno Haible  <bruno@clisp.org>
76183
76184         Make it possible to #define stpcpy, strdup to aliases.
76185         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76186         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76187
76188 2006-10-10  Bruno Haible  <bruno@clisp.org>
76189
76190         Make it possible to #define gcd to an alias.
76191         * lib/gcd.c: Include config.h.
76192
76193 2006-10-10  Bruno Haible  <bruno@clisp.org>
76194
76195         Make it possible to #define c_isascii to an alias.
76196         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76197         defined. Undefine the macros before defining them, to avoid gcc
76198         warnings.
76199         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76200         define NO_C_CTYPE_MACROS early.
76201
76202 2006-10-10  Bruno Haible  <bruno@clisp.org>
76203
76204         Make it possible to #define set_program_name to an alias.
76205         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76206         ENABLE_RELOCATABLE early.
76207
76208 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76209
76210         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76211         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76212         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76213         More generally, don't assume that 64-bit signed int is available
76214         if unsigned int is, and vice versa.
76215         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76216         unsigned symbols, not on their signed counterparts.
76217         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76218         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76219         (UINT64_C, UINTMAX_C):
76220         Likewise.
76221         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76222         unsigned counterparts.
76223         (Have_long_long, Unsigned): New macros.
76224         (Int): Renamed from INT.
76225         (strtoimax): Use the new macros.
76226         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76227         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76228         * modules/inttypes (inttypes.h): Substitute
76229         HAVE_UNSIGNED_LONG_LONG_INT.
76230         * modules/stdint (stdint.h): Likewise.
76231         (Files): Add m4/ulonglong.m4.
76232
76233 2006-10-10  Bruno Haible  <bruno@clisp.org>
76234
76235         Fix a gcc -Wshadow warning.
76236         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76237         to 'bucket'.
76238         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76239         gl_linked_indexof_from_to): Likewise.
76240         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76241         Likewise.
76242         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76243         Likewise.
76244         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76245         Reported by Eric Blake.
76246
76247 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76248
76249         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76250         for NetBSD.  Problem reported by Bruno Haible.
76251
76252 2006-10-09  Jim Meyering  <jim@meyering.net>
76253
76254         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76255         Patch from Bruno Haible.
76256
76257 2006-10-09  Jim Meyering  <jim@meyering.net>
76258
76259         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76260         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76261         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76262
76263 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         Don't include <config.h> twice; this doesn't work in some cases,
76266         e.g., when config.h has "#define intmax_t long long int" and
76267         we include <config.h>, <inttypes.h>, <config.h> in that order.
76268         Problem reported by Matthew Woehlke in:
76269         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76270         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76271         * lib/fts-cycle.c: Don't include config.h.
76272         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76273         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76274         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76275         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76276         inttypes.h.
76277         * lib/xstrtoumax.c: Likewise.
76278         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76279         __strtol and the like, so that this module is more like its siblings.
76280         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76281         Remove; no longer needed now that we assume gnulib inttypes.h.
76282
76283 2006-10-08  Bruno Haible  <bruno@clisp.org>
76284
76285         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76286         option.
76287
76288 2006-10-07  Jim Meyering  <jim@meyering.net>
76289
76290         * modules/inttypes (inttypes.h): Revert what seems to have been
76291         an inadvertent part of today's change: use "|", not "/" in the
76292         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76293
76294 2006-10-07  Bruno Haible  <bruno@clisp.org>
76295
76296         * modules/sublist: New file.
76297
76298 2006-10-07  Bruno Haible  <bruno@clisp.org>
76299
76300         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76301         * modules/argz (argz.h): Likewise.
76302         * modules/arpa_inet (arpa/inet.h): Likewise.
76303         * modules/byteswap (byteswap.h): Likewise.
76304         * modules/configmake (configmake.h): Likewise.
76305         * modules/fcntl (fcntl.h): Likewise.
76306         * modules/fnmatch (fnmatch.h): Likewise.
76307         * modules/getopt (getopt.h): Likewise.
76308         * modules/glob (glob.h): Likewise.
76309         * modules/inttypes (inttypes.h): Likewise.
76310         * modules/netinet_in (netinet/in.h): Likewise.
76311         * modules/poll (poll.h): Likewise.
76312         * modules/stdbool (stdbool.h): Likewise.
76313         * modules/stdint (stdint.h): Likewise.
76314         * modules/sys_select (sys/select.h): Likewise.
76315         * modules/sys_socket (sys/socket.h): Likewise.
76316         * modules/sys_stat (sys/stat.h): Likewise.
76317         * modules/sysexits (sysexits.h): Likewise.
76318         * modules/unistd (unistd.h): Likewise.
76319         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76320         Add a "DO NOT EDIT" comment to the generated file.
76321         (func_import): Likewise for gnulib-comp.m4.
76322
76323 2006-10-07  Bruno Haible  <bruno@clisp.org>
76324
76325         * lib/gl_sublist.h: New file.
76326         * lib/gl_sublist.c: New file.
76327
76328 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76329
76330         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76331         name (relative to the original working directory) and the file
76332         name component (relative to the temporary working directory).  All
76333         callers changed.
76334         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76335         * lib/mkdir-p.c (make_dir_parents): Likewise.
76336         * lib/mkdir-p.h (make_dir_parents): Likewise.
76337
76338 2006-10-06  Eric Blake  <ebb9@byu.net>
76339
76340         Define several macros for use by the clean-temp module.
76341         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76342         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76343         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76344
76345         * lib/clean-temp.h (close_stream_temp): New declaration.
76346         * lib/clean-temp.c (includes): Pull in headers according to what
76347         other modules are in use.
76348         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76349
76350 2006-10-06  Bruno Haible  <bruno@clisp.org>
76351
76352         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76353         instead of fopen, fwriteerror.
76354
76355 2006-10-06  Bruno Haible  <bruno@clisp.org>
76356
76357         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76358         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76359         int.
76360         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76361         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76362         Return an error indicator.
76363         Suggested by Eric Blake.
76364
76365 2006-10-06  Bruno Haible  <bruno@clisp.org>
76366
76367         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76368         Reported by Eric Blake.
76369
76370 2006-10-06  Bruno Haible  <bruno@clisp.org>
76371
76372         * modules/closeout (Description): Mention stderr too.
76373
76374 2006-10-06  Bruno Haible  <bruno@clisp.org>
76375         and Paul Eggert  <eggert@cs.ucla.edu>
76376
76377         * lib/closeout.c (close_stdout): Also close stderr.
76378         * lib/closeout.h: Update comment.
76379
76380 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76383         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76384         * lib/dirchownmod.c: Include lchown.h.
76385         * lib/lchown.c: Don't include files that lchown.h now includes.
76386         Don't declare chown, since lchown.h now does that.
76387         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76388         (lchown): Define to rpl_chown if lchown is declared but
76389         does not exist.  Declare using a prototype if lchown is not
76390         declared.  Add a copyright notice.
76391         * lib/mkstemp.h: Include <unistd.h>.
76392         * lib/openat.c: Include lchown.h.
76393
76394         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76395         we now test for that separately.
76396         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76397         rather than O_NOFOLLOW, when testing whether it's possible to
76398         avoid a race condition reliably.
76399         * lib/savewd.c (savewd_chdir): Likewise.
76400
76401         Remove macros that are no longer needed now that stdint.h is
76402         reliable.
76403         * lib/fsusage.c (UINTMAX_MAX): Remove.
76404         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76405         * lib/utimecmp.c (SIZE_MAX): Remove.
76406
76407         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76408
76409         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76410         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76411         O_NOATIME works.
76412
76413 2006-10-05  Bruno Haible  <bruno@clisp.org>
76414
76415         * lib/gl_list.h (gl_sortedlist_search_from_to,
76416         gl_sortedlist_indexof_from_to): New declarations.
76417         (gl_list_implementation): New fields sortedlist_search_from_to,
76418         sortedlist_indexof_from_to.
76419         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76420         inline functions.
76421         * lib/gl_list.c (gl_sortedlist_search_from_to,
76422         gl_sortedlist_indexof_from_to): New functions.
76423         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76424         function.
76425         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76426         (gl_array_sortedlist_search_from_to): New function.
76427         (gl_array_list_implementation): Update.
76428         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76429         function.
76430         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76431         (gl_carray_sortedlist_search_from_to): New function.
76432         (gl_carray_list_implementation): Update.
76433         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76434         gl_linked_sortedlist_indexof_from_to): New functions.
76435         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76436         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76437         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76438         gl_tree_sortedlist_indexof_from_to): New functions.
76439         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76440         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76441         Update.
76442         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76443         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76444         Update.
76445
76446 2006-10-05  Bruno Haible  <bruno@clisp.org>
76447
76448         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76449         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76450         (struct gl_list_implementation): Add fields search_from_to,
76451         indexof_from_to. Remove fields search, indexof.
76452         (gl_list_search): Use the search_from_to method.
76453         (gl_list_search_from, gl_list_search_from_to): New functions.
76454         (gl_list_indexof): Use the indexof_from_to method.
76455         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76456         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76457         (gl_list_search_from, gl_list_search_from_to): New functions.
76458         (gl_list_indexof): Use the indexof_from_to method.
76459         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76460         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76461         gl_array_indexof. Add start_index, end_index arguments.
76462         (gl_array_search_from_to): Renamed from gl_array_search. Add
76463         start_index, end_index arguments.
76464         (gl_array_remove, gl_array_list_implementation): Update.
76465         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76466         gl_carray_indexof. Add start_index, end_index arguments.
76467         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76468         start_index, end_index arguments.
76469         (gl_carray_remove, gl_carray_list_implementation): Update.
76470         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76471         gl_linked_search. Add start_index, end_index arguments.
76472         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76473         start_index, end_index arguments.
76474         (gl_linked_remove): Update.
76475         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76476         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76477         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76478         field to 'size_t'.
76479         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76480         gl_tree_search. Add start_index, end_index arguments.
76481         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76482         start_index, end_index arguments.
76483         (gl_tree_remove): Update.
76484         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76485         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76486         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76487         function.
76488         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76489         gl_tree_search. Add start_index, end_index arguments.
76490         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76491         start_index, end_index arguments.
76492         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76493         Update.
76494         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76495
76496 2006-10-05  Bruno Haible  <bruno@clisp.org>
76497
76498         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76499
76500         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76501         fwriteerror_temp): New declarations.
76502         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76503         (descriptors): New variable.
76504         (cleanup): First, close the descriptors.
76505         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76506         fclose_temp, fwriteerror_temp): New functions.
76507
76508 2006-10-04  Jim Meyering  <jim@meyering.net>
76509
76510         * lib/fts.c (fts_open): Tiny comment change.
76511
76512 2006-10-04  Bruno Haible  <bruno@clisp.org>
76513
76514         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76515         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76516         gl_LOCK_BODY.
76517         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76518         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76519         gl_LOCK_EARLY_BODY.
76520         (gl_LOCK): Require gl_LOCK_BODY.
76521
76522 2006-10-04  Bruno Haible  <bruno@clisp.org>
76523
76524         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76525         (gl_oset_search_atleast): New declaration.
76526         (struct gl_oset_implementation): Add field 'search_atleast'.
76527         (gl_oset_search_atleast): New inline function.
76528         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76529         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76530         (gl_array_oset_implementation): Update.
76531         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76532         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76533         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76534
76535 2006-10-04  Bruno Haible  <bruno@clisp.org>
76536
76537         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76538
76539 2006-10-03  Bruno Haible  <bruno@clisp.org>
76540
76541         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76542         from gl_avltreehash_list_implementation.
76543
76544 2006-10-03  Bruno Haible  <bruno@clisp.org>
76545
76546         * lib/gl_oset.c (gl_oset_add): Fix return type.
76547
76548 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76549
76550         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76551
76552 2006-10-02  Eric Blake  <ebb9@byu.net>
76553
76554         * modules/strnlen (Depends-on): Add extensions.
76555
76556 2006-10-02  Eric Blake  <ebb9@byu.net>
76557
76558         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76559         definition in 2.60+.
76560
76561 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76562
76563         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76564         checks.
76565
76566 2006-10-02  Bruno Haible  <bruno@clisp.org>
76567
76568         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76569         to the AUTOMAKE_OPTIONS.
76570         Reported by Jim Meyering.
76571
76572 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76573
76574         Work around bug in Solaris 10 /proc file system:
76575         /proc/self/fd/NNN/.. isn't the parent directory of
76576         the directory whose file descriptor is NNN.  This needs to
76577         be worked around at run time, not compile time, since a
76578         program might be built on Solaris 8, where things work, and
76579         run on Solaris 10.
76580         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76581         to use the following interface instead:
76582         (OPENAT_BUFFER_SIZE): New macro.
76583         (openat_proc_name): New function.
76584         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76585         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76586         Likewise.
76587         * lib/openat-proc.c: New file.
76588         * modules/openat (Files): Add lib/openat-proc.c.
76589         (Depends-on): Add same-inode, stdbool.
76590         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76591
76592 2006-09-29  Bruno Haible  <bruno@clisp.org>
76593
76594         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76595         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76596         argument. Set stdout_closed before testing for ferror, not after.
76597         (fwriteerror, fwriteerror_no_ebadf): New functions.
76598
76599 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76600
76601         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76602
76603 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76604
76605         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76606         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76607
76608 2006-09-28  Jim Meyering  <jim@meyering.net>
76609
76610         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76611         Include <unistd.h>.
76612
76613 2006-09-28  Bruno Haible  <bruno@clisp.org>
76614
76615         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76616         * modules/linkedhash-list (Depends-on): Likewise.
76617         * modules/rbtreehash-list (Depends-on): Likewise.
76618
76619 2006-09-28  Bruno Haible  <bruno@clisp.org>
76620
76621         * lib/strndup.h: Simplify the redefinition of strndup.
76622         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76623         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76624
76625 2006-09-28  Bruno Haible  <bruno@clisp.org>
76626
76627         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76628         * lib/gl_linkedhash_list.c: Likewise.
76629         * lib/gl_rbtreehash_list.c: Likewise.
76630
76631 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76632
76633         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76634         getaddrinfo.
76635
76636         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76637         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76638         it causes <stdio_ext.h> to cause a compile-time error.
76639         Problem reported by Nelson H. F. Beebe.
76640         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76641         of HAVE_DECL___PENDING.
76642
76643         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76644         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76645         declaration.
76646
76647 2006-09-27  Jim Meyering  <jim@meyering.net>
76648
76649         This file could end up with a definition for a function
76650         named __strndup, rather than rpl_strndup on a system with
76651         incomplete weak_alias support.
76652         * lib/strndup.c (strndup): Rename from __strndup.
76653         Remove #defines that used to map __strndup to strndup.
76654         Don't use K&R prototypes.
76655         Remove LIBC-related code, since this file is not sync'd with glibc.
76656         * lib/strndup.h: Revamp, accordingly.
76657         * m4/strndup.m4: Modernize.
76658
76659 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76660
76661         * modules/savewd (Depends-on): Add 'raise'.
76662         * lib/savewd.c: Include <signal.h>, for 'raise'.
76663
76664 2006-09-26  Jim Meyering  <jim@meyering.net>
76665
76666         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76667         when we detect Darwin 8.7.0's acl_get_file bug.
76668         Rearrange to perform the new (below) run-test while $LIBS
76669         contains any acl-related library.  Set USE_ACL at the end.
76670         (gl_ACL_GET_FILE): New function.
76671
76672 2006-09-26  Eric Blake  <ebb9@byu.net>
76673
76674         * lib/verror.c: Include <config.h> unconditionally.
76675
76676 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76677
76678         * modules/clock-time (Maintainer): Add self.
76679         * modules/getlogin_r (Depends-on): Add extensions.
76680
76681 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76682
76683         * modules/clock-time: New module.
76684         * modules/nanosleep (Depends-on): Add clock-time.
76685         * modules/gethrxtime (Depends-on): Likewise.
76686         * modules/gettime (Depends-on): Likewise.
76687         * modules/settime (Depends-on): Likewise.
76688
76689         * modules/fts-lgpl: Depend on openat.
76690         * modules/mkancesdirs: Depend on savewd.
76691         * modules/mkdir-p: Likewise.
76692
76693 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76694
76695         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76696
76697         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76698         `gl_have_arbitrary_file_name_length_limit' to
76699         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76700         actually works between configure runs.
76701
76702 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76703             Bruno Haible  <bruno@clisp.org>
76704
76705         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76706
76707 2006-09-25  Jim Meyering  <jim@meyering.net>
76708
76709         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76710         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76711
76712 2006-09-25  Eric Blake  <ebb9@byu.net>
76713
76714         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76715         exec's in 2006-09-18 patch when shuffling fds.
76716
76717 2006-09-25  Bruno Haible  <bruno@clisp.org>
76718
76719         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76720         Reported by Jim Meyering.
76721
76722 2006-09-24  Jim Meyering  <jim@meyering.net>
76723
76724         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76725         compare a pointer against a literal "0".  That caused failures with
76726         at least HP-UX's hpcc.
76727
76728 2006-09-22  Simon Josefsson  <jas@extundo.com>
76729
76730         * modules/gc-sha1:
76731         * modules/gc-md4:
76732         * modules/gc-hmac-sha1:
76733         * modules/gc-hmac-md5:
76734         * modules/gc-des:
76735         * modules/gc-arcfour: Distribute more files.
76736
76737 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76738
76739         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76740         (gl_linked_iterator_from_to): Initialize struct completely.
76741         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76742         (gl_tree_iterator_from_to): Likewise
76743         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76744         * lib/gl_array_list.c [lint] (gl_array_iterator)
76745         (gl_array_iterator_from_to): Likewise.
76746         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76747         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76748         (gl_carray_iterator_from_to): Likewise.
76749
76750         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76751         * lib/md4.c (md4_process_block): Remove unused variable.
76752         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76753         parentheses for clarity.
76754
76755 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76756
76757         * modules/bison-i18n (Depends-on): Add gettext.
76758
76759 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76760
76761         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76762         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76763         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76764         also add missing comma that caused broken test.
76765         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76766         stdlib.h, for `abort'.
76767         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76768         variables.
76769         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76770         include unistd.h if present, for `rmdir'.
76771         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76772         variables.
76773         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76774         in the process include standard headers for prototypes.
76775         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76776         gets declared on GNU/Linux.
76777         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76778         unistd.h, for `rmdir'.
76779         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76780
76781         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76782         always true.
76783         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76784
76785         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76786
76787 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76788
76789         * gnulib-tool (func_version): Create output all at once.  This
76790         may help avoid triggering unnecessary SIGPIPEs, and at any
76791         rate it doesn't hurt.
76792
76793 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76794             Bruno Haible  <bruno@clisp.org>
76795
76796         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76797         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76798         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76799
76800         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76801         (gl_FUNC_VASPRINTF): Invoke it.
76802
76803 2006-09-22  Bruno Haible  <bruno@clisp.org>
76804
76805         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76806         getloadavg.c as first argument.
76807
76808 2006-09-22  Bruno Haible  <bruno@clisp.org>
76809
76810         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76811         at the beginning of the gl_INIT macro.
76812         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76813         gl_GETLOADAVG.
76814
76815 2006-09-22  Bruno Haible  <bruno@clisp.org>
76816
76817         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76818         module.
76819         Suggested by Ralf Wildenhues.
76820
76821 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76822
76823         Import this patch from libc:
76824
76825         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76826
76827         * lib/regex_internal.c (re_string_reconstruct): Handle
76828         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76829         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76830         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76831         re_string_context_at.
76832
76833         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76834         now requires it.
76835         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76836         gl_REGEX now does it for us.
76837         (gl_REGEX): Add test taken from
76838         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76839
76840         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76841         Check that large offsets work.  Modernize Autoconf usages.
76842         Prefer "yes" to mean a good thing rather than a bad.
76843         Don't put "#define mkstemp" in config.h, as this might interfere
76844         with standard system headers that "#define mkstemp mkstemp64".
76845
76846         * modules/mkstemp (Depends-on): Add extensions, so that
76847         mkstemp is visible on some platforms.
76848         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76849         (Include): Change to "mkstemp.h" from <stdlib.h>.
76850         (Files): Add mkstemp.h.
76851
76852         * lib/mkstemp.h: New file, since some standard headers
76853         #define mkstemp.
76854         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76855         Include "mkstemp.h".
76856         Make the _LIBC code resemble glibc original more,
76857         e.g., use K&R style.
76858         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76859         (mkstemp): Remove, since mkstemp.h does this for us.
76860         * lib/stdlib--.h: Include mkstemp.h.
76861
76862         Import this patch from libc:
76863
76864         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76865
76866         * lib/tempname.c (__gen_tempname): Change attempts_min
76867         into a macro.  Use preprocessor to decide how to initialize
76868         attempts [Coverity CID 67].
76869
76870 2006-09-20  Bruno Haible  <bruno@clisp.org>
76871
76872         * lib/mkdtemp.c: Import from libc.
76873         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76874                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76875                 attempts_min into a macro.  Use preprocessor to decide how to
76876                 initialize attempts [Coverity CID 67].
76877         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76878                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76879                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76880
76881 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76882
76883         * gnulib-tool (func_exit): New function, to allow to pass the
76884         exit status portably through the trap.  Use everywhere.
76885         (--help, --version): Signal a write error.
76886         (trap): catch SIGPIPE, for write errors.
76887         Exit at the end of the trap, with the correct exit status.
76888
76889 2006-09-19  Karl Berry  <karl@gnu.org>
76890
76891         * doc/gnulib.texi: note about the license texinfo files.
76892
76893 2006-09-19  Eric Blake  <ebb9@byu.net>
76894
76895         * gnulib-tool: Avoid space-tab.
76896
76897 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76900         that prevented coreutils 6.1 from building.  Problem reported
76901         by Petter Reinholdtsen.
76902
76903 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76904
76905         * gnulib-tool (avoidlist): Fix typo that broke options like
76906         --avoid=lock that are used by coreutils bootstrap.
76907
76908 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76909
76910         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76911         more systematically.
76912
76913 2006-09-18  Jim Meyering  <jim@meyering.net>
76914
76915         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76916
76917 2006-09-18  Bruno Haible  <bruno@clisp.org>
76918
76919         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76920
76921 2006-09-18  Bruno Haible  <bruno@clisp.org>
76922
76923         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76924         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76925         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76926         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76927         * m4/gettext.m4: Require autoconf >= 2.52.
76928         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76929         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76930         of gl_cv_header_inttypes_h.
76931
76932 2006-09-18  Bruno Haible  <bruno@clisp.org>
76933
76934         * lib/javaversion.c: Include configmake.h.
76935
76936 2006-09-18  Bruno Haible  <bruno@clisp.org>
76937
76938         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76939         avoid that the while loops be executed in a subshell.
76940
76941 2006-09-18  Bruno Haible  <bruno@clisp.org>
76942
76943         * MODULES.html.sh (func_module): Break long lines.
76944         Suggested by Bruce Korb <bkorb@gnu.org>.
76945
76946 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76947
76948         Speed up by a factor of 1.12.
76949         * gnulib-tool (nl): New variable.
76950         (func_import): Rewrite include directive extraction to only read each
76951         directive once.
76952
76953 2006-09-17  Bruno Haible  <bruno@clisp.org>
76954
76955         * modules/javaversion (Makefile.am): Remove DEFS setting.
76956         (Depends-on): Add configmake, for PKGDATADIR definition.
76957
76958 2006-09-17  Bruno Haible  <bruno@clisp.org>
76959
76960         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76961
76962 2006-09-17  Bruno Haible  <bruno@clisp.org>
76963
76964         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76965         (func_modules_transitive_closure, func_modules_add_dummy,
76966         func_modules_to_filelist, func_import, func_create_testdir,
76967         func_create_megatestdir, ...): Use it wherever possible.
76968         Suggested by Ralf Wildenhues.
76969
76970 2006-09-16  Karl Berry  <karl@gnu.org>
76971
76972         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76973         to avoid sectioning errors.
76974         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76975         [ifinfo]: blank line after @center-ed titles.
76976         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76977         Spell FSF address consistently with others.
76978         (These changes approved by rms.)
76979
76980 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76981
76982         Speed up by a factor of 1.61.
76983         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76984         already checked module names again.
76985
76986 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76987
76988         Speed up by a factor of 1.13.
76989         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76990         for new_files, and the input to func_add_or_update.
76991
76992 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76993
76994         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76995         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76996
76997 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76998
76999         * modules/mkancesdirs (Depends-on): Add fcntl.
77000         * modules/savewd: New file.
77001         * MODULES.html.sh (File system functions): Add savewd.
77002
77003         * modules/configmake (Makefile.am): Add support for the
77004         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77005
77006 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77007
77008         * m4/savewd.m4: New file.
77009
77010 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77011
77012         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77013         (dirchownmod): New arg FD.  All callers changed.
77014         Use FD rather than opening the directory ourself, as opening is
77015         now the caller's responsibility.
77016         * lib/dirchownmod.h: Likewise.
77017         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77018         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77019         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77020         (test_dir): Remove.
77021         (mkancesdirs): Return length of prefix of FILE that has already
77022         been made, or -2 if there is a child doing the work.  Redo
77023         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77024         ".", and treat ".." specially since it might stray back into
77025         already-created areas.  Use a subprocess if necessary.  New arg
77026         WD; all users changed.  MAKE_DIR function should now return 1
77027         if it creates a directory that is not readable.  Return -2 if
77028         a child process is spun off.
77029         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77030         Adjust signature to match code.
77031         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77032         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77033         all users changed.
77034         * lib/savewd.c, lib/savewd.h: New files.
77035
77036 2006-09-15  Jim Meyering  <jim@meyering.net>
77037
77038         * modules/rename-dest-slash: New module.
77039         * MODULES.html.sh (posix_compat): Add it here.
77040
77041         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77042
77043 2006-09-15  Jim Meyering  <jim@meyering.net>
77044
77045         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77046         file.
77047
77048         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77049
77050 2006-09-15  Jim Meyering  <jim@meyering.net>
77051
77052         * lib/rename-dest-slash.c (has_trailing_slash): Use
77053         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77054         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77055         test before testing whether SRC is a directory.
77056         Suggestions from Bruno Haible.
77057
77058         Avoid a warning about an unused variable.
77059         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77060         into the #ifdef block where it's used.
77061
77062         * lib/rename-dest-slash.c: New file.
77063
77064 2006-09-14  Bruno Haible  <bruno@clisp.org>
77065
77066         * lib/allocsa.c: Include <config.h> unconditionally.
77067         * lib/asnprintf.c: Likewise.
77068         * lib/asprintf.c: Likewise.
77069         * lib/c-strcasecmp.c: Likewise.
77070         * lib/c-strcasestr.c: Likewise.
77071         * lib/c-strncasecmp.c: Likewise.
77072         * lib/c-strstr.c: Likewise.
77073         * lib/classpath.c: Likewise.
77074         * lib/clean-temp.c: Likewise.
77075         * lib/concatpath.c: Likewise.
77076         * lib/copy-file.c: Likewise.
77077         * lib/csharpcomp.c: Likewise.
77078         * lib/csharpexec.c: Likewise.
77079         * lib/execute.c: Likewise.
77080         * lib/fatal-signal.c: Likewise.
77081         * lib/findprog.c: Likewise.
77082         * lib/fwriteerror.c: Likewise.
77083         * lib/gl_array_list.c: Likewise.
77084         * lib/gl_array_oset.c: Likewise.
77085         * lib/gl_avltree_list.c: Likewise.
77086         * lib/gl_avltree_oset.c: Likewise.
77087         * lib/gl_avltreehash_list.c: Likewise.
77088         * lib/gl_carray_list.c: Likewise.
77089         * lib/gl_linked_list.c: Likewise.
77090         * lib/gl_linkedhash_list.c: Likewise.
77091         * lib/gl_list.c: Likewise.
77092         * lib/gl_oset.c: Likewise.
77093         * lib/gl_rbtree_list.c: Likewise.
77094         * lib/gl_rbtree_oset.c: Likewise.
77095         * lib/gl_rbtreehash_list.c: Likewise.
77096         * lib/imaxabs.c: Likewise.
77097         * lib/imaxdiv.c: Likewise.
77098         * lib/javacomp.c: Likewise.
77099         * lib/javaexec.c: Likewise.
77100         * lib/javaversion.c: Likewise.
77101         * lib/linebreak.c: Likewise.
77102         * lib/localcharset.c: Likewise.
77103         * lib/lock.c: Likewise.
77104         * lib/mbchar.c: Likewise.
77105         * lib/mbswidth.c: Likewise.
77106         * lib/mkdtemp.c: Likewise.
77107         * lib/pipe.c: Likewise.
77108         * lib/printf-args.c: Likewise.
77109         * lib/printf-parse.c: Likewise.
77110         * lib/progname.c: Likewise.
77111         * lib/progreloc.c: Likewise.
77112         * lib/readlink.c: Likewise.
77113         * lib/sh-quote.c: Likewise.
77114         * lib/stpcpy.c: Likewise.
77115         * lib/stpncpy.c: Likewise.
77116         * lib/strcasecmp.c: Likewise.
77117         * lib/strcasestr.c: Likewise.
77118         * lib/strcspn.c: Likewise.
77119         * lib/striconv.c: Likewise.
77120         * lib/strncasecmp.c: Likewise.
77121         * lib/strnlen1.c: Likewise.
77122         * lib/strstr.c: Likewise.
77123         * lib/strtok_r.c: Likewise.
77124         * lib/tls.c: Likewise.
77125         * lib/tmpdir.c: Likewise.
77126         * lib/unicodeio.c: Likewise.
77127         * lib/unsetenv.c: Likewise.
77128         * lib/vasnprintf.c: Likewise.
77129         * lib/vasprintf.c: Likewise.
77130         * lib/wait-process.c: Likewise.
77131         * lib/xallocsa.c: Likewise.
77132         * lib/xsetenv.c: Likewise.
77133         * lib/xstriconv.c: Likewise.
77134
77135 2006-09-13  Simon Josefsson  <jas@extundo.com>
77136
77137         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77138         that internally, suggested by Ralf Wildenhues
77139         <Ralf.Wildenhues@gmx.de>.
77140
77141 2006-09-13  Simon Josefsson  <jas@extundo.com>
77142
77143         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77144         @LIBOBJS@.
77145         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77146
77147 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77148
77149         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77150         longer worry about uses that don't define HAVE_CONFIG_H.
77151         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77152         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77153         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77154         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77155         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77156         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77157         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77158         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77159         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77160         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77161         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77162         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77163         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77164         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77165         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77166         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77167         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77168         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77169         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77170         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77171         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77172         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77173         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77174         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77175         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77176         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77177         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77178         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77179         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77180         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77181         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77182         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77183         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77184         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77185         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77186         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77187         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77188         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77189         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77190         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77191         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77192         Likewise.
77193
77194 2006-09-13  Eric Blake  <ebb9@byu.net>
77195
77196         * lib/getopt.c: Fix typo in last commit.
77197
77198 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77199
77200         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77201         dgettext.
77202
77203 2006-09-12  Jim Meyering  <jim@meyering.net>
77204
77205         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77206         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77207         Reported by Nelson H. F. Beebe.
77208
77209 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77210
77211         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77212         program_invocation_name and program_invocation_short_name are
77213         initialized.
77214         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77215         and program_invocation_short_name to argp.h, so they are visible
77216         to user programs.
77217         * lib/argp.h: Likewise
77218
77219 2006-09-10  Bruno Haible  <bruno@clisp.org>
77220
77221         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77222         m4/inttypes_h.m4, m4/uintmax_t.m4.
77223
77224 2006-09-10  Bruno Haible  <bruno@clisp.org>
77225
77226         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77227         gl_AC_TYPE_UINTMAX_T.
77228
77229 2006-09-10  Bruno Haible  <bruno@clisp.org>
77230
77231         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77232
77233 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77234
77235         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77236         convention.  Text proposed by Bruno Haible.
77237         (struct argp_option): Document the use of N_() wrappers.
77238
77239         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77240         '\v', and translate the two parts separately, instead of feeding
77241         the whole string to gettext.  This allows to exclude
77242         '\v' from the strings visible to the translator by writing doc
77243         strings as N_("..") "\v" N_("..").
77244
77245 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77246
77247         * config/srclist.txt: Undo latest change; the bug was fixed.
77248
77249 2006-09-09  Bruno Haible  <bruno@clisp.org>
77250
77251         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77252         assignments if building a library without libtool.
77253         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77254         in func_emit_lib_Makefile_am.
77255         (func_import): When building a static library libfoo.a, arrange to
77256         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77257         (func_create_testdir): Likewise.
77258         * modules/gc (configure.ac, Makefile.am): If building statically,
77259         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77260         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77261         * modules/striconv (configure.ac, Makefile.am): Likewise.
77262         Based on a suggestion by Ralf Wildenhues.
77263
77264 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77267         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77268         Also:
77269
77270         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77271         Add year_2050_test to catch glibc bug 2821
77272         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77273
77274         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77275         Prefer #ifdef to #if.
77276
77277         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77278         Return from 'main' instead of calling 'exit'.
77279
77280 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77281
77282         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77283         returned the maximum time_t value rather than (time_t) -1.
77284         Problem originally reported by William Bardwell
77285         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77286
77287         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77288         Moved to here ...
77289         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77290         ... from here.
77291
77292 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77293
77294         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77295         2821 is fixed.
77296
77297 2006-09-08  Jim Meyering  <jim@meyering.net>
77298
77299         Don't make generated files read-only.  That would bother too many
77300         people.  However, do retain the ability to work when targets are
77301         read-only: remove the destination and temporary files before writing
77302         them (when generated via sed or echo), or by using the -f option for
77303         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77304         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77305         * modules/byteswap, modules/configmake, modules/fcntl:
77306         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77307         * modules/localcharset, modules/netinet_in, modules/poll:
77308         * modules/stdbool, modules/stdint, modules/sys_select:
77309         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77310
77311 2006-09-08  Jim Meyering  <jim@meyering.net>
77312
77313         Avoid new build failure on FreeBSD 6.0.
77314         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77315         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77316         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77317
77318 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77319
77320         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77321
77322 2006-09-07  Jim Meyering  <jim@meyering.net>
77323
77324         Fix global typo in last change: use chmod u-w, not chmod u-x.
77325         Spotted by Paul Eggert and Bruce Korb.
77326         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77327         * modules/byteswap, modules/configmake, modules/fcntl:
77328         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77329         * modules/localcharset, modules/netinet_in, modules/poll:
77330         * modules/stdbool, modules/stdint, modules/sys_select:
77331         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77332
77333 2006-09-06  Jim Meyering  <jim@meyering.net>
77334
77335         Make generated files be read-only.
77336         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77337         Ensure that each generated file is now read-only.
77338         * modules/argz: Likewise.
77339         * modules/arpa_inet: Likewise.
77340         * modules/byteswap: Likewise.
77341         * modules/configmake: Likewise.
77342         * modules/fcntl: Likewise.
77343         * modules/fnmatch: Likewise.
77344         * modules/getopt: Likewise.
77345         * modules/glob: Likewise.
77346         * modules/inttypes: Likewise.
77347         * modules/netinet_in: Likewise.
77348         * modules/poll: Likewise.
77349         * modules/stdbool: Likewise.
77350         * modules/stdint: Likewise.
77351         * modules/sys_select: Likewise.
77352         * modules/sys_socket: Likewise.
77353         * modules/sys_stat: Likewise.
77354         * modules/sysexits: Likewise.
77355         * modules/localcharset: Same as above, but continue using temporary
77356         file named "t-$@" (why different?) rather than the "$@-t" used
77357         everywhere else.
77358
77359         * modules/sysexits (Makefile.am): Replace literal occurrences
77360         of "sysexit.h" more readable, and more consistent, "$@".
77361
77362 2006-09-06  Bruno Haible  <bruno@clisp.org>
77363
77364         * modules/striconv: New file.
77365         * modules/xstriconv: New file.
77366         * MODULES.html.sh (Internationalization functions): Add striconv,
77367         xstriconv.
77368
77369 2006-09-06  Bruno Haible  <bruno@clisp.org>
77370
77371         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77372         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77373         not using libtool correctly.
77374
77375 2006-09-06  Bruno Haible  <bruno@clisp.org>
77376
77377         * lib/striconv.h: New file.
77378         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77379         iconvstring.c.
77380         * lib/xstriconv.h: New file.
77381         * lib/xstriconv.c: New file.
77382
77383 2006-09-06  Bruno Haible  <bruno@clisp.org>
77384
77385         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77386         lib_..._LDFLAGS.
77387
77388 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77389
77390         * lib/argz_.h: Sync from Libtool.
77391
77392         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77393                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77394
77395         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77396
77397 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77398
77399         * modules/trim: New file.
77400
77401 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77402
77403         * lib/trim.h: New file.
77404         * lib/trim.c: New file.
77405
77406 2006-09-05  Bruno Haible  <bruno@clisp.org>
77407
77408         * MODULES.html.sh (String handling): Add trim.
77409
77410 2006-09-04  Karl Berry  <karl@gnu.org>
77411
77412         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77413         until next release.
77414
77415 2006-09-03  Bruno Haible  <bruno@clisp.org>
77416
77417         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77418         correctly.
77419
77420 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77421
77422         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77423         not gl_GETLOADAVG.  Omit unneeded semicolons.
77424         Problems reported by Ralf Wildenhues in
77425         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77426         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77427         at the end, which is the usual gnulib style.
77428
77429         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77430         of doing all the work ourselves.
77431         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77432         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77433
77434 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77435
77436         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77437         Problem reported by Ralf Wildenhues in
77438         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77439
77440         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77441         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77442
77443 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77444
77445         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77446         yesterday's patch by changing test -n to test -z.
77447
77448 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77451         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77452         the former is now obsolescent.
77453
77454         * modules/chdir-long (Depends-on): Add fcntl.
77455
77456 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77457
77458         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77459         obsolescent, and programs should use gnulib instead.
77460         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77461         but with prefixes changed.
77462
77463 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77464
77465         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77466         or stdbool.h, because they might not exist while configuring.
77467
77468         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77469         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77470         does that for us.
77471         (O_DIRECTORY): Remove.
77472
77473 2006-08-31  Eric Blake  <ebb9@byu.net>
77474
77475         * gnulib-tool: Don't let emacs change spaces to TAB.
77476
77477 2006-08-31  Bruno Haible  <bruno@clisp.org>
77478
77479         * gnulib-tool: When calling func_import more than once, do it in a
77480         subshell.
77481         Reported by Eric Blake <ebb9@byu.net>.
77482
77483 2006-08-31  Bruno Haible  <bruno@clisp.org>
77484
77485         * gnulib-tool (nl): Remove variable.
77486         (sed_transform_lib_file): Use more robust test for config-h module.
77487         (func_import): Fix typo in 2006-08-25 patch.
77488
77489 2006-08-31  Bruno Haible  <bruno@clisp.org>
77490
77491         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77492         specified, augment Makefile.am variables instead of assigning them.
77493
77494 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77495
77496         Work around a bug in both the Linux and SunOS 64-bit kernels:
77497         nanosleep mishandles sleeps for longer than 2**31 seconds.
77498         Problem reported by Frank v Waveren in
77499         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77500         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77501         Check for nanosleep bug.
77502         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77503
77504 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77505
77506         Work around a bug in both the Linux and SunOS 64-bit kernels:
77507         nanosleep mishandles sleeps for longer than 2**31 seconds.
77508         Problem reported by Frank v Waveren in
77509         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77510         * lib/nanosleep.c (BILLION): New constant.
77511         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77512         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77513         implementation.
77514
77515 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77516
77517         * modules/nanosleep (Depends-on): Add gettime.
77518
77519 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77520         and Simon Josefsson  <jas@extundo.com>
77521         and Oskar Liljeblad  <oskar@osk.mine.nu>
77522
77523         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77524         * gnulib-tool (func_import): New license type 'unmodifiable license
77525         text'.
77526         * modules/fdl: Use it.  Longer description.
77527         * module/gpl, module/lgpl: New files.
77528
77529 2006-08-30  Jim Meyering  <jim@meyering.net>
77530
77531         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77532         shadowing the parameter.
77533
77534 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77535
77536         Sync from Libtool:
77537
77538         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77539
77540         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77541         sharing with gnulib.  Report by Eric Blake.
77542
77543 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77544
77545         * modules/isapipe: New file.
77546         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77547
77548 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77549
77550         * modules/configmake (Makefile.am): Add a comment, and omit
77551         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77552         by Bruno Haible.
77553
77554 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77555
77556         * m4/isapipe.m4: New file.
77557
77558 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77559
77560         * lib/isapipe.c, lib/isapipe.h: New files.
77561
77562 2006-08-29  Jim Meyering  <jim@meyering.net>
77563
77564         * modules/configmake (Makefile.am): Make configmake.h depend on
77565         Makefile.  Otherwise, a stale configmake.h could hang around.
77566
77567 2006-08-29  Eric Blake  <ebb9@byu.net>
77568
77569         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77570         resolution of upstream bug 3044.
77571
77572 2006-08-29  Bruno Haible  <bruno@clisp.org>
77573
77574         * modules/localcharset (Depends-on): Add configmake.
77575         (Makefile.am): Remove setting of LIBDIR through DEFS.
77576
77577 2006-08-29  Bruno Haible  <bruno@clisp.org>
77578
77579         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77580         defined.
77581
77582 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77583
77584         * modules/fcntl: New file.
77585         * modules/chdir-safer (Depends-on): Add fcntl.
77586         * modules/fts: Likewise.
77587         * modules/mkdir-p: Likewise.
77588
77589         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77590         This undoes the most recent change, since we're now addressing the
77591         problem in a different way.
77592
77593         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77594         into output, since the output might be called Makefile.am even
77595         if $makefile_name is something different.
77596         (func_import): Use $makefile_am rather than
77597         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77598         empty.
77599
77600         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77601
77602 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77603
77604         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77605         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77606         recent change to stdint.m4, since we're now addressing the problem in a
77607         different way.
77608
77609 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77610
77611         * m4/fcntl_h.m4: New file.
77612
77613 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         * lib/fcntl_.h: New file.
77616         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77617         the fcntl module.
77618         * lib/dirchownmod.c: Likewise.
77619         * lib/fts.c: Likewise.
77620
77621         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77622         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77623         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77624         just before including <inttypes.h>, to avoid circular inclusion.
77625
77626 2006-08-28  Jim Meyering  <jim@meyering.net>
77627
77628         * doc/visibility.texi: Actually read and correct the grammar of the
77629         sentence affected by yesterday's change.
77630
77631 2006-08-28  Eric Blake  <ebb9@byu.net>
77632
77633         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77634         needs wrapper.
77635
77636 2006-08-28  Eric Blake  <ebb9@byu.net>
77637
77638         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77639
77640 2006-08-28  Eric Blake  <ebb9@byu.net>
77641
77642         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77643
77644 2006-08-28  Bruno Haible  <bruno@clisp.org>
77645
77646         * modules/c-strstr: New file, from GNU gettext.
77647         * MODULES.html.sh (String handling): Add c-strstr.
77648
77649 2006-08-28  Bruno Haible  <bruno@clisp.org>
77650
77651         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77652         macros.
77653         Reported by Eric Blake.
77654
77655 2006-08-28  Bruno Haible  <bruno@clisp.org>
77656
77657         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77658         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77659         * lib/vasprintf.c: Include errno.h, limits.h.
77660         (EOVERFLOW): New fallback definition.
77661         (vasprintf): Test here whether the string length is > INT_MAX.
77662         * lib/vsnprintf.c: Include errno.h, limits.h.
77663         (EOVERFLOW): New fallback definition.
77664         (vsnprintf): Fix bug when generated string was too long for the buffer.
77665         Test here whether the string length is > INT_MAX.
77666
77667 2006-08-28  Bruno Haible  <bruno@clisp.org>
77668
77669         * lib/inttypes_.h (SCNX*): Remove definitions.
77670         Reported by Eric Blake.
77671
77672 2006-08-28  Bruno Haible  <bruno@clisp.org>
77673
77674         * lib/c-strstr.h: New file, from GNU gettext.
77675         * lib/c-strstr.c: New file, from GNU gettext.
77676
77677 2006-08-28  Bruno Haible  <bruno@clisp.org>
77678
77679         * gnulib-tool: Reorder some statements.
77680
77681 2006-08-28  Bruno Haible  <bruno@clisp.org>
77682
77683         * gnulib-tool: New option --makefile-name.
77684         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77685         $makefile_name.
77686         (func_import): Write $makefile_name to the cache file, and read it from
77687         there unless explicitly specified. Use $makefile_name as file name
77688         instead of Makefile.am. Adjust the recommendations accordingly.
77689
77690 2006-08-28  Bruno Haible  <bruno@clisp.org>
77691
77692         * gnulib-tool (func_verify_module): Check against misapplying patch.
77693
77694 2006-08-28  Bruno Haible  <bruno@clisp.org>
77695
77696         * gnulib-tool (func_relativize, func_relconcat): New functions.
77697         Give an error if --local-dir is given with --update.
77698         Remove trailing slashes from $local_gnulib_dir.
77699         (func_import): Store the relativized $local_gnulib_dir in
77700         gnulib-cache.m4, and read it from there if not specified explicitly.
77701
77702 2006-08-28  Bruno Haible  <bruno@clisp.org>
77703
77704         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77705         is the current directory. Respect also $local_gnulib_dir.
77706
77707 2006-08-28  Bruno Haible  <bruno@clisp.org>
77708             Simon Josefsson  <jas@extundo.com>
77709
77710         BeOS portability.
77711         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77712
77713 2006-08-27  Jim Meyering  <jim@meyering.net>
77714
77715         * doc/visibility.texi: Remove duplicate word: "pointer".
77716
77717 2006-08-26  Bruno Haible  <bruno@clisp.org>
77718
77719         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77720         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77721         (Makefile.am): Create inttypes.h from inttypes_.h.
77722         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77723
77724         * modules/imaxabs: New file.
77725
77726         * modules/imaxdiv: New file.
77727
77728 2006-08-26  Bruno Haible  <bruno@clisp.org>
77729
77730         * m4/inttypes.m4: New file.
77731         * m4/_inttypes_h.m4: Remove file.
77732         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77733         PRI_MACROS_BROKEN.
77734         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77735
77736         * m4/imaxabs.m4: New file.
77737
77738         * m4/imaxdiv.m4: New file.
77739
77740 2006-08-26  Bruno Haible  <bruno@clisp.org>
77741
77742         * lib/inttypes_.h: New file.
77743         * lib/inttypes.h: Remove file.
77744         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77745
77746         * lib/imaxabs.c: New file.
77747
77748         * lib/imaxdiv.c: New file.
77749
77750 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77751
77752         New config-h module, so that "make" output needn't be cluttered
77753         by -DHAVE_CONFIG_H.
77754         * MODULES.html.sh (Support for building libraries and executables):
77755         Add config-h.
77756         * modules/config-h: New file.
77757         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77758         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77759         the config-h module is used.
77760
77761         New configmake module, so that "make" output needn't be cluttered
77762         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77763         * MODULES.html.sh (Support for building libraries and executables):
77764         Add configmake.
77765         * modules/configmake: New file.
77766
77767 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         * m4/config-h.m4: New file.
77770
77771 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77772
77773         * config/srclist.txt: Add elisp-comp.
77774
77775 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         * MODULES.html.sh (Support for building libraries and executables):
77778         Add elisp-comp.
77779         * build-aux/elisp-comp: New file.
77780         * modules/elisp-comp: New file.
77781
77782 2006-08-24  Bruno Haible  <bruno@clisp.org>
77783
77784         * gnulib-tool (func_create_testdir): Use non-default values of
77785         sourcebase and m4base.
77786
77787 2006-08-24  Bruno Haible  <bruno@clisp.org>
77788
77789         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77790         HTML structure.
77791
77792 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77793
77794         * modules/openat (Depends-on): Add lchown.
77795
77796 2006-08-23  Bruno Haible  <bruno@clisp.org>
77797
77798         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77799         of gl_LOCK_EARLY instead of gl_LOCK.
77800
77801 2006-08-23  Bruno Haible  <bruno@clisp.org>
77802
77803         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77804         on OSF/1 to no.
77805         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77806
77807 2006-08-23  Bruno Haible  <bruno@clisp.org>
77808
77809         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77810         as unusable.
77811
77812         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77813         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77814         (gl_LOCK): New macro.
77815
77816 2006-08-22  Simon Josefsson  <jas@extundo.com>
77817
77818         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77819         to md5 module.
77820
77821 2006-08-22  Simon Josefsson  <jas@extundo.com>
77822
77823         * MODULES.html.sh: Add "Support for maintaining and release
77824         projects".
77825
77826         * build-aux/gnupload: New file, from coreutils.
77827
77828 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         Avoid the need for AC_LIBSOURCES in m4 macros.
77831         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77832         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77833         * modules/check-version (EXTRA_DIST): Add check-version.h.
77834         * modules/crc (EXTRA_DIST): Add crc.h.
77835         * modules/des (EXTRA_DIST): Add des.h.
77836         * modules/gc (EXTRA_DIST): Add gc.h.
77837         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77838         * modules/getline (EXTRA_DIST): Add getline.h.
77839         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77840         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77841         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77842         * modules/md2 (EXTRA_DIST): Add md2.h.
77843         * modules/md4 (EXTRA_DIST): Add md4.h.
77844         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77845         * modules/read-file (EXTRA_DIST): Add read-file.h.
77846         * modules/readline (EXTRA_DIST): Add readline.h.
77847         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77848         rijndael-api-fst.h.
77849
77850 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77851
77852         * m4/rijndael.m4 (gl_ARCFOUR):
77853         * m4/arctwo.m4 (gl_ARCTWO):
77854         * m4/check-version.m4 (gl_CHECK_VERSION):
77855         * m4/crc.m4 (gl_CRC):
77856         * m4/des.m4 (gl_DES):
77857         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77858         * m4/gc.m4 (gl_GC):
77859         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77860         * m4/getline.m4 (gl_FUNC_GETLINE):
77861         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77862         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77863         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77864         * m4/md2.m4 (gl_MD2):
77865         * m4/md4.m4 (gl_MD4):
77866         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77867         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77868         * m4/readline.m4 (gl_FUNC_READLINE):
77869         * m4/rijndael.m4 (gl_RIJNDAEL):
77870         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77871         to get the necessary .h files and whatnot.
77872
77873 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77876         gnulib rather than the other way around.
77877         * config/srclistvars.sh (COREUTILS): Remove.
77878
77879 2006-08-22  Jim Meyering  <jim@meyering.net>
77880
77881         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77882
77883         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77884
77885 2006-08-22  Eric Blake  <ebb9@byu.net>
77886
77887         * modules/regexprops-generic: New file.
77888         * MODULES.html.sh (Support for building documentation): List it.
77889
77890 2006-08-22  Eric Blake  <ebb9@byu.net>
77891
77892         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77893         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77894         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77895         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77896
77897 2006-08-22  Bruno Haible  <bruno@clisp.org>
77898
77899         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77900         and lib_LTLIBRARIES like the other lib_* variables.
77901
77902 2006-08-22  Bruno Haible  <bruno@clisp.org>
77903
77904         * build-aux/x-to-1.in: New file, from GNU gettext.
77905
77906 2006-08-22  Bruno Haible  <bruno@clisp.org>
77907
77908         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77909         <utmpx.h> exists.
77910
77911 2006-08-22  Bruno Haible  <bruno@clisp.org>
77912
77913         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77914         <utmpx.h> exists.
77915
77916 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77917
77918         BeOS portability.
77919         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77920         exist.
77921         Problem reported by Bruno Haible.
77922
77923 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77924
77925         Avoid the need for AC_LIBSOURCES in m4 macros.
77926         * modules/acl (EXTRA_DIST): Add acl.h.
77927         * modules/argmatch (Files): Add m4/argmatch.m4.
77928         (configure.ac): Add gl_ARGMATCH.
77929         (EXTRA_DIST): Renamed from lib_SOURCES, for
77930         consistency with the other modules.  Remove argmatch.c.
77931         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77932         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77933         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77934         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77935         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77936         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77937         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77938         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77939         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77940         * modules/closeout (EXTRA_DIST): Add closeout.h.
77941         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77942         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77943         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77944         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77945         dirname.h; remove basename.c and stripslash.c.
77946         * modules/exclude (EXTRA_DIST): Add exclude.h.
77947         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77948         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77949         * modules/file-type (EXTRA_DIST): Add file-type.h.
77950         * modules/filemode (EXTRA_DIST): Add filemode.h.
77951         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77952         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77953         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77954         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77955         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77956         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77957         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77958         * modules/getdate (EXTRA_DIST): Add getdate.c.
77959         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77960         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77961         * modules/getpass (EXTRA_DIST): Add getpass.h.
77962         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77963         * modules/group-member (EXTRA_DIST): Add group-member.h.
77964         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77965         * modules/hash (EXTRA_DIST): Add hash.h.
77966         * modules/human (EXTRA_DIST): Add human.h.
77967         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77968         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77969         * modules/lchown (EXTRA_DIST): Add lchown.h.
77970         * modules/long-options (EXTRA_DIST): Add long-options.h.
77971         * modules/lstat (EXTRA_DIST): Add lstat.h.
77972         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77973         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77974         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77975         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77976         * modules/memxor (EXTRA_DIST): Add memxor.h.
77977         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77978         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77979         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77980         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77981         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77982         * modules/physmem (EXTRA_DIST): Add physmem.h.
77983         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77984         * modules/posixver (EXTRA_DIST): Add posixver.h.
77985         * modules/quote (EXTRA_DIST): Add quote.h.
77986         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77987         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77988         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77989         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77990         regex_internal.h regexec.c.
77991         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77992         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77993         * modules/same (EXTRA_DIST): Add same.h.
77994         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77995         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77996         * modules/savedir (EXTRA_DIST): Add savedir.h.
77997         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77998         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77999         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78000         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78001         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78002         * modules/strdup (EXTRA_DIST): Add strdup.h.
78003         * modules/strftime (EXTRA_DIST): Add strftime.h.
78004         * modules/strndup (EXTRA_DIST): Add strndup.h.
78005         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78006         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78007         * modules/time_r (EXTRA_DIST): Add time_r.h.
78008         * modules/timespec (EXTRA_DIST): Add timespec.h.
78009         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78010         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78011         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78012         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78013         * modules/userspec (EXTRA_DIST): Add userspec.h.
78014         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78015         * modules/utimens (EXTRA_DIST): Add utimens.h.
78016         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78017         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78018         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78019         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78020         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78021         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78022         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78023         * modules/yesno (EXTRA_DIST): Add yesno.h.
78024
78025 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78028
78029         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78030         * m4/dev-ino.m4, same-inode.m4: Remove.
78031
78032         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78033         * m4/acl.m4 (AC_FUNC_ACL):
78034         * m4/backupfile.m4 (gl_BACKUPFILE):
78035         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78036         * m4/canon-host.m4 (gl_CANON_HOST):
78037         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78038         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78039         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78040         * m4/cloexec.m4 (gl_CLOEXEC):
78041         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78042         * m4/closeout.m4 (gl_CLOSEOUT):
78043         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78044         * m4/dirname.m4 (gl_DIRNAME):
78045         * m4/exclude.m4 (gl_EXCLUDE):
78046         * m4/exitfail.m4 (gl_EXITFAIL):
78047         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78048         * m4/file-type.m4 (gl_FILE_TYPE):
78049         * m4/filemode.m4 (gl_FILEMODE):
78050         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78051         * m4/fpending.m4 (gl_FUNC_FPENDING):
78052         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78053         * m4/fts.m4 (gl_FUNC_FTS):
78054         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78055         * m4/getdate.m4 (gl_GETDATE):
78056         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78057         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78058         * m4/getpass.m4 (gl_FUNC_GETPASS):
78059         * m4/gettime.m4 (gl_GETTIME):
78060         * m4/getugroups.m4 (gl_GETUGROUPS):
78061         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78062         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78063         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78064         * m4/hash.m4 (gl_HASH):
78065         * m4/idcache.m4 (gl_IDCACHE):
78066         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78067         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78068         * m4/long-options.m4 (gl_LONG_OPTIONS):
78069         * m4/lstat.m4 (gl_FUNC_LSTAT):
78070         * m4/md5.m4 (gl_MD5):
78071         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78072         * m4/memcoll.m4 (gl_MEMCOLL):
78073         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78074         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78075         * m4/memxor.m4 (gl_MEMXOR):
78076         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78077         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78078         * m4/modechange.m4 (gl_MODECHANGE):
78079         * m4/mountlist.m4 (gl_MOUNTLIST):
78080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78081         * m4/openat.m4 (gl_FUNC_OPENAT):
78082         * m4/pathmax.m4 (gl_PATHMAX):
78083         * m4/physmem.m4 (gl_PHYSMEM):
78084         * m4/posixtm.m4 (gl_POSIXTM):
78085         * m4/posixver.m4 (gl_POSIXVER):
78086         * m4/quote.m4 (gl_QUOTE):
78087         * m4/quotearg.m4 (gl_QUOTEARG):
78088         * m4/readtokens.m4 (gl_READTOKENS):
78089         * m4/readutmp.m4 (gl_READUTMP):
78090         * m4/regex.m4 (gl_REGEX):
78091         * m4/safe-read.m4 (gl_SAFE_READ):
78092         * m4/safe-write.m4 (gl_SAFE_WRITE):
78093         * m4/same.m4 (gl_SAME):
78094         * m4/save-cwd.m4 (gl_SAVE_CWD):
78095         * m4/savedir.m4 (gl_SAVEDIR):
78096         * m4/settime.m4 (gl_SETTIME):
78097         * m4/sha1.m4 (gl_SHA1):
78098         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78099         * m4/stat-macros.m4 (gl_STAT_MACROS):
78100         * m4/stat-time.m4 (gl_STAT_TIME):
78101         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78102         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78103         * m4/strdup.m4 (gl_FUNC_STRDUP):
78104         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78105         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78106         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78107         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78108         * m4/time_r.m4 (gl_TIME_R):
78109         * m4/timespec.m4 (gl_TIMESPEC):
78110         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78111         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78112         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78113         * m4/userspec.m4 (gl_USERSPEC):
78114         * m4/utimecmp.m4 (gl_UTIMECMP):
78115         * m4/utimens.m4 (gl_UTIMENS):
78116         * m4/xalloc.m4 (gl_XALLOC):
78117         * m4/xgetcwd.m4 (gl_XGETCWD):
78118         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78119         * m4/xreadlink.m4 (gl_XREADLINK):
78120         * m4/xstrtod.m4 (gl_XSTRTOD):
78121         * m4/yesno.m4 (gl_YESNO):
78122         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78123         to get the necessary .h files and whatnot.
78124
78125 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78126             Bruno Haible  <bruno@clisp.org>
78127
78128         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78129         /bin/sh understanding of '!' conditional negation.
78130
78131 2006-08-21  Jim Meyering  <jim@meyering.net>
78132
78133         * modules/openat (Depends-on): Really alphabetize.
78134
78135         * modules/acl (Depends-on): Add error and quote.
78136
78137         * check-module (find_included_lib_files): Add at-func.c to the
78138         ok-to-include-more-than-once white list.
78139
78140         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78141
78142 2006-08-21  Bruno Haible  <bruno@clisp.org>
78143
78144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78145         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78146         Reported by Martin Lambers <marlam@marlam.de>.
78147
78148 2006-08-21  Bruno Haible  <bruno@clisp.org>
78149
78150         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78151         specify an installation location, don't emit a noinst_LIBRARIES or
78152         noinst_LTLIBRARIES assignment.
78153
78154 2006-08-21  Bruno Haible  <bruno@clisp.org>
78155
78156         BeOS portability.
78157         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78158         BeOS has mbrtowc() but no <wctype.h>.
78159
78160 2006-08-21  Bruno Haible  <bruno@clisp.org>
78161
78162         BeOS portability.
78163         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78164         exist.
78165
78166 2006-08-21  Bruno Haible  <bruno@clisp.org>
78167
78168         BeOS portability.
78169         * lib/mbchar.h: Include <wctype.h> only if it exists.
78170
78171 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78172
78173         Remove files that are no longer needed by their respective modules.
78174         * m4/obstack.m4: Remove.
78175         * m4/strerror_r.m4: Remove.
78176         * m4/uint32_t.m4: Remove.
78177         * m4/uintptr_t.m4: Remove.
78178         * m4/ullong_max.m4: Remove.
78179         * m4/xstrtoimax.m4: Remove.
78180         * m4/xstrtoumax.m4: Remove.
78181
78182         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78183         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78184         dependencies now capture this.
78185
78186         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78187         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78188         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78189         * m4/human.m4 (gl_HUMAN): Likewise.
78190         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78191         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78192
78193         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78194
78195         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78196         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78197         stdint.
78198         * m4/human.m4 (gl_HUMAN): Likewise.
78199         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78200         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78201         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78202         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78203         * m4/xstrtol (gl_XSTRTOL): Likewise.
78204
78205         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78206         AC_TYPE_LONG_LONG_INT.
78207         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78208         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78209         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78210         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78211
78212         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78213         on stdbool.
78214
78215         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78216         (gl_PREREQ_XSTRTOUL): Remove.
78217
78218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78219
78220         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78221         mode.
78222
78223 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78224
78225         Add and change modules to make it easier for coreutils to use
78226         gnulib-tool.
78227         * modules/backupfile (Files): Remove m4/d-ino.m4.
78228         (Depends-on): Add d-ino.
78229         * modules/cycle-check (Depends-on): Add stdint.
78230         (lib_SOURCES): Add cycle-check.h.
78231         * modules/d-ino: New module.
78232         * modules/d-type: New module.
78233         * modules/error (Files): Remove m4/strerror_r.m4.
78234         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78235         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78236         m4/inttypes_h.m4, m4/uintmax_t.m4.
78237         (Depends-on): Add stdint.
78238         (lib_SOURCES): Add fsusage.h.
78239         * modules/getcwd (Files): Remove d-ino.m4.
78240         (Depends-on): Add d-ino.
78241         * modules/getndelim2 (Depends-on): Add stdint.
78242         * modules/glob (Files): Remove m4/d-type.m4.
78243         (Depends-on): Add d-type.
78244         * modules/host-os: New module.
78245         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78246         m4/inttypes_h.m4, m4/uintmax_t.m4.
78247         * Depends-on: Add stdint.
78248         (lib_SOURCES): Add human.h.
78249         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78250         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78251         m4/uintmax_t.m4, m4/ulonglong.m4.
78252         (Depends-on): Add stdint.
78253         (EXTRA_DIST): Add inttostr.h.
78254         * modules/lchmod: New module.
78255         * modules/link-follow: New module.
78256         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78257         (Depends-on): Add lchmod.
78258         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78259         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78260         (Depends-on): Add stdint.
78261         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78262         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78263         (Depends-on): Add stdint.
78264         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78265         * modules/perl: New module.
78266         * modules/regex (Depends-on): Add stdint.
78267         * modules/rmdir-errno: New module.
78268         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78269         m4/intmax_t.m4.
78270         (Depends-on): Add stdint.
78271         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78272         m4/uintmax_t.m4.
78273         (Depends-on): Add stdint.
78274         * modules/unlink-busy: New module.
78275         * modules/utimecmp (Depends-on): Add stdint.
78276         * modules/uptime: New module.
78277         * modules/winsz-ioctl: New module.
78278         * modules/winsz-termios: New module.
78279         * modules/xnanosleep (Depends-on): Add nanosleep.
78280         * modules/ullong_max: Remove.
78281         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78282         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78283         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78284         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78285         (Depends-on): Add inttypes.
78286         (lib_SOURCES): Add xstrtol.h.
78287         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78288         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78289         * MODULES.html.sh: Move 'assert' into the assert section.
78290         Move 'dummy' into the linking section.
78291         Remove ullong_max.
78292         Add section for compatibility checks for POSIX:2001 functions,
78293         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78294         winsz-ioctl, and winsz-termios into it.
78295         Add lchmod.
78296         Add top-level Misc section and put host-os, perl, and uptime
78297         into it.
78298
78299 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78302         now assume the stdint module.  Do not include inttypes.h.
78303         * lib/fsusage.h: Likewise.
78304         * lib/getndelim2.c: Likewise.
78305         * lib/human.h: Likewise.
78306         * lib/inttostr.h: Likewise.
78307         * lib/obstack.c: Likewise.
78308         * lib/regex_internal.h: Likewise.
78309         * lib/tempname.c: Likewise.
78310         * lib/utimecmp.c: Likewise.
78311         * lib/xstrtol.h: Likewise.
78312
78313         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78314
78315         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78316         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78317         * lib/xtime.h: Likewise.
78318
78319 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78320
78321         * modules/openat (Files): Add lib/fchmodat.c.
78322         Fixes problem reported by Jay Youngman.
78323
78324 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78325
78326         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78327         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78328
78329 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78330             Bruno Haible  <bruno@clisp.org>
78331
78332         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78333         and is a script that invokes bison. Tighten the code. Add comments.
78334
78335 2006-08-18  Jim Meyering  <jim@meyering.net>
78336
78337         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78338         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78339         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78340         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78341
78342 2006-08-18  Bruno Haible  <bruno@clisp.org>
78343
78344         * modules/bison-i18n: New file.
78345         * MODULES.html.sh (Internationalization functions): Add it.
78346
78347 2006-08-18  Bruno Haible  <bruno@clisp.org>
78348
78349         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78350         sys/statvfs.h. When getmntinfo was found, check its declaration and
78351         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78352
78353 2006-08-18  Bruno Haible  <bruno@clisp.org>
78354
78355         * m4/bison-i18n.m4: New file, from bison.
78356
78357 2006-08-18  Bruno Haible  <bruno@clisp.org>
78358
78359         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78360         (ME_DUMMY): Treat "kernfs" as a dummy.
78361         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78362
78363 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78364
78365         Update from coreutils.
78366
78367         2006-08-15  Jim Meyering  <jim@meyering.net>
78368
78369         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78370
78371         2006-01-17  Jim Meyering  <jim@meyering.net>
78372
78373         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78374
78375         2006-01-11  Jim Meyering  <jim@meyering.net>
78376
78377         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78378         Check for the lchmod function.
78379
78380 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78381
78382         Update from coreutils.
78383
78384         * lib/__fpending.h: Add copyright notice.
78385         * lib/fprintftime.h: Likewise.
78386         * lib/savedir.c: Use (C) in copyright notice.
78387         * lib/savedir.h: Likewise.
78388
78389         2006-08-15  Jim Meyering  <jim@meyering.net>
78390
78391         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78392         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78393         in support of the EXPECTED_ERRNO macro.
78394         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78395         definitions.  Instead, define the appropriate symbols and include
78396         "at-func.c".
78397         * lib/mkdirat.c (mkdirat): Likewise.
78398         * lib/fchmodat.c (fchmodat): Likewise.
78399         (ENOSYS): Remove definition.
78400         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78401         it.  Don't include "unistd--.h" -- it wasn't ever used.
78402
78403         2006-01-17  Jim Meyering  <jim@meyering.net>
78404
78405         Rewrite fts.c not to change the current working directory,
78406         by using openat, fstatat, fdopendir, etc..
78407
78408         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78409         (HAVE_OPENAT_SUPPORT): Define.
78410         [_LIBC] (fchdir): Don't undef or define; no longer used.
78411         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78412         Now, this `function' always succeeds, and consumes its file descriptor
78413         parameter -- so callers must not close such FDs.  Update callers.
78414         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78415         (diropen): Add parameter, SP.  Adjust all callers.
78416         Implement using diropen_fd, rather than open.
78417         (fts_open): Initialize new member, fts_cwd_fd.
78418         Remove fts_rft-setting code.
78419         (fts_close): Close fts_cwd_fd, if necessary.
78420         (__opendir2): Define in terms of opendir or opendirat,
78421         depending on whether the FST_NOCHDIR flag is set.
78422         (fts_build): Since fts_safe_changedir consumes its FD, and since
78423         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78424         and close the dup'd file descriptor upon failure.
78425         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78426         (fts_safe_changedir): Tweak semantics to reflect that this function
78427         now calls cwd_advance_fd and hence consumes its FD argument.
78428         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78429         [struct FTS] (fts_rft): Remove now-unused member.
78430         [struct FTS] (fts_cycle.state): Improve comment.
78431
78432         * lib/openat.c (openat_needs_fchdir): New function.
78433         * lib/openat.h (openat_needs_fchdir): Declare it.
78434
78435 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78436
78437         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78438         Problem and fix reported by Pádraig Brady in
78439         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78440
78441 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78442
78443         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78444
78445 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78446
78447         * lib/memcoll.c (memcoll): Optimize for the common case where the
78448         arguments are bytewise equal.
78449
78450 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78451
78452         * doc/regexprops-generic.texi: Add a copyright notice.
78453
78454 2006-08-15  Bruno Haible  <bruno@clisp.org>
78455
78456         * modules/tmpdir (License): Change to LGPL.
78457
78458 2006-08-15  Bruno Haible  <bruno@clisp.org>
78459
78460         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78461         module.
78462
78463 2006-08-14  Simon Josefsson  <jas@extundo.com>
78464
78465         * config/srclist.txt: Add gnupload.
78466
78467 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78468
78469         Change copyright notice from LGPL 2 to GPL 2, since that's the
78470         standard form used in the gnulib repository.
78471         * tests/test-lock.c: Likewise.
78472         * tests/test-stdint.c: Likewise.
78473         * tests/test-tls.c: Likewise.
78474
78475         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78476         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78477         Add copyright notice.
78478
78479         * check-module: Add copyright notice.  Output a copyright
78480         notice if "--version" is specified.
78481         * modules/COPYING: New file.
78482         * tests/test-getaddrinfo.c: Add copyright notice.
78483         * tests/test-verify.c: Likewise.
78484
78485 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78486
78487         Change copyright notice from LGPL 2 to GPL 2, since that's the
78488         standard form used in the gnulib repository.
78489         * lib/lock.c: LGPL -> GPL.
78490         * lib/lock.h: Likewise.
78491         * lib/strnlen1.c: Likewise.
78492         * lib/strnlen1.h: Likewise.
78493         * lib/tls.c: Likewise.
78494         * lib/tls.h: Likewise.
78495         * lib/tmpdir.c: Likewise.
78496
78497         * lib/TODO: Remove; this belongs only in coreutils.
78498
78499 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         Add copyright notices to long-enough files that lack them, since
78502         otherwise the files aren't clearly free.  Use the same notice that
78503         getdate.texi already uses.
78504         * doc/alloca-opt.texi: Add copyright notice.
78505         * doc/alloca.texi: Likewise.
78506         * doc/ctime.texi: Likewise.
78507         * doc/functions.texi: Likewise.
78508         * doc/gcd.texi: Likewise.
78509         * doc/gnulib-tool.texi: Likewise.
78510         * doc/inet_ntoa.texi: Likewise.
78511         * doc/visibility.texi: Likewise.
78512
78513         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78514         * doc/quote.texi: Add copyright notice.
78515
78516         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78517         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78518         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78519         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78520         is now obsolete, and give a pointer to the Sun list.
78521         Add copyright notice.
78522
78523 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78524
78525         * config/srclistvars.sh: Add copyright notice.
78526
78527 2006-08-14  Eric Blake  <ebb9@byu.net>
78528
78529         Import the following change from libc:
78530
78531         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78532
78533         Upstream bug 2997.
78534         * lib/misc/error.c: Add space between program name and message if file
78535         name is missing.
78536
78537 2006-08-12  Karl Berry  <karl@gnu.org>
78538
78539         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78540         remove, these originate in gnulib now.
78541
78542 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78543
78544         * doc/Makefile (standards.info standards.html standards.dvi):
78545         Also depend on make-stds.texi.
78546
78547 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78548
78549         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78550         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78551
78552         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78553         in wchar_t.  Problem reported by Eric Blake.
78554
78555         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78556         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78557         Also, help the compiler to keep LEN in a register.
78558
78559 2006-08-11  Eric Blake  <ebb9@byu.net>
78560
78561         * users.txt: Sort.  Add tar.
78562
78563 2006-08-11  Bruno Haible  <bruno@clisp.org>
78564
78565         * users.txt: New file.
78566
78567 2006-08-11  Bruno Haible  <bruno@clisp.org>
78568
78569         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78570         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78571
78572 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         * modules/snprintf (Depends-on): Remove minmax.
78575         (Maintainer): Add self and Bruno.
78576
78577 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78578
78579         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78580         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78581         (EOVERFLOW): Define if the system does not.
78582         Do not include "minmax.h"; it wasn't used.
78583         (snprintf): Don't assume size_t promotes to an unsigned type.
78584         Fix bug when generated string was too long for the buffer: the
78585         buffer's contents are supposed to be the initial prefix of the
78586         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78587         exceeds INT_MAX; do the check ourselves.
78588
78589         Import the following changes from libc:
78590
78591         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78592
78593         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78594         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78595         set wc to the byte which couldn't be converted.
78596         (re_string_reconstruct): Don't clear valid_raw_len before calling
78597         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78598         tip_context using re_string_context_at.
78599
78600         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78601
78602         * lib/posix/regex.h: g++ still cannot handled [restrict].
78603
78604         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78605
78606         * lib/posix/regex.h: Remove special handling for VMS.
78607
78608 2006-08-10  Jim Meyering  <jim@meyering.net>
78609
78610         * modules/same-inode: New module.
78611         * modules/dev-ino: New module.
78612         * modules/cycle-check: Depend on these modules, rather than simply
78613         including their .h files.
78614         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78615         required via m4/cycle-check.m4.
78616         * modules/same: Depend on new same-inode module, rather than
78617         including same-inode.h.
78618         * modules/chdir-safer: New file.
78619
78620         * modules/chown (Depends-on): Add stat-macros.
78621
78622 2006-08-10  Jim Meyering  <jim@meyering.net>
78623
78624         * m4/cycle-check.m4: New file.
78625         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78626         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78627
78628 2006-08-10  Eric Blake  <ebb9@byu.net>
78629
78630         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78631         in from original proposal.
78632
78633 2006-08-10  Eric Blake  <ebb9@byu.net>
78634         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78635
78636         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78637         namespace.
78638
78639 2006-08-10  Bruno Haible  <bruno@clisp.org>
78640
78641         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78642         as well.
78643
78644 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78645
78646         Sync from coreutils.
78647
78648         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78649
78650         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78651         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78652
78653 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78654
78655         * modules/restrict: Remove; no longer needed now that we assume
78656         Autoconf 2.59 or later.
78657         * MODULES.html.sh: Remove 'restrict'.
78658         * modules/argp (Depends-on): Remove 'restrict'.
78659         * modules/base64 (Depends-on): Likewise.
78660         * modules/gc (Depends-on): Likewise.
78661         * modules/getaddrinfo (Depends-on): Likewise.
78662         * modules/glob (Depends-on): Likewise.
78663         * modules/inet_ntop (Depends-on): Likewise.
78664         * modules/inet_pton (Depends-on): Likewise.
78665         * modules/memxor (Depends-on): Likewise.
78666         * modules/regex (Depends-on): Likewise.
78667         * modules/strtok_r (Depends-on): Likewise.
78668         * modules/time_r (Depends-on): Likewise.
78669
78670 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78671
78672         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78673         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78674         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78675         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78676         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78677         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78678         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78679         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78680
78681         Merge from coreutils.
78682         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78683         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78684         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78685         * m4/time_r.m4 (gl_TIME_R): Likewise.
78686
78687 2006-08-09  Karl Berry  <karl@gnu.org>
78688
78689         * config/srclist.txt: no more gettext-tools, per Bruno.
78690
78691 2006-08-08  Eric Blake  <ebb9@byu.net>
78692
78693         * modules/verror: New module.
78694         * MODULES.html.sh: Document it.
78695
78696 2006-08-08  Eric Blake  <ebb9@byu.net>
78697
78698         * lib/verror.h, lib/verror.c: New files.
78699
78700 2006-08-08  Eric Blake  <ebb9@byu.net>
78701
78702         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78703         verror_at_line output complies with GNU Coding Standards even when
78704         file is NULL.
78705
78706 2006-08-07  Bruno Haible  <bruno@clisp.org>
78707
78708         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78709         versions of AIX.
78710         Reported by Ralf Wildenhues.
78711
78712 2006-08-07  Bruno Haible  <bruno@clisp.org>
78713
78714         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78715         in an AC_DEFUN. Needed so that the autoconf snippets can use
78716         AC_REQUIRE.
78717
78718 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78719
78720         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78721         Initialize pkgdata_DATA.
78722         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78723         overriding it.
78724
78725 2006-08-06  Eric Blake  <ebb9@byu.net>
78726
78727         * lib/error.h: Fold in some upstream changes from glibc.
78728         * lib/error.c: Likewise.
78729
78730 2006-08-04  Bruno Haible  <bruno@clisp.org>
78731
78732         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78733         Make the mostlyclean-local rule depend on mostlyclean-generic.
78734         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78735
78736 2006-07-31  Bruno Haible  <bruno@clisp.org>
78737
78738         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78739         <stdlib.h>, <string.h>.
78740
78741 2006-07-30  Bruno Haible  <bruno@clisp.org>
78742
78743         * modules/readlink (License): Change to LGPL.
78744
78745 2006-07-30  Bruno Haible  <bruno@clisp.org>
78746
78747         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78748         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78749         set PKGDATADIR to point to it.
78750
78751 2006-07-30  Bruno Haible  <bruno@clisp.org>
78752
78753         * modules/csharpexec (configure.ac): Comment out macro invocation.
78754         * modules/javaexec (configure.ac): Likewise.
78755         * modules/javacomp-script (configure.ac): Likewise.
78756
78757         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78758
78759 2006-07-30  Bruno Haible  <bruno@clisp.org>
78760
78761         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78762         linked-list.
78763
78764 2006-07-30  Bruno Haible  <bruno@clisp.org>
78765
78766         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78767
78768 2006-07-30  Bruno Haible  <bruno@clisp.org>
78769
78770         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78771         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78772         get removed.
78773
78774 2006-07-29  Bruno Haible  <bruno@clisp.org>
78775
78776         Make it possible for gnulib-tool to work with locally modified or
78777         augmented gnulib repositories.
78778         * gnulib-tool (func_usage): Document --local-dir option.
78779         (local_gnulib_dir): New variable.
78780         Handle --local-dir option.
78781         (func_lookup_file): New function.
78782         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78783         (func_get_description, func_get_filelist, func_get_description,
78784         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78785         func_get_automake_snippet, func_get_include_directive,
78786         func_get_license, func_get_maintainer): Use func_lookup_file.
78787         (func_import, func_create_testdir): Use func_lookup_file.
78788
78789 2006-07-29  Bruno Haible  <bruno@clisp.org>
78790
78791         * modules/setenv (Depends-on): Add unistd.
78792
78793 2006-07-29  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78796
78797 2006-07-29  Bruno Haible  <bruno@clisp.org>
78798
78799         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78800
78801 2006-07-29  Bruno Haible  <bruno@clisp.org>
78802
78803         * gnulib-tool (import, update): If there is no Makefile.am, look at
78804         aclocal.m4, instead of bailing out.
78805
78806 2006-07-29  Bruno Haible  <bruno@clisp.org>
78807
78808         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78809         Categorize the options by when they are useful.
78810
78811 2006-07-29  Bruno Haible  <bruno@clisp.org>
78812
78813         * gnulib-tool (func_usage): Document option --no-libtool.
78814         Handle option --no-libtool.
78815         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78816         for changed semantics of $libtool variable.
78817         (func_import): Likewise. If libtool is not used, show this through
78818         an option --no-libtool.
78819         (func_create_testdir): Update.
78820
78821 2006-07-29  Bruno Haible  <bruno@clisp.org>
78822
78823         * gnulib-tool (func_import): Extend error message about missing
78824         --doc-base.
78825
78826 2006-07-29  Bruno Haible  <bruno@clisp.org>
78827
78828         * gnulib-tool (func_import): Don't create the $docbase directory if
78829         there is no file to store there.
78830
78831 2006-07-29  Bruno Haible  <bruno@clisp.org>
78832
78833         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78834         relevant, look for configure.ac there, not in the current directory.
78835         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78836
78837 2006-07-29  Bruno Haible  <bruno@clisp.org>
78838
78839         * gnulib-tool (SORT): New variable.
78840         (func_usage): Undocument --assume-autoconf option.
78841         Remove --assume-autoconf option handling.
78842         (autoconf_minversion): Determine from the contents of configure.ac.
78843         (func_import): Remove autoconf_minversion handling.
78844         Suggested by Eric Blake.
78845
78846 2006-07-29  Bruno Haible  <bruno@clisp.org>
78847
78848         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78849
78850 2006-07-29  Bruno Haible  <bruno@clisp.org>
78851
78852         * config/srclist.txt (*setenv.[ch]): Remove rules.
78853
78854 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78855
78856         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78857
78858 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78859
78860         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78861         arpa/inet.h.
78862
78863 2006-07-28  Simon Josefsson  <jas@extundo.com>
78864
78865         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78866         * modules/inet_pton (Depends-on): Likewise.
78867
78868 2006-07-28  Simon Josefsson  <jas@extundo.com>
78869
78870         * m4/netinet_in_h.m4: New file.
78871
78872 2006-07-28  Simon Josefsson  <jas@extundo.com>
78873
78874         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78875         #include's.
78876
78877 2006-07-28  Simon Josefsson  <jas@extundo.com>
78878
78879         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78880         #include's.
78881
78882 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78885         setgid on directories only if they set these bits.
78886         * lib/modechange.h: Remove obsolete comment about masks.
78887
78888 2006-07-28  Eric Blake  <ebb9@byu.net>
78889
78890         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78891         macro expansion.
78892
78893 2006-07-28  Bruno Haible  <bruno@clisp.org>
78894
78895         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78896
78897 2006-07-28  Bruno Haible  <bruno@clisp.org>
78898
78899         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78900
78901 2006-07-28  Bruno Haible  <bruno@clisp.org>
78902
78903         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78904         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78905         Define fallbacks.
78906         Avoids link error on FreeBSD 4.x.
78907         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78908
78909         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78910         encoding.
78911         * lib/mbswidth.c (iswcntrl): Likewise.
78912
78913 2006-07-27  Bruno Haible  <bruno@clisp.org>
78914
78915         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78916         test.
78917
78918 2006-07-27  Bruno Haible  <bruno@clisp.org>
78919
78920         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78921         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78922         defined.
78923
78924 2006-07-26  Eric Blake  <ebb9@byu.net>
78925
78926         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78927
78928 2006-07-26  Eric Blake  <ebb9@byu.net>
78929
78930         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78931         like mingw that lack mkstemp.
78932         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78933         avoid compilation warning on mingw.
78934
78935 2006-07-26  Bruno Haible  <bruno@clisp.org>
78936
78937         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78938         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78939         INT_FAST*_MIN, INTPTR_MIN.
78940
78941 2006-07-25  Bruno Haible  <bruno@clisp.org>
78942
78943         * modules/version-etc (Depends-on): Add stdarg.
78944
78945 2006-07-25  Bruno Haible  <bruno@clisp.org>
78946
78947         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78948         complex commands.
78949
78950 2006-07-25  Bruno Haible  <bruno@clisp.org>
78951
78952         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78953         defined in <stdarg.h> or config.h.
78954
78955 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78958         (gl_STDIO_SAFER): Remove.
78959
78960 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78961
78962         * MODULES.html.sh (File stream based Input/Output):
78963         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78964         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78965         * modules/fopen-safer, modules/tmpfile-safer: New files.
78966         * modules/stdio-safer: Remove.
78967
78968 2006-07-24  Bruno Haible  <bruno@clisp.org>
78969
78970         * modules/tmpdir: New file.
78971         * MODULES.html.sh (File system functions): Add it.
78972
78973 2006-07-24  Bruno Haible  <bruno@clisp.org>
78974
78975         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78976         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78977
78978 2006-07-24  Bruno Haible  <bruno@clisp.org>
78979
78980         * modules/clean-temp: New file.
78981
78982 2006-07-24  Bruno Haible  <bruno@clisp.org>
78983
78984         * m4/tmpdir.m4: New file, from GNU gettext.
78985
78986 2006-07-24  Bruno Haible  <bruno@clisp.org>
78987
78988         * lib/tmpdir.h: New file, from GNU gettext.
78989         * lib/tmpdir.c: New file, from GNU gettext.
78990
78991 2006-07-24  Bruno Haible  <bruno@clisp.org>
78992
78993         * lib/clean-temp.h: New file, from GNU gettext.
78994         * lib/clean-temp.c: New file, from GNU gettext.
78995
78996 2006-07-23  Eric Blake  <ebb9@byu.net>
78997
78998         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78999         (Depends-on): Add binary-io.
79000
79001 2006-07-23  Eric Blake  <ebb9@byu.net>
79002
79003         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79004
79005 2006-07-23  Eric Blake  <ebb9@byu.net>
79006
79007         * lib/tmpfile-safer.c: New file.
79008         * lib/stdio-safer.h (fopen_safer): Add prototype.
79009         * lib/stdio--.h (tmpfile): Make safer.
79010
79011 2006-07-23  Bruno Haible  <bruno@clisp.org>
79012
79013         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79014         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79015         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79016         gl_linked_remove_at): Use it.
79017
79018 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79019         and Simon Josefsson <jas@extundo.com>
79020
79021         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79022
79023         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79024
79025 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79026
79027         * modules/close-stream: New file.
79028         * modules/closeout (Description): Make it clear that it exits
79029         with a diagnostic on error.
79030         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79031         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79032
79033 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79034
79035         * m4/close-stream.m4: New file.
79036
79037 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79038
79039         * lib/close-stream.c, lib/close-stream.h: New files.
79040
79041 2006-07-22  Bruno Haible  <bruno@clisp.org>
79042
79043         Merge from GNU gettext 0.15.
79044
79045         2006-05-01  Bruno Haible  <bruno@clisp.org>
79046
79047                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79048
79049         2006-07-22  Bruno Haible  <bruno@clisp.org>
79050
79051                 * modules/javaversion: New file.
79052                 * MODULES.html.sh (Java): Add javaversion.
79053
79054         2006-03-12  Bruno Haible  <bruno@clisp.org>
79055
79056                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79057
79058         2005-12-04  Bruno Haible  <bruno@clisp.org>
79059
79060                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79061                 (untested).
79062
79063         2006-06-21  Bruno Haible  <bruno@clisp.org>
79064
79065                 Avoid warnings from recent versions of mcs.
79066                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79067                 -o, -L, -r any more. Use options documented since mcs-1.0
79068                 instead. Similarly for -g.
79069
79070         2005-12-04  Bruno Haible  <bruno@clisp.org>
79071
79072                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79073                 .resources, not .resource.
79074
79075         2005-07-09  Bruno Haible  <bruno@clisp.org>
79076
79077                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79078                 add a .dll suffix.
79079                 Reported by Mark Junker <mjscod@gmx.de>.
79080
79081         2006-07-22  Bruno Haible  <bruno@clisp.org>
79082
79083                 * modules/gettext: Upgrade to gettext-0.15.
79084                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79085                 m4/visibility.m4.
79086                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79087
79088 2006-07-22  Bruno Haible  <bruno@clisp.org>
79089
79090         Merge from GNU gettext 0.15.
79091
79092         2006-03-25  Bruno Haible  <bruno@clisp.org>
79093
79094                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79095
79096         2006-07-21  Bruno Haible  <bruno@clisp.org>
79097
79098                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79099                 "1.1".
79100
79101         2006-05-09  Bruno Haible  <bruno@clisp.org>
79102
79103                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79104                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79105                 for the conftestver execution.
79106
79107         2006-05-01  Bruno Haible  <bruno@clisp.org>
79108
79109                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79110                 optional target-version argument. Verify that the compiler
79111                 groks source of the specified source-version, or add -source
79112                 option as necessary. Verify that the compiler produces
79113                 bytecode in the specified target-version, or add -target and
79114                 -source options as necessary. Make the result of the test
79115                 available as variable CONF_JAVAC. Also log error output in
79116                 config.log.
79117
79118         2006-03-11  Bruno Haible  <bruno@clisp.org>
79119
79120                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79121
79122         2006-05-09  Bruno Haible  <bruno@clisp.org>
79123
79124                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79125                 CLASSPATH_SEPARATOR to a semicolon.
79126
79127         2006-03-12  Bruno Haible  <bruno@clisp.org>
79128
79129                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79130                 available as variable CONF_JAVA, for subsequent autoconf
79131                 tests. Also log error output in config.log.
79132
79133         2006-07-19  Bruno Haible  <bruno@clisp.org>
79134
79135                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79136                 that getline works on glibc2 systems. Needed to avoid trouble
79137                 in relocatable.c.
79138                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79139
79140         2005-12-04  Bruno Haible  <bruno@clisp.org>
79141
79142                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79143                 launcher (untested).
79144
79145         2005-12-04  Bruno Haible  <bruno@clisp.org>
79146
79147                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79148
79149         2006-07-22  Bruno Haible  <bruno@clisp.org>
79150
79151                 * gettext.m4: Update from GNU gettext-0.15.
79152                 * nls.m4: Likewise.
79153                 * po.m4: Likewise.
79154                 * inttypes-pri.m4: Likewise.
79155                 * inttypes-h.m4: Renamed from inttypes.m4.
79156                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79157
79158 2006-07-22  Bruno Haible  <bruno@clisp.org>
79159
79160         Merge from GNU gettext 0.15.
79161
79162         2005-07-05  Bruno Haible  <bruno@clisp.org>
79163
79164                 * printf-args.c (printf_fetchargs): Work around broken
79165                 definition of wint_t on mingw.
79166
79167         2005-02-12  Bruno Haible  <bruno@clisp.org>
79168
79169                 * xallocsa.h: Add extern "C" for C++.
79170
79171         2006-05-17  Bruno Haible  <bruno@clisp.org>
79172
79173                 Cygwin portability.
79174                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79175
79176         2006-04-30  Bruno Haible  <bruno@clisp.org>
79177
79178                 * progreloc.c: Include <mach-o/dyld.h> if available.
79179                 (find_executable): Use _NSGetExecutablePath when possible.
79180
79181         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79182
79183                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79184                 function.
79185
79186         2005-12-29  Bruno Haible  <bruno@clisp.org>
79187
79188                 * progreloc.c (set_program_name_and_installdir): Fix
79189                 compilation error.
79190
79191         2005-12-04  Bruno Haible  <bruno@clisp.org>
79192
79193                 Cygwin portability.
79194                 * progreloc.c: Include <windows.h> also on Cygwin.
79195                 (find_executable): Add support for Cygwin.
79196                 (set_program_name_and_installdir): Handle also platforms with
79197                 nonempty EXEEXT.
79198
79199         2006-07-11  Bruno Haible  <bruno@clisp.org>
79200
79201                 * javacomp.c: Fix a comment.
79202                 Reported by Jim Meyering.
79203
79204         2006-04-30  Bruno Haible  <bruno@clisp.org>
79205
79206                 * javacomp.h (compile_java_class): Add source_version,
79207                 target_version arguments.
79208                 * javacomp.c: Rewritten to choose only a compiler that
79209                 respects the specified source_version and target_version.
79210
79211         2006-06-27  Bruno Haible  <bruno@clisp.org>
79212
79213                 Assume correct S_ISDIR macro.
79214                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79215
79216         2006-07-22  Bruno Haible  <bruno@clisp.org>
79217
79218                 * javaversion.h: New file, from GNU gettext.
79219                 * javaversion.c: New file, from GNU gettext.
79220                 * javaversion.java: New file, from GNU gettext.
79221                 * javaversion.class: New file, from GNU gettext.
79222
79223         2006-05-17  Bruno Haible  <bruno@clisp.org>
79224
79225                 Cygwin portability.
79226                 * javaexec.c (execute_java_class): Test for jview program
79227                 also on Cygwin.
79228
79229         2006-04-09  Bruno Haible  <bruno@clisp.org>
79230
79231                 * fatal-signal.c: Don't include string.h.
79232                 (at_fatal_signal): Use a copying loop instead of memcpy.
79233
79234         2005-12-04  Bruno Haible  <bruno@clisp.org>
79235
79236                 * csharpexec.c: Add support for 'clix' launcher (untested).
79237                 (execute_csharp_using_sscli): New function.
79238                 (execute_csharp_program): Call it.
79239
79240         2006-06-21  Bruno Haible  <bruno@clisp.org>
79241
79242                 Avoid warnings from recent versions of mcs.
79243                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79244                 -o, -L, -r any more. Use options documented since mcs-1.0
79245                 instead. Similarly for -g.
79246
79247         2005-07-09  Bruno Haible  <bruno@clisp.org>
79248
79249                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79250                 add a .dll suffix.
79251                 Reported by Mark Junker <mjscod@gmx.de>.
79252
79253         2006-06-17  Bruno Haible  <bruno@clisp.org>
79254
79255                 * config.charset: Update for NetBSD 3.0.
79256
79257         2006-05-17  Bruno Haible  <bruno@clisp.org>
79258
79259                 Cygwin portability.
79260                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79261
79262         2006-05-16  Bruno Haible  <bruno@clisp.org>
79263
79264                 * localcharset.c [CYGWIN]: Include <windows.h>.
79265                 (get_charset_aliases): For Cygwin, return the same CPxxx
79266                 aliases list as under WIN32.
79267                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79268                 the environment variables. Fall back to GetACP().
79269
79270         2006-04-05  Bruno Haible  <bruno@clisp.org>
79271
79272                 * config.charset: Update Juan Manuel Guerrero's address.
79273
79274         2005-02-12  Bruno Haible  <bruno@clisp.org>
79275
79276                 * allocsa.h: Add extern "C" for C++.
79277
79278         2005-02-10  Bruno Haible  <bruno@clisp.org>
79279
79280                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79281                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79282
79283         2006-07-22  Bruno Haible  <bruno@clisp.org>
79284
79285                 * gettext.h: Update to GNU gettext-0.15.
79286
79287 2006-07-22  Bruno Haible  <bruno@clisp.org>
79288
79289         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79290         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79291         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79292
79293 2006-07-21  Eric Blake  <ebb9@byu.net>
79294
79295         * modules/stdlib-safer: New file.
79296         * MODULES.html.sh (File stream based Input/Output): Add
79297         stdlib-safer.
79298
79299 2006-07-21  Eric Blake  <ebb9@byu.net>
79300
79301         * lib/stdlib-safer.h: New file from coreutils, required by
79302         stdlib--.h.
79303
79304 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79307
79308 2006-07-20  Bruno Haible  <bruno@clisp.org>
79309
79310         * gnulib-tool: Recognize new option --assume-autoconf.
79311         (autoconf_minversion): New variable.
79312         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79313
79314 2006-07-20  Bruno Haible  <bruno@clisp.org>
79315
79316         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79317
79318 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79319
79320         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79321         Reindent and repaginate.
79322
79323 2006-07-19  Derek Price  <derek@ximbiot.com>
79324
79325         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79326         Correct grammar.
79327
79328 2006-07-17  Bruno Haible  <bruno@clisp.org>
79329
79330         * modules/list: New file.
79331         * modules/array-list: New file.
79332         * modules/carray-list, modules/carray-list-tests: New files.
79333         * modules/linked-list, modules/linked-list-tests: New files.
79334         * modules/avltree-list, modules/avltree-list-tests: New files.
79335         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79336         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79337         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79338         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79339         * modules/oset: New file.
79340         * modules/array-oset: New file.
79341         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79342         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79343         * tests/test-carray_list.c: New file.
79344         * tests/test-linked_list.c: New file.
79345         * tests/test-avltree_list.c: New file.
79346         * tests/test-rbtree_list.c: New file.
79347         * tests/test-linkedhash_list.c: New file.
79348         * tests/test-avltreehash_list.c: New file.
79349         * tests/test-rbtreehash_list.c: New file.
79350         * tests/test-avltree_oset.c: New file.
79351         * tests/test-rbtree_oset.c: New file.
79352         * MODULES.html.sh (Container data structures): New section.
79353
79354 2006-07-17  Bruno Haible  <bruno@clisp.org>
79355
79356         * m4/gl_list.m4: New file.
79357
79358 2006-07-17  Bruno Haible  <bruno@clisp.org>
79359
79360         * lib/gl_list.h: New file.
79361         * lib/gl_list.c: New file.
79362         * lib/gl_array_list.h: New file.
79363         * lib/gl_array_list.c: New file.
79364         * lib/gl_carray_list.h: New file.
79365         * lib/gl_carray_list.c: New file.
79366         * lib/gl_linked_list.h: New file.
79367         * lib/gl_linked_list.c: New file.
79368         * lib/gl_anylinked_list1.h: New file.
79369         * lib/gl_anylinked_list2.h: New file.
79370         * lib/gl_avltree_list.h: New file.
79371         * lib/gl_avltree_list.c: New file.
79372         * lib/gl_anyavltree_list1.h: New file.
79373         * lib/gl_anyavltree_list2.h: New file.
79374         * lib/gl_rbtree_list.h: New file.
79375         * lib/gl_rbtree_list.c: New file.
79376         * lib/gl_anyrbtree_list1.h: New file.
79377         * lib/gl_anyrbtree_list2.h: New file.
79378         * lib/gl_anytree_list1.h: New file.
79379         * lib/gl_anytree_list2.h: New file.
79380         * lib/gl_linkedhash_list.h: New file.
79381         * lib/gl_linkedhash_list.c: New file.
79382         * lib/gl_anyhash_list1.h: New file.
79383         * lib/gl_anyhash_list2.h: New file.
79384         * lib/gl_avltreehash_list.h: New file.
79385         * lib/gl_avltreehash_list.c: New file.
79386         * lib/gl_rbtreehash_list.h: New file.
79387         * lib/gl_rbtreehash_list.c: New file.
79388         * lib/gl_anytreehash_list1.h: New file.
79389         * lib/gl_anytreehash_list2.h: New file.
79390
79391         * lib/gl_oset.h: New file.
79392         * lib/gl_oset.c: New file.
79393         * lib/gl_array_oset.h: New file.
79394         * lib/gl_array_oset.c: New file.
79395         * lib/gl_avltree_oset.h: New file.
79396         * lib/gl_avltree_oset.c: New file.
79397         * lib/gl_rbtree_oset.h: New file.
79398         * lib/gl_rbtree_oset.c: New file.
79399         * lib/gl_anytree_oset.h: New file.
79400
79401 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79402
79403         * m4/mkancesdirs.m4: New file.
79404         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79405         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79406         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79407         it.
79408
79409 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79412         * lib/mkancesdirs.h: New files.
79413         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79414         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79415         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79416         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79417         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79418         callers changed.  Revamp internals significantly, by not
79419         attempting to create directories that are temporarily more
79420         permissive than the final results.  Do not attempt to use
79421         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79422         This removes some race conditions, fixes some bugs, and simplifies
79423         things.  Use new dirchownmod function to do owner and mode changes.
79424         * lib/mkdir-p.h: Likewise.
79425         * lib/modechange.c (octal_to_mode): New function.
79426         (struct mode_change): New member mentioned.
79427         (make_node_op_equals): New arg mentioned.  All callers changed.
79428         (mode_compile): Keep track of which mode bits the user has explicitly
79429         mentioned.
79430         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79431         New arg PMODE_BITS, to keep track of which mode bits the user
79432         mentioned; it treats S_ISUID and S_ISGID speciall.
79433         All callers changed.
79434         * lib/modechange.h: Likewise.
79435
79436 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79437
79438         * MODULES.html.sh: Add mkancestors.
79439         * modules/mkancesdirs: New module.
79440         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79441         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79442         The chdir-safer and afs files are now orphans; I'll remove them
79443         unless someone speaks up.
79444         Add lib/dirchownmod.c, lib/dirchownmod.h.
79445         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79446         Add lchown, mkancesdirs.
79447         (Maintainer): Add self.
79448
79449 2006-07-15  Karl Berry  <karl@gnu.org>
79450
79451         * gnulib-tool: help message wording/arrangement.
79452
79453 2006-07-14  Simon Josefsson  <jas@extundo.com>
79454
79455         * doc/gnulib.texi (Libtool and Windows): New section.
79456
79457 2006-07-12  Simon Josefsson  <jas@extundo.com>
79458
79459         * modules/gendocs (License): Fix license, approved by Karl.
79460
79461 2006-07-12  Eric Blake  <ebb9@byu.net>
79462
79463         * MODULES.html.sh: Add gendocs.
79464
79465 2006-07-11  Eric Blake  <ebb9@byu.net>
79466
79467         * modules/fdl: New module, to install doc/fdl.texi.
79468         * MODULES.html.sh: Add new section for documentation modules.
79469         * gnulib-tool: Avoid space-tab.
79470         (--doc-base): New option, to manage files from doc.
79471
79472 2006-07-11  Eric Blake  <ebb9@byu.net>
79473
79474         * m4/absolute-header.m4: Fix comments to match recent change.
79475
79476 2006-07-11  Eric Blake  <ebb9@byu.net>
79477
79478         * gnulib-tool: List --doc-base before --tests-base.
79479
79480 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79481
79482         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79483
79484 2006-07-11  Bruno Haible  <bruno@clisp.org>
79485
79486         * README: Mention where to put documentation.
79487
79488 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79489
79490         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79491
79492 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79493
79494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79495         to stdint.m4.
79496
79497 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79498
79499         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79500         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79501         "no/such/file/stdint.h" when there is no such file, so that
79502         the resulting C code can be parsed by dodgy compilers.
79503         Problems reported by Bob Proulx.
79504
79505 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79506
79507         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79508         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79509         macros into the GNU _D_EXACT_NAMLEN.
79510         * lib/savedir.c:  Likewise.
79511         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79512
79513 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79514         and Paul Eggert  <eggert@cs.ucla.edu>
79515
79516         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79517         * m4/savedir.m4:
79518         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79519         macros into the GNU _D_EXACT_NAMLEN.
79520
79521 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79524         around the absolute name, to work around a problem with the HP-UX
79525         11.23 native C compiler, reported by Bob Proulx.
79526
79527 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79528
79529         * doc/maintain.texi, make-stds.texi: Sync from
79530         <http://savannah.gnu.org/projects/gnustandards>.
79531
79532 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79533
79534         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79535
79536 2006-07-09  Jim Meyering  <jim@meyering.net>
79537
79538         * m4/glob.m4: Remove a doubled word in a comment.
79539
79540 2006-07-09  Jim Meyering  <jim@meyering.net>
79541
79542         * lib/argp-pv.c: Remove a doubled word in a comment.
79543         * lib/check-version.c (check_version): Likewise.
79544         * lib/javacomp.c (compile_java_class): Likewise.
79545
79546 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79547
79548         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79549         for the benefit of people using Autoconf 2.60.  If you want to
79550         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79551         (or m4/onceonly.m4, if pre-2.57) manually.
79552
79553 2006-07-08  Jim Meyering  <jim@meyering.net>
79554
79555         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79556         comment.
79557         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79558         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79559         comment.
79560
79561 2006-07-08  Jim Meyering  <jim@meyering.net>
79562
79563         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79564
79565 2006-07-07  Simon Josefsson  <jas@extundo.com>
79566
79567         * tests/test-crc.c: Change expected crc value, the test vector
79568         were probably computed using the old broken crc.c?
79569
79570 2006-07-06  Simon Josefsson  <jas@extundo.com>
79571
79572         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79573         now the canonical place for the M4 file).
79574
79575         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79576         from the sys_socket dependency now.
79577
79578         * modules/inet_pton (Files): Ditto.
79579
79580         * modules/inet_ntop (Files): Ditto.
79581
79582 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79583
79584         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79585         not gl_PREREQ_GETUSERSHELL.
79586
79587 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79588
79589         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79590         with only one argument, for Autoconf 2.60.
79591         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79592         expand to nothing, so add a shell command to avoid syntax error.
79593         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79594
79595 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79596
79597         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79598
79599 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79600
79601         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79602         no longer needed.  Check for isblank decl.
79603         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79604         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79605         of existence.
79606
79607 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79608
79609         * lib/getloadavg.c: Use __VMS, not VMS.
79610         * lib/getopt.c: Likewise.
79611         * lib/getpagesize.h: Likewise.
79612         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79613         and probably does not work.
79614
79615 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79616
79617         * lib/.cppi-disable: Add wcwidth.
79618         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79619         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79620         (ISGRAPH): Remove.  All uses changed to isgraph.
79621         (FOLD) [!defined _LIBC]: Remove special case.
79622         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79623         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79624         HAVE_ISBLANK.
79625         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79626         case.
79627
79628 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79629
79630         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79631         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79632         brackets.  Other minor changes to suppress some compiler
79633         warnings.
79634
79635 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79636         and Paul Eggert  <eggert@cs.ucla.edu>
79637
79638         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79639         of invoking obsolescent AC_HEADER_DIRENT macro.
79640         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79641         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79642         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79643         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79644         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79645         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79646         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79647         * m4/readdir.m4: Remove; no longer needed.
79648
79649 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79650         and Paul Eggert  <eggert@cs.ucla.edu>
79651
79652         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79653         Don't worry about this obsolete case any more.
79654         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79655         directories.
79656         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79657         worry about this obsolete case any more.
79658         * lib/fts.c: Likewise.
79659         * lib/getcwd.c: Likewise.
79660         * lib/glob.h: Likewise.
79661         * lib/savedir.c: Likewise.
79662
79663 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79666         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79667         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79668         needed.
79669         All uses removed.
79670         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79671         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79672         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79673         needed.
79674         * m4/getdate.m4 (gl_GETDATE): Likewise.
79675         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79676         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79677         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79678         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79679         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79680         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79681         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79682         needed.
79683
79684 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79685
79686         * lib/memcasecmp.c: Include <limits.h>.
79687         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79688         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79689         Don't assume isdigit succeeds only on '0' through '9'.
79690
79691 2006-07-05  Eric Blake  <ebb9@byu.net>
79692
79693         * modules/getaddrinfo (Depends-on): Add snprintf.
79694
79695 2006-07-05  Eric Blake  <ebb9@byu.net>
79696
79697         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79698         to avoid 'header present but could not be compiled' on cygwin.
79699
79700 2006-07-05  Eric Blake  <ebb9@byu.net>
79701
79702         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79703         missing from netdb.h.
79704         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79705
79706 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79707
79708         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79709         no longer needed.
79710         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79711         * m4/getdate.m4 (gl_GETDATE): Likewise.
79712         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79713         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79714         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79715         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79716         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79717
79718 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79719
79720         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79721         All uses of is_space replaced by isspace.
79722         * lib/exit.h: Don't talk about STDC_HEADERS.
79723         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79724         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79725         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79726         replaced by isprint etc.
79727         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79728         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79729         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79730         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79731         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79732         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79733
79734 2006-07-05  Bruno Haible  <bruno@clisp.org>
79735
79736         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79737         the function exists, before testing against AIX.
79738         Reported by Martin Lambers <marlam@marlam.de>.
79739
79740 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79743         From Mark D. Baushke.
79744
79745 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79746
79747         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79748         to the absolute name, not just one, to bypass Sun C 5.8's
79749         "warning: #include of /usr/include/... may be non-portable".
79750
79751 2006-07-04  Eric Blake  <ebb9@byu.net>
79752
79753         * modules/dirname-tests: New test module.
79754         * tests/test-dirname.c: New file, replacing dirname.c
79755         TEST_DIRNAME section that was recently deleted.
79756
79757 2006-07-04  Bruno Haible  <bruno@clisp.org>
79758
79759         Assume ANSI C header files and <ctype.h> functions.
79760         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79761         (mbsnwidth): Use isprint, iscntrl instead.
79762
79763 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79764
79765         Merge from coreutils.
79766         * MODULES.html.sh: Add xstrtold.
79767         * modules/xstrtold: New file.
79768         * modules/cycle-check (Files): Add lib/same-inode.h.
79769         * modules/dirname (Files): Add m4/double-slash-root.m4.
79770         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79771         * modules/mkdir-p (Files): Add lib/same-inode.h.
79772         * modules/same (Files): Add lib/same-inode.h.
79773
79774 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79775
79776         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79777         This is to keep the terminology clean; POSIX talks about
79778         "absolute pathnames", not "full pathnames", but the GNU
79779         Coding Standards say to use "path" for something else;
79780         so use "absolute" to keep both sides happy.
79781         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79782         Set gl_absolute_header, not gl_full_header_path.
79783         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79784         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79785         All uses changed.
79786
79787         Merge from coreutils.
79788
79789         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79790
79791         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79792         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79793         want to require the building of c-strtod.o.
79794         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79795         needs -lm directly.
79796         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79797
79798         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79799
79800         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79801         --as-needed option if available.  Problem reported by Albert Chin in
79802         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79803         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79804         cc merely issues a bunch of annoying warnings for --as-needed
79805         (this problem was reported by Bob Proulx).  Also, try linking with
79806         -lm to detect a bug in binutils 2.16 (this problem was reported
79807         by Ralf Wildenhues).
79808
79809         2006-06-18  Jim Meyering  <jim@meyering.net>
79810
79811         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79812         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79813         macro.
79814         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79815         also check for glibc-2.4's abort-inducing bug.
79816
79817         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79818         Low-probability clean-up should be to use rmdir to get rid of
79819         the just-created directory, not unlink.
79820
79821         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79822         configure fail, and request a bug report to inform us about it.
79823         Add a comment that, barring reports to the contrary, in 2007 we'll
79824         assume ftruncate is universally available.
79825
79826         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79829
79830         2006-03-12  Jim Meyering  <jim@meyering.net>
79831
79832         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79833         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79834         * m4/same.m4 (gl_SAME): Likewise.
79835         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79836
79837         2006-03-11  Eric Blake  <ebb9@byu.net>
79838
79839         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79840         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79841         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79842         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79843
79844 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79845
79846         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79847         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79848         reported by Mark D. Baushke, one in
79849         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79850
79851         Merge from coreutils.
79852
79853         * lib/.cppi-disable: Add stdint_.h.
79854         * lib/.cvsignore: Add stdint.h.
79855
79856         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79859         both double and long double versions.
79860         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79861         * lib/xstrtold.c: New file.
79862         * lib/xstrtod.h (xstrtold): New decl.
79863
79864         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79865
79866         * lib/filemode.c (setst): Remove.
79867         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79868         (arguably) clearer, and the generated code is a bit smaller on my
79869         Debian GNU/Linux stable x86 host.
79870
79871         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79872
79873         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79874         Assume that filemode.h includes sys/types.h and sys/stat.h.
79875         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79876         (ftypelet): Reorder to put common cases first, for efficiency.
79877         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79878         to do 'M'.
79879         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79880         of 10, for compatibility with FreeBSD.  All callers changed.
79881         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79882         types that can't be deduced solely from st_mode.  First arg is now a
79883         const pointer.
79884         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79885         (strmode): Renamed from mode_string.
79886         (filemodestring): New decl.
79887         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79888         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79889         needed.
79890         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79891
79892         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79895         fsusage.h now does that.  Include fsusage.h first, to test interface.
79896         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79897         at most one method (the old code could have generated decls that
79898         didn't conform to C89, not that this was ever exercised).
79899         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79900
79901         2006-03-19  Jim Meyering  <jim@meyering.net>
79902
79903         Work even in a chroot where d_ino values for entries in "/"
79904         don't match the stat.st_ino values for the same names.
79905         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79906         number, iterate through all entries again, using lstat instead.
79907         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79908         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79909
79910         * lib/getcwd.c (__getcwd): Clarify a comment.
79911         Use memcpy in place of a call to strcpy.
79912
79913         2006-03-12  Jim Meyering  <jim@meyering.net>
79914
79915         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79916         matches that of the current directory (which we're about to chdir ".."
79917         out of), then save the dev-ino of the parent, instead.
79918
79919         * lib/same-inode.h (SAME_INODE): New file/macro.
79920         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79921         Include "same-inode.h", instead.
79922         * lib/same.c: Likewise.
79923         * lib/cycle-check.h: Include "same-inode.h".
79924         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79925         * lib/cycle-check.c (SAME_INODE): Remove definition.
79926         * lib/root-dev-ino.h: Include "same-inode.h".
79927
79928         2006-03-11  Eric Blake  <ebb9@byu.net>
79929
79930         * lib/same.c (same_name): s/base_name/last_component/
79931         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79932         * lib/filenamecat.c (file_name_concat): Likewise.
79933
79934         2006-03-11  Eric Blake  <ebb9@byu.net>,
79935                     Paul Eggert  <eggert@cs.ucla.edu>
79936
79937         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79938         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79939         drive prefix.
79940         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79941         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79942         (last_component): New method.
79943         * lib/dirname.c (dir_len): Determine when drive letters need a
79944         subsequent slash.  Preserve // when it is special.
79945         (dir_name): Don't append dot when drive letter is absolute.
79946         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79947         * lib/basename.c (base_name): New semantics - malloc the result.
79948         Preserve // when it is special.  Preserve relative files that look
79949         like drive letters.
79950         (base_len): Preserve // when it is special.
79951         (last_component): New method, similar to old base_name semantics.
79952         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79953         base_name.  Strip redundant slashes from ///.
79954
79955 2006-07-03  Jim Meyering  <jim@meyering.net>
79956
79957         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79958         macro is used before the first cycle_check call.
79959
79960 2006-07-03  Eric Blake  <ebb9@byu.net>
79961
79962         * modules/dirname (Depends-on): Add xstrndup.
79963
79964 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79967         test cases, so that config.log is a bit easier to follow.
79968
79969 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79970
79971         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79972         both are 64 bits, since this seems to be the tradition, and this
79973         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79974         we ever run into a host that prefers long long to long in this
79975         case, we'll need another configure-time test.  Problem reported by
79976         Jim Meyering.
79977
79978 2006-07-02  Eric Blake  <ebb9@byu.net>
79979
79980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79981
79982 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79983
79984         * modules/inttypes (Depends-on): No longer depends on stdint.
79985         * modules/stdint (Description): Say more about assumptions.
79986         Say that the fast types might differ.  Say macros are used.
79987         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79988         (Makefile.am): Revise list of substituted symbols to match
79989         new stdint.m4.
79990         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79991         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79992         * tests/test-stdint.c (verify_same_types)
79993         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79994         the code conforms to C99/C89.
79995         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79996         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79997
79998 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80001         but fix a bug, by requiring at least 64 bits.
80002         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80003         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80004         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80005         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80006
80007         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80008         changes.  Make 2.59 a prerequisite.  Check and substitute for
80009         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80010         inttypes.h.  Do not use special include files; just use the
80011         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80012         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80013         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80014         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80015         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80016         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80017         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80018         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80019         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80020         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80021         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80022         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80023         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80024         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80025         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80026         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80027         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80028         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80029         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80030         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80031         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80032         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80033         not check for things that C99 does not require, e.g., int8_t.  If
80034         a test isn't needed unless <stdint.h> isn't working, and is
80035         unlikely to be needed for any other reason, then don't do it
80036         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80037         size_t, since we assume C89 freestanding at least.  Do not check
80038         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80039         the right thing even if the types are not defined.  Instead use:
80040         (gl_STDINT_TYPE_PROPERTIES): New macro.
80041         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80042         testing whether <sys/types.h> clashes, as Autoconf does this for
80043         us now.  All uses removed.
80044         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80045         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80046         (gl_CHECK_TYPE_SAME):
80047         Remove; no longer needed.
80048         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80049         exists, since we'll return 0 anyway in that case.
80050         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80051
80052 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80055         possible collision with system files.
80056         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80057         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80058         WCHAR_MIN and WCHAR_MAX in this case.
80059         (<stddef.h>): Do not include; no longer needed.
80060         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80061         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80062         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80063         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80064         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80065         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80066         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80067         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80068         !defined(__c99))]: Include in this case too, since it's harmless
80069         now.
80070         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80071         dangerous to do so.
80072         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80073         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80074         (_STDINT_MIN, _STDINT_MAX): New macros.
80075         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80076         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80077         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80078         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80079         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80080         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80081         macros, not typedefs; this simplifies things quite a bit.
80082         Use long int for all types narrower than int64_t.
80083         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80084         Define in terms of long long int or int64_t or long int,
80085         not int64_t or int32_t.  This saves some compile-time testing.
80086         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80087         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80088         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80089         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80090         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80091         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80092         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80093         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80094         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80095         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80096         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80097         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80098         undef any previous version and define our own version, for
80099         simplicity and consistency with the new macros for types.
80100         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80101         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80102         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80103         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80104         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80105         @WINT_T_SUFFIX@ to keep things simple here.
80106         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80107         Simplify by assuming typical 8/16/32/64 host, since we're
80108         already doing that elsewhere anyway.
80109         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80110         and assume long long int is 64 bits if available.  This
80111         speeds up 'configure'.
80112
80113 2006-07-01  Eric Blake  <ebb9@byu.net>
80114
80115         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80116         Reported by Andreas Buening.
80117
80118 2006-07-01  Eric Blake  <ebb9@byu.net>
80119
80120         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80121
80122 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80123
80124         * lib/getaddrinfo.c: fixed typo
80125
80126 2006-06-29  Jim Meyering  <jim@meyering.net>
80127
80128         * modules/strftime (Maintainer): Add my name, since with the
80129         FPRINTFTIME changes strftime.c has forked from glibc.
80130
80131 2006-06-29  Eric Blake  <ebb9@byu.net>
80132
80133         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80134
80135 2006-06-29  Eric Blake  <ebb9@byu.net>
80136
80137         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80138
80139 2006-06-29  Eric Blake  <ebb9@byu.net>
80140
80141         * lib/stat_.h: New file.
80142
80143 2006-06-29  Eric Blake  <ebb9@byu.net>
80144
80145         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80146         unused static function.
80147
80148 2006-06-29  Eric Blake  <ebb9@byu.net>
80149
80150         * doc/functions.texi (Function Portability): Document missing lstat
80151         on mingw.
80152
80153 2006-06-29  Eric Blake  <ebb9@byu.net>
80154
80155         * MODULES.html.sh: Add sys_stat.
80156         * modules/sys_stat: New module.
80157         * modules/mkstemp (Depends-on): Add sys_stat.
80158
80159 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80160
80161         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80162
80163 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80164
80165         * m4/c-bs-a.m4: Removed.
80166
80167 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80168
80169         * lib/strftime.c: Assume strftime() exists.
80170
80171 2006-06-29  Derek Price  <derek@ximbiot.com>
80172
80173         * modules/c-bs-a: Removed - \a is C89.
80174         * MODULES.html.sh: Remove c-bs-a.
80175
80176 2006-06-29  Bruno Haible  <bruno@clisp.org>
80177
80178         * modules/wcwidth (License): Change to LGPL.
80179
80180 2006-06-28  Simon Josefsson  <jas@extundo.com>
80181
80182         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80183         on _WIN32.
80184
80185         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80186         getnameinfo.
80187
80188 2006-06-28  Simon Josefsson  <jas@extundo.com>
80189
80190         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80191
80192 2006-06-28  Simon Josefsson  <jas@extundo.com>
80193
80194         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80195         functions there.  It will succeed on Windows XP, but on Windows
80196         2000 and (presumably) earlier, it will fail, and use the internal
80197         re-implementation.
80198         (use_win32_p): New function.
80199         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80200         Support AI_NUMERICSERV to disable getservbyname.
80201         (getnameinfo): New function, only supports
80202         NI_NUMERICHOST|NI_NUMERICSERV for now.
80203
80204         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80205         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80206         getnameinfo.
80207
80208 2006-06-28  Eric Blake  <ebb9@byu.net>
80209
80210         * modules/wcwidth: New file.
80211         * modules/mbchar (Depends-on): Add wcwidth.
80212         * modules/mbswidth (Depends-on): Add wcwidth.
80213         * MODULES.html.sh: Add wcwidth.
80214
80215 2006-06-28  Eric Blake  <ebb9@byu.net>
80216
80217         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80219
80220 2006-06-28  Eric Blake  <ebb9@byu.net>
80221
80222         * lib/xvasprintf.h: Fix comments.
80223
80224 2006-06-28  Eric Blake  <ebb9@byu.net>
80225
80226         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80227         * lib/mbswidth.c (wcwidth): Move from here...
80228         * lib/wcwidth.h: ...to this new file.
80229
80230 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80231
80232         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80233
80234         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80235         it's obsolete.
80236         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80237
80238 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80239
80240         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80241         Autoconf 2.60 says this stuff was obsolete.
80242
80243 2006-06-28  Bruno Haible  <bruno@clisp.org>
80244
80245         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80246
80247 2006-06-28  Bruno Haible  <bruno@clisp.org>
80248
80249         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80250         gt_TYPE_WCHAR_T.
80251
80252 2006-06-28  Bruno Haible  <bruno@clisp.org>
80253
80254         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80255         declaration for wcwidth.
80256         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80257
80258 2006-06-28  Bruno Haible  <bruno@clisp.org>
80259
80260         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80261         (mkdir): Define using _mkdir.
80262
80263 2006-06-28  Bruno Haible  <bruno@clisp.org>
80264
80265         * lib/getaddrinfo.h: Fix POSIX URL.
80266         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80267         _WIN32.
80268         (use_win32_p): Make static.
80269         (getaddrinfo): Reject service name if it is empty or does not consist
80270         solely of decimal digits, or if its value is > 65535.
80271         (getnameinfo): Remove useless casts.
80272
80273 2006-06-27  Simon Josefsson  <jas@extundo.com>
80274
80275         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80276         Eggert and Martin Lambers.
80277
80278 2006-06-27  Simon Josefsson  <jas@extundo.com>
80279
80280         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80281         Eggert and Martin Lambers.
80282
80283 2006-06-27  Bruno Haible  <bruno@clisp.org>
80284
80285         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80286         result to 0, not to empty.
80287         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80288
80289 2006-06-27  Bruno Haible  <bruno@clisp.org>
80290
80291         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80292
80293 2006-06-26  Simon Josefsson  <jas@extundo.com>
80294
80295         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80296         present.
80297
80298 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80299
80300         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80301         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80302         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80303
80304 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80305
80306         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80307
80308 2006-06-26  Bruno Haible  <bruno@clisp.org>
80309
80310         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80311
80312 2006-06-26  Bruno Haible  <bruno@clisp.org>
80313
80314         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80315
80316 2006-06-26  Bruno Haible  <bruno@clisp.org>
80317
80318         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80319         SGI C compiler in pre-C99 mode.
80320         Suggested by Mark D. Baushke and Larry Jones.
80321
80322 2006-06-26  Bruno Haible  <bruno@clisp.org>
80323
80324         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80325         WCHAR_MAX.
80326         Reported by Mark D. Baushke and Larry Jones.
80327
80328 2006-06-26  Bruno Haible  <bruno@clisp.org>
80329
80330         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80331         in pre-C99 mode.
80332         Suggested by Mark D. Baushke and Larry Jones.
80333
80334 2006-06-23  Simon Josefsson  <jas@extundo.com>
80335             Bruno Haible  <bruno@clisp.org>
80336
80337         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80338         Emit mostlyclean-local rule.
80339         (func_emit_tests_Makefile_am): Likewise.
80340         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80341
80342 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80343
80344         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80345
80346 2006-06-23  Bruno Haible  <bruno@clisp.org>
80347
80348         * tests/test-stdint.c: Update to match ISO C 99 Technical
80349         Corrigendum 1.
80350
80351 2006-06-23  Bruno Haible  <bruno@clisp.org>
80352
80353         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80354
80355 2006-06-23  Bruno Haible  <bruno@clisp.org>
80356
80357         * lib/stdint_.h: Treat IRIX like OpenBSD.
80358
80359 2006-06-23  Bruno Haible  <bruno@clisp.org>
80360
80361         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80362         ISO C 99 Technical Corrigendum 1.
80363
80364 2006-06-22  Simon Josefsson  <jas@extundo.com>
80365
80366         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80367         MinGW.
80368
80369 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80370
80371         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80372         needed.  Some compiler complained about some of them.  Problem reported
80373         by Larry Jones in
80374         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80375
80376 2006-06-21  Simon Josefsson  <jas@extundo.com>
80377
80378         * tests/test-getaddrinfo.c: New file.
80379
80380         * modules/getaddrinfo-tests: New file.
80381
80382         * MODULES.html.sh: Add inet_pton.
80383
80384         * modules/inet_pton: New file.
80385
80386 2006-06-21  Simon Josefsson  <jas@extundo.com>
80387
80388         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80389         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80390         of using the (limited) gnulib implementation on Windows XP.
80391
80392         * m4/inet_pton.m4: New file.
80393
80394 2006-06-21  Simon Josefsson  <jas@extundo.com>
80395
80396         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80397         variable.
80398
80399         * lib/socket_.h: Don't define WINVER.
80400
80401         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80402         slightly modified to work in gnulib.
80403
80404 2006-06-21  Simon Josefsson  <jas@extundo.com>
80405
80406         * doc/gnulib.texi (Windows sockets): Add.
80407
80408 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80409
80410         * lib/read-file.c (fread_file): Start with buffer allocation of
80411         0 bytes rather than 1 byte; this simplifies the code.
80412         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80413         code to free buffer and save/restore errno.
80414         (internal_read_file): Remove unused local.
80415
80416 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80417
80418         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80419         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80420         Problem reported by Denis Excoffier in
80421         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80422
80423 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80424
80425         * modules/sys_socket, modules/socklen: Include sys/types since
80426         FreeBSD 4.x's sys/socket.h needs it.
80427
80428 2006-06-19  Simon Josefsson  <jas@extundo.com>
80429
80430         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80431
80432 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80433
80434         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80435
80436 2006-06-19  Bruno Haible  <bruno@clisp.org>
80437
80438         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80439         and FULL_PATH_INTTYPES_H in angle brackets.
80440         Reported by Mark D. Baushke <mdb@gnu.org>.
80441
80442 2006-06-17  Eric Blake  <ebb9@byu.net>
80443
80444         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80445         errno.
80446
80447 2006-06-17  Bruno Haible  <bruno@clisp.org>
80448
80449         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80450         <sys/inttypes.h>.
80451
80452 2006-06-17  Bruno Haible  <bruno@clisp.org>
80453
80454         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80455         whether errno is declared. Assume <errno.h> declares errno.
80456
80457 2006-06-17  Bruno Haible  <bruno@clisp.org>
80458
80459         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80460
80461 2006-06-17  Bruno Haible  <bruno@clisp.org>
80462
80463         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80464         problem on Solaris 2.5.1.
80465
80466 2006-06-16  Eric Blake  <ebb9@byu.net>
80467
80468         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80469         * lib/unicodeio.c [!defined errno]: Likewise.
80470         * lib/strtol.c [!defined errno]: Likewise.
80471         * lib/strtod.c [!defined errno]: Likewise.
80472
80473 2006-06-15  Eric Blake  <ebb9@byu.net>
80474
80475         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80476
80477 2006-06-15  Eric Blake  <ebb9@byu.net>
80478
80479         * config/srclist.txt (ssize_t.m4): Lose sync.
80480
80481 2006-06-15  Bruno Haible  <bruno@clisp.org>
80482
80483         * modules/stdint (Files): Include m4/full-header-path.m4,
80484         m4/size_max.m4, m4/wchar_t.m4.
80485         (Makefile.am): Many more substitutions.
80486         * modules/stdint-tests: New file.
80487         * tests/test-stdint.c: New file.
80488
80489 2006-06-15  Bruno Haible  <bruno@clisp.org>
80490
80491         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80492         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80493         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80494         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80495         gl_CHECK_TYPE_SAME): New macros.
80496
80497 2006-06-15  Bruno Haible  <bruno@clisp.org>
80498
80499         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80500
80501 2006-06-15  Bruno Haible  <bruno@clisp.org>
80502
80503         * lib/stdint_.h: Rewritten to be fully auto-configured.
80504         Fixes bug on HP-UX/IA64.
80505
80506 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80507
80508         * lib/getdate.y (__attribute__): Don't define if already defined.
80509         Problem reported by Larry Jones.
80510         * lib/utimens.c (__attribute__): Likewise.
80511
80512 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80513
80514         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80515         reported by Andreas Schwab.
80516
80517 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80518             Bruno Haible  <bruno@clisp.org>
80519
80520         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80521         check for the declaration of strnlen and a run test that exposes the
80522         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80523         rpl_strndup.
80524
80525 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80526             Bruno Haible  <bruno@clisp.org>
80527
80528         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80529
80530 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80531
80532         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80533         compile test, for Tru64 4.0D.
80534
80535 2006-05-28  Karl Berry  <karl@gnu.org>
80536
80537         * config/srclist.txt (printf-args.c): lose sync.
80538
80539 2006-05-26  Martin Lambers  <marlam@marlam.de>
80540
80541         * lib/getpass.c: Updates the test for the native W32 API, and adds
80542         missing includes, thus fixing compilation warnings.
80543
80544 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80545
80546         * lib/exclude.c (exclude_fnmatch): New function.
80547         (excluded_file_name): Call exclude_fnmatch.
80548         * lib/exclude.h (excluded_file_name): New prototype
80549
80550 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80551
80552         * lib/tempname.c (small_open, large_open): New macros.
80553         (__open, __open64) [!_LIBC]: Remove.
80554         (__gen_tempname): Use small_open and large_open instead of __open
80555         and __open64.  This fixes a portability bug on HP-UX 11.11i
80556         reported by Simon Wing-Tang in
80557         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80558
80559 2006-05-24  Bruno Haible  <bruno@clisp.org>
80560
80561         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80562         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80563         Reported by Thorsten Maerz <torte@netztorte.de> via
80564         Aaron Stone <aaron@serendipity.cx>.
80565
80566 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80567
80568         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80569         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80570         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80571         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80572         not really conditional on the cache.
80573         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80574
80575 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80576
80577         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80578         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80579         (my_usleep): Don't mishandle maximum value.
80580
80581 2006-05-19  Jim Meyering  <jim@meyering.net>
80582
80583         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80584
80585 2006-05-17  Bruno Haible  <bruno@clisp.org>
80586
80587         Cygwin portability.
80588         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80589
80590 2006-05-17  Bruno Haible  <bruno@clisp.org>
80591
80592         * lib/stdint_.h: Fix recognition of Cygwin.
80593
80594 2006-05-15  Bruno Haible  <bruno@clisp.org>
80595
80596         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80597         on libtool patch by Ralf Wildenhues.
80598
80599 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80600
80601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80602         test for C99 conformance; (bool) 0.5 is an integer constant
80603         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80604         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80605
80606 2006-05-11  Simon Josefsson  <jas@extundo.com>
80607
80608         * m4/xvasprintf.m4: Fix obvious typo.
80609
80610 2006-05-11  Jim Meyering  <jim@meyering.net>
80611
80612         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80613         James Lemley.
80614
80615 2006-05-10  Simon Josefsson  <jas@extundo.com>
80616
80617         * lib/md4.c: Typo fix, update copyright years.
80618         (K1, K2): Don't use L because it turn computations into 64-bit on
80619         64-bit platforms.
80620
80621 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80624         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80625         unwanted sign propagation, e.g., on hosts with 64-bit int.
80626         There still are some problems with reeelly weird theoretical hosts
80627         (e.g., 33-bit int) but it's not worth worrying about now.
80628         * lib/sha1.c (rol): Likewise.
80629         (K1, K2, K3, K4): Remove unnecessary L suffix.
80630
80631 2006-05-10  Bruno Haible  <bruno@clisp.org>
80632
80633         * lib/des.c: Cast to avoid warnings.
80634
80635 2006-05-09  Bruno Haible  <bruno@clisp.org>
80636
80637         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80638         (Depends-on): Depend also on xsize, stdarg.
80639         (configure.ac): Add gl_XVASPRINTF.
80640
80641 2006-05-09  Bruno Haible  <bruno@clisp.org>
80642
80643         * m4/xvasprintf.m4: New file.
80644
80645 2006-05-09  Bruno Haible  <bruno@clisp.org>
80646
80647         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80648         (EOVERFLOW): Define fallback value.
80649         (xstrcat): New function.
80650         (xvasprintf): Recognize the special case of a string concatenation.
80651
80652 2006-05-08  Eric Blake  <ebb9@byu.net>
80653
80654         * gnulib-tool (func_version): Base copyright year on CVS date.
80655         (func_emit_copyright_notice): New function.
80656         (func_emit_lib_Makefile_am): Use it.
80657         (func_emit_tests_Makefile_am): Likewise.
80658         (func_import): Likewise.
80659
80660 2006-05-08  Bruno Haible  <bruno@clisp.org>
80661
80662         * modules/stdarg: New file.
80663         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80664
80665 2006-05-08  Bruno Haible  <bruno@clisp.org>
80666
80667         * m4/stdarg.m4: New file, from GNU gettext.
80668
80669 2006-05-08  Bruno Haible  <bruno@clisp.org>
80670
80671         * config/srclist.txt (build-aux/config.rpath): different from latest
80672         release.
80673
80674 2006-05-08  Bruno Haible  <bruno@clisp.org>
80675
80676         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80677
80678 2006-05-05  Jim Meyering  <jim@meyering.net>
80679
80680         * m4/warning.m4: New file, derived from bison's file by the same name.
80681
80682 2006-05-03  Bruno Haible  <bruno@clisp.org>
80683
80684         * lib/stdint_.h: Shorter URL.
80685         * lib/inttypes.h: Likewise.
80686
80687 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80690
80691 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         * lib/verify.h: Document the internals better.  Most of this change
80694         was written by Bruno Haible.
80695
80696 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80697
80698         * doc/verify.texi: New file, partly based on a proposal by
80699         Bruno Haible.
80700
80701 2006-05-02  Bruno Haible  <bruno@clisp.org>
80702
80703         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80704         test from here...
80705         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80706
80707 2006-04-29  Bruno Haible  <bruno@clisp.org>
80708
80709         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80710         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80711
80712 2006-04-29  Bruno Haible  <bruno@clisp.org>
80713
80714         * gnulib-tool: Make --update option actually work.
80715
80716 2006-04-29  Bruno Haible  <bruno@clisp.org>
80717
80718         * doc/gcd.texi: New file.
80719         * doc/gnulib.texi: Include it.
80720
80721 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80722
80723         * lib/getdate.y (get_date): When adding relative date, start with the
80724         initial time, not with the result of the first mktime call.
80725
80726 2006-04-25  Bruno Haible  <bruno@clisp.org>
80727
80728         * gnulib-tool (func_import): Output the include directives in three
80729         blocks, sorted separately.
80730         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80731
80732 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80735         to define main with arguments, for C++.  Reported by Eric Blake.
80736         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80737         Prefer 'int main ()' to 'int main (void)', for C++.
80738         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80739         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80740         for 'main', for C99 and C++.
80741
80742 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80743
80744         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80745         Don't assume that exit status -1 is valid.
80746         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80747         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80748         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80749         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80750         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80751         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80752         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80753         functions can be used without declaring them, or that you can
80754         exit with status -1.
80755         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80756
80757 2006-04-24  Karl Berry  <karl@gnu.org>
80758
80759         * config/srclist.txt (longdouble.m4): sync lost.
80760
80761 2006-04-24  Eric Blake  <ebb9@byu.net>
80762
80763         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80764
80765 2006-04-24  Bruno Haible  <bruno@clisp.org>
80766
80767         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80768         poll() implementation in AIX.
80769         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80770
80771 2006-04-24  Bruno Haible  <bruno@clisp.org>
80772
80773         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80774         assigned exactly once.
80775
80776 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80777             Bruno Haible  <bruno@clisp.org>
80778
80779         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80780         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80781         for AM_CPPFLAGS.
80782
80783 2006-04-23  Bruno Haible  <bruno@clisp.org>
80784
80785         * modules/copy-file: Depend on unistd.
80786         * modules/execute: Likewise.
80787         * modules/fatal-signal: Likewise.
80788         * modules/findprog: Likewise.
80789         * modules/mkdtemp : Likewise.
80790         * modules/pipe: Likewise.
80791         * modules/wait-process: Likewise.
80792
80793 2006-04-23  Bruno Haible  <bruno@clisp.org>
80794
80795         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80796         condition was already detected.
80797         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80798
80799 2006-04-23  Bruno Haible  <bruno@clisp.org>
80800
80801         * lib/copy-file.c: Include <unistd.h> unconditionally.
80802         * lib/execute.c: Likewise.
80803         * lib/fatal-signal.c: Likewise.
80804         * lib/findprog.c: Likewise.
80805         * lib/mkdtemp.c: Likewise.
80806         * lib/pipe.h: Likewise.
80807         * lib/pipe.c: Likewise.
80808         * lib/wait-process.h: Likewise.
80809
80810 2006-04-23  Bruno Haible  <bruno@clisp.org>
80811
80812         * gnulib-tool (func_usage): Fix --import description. Document
80813         --update.
80814         (func_import): Create temporary file in a temporary directory, if
80815         --dry-run is specified. Silence errors from 'grep' when there are no
80816         m4 files in $m4dir.
80817         (func_create_testdir): Silence errors from 'grep' when there are no
80818         m4 files in $m4dir.
80819         Reported by Karl Berry <karl@freefriends.org>.
80820
80821 2006-04-20  Bruno Haible  <bruno@clisp.org>
80822
80823         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80824         one argument, so that the code will be portable to Autoconf 2.60.
80825         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80826         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80827         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80828
80829 2006-04-19  Derek Price  <derek@ximbiot.com>
80830             Eric Blake  <ebb9@byu.net>
80831
80832         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80833         rather than "/full/path.h".  Update comment to match.  Shorten &
80834         generalize m4_translit call via AS_TR_CPP.
80835
80836 2006-04-19  Derek Price  <derek@ximbiot.com>
80837             Eric Blake  <ebb9@byu.net>
80838
80839         * lib/inttypes.h: Correct grammar in comment.
80840
80841 2006-04-18  Derek Price  <derek@ximbiot.com>
80842             Paul Eggert  <eggert@cs.ucla.edu>
80843
80844         * modules/inttypes: New file.
80845         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80846
80847 2006-04-18  Derek Price  <derek@ximbiot.com>
80848             Paul Eggert  <eggert@cs.ucla.edu>
80849
80850         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80851         New files.
80852
80853 2006-04-18  Derek Price  <derek@ximbiot.com>
80854             Paul Eggert  <eggert@cs.ucla.edu>
80855
80856         * lib/inttypes.h: New file.
80857         * lib/strtoimax.c: Assume <inttypes.h>.
80858
80859 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80860
80861         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80862         isn't mounted.  Problem reported by Kir Kolyshkin.
80863
80864 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80865
80866         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80867         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80868         Derek R. Price.
80869         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80870         implementation.
80871
80872 2006-04-12  Eric Blake  <ebb9@byu.net>
80873
80874         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80875         is now done automatically by the corresponding Autoconf macro.
80876
80877 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80878
80879         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80880         time_r.h.
80881
80882 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80883
80884         Merge regex changes from libc, removing some of our
80885         POSIX-conformance changes that were rejected and redoing them in a
80886         less-intrusive way.
80887
80888         * lib/regcomp.c (re_compile_internal, init_dfa):
80889         Length arg is now size_t, not Idx.  All uses changed.
80890         (peek_token): Forward decl now says internal_function.
80891         (__re_error_msgid, __re_error_msgid_idx):
80892         Now static rather than extern with attribute_hidden.
80893         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80894         For some reason libc prefers K&R style defns for external functions.
80895         (regerror) [!defined _LIBC]: Likewise.
80896         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80897         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80898         (build_range_exp, build_collating_symbol):
80899         Use K&R-style defn.
80900         (re_compile_fastmap): Use '\0' to memset, not 0.
80901         (utf8_sb_map): Make the calculations more obvious.
80902         (init_dfa, parse_bracket_exp, build_charclass_op):
80903         Call calloc and cast result, as glibc does.
80904         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80905         (build_range_exp, build_collating_symbol):
80906         Now internal functions.
80907
80908         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80909
80910         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80911         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80912         Don't depend on VMS; depend on __VMS instead, for POSIX
80913         namespace cleanness.
80914         (regoff_t): Define to ssize_t, not long int.
80915
80916         Remove the REG_ macros named below.  Instead, make the old names
80917         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80918         __USE_GNU_REGEX.
80919         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80920         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80921         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80922         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80923         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80924         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80925         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80926         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80927         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80928         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80929         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80930         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80931         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80932         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80933         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80934         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80935         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80936         (REG_NREGS):
80937         Remove.  All uses replaced by the old RE_* names.
80938         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80939         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80940         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80941         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80942         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80943         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80944         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80945         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80946         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80947         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80948         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80949         Don't bother having these macros be independent of each others'
80950         values, since they no longer exist in the POSIX name space.
80951
80952         Rename the following member names back to their old names,
80953         unless !__USE_GNU_REGEX.  All uses changed back.
80954         (buffer): Renamed from re_buffer.
80955         (allocated): Renamed from re_allocated.
80956         (used): Renamed from re_used.
80957         (syntax): Renamed from re_syntax.
80958         (fastmap): Renamed from re_fastmap.
80959         (translate): Renamed from re_translate.
80960         (can_be_null): Renamed from re_can_be_null.
80961         (regs_allocated): Renamed from re_regs_allocated.
80962         (fastmap_accurate): Renamed from re_fastmap_accurate.
80963         (no_sub): Renamed from re_no_sub.
80964         (not_bol): Renamed from re_not_bol.
80965         (not_eol): Renamed from re_not_eol.
80966         (newline_anchor): Renamed from re_newline_anchor.
80967         (num_regs): Renamed from rm_num_regs.
80968         (start): Renamed from rm_start.
80969         (end): Renamed from rm_end.
80970
80971         (free_state): Move up a bit.
80972
80973         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80974         #define to be empty.
80975         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80976         when that is what is intended.
80977         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80978         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80979         (MAX): New macro.
80980         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80981         All uses changed back to re_malloc, etc.  It's now the caller's
80982         responsibility to check for overflow; all callers changed.
80983         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80984         (re_x2nrealloc): Remove.
80985         (free_state): Remove decl.
80986
80987         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80988         (re_set_registers, re_exec):
80989         Use K&R-style defn.
80990
80991         2006-01-31  Roland McGrath  <roland@redhat.com>
80992
80993         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80994         Reported by Mike Frysinger <vapier@gentoo.org>.
80995
80996         2006-01-15  Andreas Jaeger  <aj@suse.de>
80997
80998         [BZ #1950]
80999         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81000         build_wcs_upper_buffer change.
81001         (build_wcs_upper_buffer): Change return type.
81002
81003         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81004
81005         * lib/regex_internal.h: Include <stdint.h> if available.
81006
81007         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81008
81009         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81010
81011         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81012
81013         * lib/regcomp.c: Adjust for changed secondary hash function.
81014
81015         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81016
81017         * lib/regex.h: Pretty printing.
81018         Clean up namespace a bit.
81019
81020         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81021
81022         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81023         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81024
81025         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81026                     Ulrich Drepper  <drepper@redhat.com>
81027
81028         [BZ #1302]
81029         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81030         changed.
81031         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81032
81033         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81034
81035         [BZ #281]
81036         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81037         * lib/regcomp.c: Remove unnecessary uses of
81038         unsigned RE_TRANSLATE_TYPE.
81039         * lib/regex_internal.h: Likewise.
81040         * lib/regex_internal.c: Likewise.
81041         * lib/regexec.c: Likewise.
81042         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81043
81044         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81045
81046         * lib/regexec.c (find_recover_state): Remove unnecessary
81047         initialization.
81048         (transit_state_bkref): Make DFA a const pointer.
81049         (get_subexp): Likewise.
81050         (check_arrival): Likewise.
81051         (update_cur_sifted_state): Likewise.
81052         (re_search_internal): Likewise.
81053         (prune_impossible_nodes): Likewise.
81054         (acquire_init_state_context): Likewise.
81055         (proceed_next_node): Likewise.
81056         (set_regs): Likewise.
81057         (free_fail_stack_return): Likewise.
81058         (check_arrival_expand_ecl): Mark DFA parameter as const.
81059         (check_arrival_expand_ecl_sub): Likewise.
81060         (check_subexp_limits): Likewise.
81061         (sub_epsilon_src_nodes):  Likewise.
81062         (add_epsilon_src_nodes):  Likewise.
81063         (merge_state_array): Likewise.
81064         (update_regs): Likewise.
81065         (build_trtable): Likewise.
81066         (sift_states_backward): Mark MCTX parameter as const.
81067         (build_sifted_states): Likewise.
81068         (update_cur_sifted_state): Likewise.
81069         (sift_states_mkref): Likewise.
81070         (check_arrival_expand_ecl): Mark eclosure as const.
81071         (check_dst_limits_calc_pos_1): Likewise.
81072         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81073         pointer.
81074
81075         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81076
81077         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81078         (transit_state_sb): Likewise.
81079         (transit_state_mb): Likewise.
81080         (sift_states_iter_mb): Likewise.
81081         (check_arrival_add_next_nodes): Likewise.
81082         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81083         [_LIBC] (re_search_2_stub): Use mempcpy.
81084
81085         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81086         mbrtowc for very simple UTF-8 case.
81087
81088         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81089         a pointer-to-const.
81090         (re_acquire_state_context): Likewise.
81091         * lib/regex_internal.h: Adjust prototypes.
81092
81093         * lib/regex.c: Prevent using C++ compilers.
81094
81095         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81096         (re_acquire_state_context): Likewise.
81097
81098 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81099
81100         * modules/regex (Depends-on): Add ssize_t.
81101
81102 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81103
81104         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81105         translation table.
81106
81107 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81110
81111 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81112             Bruno Haible  <bruno@clisp.org>
81113
81114         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81115         <sys/types.h> and <inttypes.h>.
81116
81117 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81118
81119         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81120         `__error_t_defined', so argp.h will not typedef the former.
81121
81122 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81123
81124         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81125         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81126         glibc names.  Even if glibc is changed to conform to POSIX, the
81127         traditional names will be available anyway, since regex depends on
81128         the extensions module.  Also, fix a longstanding typo in the
81129         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81130         reported by Emanuele Giaquinta.  Also, change sense of cached
81131         variable, so that the message makes sense.
81132
81133 2006-03-24  Simon Josefsson  <jas@extundo.com>
81134
81135         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81136         including some doc fixes.
81137         (base64_encode_alloc): Fix +1 bug on allocation failures.
81138
81139 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81140
81141         * lib/base64.c (base64_encode): Do not read past end of array with
81142         unsanitized input on systems with CHAR_BIT > 8.
81143
81144 2006-03-24  Eric Blake  <ebb9@byu.net>
81145
81146         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81147
81148 2006-03-22  Karl Berry  <karl@gnu.org>
81149
81150         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81151         * config/srclistvars.sh (COREUTILS): new var.
81152
81153 2006-03-17  Jim Meyering  <jim@meyering.net>
81154
81155         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81156         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81157
81158 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81159
81160         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81161         no longer needs it.  Instead, check that regoff_t is as least
81162         as wide as ptrdiff_t.
81163
81164         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81165         so that our regex.h stays compatible with the installed regex.
81166         This is helpful for installers who configure --without-included-regex.
81167         Problem reported by Emanuele Giaquinta.
81168
81169 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81170
81171         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81172         Typedef to long int, not to off_, as POSIX will likely change
81173         in that direction.
81174
81175 2006-03-15  Eric Blake  <ebb9@byu.net>
81176
81177         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81178
81179 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81180
81181         * lib/argp-help.c (validate_uparams): Fix typo
81182         * lib/argp-parse.c (argp_default_options): Consistently begin help
81183         messages with a lowercase letter.
81184
81185 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81186
81187         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81188         overrun buffers and shouldn't be used (much as gets shouldn't be
81189         used).
81190         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81191
81192 2006-03-08  Simon Josefsson  <jas@extundo.com>
81193
81194         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81195         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81196
81197 2006-03-08  Simon Josefsson  <jas@extundo.com>
81198
81199         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81200         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81201
81202 2006-03-08  Simon Josefsson  <jas@extundo.com>
81203
81204         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81205         signal that configure disabled the device.
81206
81207 2006-03-08  Simon Josefsson  <jas@extundo.com>
81208
81209         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81210         languages.
81211
81212 2006-03-07  Simon Josefsson  <jas@extundo.com>
81213
81214         * modules/getopt (Depends-on): Add unistd.
81215
81216         * modules/unistd: New file.
81217
81218 2006-03-07  Simon Josefsson  <jas@extundo.com>
81219
81220         * modules/gc-random: New file.
81221
81222 2006-03-07  Simon Josefsson  <jas@extundo.com>
81223
81224         * m4/unistd_h.m4: New file.
81225
81226 2006-03-07  Simon Josefsson  <jas@extundo.com>
81227
81228         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81229         test to be side-effect free by storing the result in the cache
81230         variable gl_cv_lib_readline, and moving the assignment of
81231         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81232         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81233
81234 2006-03-07  Simon Josefsson  <jas@extundo.com>
81235
81236         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81237         error on missing devices (the functions will return an error).
81238
81239         * m4/gc.m4: Move random stuff to gc-random.m4
81240
81241 2006-03-07  Simon Josefsson  <jas@extundo.com>
81242
81243         * lib/unistd_.h: New file.
81244
81245 2006-03-07  Simon Josefsson  <jas@extundo.com>
81246
81247         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81248
81249 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81250
81251         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81252         Problem reported by Juan Manuel Guerrero.
81253
81254 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81257         the unistd module.
81258         * lib/getlogin_r.c: Likewise.
81259         * lib/getlogin_r.h: Likewise.
81260         * lib/glob.c: Likewise.
81261         * lib/pagealign_alloc.c: Likewise.
81262         * lib/unistd_.h: Remove; no longer needed.
81263
81264 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81265
81266         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81267         Add unistd.
81268         * modules/c-stack (Depends-on): Add unistd.
81269         * modules/getlogin_r: Likewise.
81270         * modules/glob: Likewise.
81271         * modules/pagealign_alloc: Likewise.
81272         * modules/unistd (Files): Remove lib/unistd_.h.
81273         (EXTRA_DIST): Remove.
81274         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81275         need unistd_.h.
81276         (MOSTLYCLEANFILES): Remove unistd.h-t.
81277
81278 2006-03-03  Simon Josefsson  <jas@extundo.com>
81279
81280         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81281
81282 2006-03-03  Simon Josefsson  <jas@extundo.com>
81283
81284         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81285         libidn and bison.
81286
81287 2006-03-03  Simon Josefsson  <jas@extundo.com>
81288
81289         * build-aux/maint.mk: Add indent target.
81290
81291 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81292
81293         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81294         our replacement poll.h in any case, to avoid a differing
81295         declaration from a system header.  Seen on AIX.
81296
81297 2006-03-01  Simon Josefsson  <jas@extundo.com>
81298
81299         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81300         <kasal@ucw.cz>.
81301
81302 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81303
81304         * modules/gettime (Depends-on): Add extensions module.
81305         * modules/nanosleep (Depends-on): Likewise.
81306         * modules/settime (Depends-on): Likewise.
81307
81308 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81309
81310         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81311         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81312         pedantically.
81313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81314         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81315
81316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81317         not "==".  Reported by Ralf Wildenhues.
81318
81319 2006-03-01  Karl Berry  <karl@gnu.org>
81320
81321         * doc/Copyright/request-*: new files, synced from gnuorg.
81322
81323 2006-03-01  Karl Berry  <karl@gnu.org>
81324
81325         * config/srclist.txt (Copyright/*): new entries.
81326
81327 2006-02-28  Simon Josefsson  <jas@extundo.com>
81328
81329         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81330
81331 2006-02-27  Simon Josefsson  <jas@extundo.com>
81332
81333         * lib/base64.h: Indent #define's.  From Jim Meyering
81334         <jim@meyering.net>.
81335
81336 2006-02-27  Jim Meyering  <jim@meyering.net>
81337
81338         Revert the change of 2006-02-24, so these files can continue
81339         to be sync'd from gettext.
81340         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81341         of `config.h'.
81342
81343 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * modules/intprops: New file.
81346         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81347         Add intprops.
81348         * modules/getloadavg (Files): Remove lib/intprops.h.
81349         (Depends-on): Add intprops.
81350         * modules/human: Likewise.
81351         * modules/inttostr: Likewise.
81352         * modules/openat: Likewise.
81353         * modules/sig2str: Likewise.
81354         * modules/userspec: Likewise.
81355         * modules/utimecmp: Likewise.
81356         * modules/xnanosleep: Likewise.
81357         * modules/xstrtol: Likewise.
81358
81359 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81360
81361         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81362         * modules/lock-tests (TESTS): Use $(EXEEXT).
81363         * modules/tls-tests: Likewise.
81364         * modules/argp-tests: Likewise.
81365         (check_PROGRAMS): New var, replacing...
81366         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81367
81368 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81369
81370         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81371         `config.h'.
81372
81373 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81374
81375         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81376
81377 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81378
81379         Sync from coreutils.
81380         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81381         gl_CHDIR_SAFER.
81382
81383 2006-02-22  Jim Meyering  <jim@meyering.net>
81384
81385         Sync from coreutils.
81386         * m4/chdir-safer.m4: New file.
81387
81388 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81389
81390         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81391         AT_FDCWD exceeds INT_MAX.
81392         * lib/openat.h (AT_FDCWD): Likewise.
81393
81394 2006-02-17  Eric Blake  <address@hidden>
81395
81396         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81397
81398 2006-02-16  Simon Josefsson  <jas@extundo.com>
81399
81400         * modules/getaddrinfo (Depends-on): Add sys_socket.
81401
81402 2006-02-15  Simon Josefsson  <jas@extundo.com>
81403
81404         * build-aux/maint.mk: Add dsyntax-check rule.
81405
81406 2006-02-15  Eric Blake  <ebb9@byu.net>
81407
81408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81409         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81410         'present but cannot compile' warnings on cygwin.
81411         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81412         use ws2tcpip.h if sys/socket.h works.
81413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81414         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81415
81416 2006-02-14  Simon Josefsson  <jas@extundo.com>
81417
81418         * modules/maintainer-makefile (Files): Rename.
81419
81420         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81421         and (the local) Makefile.cfg to maint-cfg.mk.
81422
81423         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81424         to the latter.
81425
81426         * modules/maintainer-makefile: New module.
81427
81428         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81429         severaly stripped to make it possible to build it up from scratch
81430         with reliable tests.
81431
81432         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81433         fixes to permit overriding the default actions when configure and
81434         makefile are not available.
81435
81436 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81437
81438         Sync from coreutils.
81439         * modules/lstat (Depends-on): Don't depend on xalloc.
81440         (License): Change from GPL to LGPL, since this is now simply a
81441         replacement for a libc function.
81442
81443 2006-02-14  Jim Meyering  <jim@meyering.net>
81444
81445         Sync from coreutils.
81446
81447         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81448         failure on deficient systems, and simplify gnulib lgpl dependencies.
81449         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81450         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81451
81452         * lib/xalloc-die.c: Remove unused definition of N_.
81453
81454 2006-02-14  Jim Meyering  <jim@meyering.net>
81455
81456         Sync from coreutils.
81457         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81458         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81459         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81460         double-quote uses of that variable, to accommodate the rare case in
81461         which getmntent is available in none of the libraries checked.  This
81462         happens at least on FreeBSD 5.0.
81463
81464 2006-02-13  Simon Josefsson  <jas@extundo.com>
81465
81466         * gnulib-tool (Usage): Fix --import, from
81467         karl@freefriends.org (Karl Berry).
81468
81469 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81470
81471         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81472
81473 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81474
81475         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81476         "autoupdate" on 2005-12-12.
81477
81478 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81479
81480         * modules/closeout (Depends-on): Remove atexit.
81481
81482 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81483
81484         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81485         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81486
81487 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81488
81489         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81490         __EXTENSIONS__ if this causes compilation to fail.  Problem
81491         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81492         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81493
81494 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81495
81496         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81497         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81498         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81499         All uses changed.
81500
81501 2006-01-26  Simon Josefsson  <jas@extundo.com>
81502
81503         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81504         prototype is visible on mingw32.
81505
81506         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81507         for mingw32.
81508
81509         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81510         mingw32).
81511
81512 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81513
81514         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81515         attempt to open for write; this always fails, at least on POSIX
81516         hosts.  This reinstates the 2006-01-09 change, which was
81517         inadvertently removed.
81518
81519 2006-01-26  Bruno Haible  <bruno@clisp.org>
81520
81521         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81522         Reported by Paul Eggert.
81523
81524 2006-01-26  Bruno Haible  <bruno@clisp.org>
81525             Paul Eggert  <eggert@cs.ucla.edu>
81526
81527         * lib/stdbool_.h (_Bool)
81528         [(! (defined __cplusplus || defined __BEOS__)
81529           && !defined __GNUC__
81530           && !(defined __HP_cc || defined __xlc__
81531                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81532                || defined __sgi))]:
81533         #define to signed char in these cases too; this simplifies
81534         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81535         etc., separately) and makes it more conservative.
81536
81537 2006-01-25  Simon Josefsson  <jas@extundo.com>
81538
81539         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81540         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81541         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81542
81543 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81544
81545         * lib/argp-namefrob.h: Bugfix. Remove stray #
81546
81547 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81548
81549         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81550         so that we test the test.
81551         Check for yet another HP-UX cc bug involving *bool |= bool.
81552
81553 2006-01-25  Karl Berry  <karl@gnu.org>
81554
81555         * config/srclist.txt (vasnprintf.c): sync lost.
81556
81557 2006-01-25  Jim Meyering  <jim@meyering.net>
81558
81559         Sync from the stable (b5) branch of coreutils:
81560
81561         * lib/fts.c (fts_children): Don't let close() clobber errno from
81562         failed fchdir().
81563
81564         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81565         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81566         a dangling symlink.  That can also happen at least for ELOOP.
81567         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81568         FYI, this bug predates the inclusion of fts.c in coreutils.
81569
81570         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81571         in their own block, so pre-c99 compilers don't object.
81572
81573         Avoid the double-free (first in fts_read, second in fts_close) that
81574         would occur when an `active' directory is made inaccessible (e.g.,
81575         via chmod a-x) during a traversal.
81576         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81577         before returning.  Reproduce this failure by
81578         mkdir -p a/b; cd a; chmod a-x . b
81579         Reported by Stavros Passas.
81580
81581 2006-01-25  Jim Meyering  <jim@meyering.net>
81582
81583         * lib/fileblocks.c: Remove more useless parentheses.
81584         * lib/readutmp.h: Likewise.
81585
81586 2006-01-25  Bruno Haible  <bruno@clisp.org>
81587
81588         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81589         warnings.
81590         Reported by Paul Eggert.
81591
81592 2006-01-25  Bruno Haible  <bruno@clisp.org>
81593
81594         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81595         rid of a trap command. For Solaris sh.
81596         Reported by Mark D. Baushke <mdb@gnu.org>.
81597
81598 2006-01-24  Simon Josefsson  <jas@extundo.com>
81599
81600         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81601         Bruno.
81602
81603 2006-01-24  Karl Berry  <karl@gnu.org>
81604
81605         * config/srclist.txt (argp-namefrob.h): sync lost.
81606
81607 2006-01-24  Jim Meyering  <jim@meyering.net>
81608
81609         * modules/openat (Files): Add lib/intprops.h.
81610         From Mark D. Baushke.
81611
81612 2006-01-24  Jim Meyering  <jim@meyering.net>
81613
81614         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81615         Reported by Mark D. Baushke.
81616
81617 2006-01-24  Jim Meyering  <jim@meyering.net>
81618
81619         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81620
81621 2006-01-24  Bruno Haible  <bruno@clisp.org>
81622
81623         * modules/strnlen (Maintainer): Change from glibc to all.
81624
81625 2006-01-24  Bruno Haible  <bruno@clisp.org>
81626
81627         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81628         Patch by Paul Eggert.
81629
81630 2006-01-24  Bruno Haible  <bruno@clisp.org>
81631
81632         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81633         already has it.
81634         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81635         2005-11-26.
81636
81637         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81638         'signed char' to avoid problems with the built-in _Bool type.
81639         Reported by Paul Eggert on 2005-11-26.
81640
81641 2006-01-24  Bruno Haible  <bruno@clisp.org>
81642
81643         * gnulib-tool (func_import): Avoid constructing complicated sed
81644         expressions inside backquote.
81645         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81646
81647 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81648
81649         These changes imported from libc.
81650         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81651         test and two separate function calls.
81652         * lib/strndup.c (__strndup): Add libc_hidden_def.
81653
81654 2006-01-23  Simon Josefsson  <jas@extundo.com>
81655
81656         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81657         Remove the test_*_SOURCES variable: automake infers it by default.
81658         * modules/tls-tests: Likewise.
81659
81660 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81661
81662         Work around porting bugs reported by Dieter in
81663         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81664         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81665         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81666         Include "getopt.h" first, to check interface.
81667         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81668         !HAVE_DECL_GETENV.
81669         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81670         (__strndup): Revert to K&R-style function dfns, the glibc style.
81671         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81672         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81673         Include strnlen.h first, to get prototype properly.
81674         (strnlen): Renamed from __strnlen.
81675         Remove weak alias.
81676
81677 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81678
81679         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81680
81681 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         * config/srclist.txt: Adjust to reflect glibc reorganization.
81684         This affects only comments.
81685
81686 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81687
81688          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81689          Reported by Bruce Korb <bkorb@gnu.org>.
81690
81691 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81692
81693         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81694         to pacify gcc -Wswitch-default.
81695
81696 2006-01-22  Bruno Haible  <bruno@clisp.org>
81697
81698         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81699         temporary buffer for sprintf, take into account the precision also
81700         for 'd', 'i', 'u', 'o', 'x', 'X'.
81701
81702 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81703
81704         * modules/argp-tests: New module
81705         * tests/test-argp.c: New file
81706         * tests/test-argp-2.sh: New file
81707
81708 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81709
81710         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81711         (__argp_base_name): Removed
81712         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81713         typo.
81714         (__argp_base_name): Provide macro definition or extern declaration
81715         depending on the configuration
81716
81717 2006-01-20  Simon Josefsson  <jas@extundo.com>
81718
81719         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81720
81721 2006-01-20  Simon Josefsson  <jas@extundo.com>
81722
81723         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81724
81725 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81726
81727         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81728         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81729         Suggested by Bruno Haible.
81730
81731 2006-01-20  Karl Berry  <karl@gnu.org>
81732
81733         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81734         until changes propagate, I guess.
81735
81736 2006-01-19  Simon Josefsson  <jas@extundo.com>
81737
81738         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81739
81740 2006-01-19  Simon Josefsson  <jas@extundo.com>
81741
81742         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81743
81744 2006-01-19  Simon Josefsson  <jas@extundo.com>
81745
81746         * gnulib-tool: Set check_PROGRAMS.
81747
81748         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81749         modules/des-tests, modules/gc-arcfour-tests,
81750         modules/gc-arctwo-tests, modules/gc-des-tests,
81751         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81752         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81753         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81754         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81755         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81756         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81757         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81758         test_*_SOURCES.
81759
81760 2006-01-18  Simon Josefsson  <jas@extundo.com>
81761
81762         * modules/socklen (Depends-on): Depend on sys_socket.
81763
81764 2006-01-18  Simon Josefsson  <jas@extundo.com>
81765
81766         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81767         modules/des-tests, modules/gc-arcfour-tests,
81768         modules/gc-arctwo-tests, modules/gc-des-tests,
81769         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81770         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81771         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81772         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81773         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81774         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81775         $(EXEEXT) to automake TESTS variable, for mingw32.
81776
81777 2006-01-17  Simon Josefsson  <jas@extundo.com>
81778
81779         * modules/socklen (Include): Need sys/socket.h.
81780
81781 2006-01-17  Bruno Haible  <bruno@clisp.org>
81782
81783         * modules/ssize_t (Include): Add <sys/types.h>.
81784
81785 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81788         it's not portable and it doesn't work with cross-compiles.
81789         Problem reported by Bruno Haible.  Fix missing-$ typo in
81790         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81791         -zignore from being used with Sun's C compiler.
81792
81793 2006-01-12  Simon Josefsson  <jas@extundo.com>
81794
81795         * lib/base64.c: Fix warning, reported by Bruno Haible
81796         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81797
81798 2006-01-12  Bruno Haible  <bruno@clisp.org>
81799
81800         * modules/ldd: New file.
81801         * build-aux/ldd.sh.in: New file.
81802         * MODULES.html.sh (Support for building libraries and executables): Add
81803         ldd.
81804
81805 2006-01-12  Bruno Haible  <bruno@clisp.org>
81806
81807         * m4/ldd.m4: New file.
81808
81809 2006-01-12  Bruno Haible  <bruno@clisp.org>
81810
81811         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81812         endless loop while replacing $auxdir with build-aux.
81813
81814 2006-01-11  Simon Josefsson  <jas@extundo.com>
81815
81816         * lib/stdint_.h (SIZE_MAX): Add missing (.
81817
81818 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81819
81820         Sync from coreutils.
81821         * lib/md5.c: Fix commentary typos.
81822         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81823         * lib/md5.h (__attribute__): Remove; unused.
81824         * lib/sha1.c: Fix commentary to match md5 better.
81825         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81826         so that we don't need to worry about alignment.  All uses changed.
81827         This merges the 2005-10-28 md5 change into sha1.
81828
81829 2006-01-11  Jim Meyering  <jim@meyering.net>
81830
81831         Sync from coreutils.
81832         * lib/md5.c (OP): Fix spacing.
81833
81834 2006-01-11  Bruno Haible  <bruno@clisp.org>
81835
81836         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81837         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81838         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81839
81840 2006-01-11  Bruno Haible  <bruno@clisp.org>
81841
81842         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81843         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81844         the "early" section as well.
81845
81846 2006-01-11  Bruno Haible  <bruno@clisp.org>
81847
81848         Avoid "ar: no archive members specified" error on MacOS X.
81849         * gnulib-tool (func_modules_add_dummy): New function.
81850         (func_import, func_create_testdir): Invoke it.
81851
81852 2006-01-11  Bruno Haible  <bruno@clisp.org>
81853
81854         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81855         with $auxdir in AC_CONFIG_FILES statements.
81856
81857 2006-01-11  Bruno Haible  <bruno@clisp.org>
81858
81859         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81860         Initialize also noinst_HEADERS to empty.
81861
81862 2006-01-11  Bruno Haible  <bruno@clisp.org>
81863
81864         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81865         variables.
81866         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81867         autoreconf.
81868
81869 2006-01-11  Bruno Haible  <bruno@clisp.org>
81870
81871         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81872         overridable by the user.
81873         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81874
81875 2006-01-10  Simon Josefsson  <jas@extundo.com>
81876
81877         * modules/sys_socket: New file.
81878
81879 2006-01-10  Simon Josefsson  <jas@extundo.com>
81880
81881         * m4/sys_socket_h.m4: New file.
81882
81883 2006-01-10  Simon Josefsson  <jas@extundo.com>
81884
81885         * lib/socket_.h: New file.
81886
81887 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81888
81889         * modules/readutmp (Maintainer): Add myself.
81890
81891 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81892
81893         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81894         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81895         People who are still concerned with buggy memcmp implementations
81896         can invoke gl_FUNC_MEMCMP themselves.
81897
81898 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         * lib/regex_internal.h (BITSET_WORD_BITS):
81901         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81902         preprocessor mishandles large unsigned values as if they were signed.
81903         Problem reported by Claudio Fontana in
81904         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81905
81906 2006-01-10  Jim Meyering  <jim@meyering.net>
81907
81908         Avoid the double-free (first in fts_read, second in fts_close) that
81909         would occur when an `active' directory is made inaccessible (e.g.,
81910         via chmod a-x) during a traversal.
81911         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81912         before returning.  Reproduce this failure by
81913         mkdir -p a/b; cd a; chmod a-x . b
81914         Reported by Stavros Passas.
81915
81916         Sync from coreutils.
81917         * lib/sha1.c: Tweak grammar in a comment.
81918
81919 2006-01-10  Jim Meyering  <jim@meyering.net>
81920
81921         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81922         Patch by Joerg Sonnenberger.
81923
81924 2006-01-10  Bruno Haible  <bruno@clisp.org>
81925
81926         * modules/readutmp: Depend on module free.
81927         * modules/strtok_r: Depend on module restrict.
81928
81929 2006-01-10  Bruno Haible  <bruno@clisp.org>
81930
81931         * modules/gettext (configure.ac): Add an invocation of
81932         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81933
81934 2006-01-10  Bruno Haible  <bruno@clisp.org>
81935
81936         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81937         Reported by Werner Lemberg <wl@gnu.org>.
81938
81939 2006-01-10  Bruno Haible  <bruno@clisp.org>
81940
81941         * lib/localcharset.c: Update from GNU gettext.
81942
81943 2006-01-10  Bruno Haible  <bruno@clisp.org>
81944
81945         * lib/argp.h (__const): Remove macro. Use const instead.
81946         * lib/argp-fmtstream.h (__const): Likewise.
81947         * lib/glob_.h (__const): Remove macro.
81948         * lib/glob-libc.h: Use const instead of __const.
81949
81950 2006-01-10  Bruno Haible  <bruno@clisp.org>
81951
81952         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81953         variable.
81954         Needed to avoid an automake error regarding the 'gettext' module.
81955
81956 2006-01-09  Simon Josefsson  <jas@extundo.com>
81957
81958         * modules/inet_ntop (Depends-on): Add restrict.
81959
81960 2006-01-09  Simon Josefsson  <jas@extundo.com>
81961
81962         * modules/gc-rijndael-tests (License): Put under LGPL.
81963
81964         * modules/gc-des-tests (License): Likewise.
81965
81966         * modules/gc-arcfour-tests (License): Likewise.
81967
81968         * modules/gc-arctwo-tests (License): Likewise.
81969
81970         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81971
81972         * modules/gc-hmac-sha1-tests (Files): Likewise.
81973
81974         * modules/gc-hmac-md5-tests (License): Likewise.
81975
81976         * modules/gc-sha1-tests (License): Likewise.
81977
81978         * modules/gc-md5-tests (License): Likewise.
81979
81980         * modules/gc-md4-tests (License): Likewise.
81981
81982         * modules/gc-md2-tests (License): Likewise.
81983
81984         * modules/gc-tests (License): Likewise.
81985
81986         * modules/des-tests (License): Likewise.
81987
81988         * modules/md4-tests (License): Likewise.
81989
81990         * modules/md2-tests (License): Likewise.
81991
81992 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         Sync from coreutils:
81995
81996         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81997         * modules/lib-ignore: New file.
81998         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81999         chdir-safer.m4, lchmod.m4.
82000         * modules/openat: Add mkdirat.c, openat-priv.h.
82001
82002 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82003
82004         Sync from coreutils.
82005         * m4/lib-ignore.m4: New file.
82006         * m4/lchmod.m4: New file.
82007
82008 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82009
82010         Sync from coreutils.
82011         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82012         for write access: POSIX says that must fail.
82013         * lib/fts.c (diropen): Likewise.
82014         * lib/save-cwd.c (save_cwd): Likewise.
82015         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82016         well, for minor improvements on hosts that lack O_DIRECTORY.
82017         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82018         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82019         Fall back on chown if open failed with EACCES.
82020
82021         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82022         Report an error at compile-time if only a 1-second nominal clock
82023         resolution is found.
82024
82025         * lib/lchmod.h: New file.
82026         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82027         (make_dir_parents): Use lchown rather than chown, and
82028         lchmod rather than chmod.
82029
82030         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82031         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82032         "proc" reported by n0dalus.
82033
82034         * lib/mountlist.c: Include <limits.h>.
82035         (dev_from_mount_options)
82036         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82037         New function.  It no longer assumes "dev=" has the System V meaning
82038         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82039         (read_file_system_list)
82040         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82041         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82042         dev= in that case.
82043
82044         * lib/posixtm.h (PDS_PRE_2000): New macro.
82045         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82046         allow_century.  All usages changed.  Reject dates outside the range
82047         1969-1999 if PDS_PRE_2000 is used.
82048
82049 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82050
82051         Sync from coreutils.
82052         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82053         (Time of day items): Mention the possibility of leap seconds.
82054         Problem reported by Dr. David Alan Gilbert.
82055
82056 2006-01-09  Jim Meyering  <jim@meyering.net>
82057
82058         Sync from coreutils.
82059
82060         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82061
82062         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82063
82064         * lib/modechange.c (mode_compile): Reject an invalid mode string
82065         that starts with an octal digit.  From Andreas Gruenbacher.
82066
82067         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82068         and dup to open_safer and dup_safer, respectively.
82069         (openat_permissive): Fix typo in comment.
82070
82071         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82072         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82073         (_): Remove; no longer needed.
82074         (openat): Renamed from rpl_openat; no need for rpl_openat
82075         since openat.h renames openat for us.
82076         Replace most of the body with a call to openat_permissive,
82077         to avoid duplicate code.
82078         Port to (probably hypothetical) environments were mode_t is
82079         wider than int.
82080         (openat_permissive): Require mode arg, so that we can check
82081         types better.  Put it just after flags.  Change cwd failure
82082         indicator from pointer-to-bool to pointer-to-errno-value.
82083         All callers changed.
82084         Invoke openat_save_fail and/or openat_restore_fail if
82085         cwd_errno is null, so that openat can call us.
82086         (openat_permissive, fdopendir, fstatat, unlinkat):
82087         Simplify errno handling to avoid some duplicate code,
82088         as it's OK to set errno on success.
82089         * lib/openat.h: Revamp code so that function macros depend on
82090         __OPENAT_PREFIX only, not also on AT_FDCWD.
82091         (openat_ro): Remove.  Caller changed to use openat_permissive.
82092         (openat_permissive): Now a macro, if not a function.
82093         (openat_restore_fail, openat_save_fail): Now always functions,
82094         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82095
82096         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82097         and openat.c.
82098         * lib/mkdirat.c: Include openat-priv.h.
82099         Remove definitions of macros defined therein.
82100         * lib/openat.c: Likewise.
82101
82102         * lib/mkdirat.c (mkdirat): New file and function.
82103         * lib/openat.h (mkdirat): Declare.
82104
82105         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82106
82107         * lib/openat.h (openat_permissive): Declare.
82108         (openat_ro): Define.
82109
82110         * lib/openat.c (EXPECTED_ERRNO): New macro.
82111         (openat_permissive): New function -- used in remove.c rewrite.
82112         (all functions): Set errno just before returning, only if there
82113         was an actual failure.
82114         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82115
82116         Emulate openat-family functions using Linux's procfs, if possible.
82117         Idea and some code based on Ulrich Drepper's glibc changes.
82118
82119         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82120         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82121         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82122         before falling back on save_cwd and restore_cwd.
82123         (fdopendir, fstatat, unlinkat): Likewise.
82124
82125         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82126         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82127
82128         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82129         as second argument to va_arg.  Otherwise, some versions of gcc
82130         warn that `if this code is reached, the program will abort'.
82131
82132 2006-01-09  Jim Meyering  <jim@meyering.net>
82133
82134         Sync from coreutils.
82135         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82136         Require openat-priv.h.
82137
82138 2006-01-09  Bruno Haible  <bruno@clisp.org>
82139
82140         * modules/strnlen (Include): Use strnlen.h.
82141
82142 2006-01-09  Bruno Haible  <bruno@clisp.org>
82143
82144         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82145
82146 2006-01-09  Bruno Haible  <bruno@clisp.org>
82147
82148         * lib/sysexit_.h (EX_OK): New macro.
82149         Suggested by Martin Lambers <marlam@marlam.de>.
82150
82151 2006-01-09  Bruno Haible  <bruno@clisp.org>
82152
82153         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82154         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82155
82156 2006-01-09  Bruno Haible  <bruno@clisp.org>
82157
82158         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82159         numbers.
82160
82161 2006-01-09  Bruno Haible  <bruno@clisp.org>
82162
82163         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82164         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82165         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82166         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82167
82168 2006-01-09  Bruno Haible  <bruno@clisp.org>
82169
82170         * build-aux/javacomp.sh.in: New file, moved from lib/.
82171         * modules/javacomp-script (Files): Update.
82172         (configure.ac): Add AC_CONFIG_FILES invocation.
82173         (EXTRA_DIST): Remove variable.
82174
82175         * build-aux/javaexec.sh.in: New file, moved from lib/.
82176         * modules/javaexec (Files): Update.
82177         (configure.ac): Add AC_CONFIG_FILES invocation.
82178         (EXTRA_DIST): Remove javaexec.sh.in.
82179
82180         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82181         * modules/csharpcomp-script (Files): Update.
82182         (configure.ac): Add AC_CONFIG_FILES invocation.
82183         (EXTRA_DIST): Remove variable.
82184
82185         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82186         * modules/csharpexec (Files): Update.
82187         (configure.ac): Add AC_CONFIG_FILES invocation.
82188         (EXTRA_DIST): Remove csharpexec.sh.in.
82189
82190 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82191
82192         Sync from coreutils.
82193
82194         Add POSIX ACL support
82195         * lib/acl.h (copy_acl, set_acl): Add declarations.
82196         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82197         systems other than Linux.
82198         (chmod_or_fchmod): New function: use fchmod when possible,
82199         and chmod otherwise.
82200         (file_has_acl): Add a POSIX ACL implementation, with a
82201         Linux-specific subcase.
82202         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82203         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82204         acls are unsupported.
82205         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82206         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82207         are unsupported.
82208
82209 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82210
82211         Sync from coreutils.
82212         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82213
82214 2006-01-07  Bruno Haible  <bruno@clisp.org>
82215
82216         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82217         gl_EARLY.
82218
82219 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82220
82221         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82222         Problem reported for Mingw by Mark Junker.
82223
82224 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82225
82226         * README: Gnulib normally doesn't generate a tarball.
82227
82228 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82229
82230         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82231         long int, not int, for nanosecond counts, so that people who are
82232         used to POSIX struct timespec won't be surprised.  Reported by Jim
82233         Meyering.
82234
82235 2005-12-28  Bruno Haible  <bruno@clisp.org>
82236
82237         * build-aux/config.rpath: Update from GNU gettext.
82238
82239 2005-12-16  Jim Meyering  <jim@meyering.net>
82240
82241         * modules/fprintftime: New module.
82242         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82243
82244 2005-12-16  Jim Meyering  <jim@meyering.net>
82245
82246         * m4/fprintftime.m4: New file.
82247
82248 2005-12-16  Jim Meyering  <jim@meyering.net>
82249
82250         * lib/fprintftime.c, lib/fprintftime.h: New files.
82251
82252 2005-12-15  Simon Josefsson  <jas@extundo.com>
82253
82254         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82255         new m4/socklen.m4.
82256
82257 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82258
82259         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82260         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82261
82262 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82263
82264         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82265         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82266         struct uparams is valid. Fall back to the default values if it is
82267         not.
82268
82269 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82270
82271         * modules/argp (Files): Add argp-pin.c
82272         (Depends-on): dirname
82273         (lib_SOURCES): Add argp-pin.c
82274
82275 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82276
82277         * m4/argp.m4:  Check if program_invocation_name and
82278         program_invocation_short_name are declared and define appropriate
82279         macros if they are not.
82280
82281 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82282
82283         * lib/argp-help.c (__argp_base_name): New function
82284         (__argp_short_program_name): Rewrite using __argp_base_name
82285         * lib/argp-namefrob.h: Define program_invocation_name and
82286         program_invocation_short_name if requested
82287         (__argp_base_name): Add prototype
82288         * lib/argp-parse.c (argp_def): Use gettext wrappers
82289         (argp_default_parser): Use __argp_base_name
82290         * lib/argp-pin.c: New file. Defines program_invocation_name and
82291         program_invocation_short_name on systems that lack them.
82292
82293 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82294
82295         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82296         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82297         porting problem reported by Georg Schwarz in
82298         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82299
82300 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82303         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82304         porting problem reported by Georg Schwarz in
82305         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82306
82307 2005-12-05  Bruno Haible  <bruno@clisp.org>
82308
82309         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82310         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82311         Reported by Mark Junker <mjscod@gmx.de>.
82312
82313 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82314
82315         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82316         Use implementation from Albert Chin, with some
82317         comments/corrections by Stepan Kasal and myself.
82318
82319 2005-12-02  Bruno Haible  <bruno@clisp.org>
82320
82321         * gnulib-tool (func_import): Accept GPLed build tool modules when
82322         --lgpl is given.
82323         * modules/csharpcomp-script: New file.
82324         * modules/csharpcomp: Depend on it.
82325         * modules/javacomp-script: New file.
82326         * modules/javacomp: Depend on it.
82327         Suggested by Simon Josefsson.
82328
82329 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82330
82331         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82332         statement, to work around an HP-UX 10.20 compiler bug reported by
82333         Peter O'Gorman.
82334
82335 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82336
82337         * modules/savedir (Depends-on): Add openat.
82338
82339 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82340
82341         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82342         (uintmax_t) [defined uintmax_t]: Do not declare.
82343         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82344         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82345         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82346         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82347         sake of portability to weird hosts that C allows (though we don't
82348         know of any practical examples).
82349
82350         * lib/savedir.h (fdsavedir): New decl.
82351         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82352         contains most of the former guts of savedir.
82353         (savedir): Use savedirstream.
82354         Include "openat.h".
82355
82356 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82357
82358         * modules/obstack (Files): Add m4/ulonglong.m4.
82359         Problem reported by Davide Angelocola.
82360
82361 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82362
82363         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82364         coreutils no longer futzes with rounding modes.
82365
82366 2005-11-14  Jim Meyering  <jim@meyering.net>
82367
82368         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82369         replacement of mkstemp.
82370
82371 2005-11-10  Simon Josefsson  <jas@extundo.com>
82372
82373         * lib/readline.c: Remove EOL.
82374
82375 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82376
82377         * modules/gethrxtime (Depends-on): Add gettime.
82378
82379 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82380
82381         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82382         or gettimeofday; no longer needed.
82383
82384 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82385
82386         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82387         time business.
82388         (gethrxtime) [! (HAVE_NANOUPTIME
82389         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82390         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82391         our own approximation.
82392
82393 2005-11-08  Eric Blake  <ebb9@byu.net>
82394
82395         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82396
82397 2005-11-08  Eric Blake  <ebb9@byu.net>
82398
82399         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82400
82401 2005-11-04  Bruno Haible  <bruno@clisp.org>
82402
82403         * gnulib-tool: Implement --update mode.
82404
82405 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82406
82407         Fix porting problem reported by Theodoros V. Kalamatianos.
82408         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82409         Don't assume that futimes failing means we must fail.
82410
82411 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82412
82413         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82414         variables to suggest the intended function of the PATH_MAX check.
82415
82416 2005-10-30  Kean Johnston  <jkj@sco.com>
82417
82418         Trivial changes to support SCO systems.
82419         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82420         as PATH_MAX.
82421         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82422         where __ptr is null when no I/O is pending.
82423
82424 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82425
82426         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82427         leave errno alone.  Problem reported by Dmitry V. Levin.
82428
82429 2005-10-28  Simon Josefsson  <jas@extundo.com>
82430
82431         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82432         Test more.
82433
82434         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82435
82436         * modules/md2, modules/md2-tests: New files.
82437
82438 2005-10-28  Simon Josefsson  <jas@extundo.com>
82439
82440         * m4/inet_ntop.m4: More tests.
82441
82442         * m4/gc-md2.m4, md2.m4: New file.
82443
82444 2005-10-28  Simon Josefsson  <jas@extundo.com>
82445
82446         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82447         "restrict" keywords, as per POSIX.  Protect the function
82448         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82449         Don't use K&R prototypes.  Check the sprintf return values.
82450         Re-define EAFNOSUPPORT if not present.  Indent.
82451
82452         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82453         suggested by Bruno Haible <bruno@clisp.org>.
82454
82455         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82456
82457         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82458
82459         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82460         libgcrypt).
82461
82462         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82463
82464         * lib/md2.h, lib/md2.c: New files.
82465
82466 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82467
82468         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82469         errno alone.  Problem reported by Frederic Jolliton.
82470
82471 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82472
82473         * modules/verify (License): Change from GPL to LGPL.  This is a
82474         tiny module and there are apparently near-equivalents that are
82475         under the BSD license.
82476
82477 2005-10-24  Simon Josefsson  <jas@extundo.com>
82478
82479         * modules/sha1: Relicense to LGPL.
82480
82481 2005-10-24  Simon Josefsson  <jas@extundo.com>
82482
82483         * lib/md4.h: Shrink buffer size, now that we changed the type.
82484
82485 2005-10-23  Simon Josefsson  <jas@extundo.com>
82486
82487         * gnulib-tool (func_import): Fix --tests-base.
82488
82489 2005-10-22  Simon Josefsson  <jas@extundo.com>
82490
82491         * modules/arcfour (Depends-on): Need stdint.
82492
82493 2005-10-22  Simon Josefsson  <jas@extundo.com>
82494
82495         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82496         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82497
82498 2005-10-22  Simon Josefsson  <jas@extundo.com>
82499
82500         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82501         suggested by Bruno Haible <bruno@clisp.org>.
82502
82503 2005-10-22  Simon Josefsson  <jas@extundo.com>
82504
82505         * lib/crc.h: Include stddef.h, for size_t.
82506
82507 2005-10-22  Simon Josefsson  <jas@extundo.com>
82508
82509         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82510         arcfour_context struct (simplify test vector testing in GNU
82511         Shishi).
82512
82513 2005-10-21  Simon Josefsson  <jas@extundo.com>
82514
82515         * modules/des, modules/des-tests: New files.
82516
82517         * modules/gc-des, modules/gc-des-tests: New files.
82518
82519         * tests/test-des.c, tests/test-gc-des.c: New file.
82520
82521 2005-10-21  Simon Josefsson  <jas@extundo.com>
82522
82523         * modules/arctwo, modules/arctwo-tests: New files.
82524
82525         * tests/test-arctwo.c: New file.
82526
82527         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82528
82529         * tests/test-gc-arctwo.c: New file.
82530
82531 2005-10-21  Simon Josefsson  <jas@extundo.com>
82532
82533         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82534         Bruno Haible <bruno@clisp.org>.
82535
82536         * m4/gc-des.m4: New file.
82537
82538 2005-10-21  Simon Josefsson  <jas@extundo.com>
82539
82540         * m4/arctwo.m4: New file.
82541
82542         * m4/gc-arctwo.m4: New file.
82543
82544 2005-10-21  Simon Josefsson  <jas@extundo.com>
82545
82546         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82547         block.
82548
82549 2005-10-21  Simon Josefsson  <jas@extundo.com>
82550
82551         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82552         <bruno@clisp.org>.
82553
82554         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82555
82556         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82557         Bruno Haible <bruno@clisp.org>.
82558
82559         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82560         <bruno@clisp.org>.
82561
82562 2005-10-21  Simon Josefsson  <jas@extundo.com>
82563
82564         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82565
82566 2005-10-21  Simon Josefsson  <jas@extundo.com>
82567
82568         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82569
82570 2005-10-21  Simon Josefsson  <jas@extundo.com>
82571
82572         * lib/des.h, lib/des.c: New files.
82573
82574         * lib/gc-gnulib.c: Support DES.c
82575
82576 2005-10-21  Simon Josefsson  <jas@extundo.com>
82577
82578         * lib/arctwo.h, lib/arctwo.c: New files.
82579
82580         * lib/gc-gnulib.c: Support ARCTWO.
82581
82582 2005-10-21  Simon Josefsson  <jas@extundo.com>
82583
82584         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82585         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82586
82587 2005-10-21  Simon Josefsson  <jas@extundo.com>
82588
82589         * gnulib-tool (func_import, func_create_testdir): Define automake
82590         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82591         Makefile.am snippet),
82592         suggested by Bruno Haible <bruno@clisp.org>.
82593
82594         * modules/gc (Makefile.am): Use it.
82595
82596 2005-10-21  Bruno Haible  <bruno@clisp.org>
82597
82598         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82599         patch.
82600
82601 2005-10-19  Simon Josefsson  <jas@extundo.com>
82602
82603         * tests/test-gc-rijndael.c: New file.
82604
82605         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82606
82607 2005-10-19  Simon Josefsson  <jas@extundo.com>
82608
82609         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82610         interface too.
82611
82612 2005-10-19  Simon Josefsson  <jas@extundo.com>
82613
82614         * tests/test-gc-arcfour.c: New file.
82615
82616         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82617
82618 2005-10-19  Simon Josefsson  <jas@extundo.com>
82619
82620         * modules/gc-md4, modules/gc-md4-tests: New file.
82621
82622         * tests/test-gc-md4.c: New file.
82623
82624 2005-10-19  Simon Josefsson  <jas@extundo.com>
82625
82626         * m4/gc-md4.m4: New file.
82627
82628 2005-10-19  Simon Josefsson  <jas@extundo.com>
82629
82630         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82631         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82632         <kasal@ucw.cz>.
82633
82634 2005-10-19  Simon Josefsson  <jas@extundo.com>
82635
82636         * m4/gc-arcfour.m4: New file.
82637
82638         * m4/gc-rijndael.m4: New file.
82639
82640 2005-10-19  Simon Josefsson  <jas@extundo.com>
82641
82642         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82643
82644 2005-10-19  Simon Josefsson  <jas@extundo.com>
82645
82646         * lib/gc-gnulib.c: Support ARCFOUR.
82647
82648 2005-10-19  Simon Josefsson  <jas@extundo.com>
82649
82650         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82651         support.
82652
82653         * lib/gc.h: Add ECB enum type.
82654
82655         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82656
82657 2005-10-18  Simon Josefsson  <jas@extundo.com>
82658
82659         * tests/test-md5.c: New file.
82660
82661         * modules/md5-tests: New file.
82662
82663 2005-10-18  Simon Josefsson  <jas@extundo.com>
82664
82665         * tests/test-md4.c: New file.
82666
82667         * modules/md4, modules/md4-tests: New files.
82668
82669 2005-10-18  Simon Josefsson  <jas@extundo.com>
82670
82671         * m4/md4.m4: New file.
82672
82673 2005-10-18  Simon Josefsson  <jas@extundo.com>
82674
82675         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82676
82677 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82678
82679         * gnulib-tool (func_create_testdir): Omit the second check whether
82680         BUILT_SOURCES in nonempty.
82681
82682 2005-10-17  Simon Josefsson  <jas@extundo.com>
82683
82684         * tests/test-rijndael.c: New file.
82685
82686 2005-10-17  Simon Josefsson  <jas@extundo.com>
82687
82688         * modules/sha1: Depend on stdint instead of md5.
82689
82690         * modules/md5: Depend on stdint, remove uint32_t.
82691
82692 2005-10-17  Simon Josefsson  <jas@extundo.com>
82693
82694         * modules/gc-sha1-tests: New file.
82695
82696         * tests/test-gc-sha1.c: New file.
82697
82698 2005-10-17  Simon Josefsson  <jas@extundo.com>
82699
82700         * m4/md5.m4: Remove call to uint32_t.m4.
82701
82702 2005-10-17  Simon Josefsson  <jas@extundo.com>
82703
82704         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82705
82706         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82707         md5.h.
82708
82709         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82710
82711         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82712
82713 2005-10-17  Simon Josefsson  <jas@extundo.com>
82714
82715         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82716
82717 2005-10-17  Simon Josefsson  <jas@extundo.com>
82718
82719         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82720
82721 2005-10-17  Simon Josefsson  <jas@extundo.com>
82722
82723         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82724
82725         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82726
82727 2005-10-17  Bruno Haible  <bruno@clisp.org>
82728
82729         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82730         that it can also be used in a test.
82731
82732 2005-10-16  Bruno Haible  <bruno@clisp.org>
82733
82734         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82735         TESTS_ENVIRONMENT, so that individual tests can augment it.
82736
82737         * gnulib-tool (func_create_testdir): Use an intermediate target for
82738         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82739         macros, like $(ALLOCA_H), which cannot be passed through the command
82740         line.
82741
82742 2005-10-15  Simon Josefsson  <jas@extundo.com>
82743
82744         * modules/rijndael-tests: New file.
82745
82746         * modules/rijndael: New file.
82747
82748 2005-10-15  Simon Josefsson  <jas@extundo.com>
82749
82750         * m4/rijndael.m4: New file.
82751
82752 2005-10-15  Simon Josefsson  <jas@extundo.com>
82753
82754         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82755
82756         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82757
82758 2005-10-14  Simon Josefsson  <jas@extundo.com>
82759
82760         * tests/test-arcfour.c: New file.
82761
82762         * modules/arcfour, modules/arcfour-tests: New files.
82763
82764 2005-10-14  Simon Josefsson  <jas@extundo.com>
82765
82766         * m4/arcfour.m4: New file.
82767
82768 2005-10-14  Simon Josefsson  <jas@extundo.com>
82769
82770         * lib/arcfour.h, lib/arcfour.c: New files.
82771
82772 2005-10-14  Roland McGrath  <roland@redhat.com>
82773
82774         Import from libc.  [BZ #1331]
82775         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82776         macro argument.
82777         Reported by Matej Vela <vela@debian.org>.
82778
82779 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82780
82781         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82782         include <wchar.h>; no longer needed.
82783
82784 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82785
82786         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82787
82788 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82789         and  Ulrich Drepper  <drepper@redhat.com>
82790
82791         Import from libc.
82792         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82793         instead of inline stream orientation test and two separate
82794         function calls.  Pay no attention to USE_IN_LIBIO.
82795
82796 2005-10-13  Simon Josefsson  <jas@extundo.com>
82797
82798         * modules/gc-hmac-md5-tests: New file.
82799
82800         * tests/test-gc-hmac-sha1.c: New file.
82801
82802         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82803
82804         * modules/gc-hmac-md5-tests: New file.
82805
82806         * tests/test-gc-md5.c: New file.
82807
82808         * modules/gc-md5-tests: New file.
82809
82810 2005-10-13  Simon Josefsson  <jas@extundo.com>
82811
82812         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82813         Move memory allocation outside of loop.
82814
82815 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82816
82817         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82818         intermediate directory is in a read-only file system.  Problem
82819         reported by Eric Blake.
82820
82821 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82822
82823         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82824
82825 2005-10-12  Simon Josefsson  <jas@extundo.com>
82826
82827         * tests/test-hmac-sha1.c: New file.
82828
82829         * modules/hmac-sha1-tests: New file.
82830
82831         * modules/hmac-sha1: New file.
82832
82833 2005-10-12  Simon Josefsson  <jas@extundo.com>
82834
82835         * modules/gc-sha1: New file.
82836
82837 2005-10-12  Simon Josefsson  <jas@extundo.com>
82838
82839         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82840
82841         * tests/test-gc-pbkdf2-sha1.c: New file.
82842
82843 2005-10-12  Simon Josefsson  <jas@extundo.com>
82844
82845         * modules/gc-md5, modules/gc-hmac-md5: New files.
82846
82847         * modules/gc (Files): Remove md5, memxor and hmac files.
82848
82849 2005-10-12  Simon Josefsson  <jas@extundo.com>
82850
82851         * m4/gc-pbkdf2-sha1.m4: New file.
82852
82853         * m4/gc-hmac-sha1.m4: New file.
82854
82855         * m4/gc-sha1: New file.
82856
82857         * m4/hmac-sha1.m4: New file.
82858
82859 2005-10-12  Simon Josefsson  <jas@extundo.com>
82860
82861         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82862
82863         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82864
82865 2005-10-12  Simon Josefsson  <jas@extundo.com>
82866
82867         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82868         suggested by Bruno Haible <bruno@clisp.org>.
82869
82870 2005-10-12  Simon Josefsson  <jas@extundo.com>
82871
82872         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82873
82874 2005-10-12  Simon Josefsson  <jas@extundo.com>
82875
82876         * lib/gc-pbkdf2-sha1.c: New file.
82877
82878         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82879
82880 2005-10-12  Simon Josefsson  <jas@extundo.com>
82881
82882         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82883
82884         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82885
82886 2005-10-12  Simon Josefsson  <jas@extundo.com>
82887
82888         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82889         GC_USE_HMAC_MD5, respectively.
82890
82891         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82892         (gc_md5): Fix typo.
82893
82894         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82895
82896         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82897
82898         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82899
82900 2005-10-12  Bruno Haible  <bruno@clisp.org>
82901
82902         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82903         Reported by Stepan Kasal <kasal@ucw.cz>.
82904
82905 2005-10-11  Simon Josefsson  <jas@extundo.com>
82906
82907         * tests/test-crc.c: New file.
82908
82909         * modules/crc, modules/crc-tests: New files.
82910
82911 2005-10-11  Simon Josefsson  <jas@extundo.com>
82912
82913         * m4/crc.m4: New file.
82914
82915 2005-10-11  Simon Josefsson  <jas@extundo.com>
82916
82917         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82918
82919         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82920
82921         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82922
82923 2005-10-11  Simon Josefsson  <jas@extundo.com>
82924
82925         * lib/crc.h, lib/crc.c: New files.
82926
82927         * lib/gc.h (gc_hash_buffer): Add doc.
82928
82929 2005-10-11  Bruno Haible  <bruno@clisp.org>
82930
82931         * modules/c-strcasestr: New file.
82932         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82933
82934 2005-10-11  Bruno Haible  <bruno@clisp.org>
82935
82936         * modules/c-strcase: New file.
82937         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82938
82939 2005-10-11  Bruno Haible  <bruno@clisp.org>
82940
82941         * lib/strcasecmp.c: Include limits.h.
82942         (strcasecmp): Avoid integer overflow on exotic platforms.
82943         * lib/strncasecmp.c: Include limits.h.
82944         (strncasecmp): Avoid integer overflow on exotic platforms.
82945         Reported by Paul Eggert.
82946
82947 2005-10-11  Bruno Haible  <bruno@clisp.org>
82948
82949         * lib/c-strcasestr.h: New file, from GNU gettext.
82950         * lib/c-strcasestr.c: New file, from GNU gettext.
82951
82952 2005-10-11  Bruno Haible  <bruno@clisp.org>
82953
82954         * lib/c-strcase.h: New file, from GNU gettext.
82955         * lib/c-strcasecmp.c: New file, from GNU gettext.
82956         * lib/c-strncasecmp.c: New file, from GNU gettext.
82957
82958 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82959
82960         * modules/mempcpy (License): GPL -> LGPL.
82961         * modules/strchrnul (License): Likewise.
82962         * modules/sysexits (License): Likewise.
82963
82964 2005-10-08  Simon Josefsson  <jas@extundo.com>
82965
82966         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82967
82968 2005-10-07  Simon Josefsson  <jas@extundo.com>
82969
82970         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82971
82972 2005-10-06  Simon Josefsson  <jas@extundo.com>
82973
82974         * tests/test-hmac-md5.c: New file.
82975
82976         * modules/hmac-md5-tests: New file.
82977
82978         * modules/hmac-md5: New file.
82979
82980 2005-10-06  Simon Josefsson  <jas@extundo.com>
82981
82982         * m4/hmac-md5.m4: New file.
82983
82984         * m4/memxor.m4: Require gl_C_RESTRICT.
82985
82986 2005-10-06  Simon Josefsson  <jas@extundo.com>
82987
82988         * lib/memxor.c (memxor): Avoid casts and warnings.
82989
82990 2005-10-06  Simon Josefsson  <jas@extundo.com>
82991
82992         * lib/hmac-md5.c: New file.
82993
82994         * lib/hmac.h: New file.
82995
82996 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82997
82998         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82999         promotes to int, not unsigned int, to catch the AIX 5.3
83000         compiler bug.
83001
83002 2005-10-05  Simon Josefsson  <jas@extundo.com>
83003
83004         * modules/memxor: New file.
83005
83006         * modules/iconv (Files): Move config.rpath to havelib, it is used
83007         there.
83008
83009         * modules/havelib (Files): Add config.rpath.
83010
83011 2005-10-05  Simon Josefsson  <jas@extundo.com>
83012
83013         * m4/memxor.m4: New file.
83014
83015 2005-10-05  Simon Josefsson  <jas@extundo.com>
83016
83017         * lib/memxor.c (memxor): Fix compiler error.
83018
83019         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83020         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83021
83022         * lib/memxor.h, lib/memxor.c: New files.
83023
83024         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83025         we assume all systems have it, suggested by Jim Meyering
83026         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83027         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83028         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83029         same reasons.
83030
83031 2005-10-05  Simon Josefsson  <jas@extundo.com>
83032
83033         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83034
83035 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83036
83037         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83038         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83039         needed, since the source code now assumes these .h files.
83040
83041 2005-10-05  Derek Price  <derek@ximbiot.com>
83042
83043         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83044
83045 2005-10-05  Bruno Haible  <bruno@clisp.org>
83046
83047         * modules/stdint (License): Change to LGPL.
83048
83049 2005-10-04  Simon Josefsson  <jas@extundo.com>
83050
83051         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83052         D. Baushke" <mdb@gnu.org>.
83053
83054 2005-10-04  Bruno Haible  <bruno@clisp.org>
83055
83056         * lib/verify.h (verify_true): Provide alternative definition for C++.
83057
83058 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83059
83060         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83061         (SSIZE_MAX): New macro, if not already defined.
83062         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83063         than 2 GiB.
83064
83065 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83066
83067         Sync from coreutils.
83068         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83069         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83070         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83071         ULLONG_MAX doesn't work with 2.7.2.1.
83072
83073 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83074
83075         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83076         From Ben Pfaff.
83077
83078         * modules/exclude (Depends-on): Depend on verify.
83079         * modules/strtoimax (Depends-on): Likewise.
83080         * modules/utimecmp (Depends-on): Likewise.
83081
83082 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * lib/exclude.c: Include verify.h.
83085         (verify): Remove.  All callers changed to use verify.h's version.
83086         * lib/strtoimax.c: Likewise.
83087         * lib/utimecmp.c: Likewis.e
83088
83089         Sync from coreutils.
83090         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83091         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83092         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83093         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83094         bother returning ENOSYS if settimeofday or stime fails; just let
83095         them return whatever errno they want to return.
83096         * lib/utimens.c: Include unistd.h, for dup2.
83097         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83098         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83099
83100 2005-10-02  Jim Meyering  <jim@meyering.net>
83101
83102         Sync from coreutils.
83103         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83104         from glibc-2.2.5 that fails for read-only files.
83105
83106 2005-10-02  Jim Meyering  <jim@meyering.net>
83107
83108         Sync from coreutils.
83109         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83110         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83111         `#if HAVE_CONFIG_H'.
83112         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83113         Remove AT_FDCWD test.
83114         Do not consume the fd unless successful.
83115         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83116         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83117         block, so that we don't even try to compile it if settimeofday is
83118         available.  This works around a compilation failure on OSF1 V5.1,
83119         due to stime requiring a `long int*' while tv_sec is `int'.
83120
83121 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83122
83123         Sync from coreutils.
83124         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83125         against `yes', rather than just testing for nonempty.
83126
83127 2005-10-01  Simon Josefsson  <jas@extundo.com>
83128
83129         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83130         and Darwin.
83131
83132         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83133         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83134         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83135         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83136         Check if struct addrinfo is declared.
83137
83138 2005-10-01  Simon Josefsson  <jas@extundo.com>
83139
83140         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83141         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83142         AI_* and EAI_* definitions.  Protect function declarations.
83143
83144 2005-10-01  Jim Meyering  <jim@meyering.net>
83145
83146         Sync from coreutils.
83147
83148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83149         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83150         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83152         in the inet and nsl libraries.  Required on Solaris 5.7.
83153
83154 2005-10-01  Jim Meyering  <jim@meyering.net>
83155
83156         Sync from coreutils.
83157         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83158         in the inet and nsl libraries.  Required on Solaris 5.7.
83159
83160 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83161
83162         * lib/getdelim.c (getdelim): Remove unused variables.
83163
83164 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83165
83166         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83167         so that the code works even with ancient cpp.  Portability problem
83168         with GCC 2.7.2.1 reported by Thomas M.Ott.
83169
83170 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83171
83172         * modules/regex (Depends-on): Add strcase.
83173
83174         * modules/gethostname (Licence): Change from GPL to LGPL, since
83175         gethostname.c is a trivial implementation of a standard library
83176         function.
83177         * modules/poll (License): Change from GPL to LGPL, since it's
83178         derived from LGPL code.
83179
83180 2005-09-27  Jim Meyering  <jim@meyering.net>
83181
83182         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83183         HAVE_CONFIG_H.
83184
83185         * lib/intprops.h (signed_type_or_expr__): Define.
83186         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83187         for unsigned types.
83188
83189 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83190
83191         * lib/verify.h (verify_expr): Remove, replacing with:
83192         (verify_true): New macro that returns true instead of void.
83193         (verify_type__): Remove.
83194         (verify): Use verify_true rather than verify_type__.
83195
83196 2005-09-26  Bruno Haible  <bruno@clisp.org>
83197
83198         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83199         is necessary.
83200         (lib_SOURCES): Remove mbchar.c.
83201         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83202         (Files): Add m4/mbrtowc.m4.
83203         * modules/mbiter: Likewise.
83204         * modules/mbuiter: Likewise.
83205
83206 2005-09-26  Bruno Haible  <bruno@clisp.org>
83207
83208         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83209         compile mbchar.c if they are not both present.
83210         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83211         * m4/mbiter.m4 (gl_MBITER): Likewise.
83212         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83213         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83214         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83215
83216 2005-09-25  Jim Meyering  <jim@meyering.net>
83217
83218         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83219         also uses socklen_t.
83220
83221 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83222
83223         * lib/utimens.c (ENOSYS): Define if not already defined.
83224         (futimens): Support having a null PATH if the file descriptor
83225         is nonnegative.
83226
83227         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83228         Remove.
83229         (__attribute): Define to empty unless GCC 3.1 or later.
83230         This works around a core dump on OpenBSD 3.4, which has GCC
83231         2.95.3, which dumps core when given __attribute__(()).  It also
83232         simplifies other tests, since we really don't want to bother with
83233         worrying about which ancient version of GCC supported what.
83234         Original problem reported by Yoann Vandoorselaere, with part of
83235         the fix suggested by Derek Price.
83236
83237 2005-09-24  Jim Meyering  <jim@meyering.net>
83238
83239         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83240         so we can once again use a positive bitfield width of 1 -- now we
83241         don't have to explain why we were using a bitfield width of 2.
83242
83243 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83244
83245         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83246         and similarly for the other external symbols.  Problem reported
83247         by James Gallager.
83248
83249         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83250         bug reported by Jim Meyering.
83251
83252         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83253         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83254         not needed, since socklen is a prerequisite module.
83255
83256 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83257
83258         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83259         Problem reported by Eric Blake.
83260         (getaddrinfo): Initialize se so that it's not garbage.
83261         Redo internal storage allocation so that it doesn't make unportable
83262         assumptions about alignment.
83263         Fix a memory leak.
83264
83265         * lib/utimens.c (futimens): Use futimesat if available.
83266         Prefer it to futimes since it doesn't have the futimes bug.
83267
83268         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83269         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83270         Instead, declare a function that returns a pointer to an array,
83271         and use verify_type__ to declare the size of the array.
83272         Problem and germ of a solution reported by Bruno Haible.
83273         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83274         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83275
83276 2005-09-23  Jim Meyering  <jim@meyering.net>
83277
83278         Sync from coreutils.
83279         Correct build failure (socklen_t not defined) on at least
83280         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83281         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83282
83283 2005-09-23  Jim Meyering  <jim@meyering.net>
83284
83285         * modules/getaddrinfo (Depends-on): Add socklen.
83286
83287 2005-09-23  Bruno Haible  <bruno@clisp.org>
83288
83289         * tests/test-verify.c: New file.
83290
83291 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83292
83293         Sync from coreutils.
83294
83295         * modules/argmatch (Depends-on): Add verify.
83296         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83297         unistd-safer.
83298         * modules/save-cwd (Depends-on): Likewise.
83299
83300         * modules/openat (Files): Add lib/openat-die.c.
83301         (Depends-on): Remove error, exitfail.
83302         Add dirname.
83303
83304         * modules/verify: New file.
83305         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83306         with "verify" module.
83307
83308 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83309
83310         Sync from coreutils.
83311
83312         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83313         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83314         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83315         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83316         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83317         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83318         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83319         Don't bother checking for string.h, stdlib.h, unistd.h.
83320         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83321         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83322         module's job.
83323         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83324         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83325
83326         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83327         (gl_GETDATE): Use it.
83328
83329         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83330
83331 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83332
83333         Sync from coreutils.
83334
83335         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83336         stat-time.h.
83337         * lib/argmatch.h: Include verify.h
83338         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83339         (ARGMATCH_ASSERT): Remove; unused.
83340         * lib/canonicalize.c: Assume STDC_HEADERS.
83341         * lib/exclude.c: Include "strcase.h".
83342         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83343         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83344         and stdio-safer.h.
83345         (getusershell): Call fopen, not fopen_safer.
83346         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83347         Do not include unistd-safer.h.
83348         (save_cwd): Don't call fd_safer; no longer needed
83349         now that we include fcntl--.h.
83350
83351         * lib/getdate.y (relative_time): New type.
83352         (RELATIVE_TIME_0): New constant.
83353         (parser_control): Use relative_time instead of doing it ourselves.
83354         (%union): Add new relative_time rel member.
83355         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83356         Now typeless.
83357         (relunit, relunit_snumber): Now of type rel.
83358         (zone, rel, relunit, get_date): Adjust to above changes.
83359
83360         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83361         Do not include unistd-safer.h.
83362         (getloadavg): Don't call fd_safer; no longer needed
83363         now that we include fcntl--.h.
83364
83365         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83366         (make_dir_parents): Treat ENOSYS like EEXIST.
83367
83368         Improve quality of diagnostics on restore_cwd failure.
83369         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83370         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83371         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83372         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83373         each time through the loop.  Do not diagnose restore_cwd failure;
83374         that is the caller's job (and perhaps the caller does not care).
83375
83376         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83377         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83378         If the file already exists but is not a directory, don't bother
83379         to try to make its parents.
83380         Close potential file descriptor leak if we can't chdir("/") (!).
83381         Don't always return true if chdir($PWD) fails; return true only
83382         if the requested action was done successfully (except for the
83383         chdir($PWD)).
83384         Don't log final directory unless we actually made it.
83385         Refactor to avoid duplicate code to fix up permissions.
83386         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83387
83388         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83389         to make it a bit faster and (I hope) clearer.
83390         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83391         Fix bug in formats like %2N.
83392
83393         * lib/verify.h: New file.
83394
83395 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83396
83397         Sync from coreutils.
83398         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83399
83400 2005-09-22  Jim Meyering  <jim@meyering.net>
83401
83402         Sync from coreutils.
83403
83404         * m4/lstat.m4 (gl_FUNC_LSTAT):
83405         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83406         Remove obsolete comment.
83407         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83408         * m4/xstrtod.m4: Likewise.
83409
83410         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83411
83412 2005-09-22  Jim Meyering  <jim@meyering.net>
83413
83414         Sync from coreutils.
83415
83416         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83417
83418         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83419         the .tm_year member, since otherwise gcc-4.0 would now warn about
83420         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83421
83422         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83423         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83424
83425         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83426         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83427         when run in a time zone for which daylight savings time is in effect
83428         for the starting date.
83429
83430         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83431         stop us from restricting permissions of just-created absolute-named
83432         directories.
83433         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83434         to restore initial working directory.
83435         * lib/mkdir-p.c (make_dir_parents): New parameter:
83436         different_working_dir, to tell caller if/when we change the working
83437         directory and are unable to return to the initial one.
83438         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83439         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83440         `return false'.  This fixes a bug introduced on 2004-07-30.
83441
83442         * lib/openat.c (fdopendir): Be sure to close the supplied
83443         file descriptor before returning.  This makes our replacement
83444         implementation a little closer to Solaris's, where fdopendir
83445         ties the file descriptor to the returned DIR* pointer.
83446         * lib/openat.c (unlinkat): New function.
83447         * lib/openat.h (unlinkat): Add prototype.
83448         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83449         (openat_restore_fail): Rename from openat_restore_die.
83450         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83451
83452         Provide an alternative to exiting immediately upon save_cwd or
83453         restore_cwd failure.  Now, an application can arrange e.g.,
83454         to perform a longjump in that case.
83455         * lib/openat.c: Include dirname.h.
83456         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83457         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83458         and openat_restore_die rather than calling error directly.
83459         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83460
83461         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83462         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83463         define.
83464
83465         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83466         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83467                             int utc, int nanoseconds);
83468         Background:
83469         date should not have to allocate a megabyte of virtual memory to
83470         handle a format argument like +%1048575T.  When implemented with
83471         strftime, it must allocate such a buffer, use strftime to fill it
83472         in, print it, then free it.
83473         With fprintftime, it simply prints everything and exits.
83474         With no need for memory allocation, that's one fewer way to fail.
83475         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83476         optional field width, not before, so we accept %9:z, not %:9z.
83477         (my_strftime): Be sure to use L_('x') for literals.
83478
83479         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83480         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83481         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83482         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83483         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83484         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83485         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83486         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83487         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83488         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83489         * lib/xgethostname.c, lib/xreadlink.c:
83490         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83491
83492         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83493         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83494         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83495         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83496         and don't include <sys/file.h>).
83497
83498 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83499
83500         Sync from coreutils.
83501
83502         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83503         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83504         [!LDAV_DONE]: Avoid unused variable warning.
83505
83506 2005-09-21  Bruno Haible  <bruno@clisp.org>
83507
83508         * lib/unicodeio.h (unicode_to_mb): New declaration.
83509
83510 2005-09-20  Derek Price  <derek@ximbiot.com>
83511
83512         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83513         getaddrinfo.h.
83514
83515 2005-09-20  Bruno Haible  <bruno@clisp.org>
83516
83517         * gnulib-tool: Remove trailing slashes from the values specified for
83518         --source-base, --m4-base, --tests-base, --aux-dir.
83519         Suggested by Simon Josefsson <jas@extundo.com>.
83520
83521 2005-09-20  Bruno Haible  <bruno@clisp.org>
83522
83523         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83524         func_modules_to_filelist, func_import, func_create_testdir): Make all
83525         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83526         change when gnulib-tool is invoked in a different locale.
83527
83528 2005-09-19  Simon Josefsson  <jas@extundo.com>
83529
83530         * m4/socklen.m4: Fix typo.
83531
83532 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83533
83534         Use a consistent style for including <config.h>.
83535         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83536         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83537         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83538         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83539         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83540         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83541         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83542         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83543         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83544         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83545         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83546         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83547         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83548         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83549         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83550         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83551         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83552         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83553         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83554         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83555         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83556         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83557         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83558         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83559         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83560         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83561         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83562         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83563         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83564         lib/xstrtoumax.c, lib/yesno.c:
83565         Standardize inclusion of config.h.
83566         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83567         lib/inttostr.h:  Removed inclusion of config.h from header files.
83568         * lib/inttostr.c:  Adjusted in-tree users.
83569         * lib/timespec.h: Remove superfluous warning to include config.h.
83570         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83571         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83572         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83573         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83574         config.h with HAVE_CONFIG_H.
83575
83576 2005-09-19  Jim Meyering  <jim@meyering.net>
83577
83578         * modules/pathmax (License): Change to LGPL.
83579
83580 2005-09-19  Derek Price  <derek@ximbiot.com>
83581
83582         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83583
83584 2005-09-19  Bruno Haible  <bruno@clisp.org>
83585
83586         * gnulib-tool (import): Provide default for --tests-base.
83587
83588 2005-09-19  Bruno Haible  <bruno@clisp.org>
83589
83590         * doc/quote.texi: New file, extracted from gnulib.texi.
83591         * doc/ctime.texi: New file, extracted from gnulib.texi.
83592         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83593         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83594         * doc/gnulib.texi: Include them.
83595
83596 2005-09-18  Bruno Haible  <bruno@clisp.org>
83597
83598         Portability fix.
83599         * gnulib-tool (func_readlink): New function.
83600         (func_ln_if_changed): Use it.
83601
83602 2005-09-18  Bruno Haible  <bruno@clisp.org>
83603
83604         * gnulib-tool: Support --with-tests also with --import.
83605         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83606         (func_import): Use variables $testsbase and $inctests. Emit a
83607         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83608         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83609         SUBDIRS += $testsdir.
83610         (func_create_testdir): Update.
83611
83612 2005-09-18  Bruno Haible  <bruno@clisp.org>
83613
83614         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83615         instead of $dry_run.
83616         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83617         (func_ln_if_changed): Don't handle dry-run here.
83618         (func_import): In dry-run mode, detect more precisely which actions
83619         would be performed, and don't use "...ing" verbs.
83620
83621 2005-09-18  Bruno Haible  <bruno@clisp.org>
83622
83623         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83624         (func_import): Use join on two temporary files instead of three nested
83625         loops, in order to determine which files are new or old.
83626
83627 2005-09-18  Bruno Haible  <bruno@clisp.org>
83628
83629         * gnulib-tool (func_import): Comment out code that spits out the
83630         new files with --dry-run.
83631
83632 2005-09-18  Bruno Haible  <bruno@clisp.org>
83633
83634         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83635
83636 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83637
83638         * lib/stat-time.h: New file.
83639         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83640         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83641         in a different way.
83642         (timespec_cmp): New function.
83643         * lib/utimecmp.c: Include stat-time.h.
83644         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83645         members exist, not on the obsolescent ST_MTIM_NSEC.
83646         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83647
83648 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83649
83650         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83651
83652 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83653
83654         * MODULES.html.sh (File system functions): Add stat-time.
83655         * modules/stat-time: New file.
83656         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83657         is now done in a different way, by the stat-time module.
83658         * modules/utimecmp (Depends-on): Add stat-time.
83659
83660 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83661
83662         * m4/st_mtim.m4: Remove.  Superseded by...
83663         * m4/stat-time.m4: New file.
83664         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83665         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83666
83667 2005-09-15  Derek Price  <derek@ximbiot.com>
83668
83669         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83670
83671 2005-09-15  Derek Price  <derek@ximbiot.com>
83672
83673         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83674         * lib/regex_internal.c: Ditto, using this...
83675         (__GNUC_PREREQ): ...new macro.
83676         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83677         using...
83678         (__GNUC_PREREQ): ...this new macro.
83679
83680         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83681
83682 2005-09-15  Derek Price  <derek@ximbiot.com>
83683             Paul Eggert  <eggert@cs.ucla.edu>
83684
83685         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83686         changes, consolidating in...
83687         * lib/regex_internal.h: ...this file.
83688
83689 2005-09-13  Jim Meyering  <jim@meyering.net>
83690
83691         * lib/canon-host.c: Filter through gnu indent and reword comments
83692         slightly.
83693         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83694
83695 2005-09-13  Derek Price  <derek@ximbiot.com>
83696
83697         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83698         failure.
83699         Reported by Jim Meyering  <jim@meyering.net>.
83700
83701 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83702
83703         * lib/base64.c: Typo.
83704         (base64_encode): Put b64str in initialized data section.
83705
83706 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83707
83708         Merge glibc and coreutils changes into gnulib, plus a few
83709         extra fixes.
83710         * lib/md5.c: Use #error rather than a string.
83711         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83712         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83713         (__attribute__): Define to empty for non recent-GCC.
83714         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83715         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83716         Renamed from their non-__ counterparts, with new macros replacing
83717         them if not _LIBC.  Add __THROW attribute.
83718         (rol): Remove.
83719         (struct md5_ctx): Align buffer if using GCC.
83720         * lib/sha1.h (struct sha1_ctx): Likewise.
83721         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83722         The old name was backwards.
83723         (NOTSWAP): Remove; not used.
83724         (rol): New macro, moved here from md5.h.
83725         (sha1_process_block): Remove a FIXME that doesn't make sense.
83726
83727 2005-09-12  Derek Price  <derek@ximbiot.com>
83728
83729         Return usable errors from canon-host.
83730         * lib/canon-host.h: New file.
83731         * lib/canon-host.c (canon_host): Wrap...
83732         (canon_host_r): ...this new function, which now relies exclusively on
83733         getaddrinfo.
83734         (ch_strerror): New function.
83735         (last_cherror): New global.
83736         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83737         interface.
83738         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83739         void *.
83740         (freeaddrinfo): Free ai->ai_canonname when set.
83741
83742 2005-09-12  Derek Price  <derek@ximbiot.com>
83743
83744         Make canon-host require getaddrinfo.
83745         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83746         AC_LIBSOURCE canon-host.h.  Call...
83747         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83748         gl_GETADDRINFO.
83749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83750
83751 2005-09-12  Derek Price  <derek@ximbiot.com>
83752
83753         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83754         LGPL.
83755         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83756
83757 2005-09-12  Derek Price  <derek@ximbiot.com>
83758
83759         * lib/gai_strerror.c: Include config.h when available.  Include
83760         getaddrinfo.h before other headers to test interface.
83761         Reported by Larry Jones <lawrence.jones@ugs.com>.
83762
83763 2005-09-12  Derek Price  <derek@ximbiot.com>
83764             Paul Eggert  <eggert@cs.ucla.edu>
83765
83766         * modules/glob (Files): Add glob-libc.h.
83767
83768 2005-09-12  Derek Price  <derek@ximbiot.com>
83769             Paul Eggert  <eggert@cs.ucla.edu>
83770
83771         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83772         glob_.h, glob-libc.h.
83773         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83774
83775 2005-09-12  Derek Price  <derek@ximbiot.com>
83776             Paul Eggert  <eggert@cs.ucla.edu>
83777
83778         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83779         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83780         protecting things that should be done only in gnulib contexts.
83781         * lib/glob_.h: New file, containing only the glob things needed for
83782         gnulib.
83783         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83784         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83785         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83786         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83787         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83788         and to respect the namespace rules better.
83789
83790 2005-09-08  Simon Josefsson  <jas@extundo.com>
83791
83792         * modules/socklen: New file.
83793
83794 2005-09-08  Simon Josefsson  <jas@extundo.com>
83795
83796         * m4/socklen.m4: New file.
83797
83798 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83799
83800         * modules/utimens (Files): Add m4/utimbuf.m4, since
83801         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83802         Reported by Sergey Poznyakoff.
83803
83804 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83805
83806         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83807         definitions, since that's the preferred style in glibc.
83808         Fix a minor spacing issue, and update copyright notice to match
83809         glibc's.
83810
83811 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83812
83813         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83814
83815 2005-09-06  Simon Josefsson  <jas@extundo.com>
83816
83817         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83818         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83819
83820 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83821
83822         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83823         warning.
83824
83825 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83826
83827         * config/srclist.txt: Add glibc bug 1302.
83828
83829 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83830
83831         Change bitset word type from unsigned int to unsigned long int,
83832         as this has better performance on typical 64-bit hosts.
83833         Port bitset code to hosts with unusual word sizes.
83834         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83835         (build_collating_symbol):
83836         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83837         argument is a bitset.  This is merely a style issue, but it makes
83838         it clearer that an entire array is expected.
83839         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83840         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83841         Port to the case where bitset_word is not the same as unsigned int.
83842         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83843         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83844         Likewise.
83845         * lib/regexec.c (check_dst_limits_calc_pos_1,
83846         check_subexp_matching_top):
83847         (build_trtable, group_nodes_into_DFAstates):
83848         Likewise.
83849         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83850         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83851         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83852         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83853         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83854         * lib/regcomp.c (optimize_subexps, lower_subexp):
83855         Work even if bitset_word has holes in its bitwise representation.
83856         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83857         * lib/regexec.c (check_dst_limits_calc_pos_1,
83858         check_subexp_matching_top):
83859         Likewise.
83860         * lib/regex_internal.c (re_string_reconstruct):
83861         Don't assume UCHAR_MAX == 255.
83862         * lib/regex_internal.h (bitset_set_all): Likewise.
83863         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83864         All uses changed.
83865         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83866         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83867         All uses changed.
83868         (BITSET_WORD_MAX): New macro.
83869         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83870         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83871         (bitset_empty, bitset_copy):
83872         Prefer sizeof (bitset) to multiplying it out ourselves.
83873         (bitset_not_merge): Remove; unused.
83874         (bitset_contain): Return bool, not unsigned int with one bit on.
83875         All callers changed.
83876         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83877         alignment than re_node_set; do this by defining a new internal
83878         type struct dests_alloc and using it to allocate memory.
83879
83880 2005-09-05  Bruno Haible  <bruno@clisp.org>
83881
83882         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83883         links.
83884
83885 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83886
83887         * modules/size_max (Makefile.am): Add size_max.h
83888
83889 2005-09-04  Derek Price  <derek@ximbiot.com>
83890
83891         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83892
83893 2005-09-03  Simon Josefsson  <jas@extundo.com>
83894
83895         * gnulib-tool: Fix typo.
83896
83897 2005-09-03  Simon Josefsson  <jas@extundo.com>
83898
83899         * config/srclist.txt: Add glibc bug 1293.
83900
83901 2005-09-03  Derek Price  <derek@ximbiot.com>
83902
83903         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83904         From Larry Jones <lawrence.jones@ugs.com>.
83905
83906 2005-09-02  Simon Josefsson  <jas@extundo.com>
83907
83908         * modules/socklen: New file.
83909
83910 2005-09-02  Simon Josefsson  <jas@extundo.com>
83911
83912         * modules/havelib: New module.
83913
83914         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83915         Use havelib.
83916
83917 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83918
83919         Check for arithmetic overflow when calculating sizes, to prevent
83920         some buffer-overflow issues.  These patches are conservative, in the
83921         sense that when I couldn't determine whether an overflow was possible,
83922         I inserted a run-time check.
83923         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83924         macros.
83925         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83926         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83927         (re_xnrealloc, re_x2nrealloc): New inline functions.
83928         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83929         parse_bracket_exp):
83930         (build_equiv_class, build_charclass): Check for arithmetic overflow
83931         in size expression calculations.
83932         * lib/regex_internal.c (re_string_realloc_buffers):
83933         (build_wcs_upper_buffer, re_node_set_add_intersect):
83934         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83935         (re_dfa_add_node, register_state): Likewise.
83936         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83937         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83938         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83939         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83940
83941 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83942
83943         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83944         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83945
83946 2005-09-02  Bruno Haible  <bruno@clisp.org>
83947
83948         Support for lib vs. lib64 distinction on biarch platforms.
83949         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83950         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83951         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83952
83953 2005-09-02  Bruno Haible  <bruno@clisp.org>
83954
83955         * gnulib-tool (import): In the other first-use case, provide defaults
83956         as well.
83957
83958 2005-09-02  Bruno Haible  <bruno@clisp.org>
83959
83960         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83961         patches not yet found in the latest gettext release.
83962
83963 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83964
83965         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83966         to avoid a collision with bits/local_lim.h in glibc.
83967         All uses changed.  Problem reported by Dmitry V. Levin in
83968         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83969
83970         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83971         bugs in int versus size_t comparisons.
83972         (re_string_context_at): Fix bug where the code assumed that
83973         Idx is signed.
83974
83975         Use bool where appropriate.
83976         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83977         All callers changed.
83978         (calc_eclosure_iter): Likewise, for ROOT arg.
83979         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83980         (build_charclass_op): Likewise, for NON_MATCH arg.
83981         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83982         (re_string_construct_common): Likewise, for ICASE arg.
83983         * lib/regexec.c (re_search_2_stub, re_search_stub):
83984         Likewise, for RET_LEN arg.
83985         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83986         (set_regs): Likewise, for FL_BACKTRACK arg.
83987         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83988         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83989         (calc_eclosure_iter, parse_bracket_exp):
83990         Use bool for internal variables that are booleans.
83991         * lib/regexec.c (re_search_internal, check_matching,
83992         proceed_next_node):
83993         (set_regs, build_sifted_states, sift_states_bkref):
83994         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83995         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83996         (find_collation_sequence_value):
83997         Likewise.
83998         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83999         (re_node_set_compare):
84000         Return bool, not int. All callers changed.
84001         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84002         (build_trtable, check_node_accept): Likewise.
84003         * lib/regex_internal.h: Include stdbool.h.
84004
84005         Fix bugs uncovered when converting to bool.
84006         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84007         failure instead of charging ahead blindly.
84008         * lib/regex_internal.c (register_state): Likewise.
84009         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84010         for freeing internal storage.
84011         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84012         bitset pieces used as boolean, to avoid undefined behavior
84013         on hosts that do int overflow checking.
84014
84015 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84016
84017         * config/srclist.txt: Add glibc bugs 1285-1287.
84018
84019 2005-09-01  Jim Meyering  <jim@meyering.net>
84020
84021         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84022         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84023         Require gl_STAT_MACROS, too.
84024
84025 2005-09-01  Bruno Haible  <bruno@clisp.org>
84026
84027         * gnulib-tool (import): In the first-use case, provide defaults.
84028
84029 2005-09-01  Bruno Haible  <bruno@clisp.org>
84030
84031         * gnulib-tool (func_import): Remove the .tmp files.
84032
84033 2005-09-01  Bruno Haible  <bruno@clisp.org>
84034
84035         * gnulib-tool (func_import): Fix handling of symbolic links.
84036
84037 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84038
84039         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84040         old glibc regex code mishandles strings longer than 2**31 bytes.
84041         This patch fixes this when the regex code is used in gnulib
84042         (i.e., outside glibc).
84043
84044         This patch should not affect the use of the regex code inside
84045         glibc.  No doubt this problem also needs to be handled for glibc
84046         as well, but the result will be an incompatible change to the
84047         glibc ABI, and the old ABI will have to be supported too.  That
84048         can be the the subject for another patch.
84049
84050         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84051         governing whether the rest of this patch is active.  By default,
84052         the macro is disabled and the patch has no effect.
84053         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84054         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84055         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84056         (re_match_2, re_set_registers): Use the new types.
84057         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84058         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84059         New macros.
84060         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84061         (re_string_context_at, bin_tree_t, re_dfastate_t):
84062         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84063         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84064         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84065         (re_string_char_size_at, re_string_wchar_at):
84066         (re_string_elem_size_at):
84067         Use the new types and macros to port to 64-bit hosts.
84068         Use unsigned types for internal values, so that the code
84069         mostly works even for arrays larger than SSIZE_MAX.
84070         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84071         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84072         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84073         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84074         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84075         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84076         (calc_inveclosure, parse_dup_op, build_range_exp):
84077         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84078         (fetch_number, create_token_tree, mark_opt_subexp):
84079         Likewise.
84080         * lib/regex_internal.c (re_string_construct_common,
84081         create_ci_newstate):
84082         (create_cd_newstate, re_string_allocate, re_string_construct):
84083         (re_string_realloc_buffers, build_wcs_upper_buffer):
84084         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84085         (re_string_reconstruct, re_string_peek_byte_case):
84086         (re_string_fetch_byte_case, re_string_context_at):
84087         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84088         (re_node_set_init_copy, re_node_set_add_intersect):
84089         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84090         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84091         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84092         (re_acquire_state, re_acquire_state_context, register_state):
84093         Likewise.
84094         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84095         search_cur_bkref_entry):
84096         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84097         (re_search_internal, re_search_2_stub, re_search_stub)
84098         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84099         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84100         (update_cur_sifted_state, check_dst_limits):
84101         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84102         (check_subexp_limits, sift_states_bkref, merge_state_array):
84103         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84104         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84105         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84106         (expand_bkref_cache, check_node_accept_bytes):
84107         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84108         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84109         (acquire_init_state_context, check_halt_node_context):
84110         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84111         (sift_states_backward, clean_state_log_if_needed):
84112         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84113         (find_recover_state, transit_state_sb, transit_state_mb):
84114         (transit_state_bkref, build_trtable, match_ctx_clean):
84115         Likewise.
84116         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84117         to work around an assumption that REG_MISSING is negative.
84118
84119         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84120         (seek_collating_symbol_entry) [defined _LIBC]:
84121         (lookup_collation_sequence_value) [defined _LIBC]:
84122         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84123         Use prototypes rather than old-style function definitions.
84124         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84125         (transit_state_sb) [0]:
84126         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84127
84128         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84129         rm_eo.
84130
84131         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84132         (optimize_subexps, lower_subexp):
84133         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84134         since the signed shift might overflow.  Use 1u<<31 instead.
84135         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84136         Likewise.
84137         * lib/regexec.c (check_dst_limits_calc_pos_1,
84138         check_subexp_matching_top): Likewise.
84139
84140         * lib/regcomp.c (optimize_subexps, lower_subexp):
84141         Use CHAR_BIT rather than 8, for clarity.
84142         * lib/regexec.c (check_dst_limits_calc_pos_1):
84143         (check_subexp_matching_top): Likewise.
84144         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84145         have to worry about portability issues when shifting it left.
84146         Remove no-longer-needed test for table_size > 0.
84147         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84148         in a word, as the resulting behavior is undefined.
84149         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84150         in one case, a <= should have been an <, and in another case the
84151         whole test was missing.
84152         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84153         the standard name CHAR_BIT.
84154         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84155         this is not true on one's complement and signed-magnitude hosts.
84156
84157         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84158         next_last_offset.
84159         (struct re_dfa_t): Remove unused member states_alloc.
84160         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84161
84162 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84163
84164         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84165         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84166         and large-file glibc and in 32-bit large-file Solaris.
84167
84168 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84169
84170         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84171         lengths fit in regoff_t; this isn't true if regoff_t is the same
84172         width as size_t.
84173         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84174         (= START + RANGE) instead of RANGE.  This avoids overflow
84175         problems when regoff_t is the same width as size_t.
84176         All callers changed.
84177         (re_search_2_stub): Check for overflow when adding the
84178         sizes of the two strings.
84179         (re_search_stub): Check for overflow when adding START
84180         to RANGE; if it occurs, substitute the extreme value.
84181
84182 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84183
84184         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84185
84186 2005-08-31  Jim Meyering  <jim@meyering.net>
84187
84188         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84189         a pointer-to-const.
84190         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84191         (register_state): Likewise.
84192         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84193         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84194         (group_nodes_into_DFAstates): Likewise.
84195
84196 2005-08-31  Jim Meyering  <jim@meyering.net>
84197
84198         * check-module: Add a FIXME comment.
84199
84200 2005-08-31  Eric Blake  <ebb9@byu.net>
84201
84202         * modules/unistd-safer (Files): Add unistd--.h.
84203         * modules/stdio-safer (Files): Add stdio--.h.
84204
84205 2005-08-31  Derek Price  <derek@ximbiot.com>
84206
84207         * lib/getdelim.c (getdelim): Return EOF on EOF.
84208         Reported by Larry Jones <lawrence.jones@ugs.com>.
84209
84210 2005-08-31  Bruno Haible  <bruno@clisp.org>
84211
84212         Avoid unnecessary diffs in the generated lib/Makefile.am.
84213         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84214         the generated files.
84215         (func_import): Don't set cmd.
84216
84217 2005-08-31  Bruno Haible  <bruno@clisp.org>
84218
84219         * lib/strstr.c: Include <stddef.h>, for NULL.
84220         * lib/strcasestr.c: Likewise.
84221         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84222
84223 2005-08-31  Bruno Haible  <bruno@clisp.org>
84224
84225         * gnulib-tool: New option --macro-prefix.
84226         (func_import): Use macro_prefix.
84227         (import): Handle option --macro-prefix.
84228
84229 2005-08-31  Bruno Haible  <bruno@clisp.org>
84230
84231         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84232         Also use new variables cached_lgpl, cached_libtool.
84233
84234 2005-08-31  Bruno Haible  <bruno@clisp.org>
84235
84236         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84237         always instantiating them.
84238
84239 2005-08-31  Bruno Haible  <bruno@clisp.org>
84240
84241         * gnulib-tool (func_import): Read the previous cached settings
84242         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84243         earlier added by gnulib but are now dropped. Warn when a gnulib file
84244         overwrites a non-gnulib file.
84245
84246 2005-08-31  Bruno Haible  <bruno@clisp.org>
84247
84248         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84249         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84250         projects that don't keep autogenerated files in CVS. Put into
84251         actioncmd only the specified modules, not the transitive closure.
84252
84253 2005-08-31  Bruno Haible  <bruno@clisp.org>
84254
84255         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84256         Create directories that shall be filled.
84257         (import): Don't look for gl_* macros in configure.ac. Recurse across
84258         all directories containing a gnulib-cache.m4 files, if meaningful.
84259
84260 2005-08-31  Bruno Haible  <bruno@clisp.org>
84261
84262         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84263         (import): Set seen_libtool when we see gl_LIBTOOL.
84264
84265 2005-08-31  Bruno Haible  <bruno@clisp.org>
84266
84267         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84268         declaration macro definitions from generated gnulib.m4.
84269
84270 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84271
84272         * lib/iconvme.h: Add prototype for iconv_alloc.
84273
84274 2005-08-29  Simon Josefsson  <jas@extundo.com>
84275
84276         * lib/iconvme.c: Fix errno.
84277
84278 2005-08-29  Bruno Haible  <bruno@clisp.org>
84279
84280         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84281         that it works when the directory contains spaces.
84282
84283 2005-08-29  Bruno Haible  <bruno@clisp.org>
84284
84285         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84286
84287 2005-08-29  Bruno Haible  <bruno@clisp.org>
84288
84289         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84290         Emit more advice.
84291
84292 2005-08-29  Bruno Haible  <bruno@clisp.org>
84293         and Stepan Kasal  <kasal@ucw.cz>
84294
84295         * check-module: If more parameters are given, check each of them
84296         separately; add more exceptions, as noted by Jim Meyering.
84297         (check_module): New procedure.
84298         (%exempt_header): Now contains all exceptions.
84299
84300 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84301
84302         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84303
84304 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84305
84306         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84307
84308 2005-08-28  Bruno Haible  <bruno@clisp.org>
84309
84310         * m4/gnulib-tool.m4: New file.
84311
84312 2005-08-27  Jim Meyering  <jim@meyering.net>
84313
84314         * modules/unistd-safer (Files): Add pipe-safer.c.
84315         * modules/fcntl-safer (Files): Add creat-safer.c.
84316
84317 2005-08-27  Jim Meyering  <jim@meyering.net>
84318
84319         * m4/stdlib-safer.m4: New file.  From coreutils.
84320         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84321         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84322         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84323         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84324         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84325
84326 2005-08-27  Jim Meyering  <jim@meyering.net>
84327
84328         * lib/fopen-safer.c: Merge minor changes from coreutils.
84329         * lib/dup-safer.c: Likewise.
84330         * lib/fd-safer.c: Likewise.
84331
84332         Merge from coreutils.
84333         * lib/stdio--.h: New file.
84334         * lib/stdlib--.h: New file.
84335         * lib/mkstemp-safer.c: New file.
84336
84337         GNU tar needs these.
84338         * lib/pipe-safer.c: New file.
84339         * lib/creat-safer.c: New file.
84340         * lib/fcntl--.h (creat): Define to creat_safer.
84341         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84342         * lib/unistd--.h (pipe): Define to pipe_safer.
84343         * lib/unistd-safer.h: Declare pipe_safer.
84344
84345 2005-08-26  Simon Josefsson  <jas@extundo.com>
84346
84347         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84348         Haible <bruno@clisp.org>.
84349
84350 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84351
84352         * lib/regex_internal.h: Remove all references to
84353         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84354         or better.
84355         (bitset_not, bitset_merge, bitset_not_merge):
84356         (bitset_mask, re_string_allocate, re_string_construct):
84357         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84358         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84359         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84360         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84361         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84362         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84363         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84364         (re_acquire_state_context):
84365         Remove unnecessary forward decls.
84366         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84367         Put __attribute at function definition,
84368         now that the function decl has been removed.
84369         * lib/regex_internal.c (re_string_peek_byte_case):
84370         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84371         Likewise.
84372
84373 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84374
84375         * m4/regex.m4: Add AC_PREREQ(2.50).
84376         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84377
84378 2005-08-25  Simon Josefsson  <jas@extundo.com>
84379
84380         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84381         __fsetlocking.
84382
84383 2005-08-25  Simon Josefsson  <jas@extundo.com>
84384
84385         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84386         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84387         GLIBC specific code.
84388
84389 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84390
84391         Make regex safe for g++.  This fixes one real bug (an "err"
84392         that should have been "*err").  g++ problem reported by
84393         Sam Steingold.
84394         * lib/regex_internal.h (re_calloc): New macro, consistent with
84395         re_malloc etc.  All callers of calloc changed to use re_calloc.
84396         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84397         not int.  All callers changed.
84398         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84399         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84400         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84401         (find_recover_state): Change "err" to "*err"; this fixes what
84402         appears to be a real bug.
84403         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84404         versus int.
84405
84406 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84407
84408         * modules/regex (Depends-on): Add malloc, since the code
84409         assumes that !malloc(0) means failure.
84410
84411 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84412
84413         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84414
84415         alloca modernization/simplification for regex.
84416         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84417         needs to be at the start of the file, and can be moved into
84418         regex_internal.h and simplified.
84419         * lib/regex_internal.h: Include <alloca.h>.
84420         (__libc_use_alloca) [!defined _LIBC]: New macro.
84421         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84422         now works outside glibc.
84423
84424 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * config/srclist.txt: Add glibc bugs 1241, 1245.
84427
84428 2005-08-25  Jim Meyering  <jim@meyering.net>
84429
84430         * lib/open-safer.c: Include <config.h>.
84431         Otherwise, we'd lose LARGEFILE support in any file using
84432         e.g. "fcntl--.h"
84433
84434 2005-08-25  Bruno Haible  <bruno@clisp.org>
84435
84436         * m4/minmax.m4: Require autoconf 2.52.
84437         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84438         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84439         alternatives of translit over the alphabet.
84440         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84441
84442 2005-08-24  Simon Josefsson  <jas@extundo.com>
84443
84444         * tests/test-getpass.c: New file.
84445
84446 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84447
84448         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84449         for GNU regex features.
84450
84451 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84452
84453         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84454         * lib/regex.h (regerror): Likewise.
84455
84456         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84457         requires this.  (The code never needed it.)
84458
84459         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84460         All uses of recently-renamed identifiers changed to use the new,
84461         POSIX-compliant names.  The code will build and run just fine
84462         without these changes, but it's better to eat our own dog food
84463         and use the standard-conforming names.
84464
84465         * lib/regex.h: Fix a multitude of POSIX name space violations.
84466         These changes have an effect only for programs that define
84467         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84468         do not change anything for programs compiled in the normal way.
84469         Also, there is no effect on the ABI.
84470
84471         (_REGEX_SOURCE): New macro.
84472         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84473         defined and _GNU_SOURCE is not; this fixes a name space violation.
84474
84475         Rename the following macros to obey POSIX requirements.
84476         The old names are still visible as macros if _REGEX_SOURCE is defined.
84477         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84478         RE_BACKSLASH_ESCAPE_IN_LISTS.
84479         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84480         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84481         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84482         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84483         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84484         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84485         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84486         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84487         (REG_INTERVALS): renamed from RE_INTERVALS.
84488         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84489         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84490         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84491         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84492         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84493         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84494         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84495         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84496         RE_UNMATCHED_RIGHT_PAREN_ORD.
84497         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84498         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84499         (REG_DEBUG): renamed from RE_DEBUG.
84500         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84501         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84502         unusual, since we can't clash with the POSIX REG_ICASE.
84503         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84504         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84505         (REG_NO_SUB): renamed from RE_NO_SUB.
84506         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84507         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84508         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84509         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84510         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84511         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84512         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84513         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84514         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84515         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84516         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84517         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84518         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84519         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84520         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84521         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84522         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84523         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84524         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84525         (REG_FIXED): Renamed from REGS_FIXED.
84526         (REG_NREGS): Renamed from RE_NREGS.
84527
84528         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84529         of other REG_* macros, since POSIX says the user is allowed to
84530         #undef these macros selectively.
84531
84532         (reg_errcode_t): Update comment stating what other tables need
84533         to be consistent.
84534
84535         Rename the following enum values to obey POSIX requirements.
84536         The old names are still visible as macros.
84537         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84538         is not defined, since GNU is supposed to be a superset of POSIX as
84539         much as possible, and since we want reg_errcode_t to be a signed
84540         type for implementation consistency.
84541         (_REG_NOERROR): Renamed from REG_NOERROR.
84542         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84543         (_REG_BADPAT): Renamed from REG_BADPAT.
84544         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84545         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84546         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84547         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84548         (_REG_EBRACK): Renamed from REG_EBRACK.
84549         (_REG_EPAREN): Renamed from REG_EPAREN.
84550         (_REG_EBRACE): Renamed from REG_EBRACE.
84551         (_REG_BADBR): Renamed from REG_BADBR.
84552         (_REG_ERANGE): Renamed from REG_ERANGE.
84553         (_REG_ESPACE): Renamed from REG_ESPACE.
84554         (_REG_BADRPT): Renamed from REG_BADRPT.
84555         (_REG_EEND): Renamed from REG_EEND.
84556         (_REG_ESIZE): Renamed from REG_ESIZE.
84557         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84558         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84559         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84560         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84561         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84562
84563         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84564         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84565         changed.  But support the old name if the new one is not defined
84566         and if _REGEX_SOURCE.
84567
84568         Change the following member names in struct re_pattern_buffer.
84569         The old names are still supported if !_REGEX_SOURCE.
84570         The new names are always supported, regardless of _REGEX_SOURCE.
84571         (re_buffer): Renamed from buffer.
84572         (re_allocated): Renamed from allocated.
84573         (re_used): Renamed from used.
84574         (re_syntax): Renamed from syntax.
84575         (re_fastmap): Renamed from fastmap.
84576         (re_translate): Renamed from translate.
84577         (re_can_be_null): Renamed from can_be_null.
84578         (re_regs_allocated): Renamed from regs_allocated.
84579         (re_fastmap_accurate): Renamed from fastmap_accurate.
84580         (re_no_sub): Renamed from no_sub.
84581         (re_not_bol): Renamed from not_bol.
84582         (re_not_eol): Renamed from not_eol.
84583         (re_newline_anchor): Renamed from newline_anchor.
84584
84585         Change the following member names in struct re_registers.
84586         The old names are still supported if !_REGEX_SOURCE.
84587         The new names are always supported, regardless of _REGEX_SOURCE.
84588         (rm_num_regs): Renamed from num_regs.
84589         (rm_start): Renamed from start.
84590         (rm_end): Renamed from end.
84591
84592         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84593         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84594         Prepend __ to parameter names.
84595
84596         Undo yesterday's changes.
84597
84598 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84599
84600         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84601         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84602         lib/regex.c.
84603
84604 2005-08-24  Jim Meyering  <jim@meyering.net>
84605
84606         Sync from coreutils.
84607         * m4/fcntl-safer.m4: New file.
84608
84609         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84610         and object files for this module.
84611
84612 2005-08-24  Jim Meyering  <jim@meyering.net>
84613
84614         Sync from coreutils.
84615         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84616
84617 2005-08-24  Jim Meyering  <jim@meyering.net>
84618
84619         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84620         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84621
84622 2005-08-24  Jim Meyering  <jim@meyering.net>
84623
84624         * modules/fcntl-safer: New module.
84625         * modules/fts (Depends-on): Add fcntl-safer.
84626         * MODULES.html.sh (File descriptor based Input/Output):
84627         Add fcntl-safer.
84628
84629 2005-08-24  Bruno Haible  <bruno@clisp.org>
84630
84631         Support for unit test modules.
84632         * modules/README: Mention tests modules.
84633         * modules/TEMPLATE-TESTS: New file.
84634         * gnulib-tool: New options --extract-tests-module, --with-tests and
84635         --tests-base (unused for the moment).
84636         (testsbase, inctests): New variables.
84637         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84638         (func_verify_module): Exclude TEMPLATE-TESTS.
84639         (func_verify_nontests_module, func_verify_tests_module): New functions.
84640         (func_get_dependencies): Add implicit dependency for tests modules.
84641         (func_get_tests_module): New function.
84642         (func_modules_transitive_closure): When --with-tests was specified,
84643         include the unit tests as well, unless explicitly avoided.
84644         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84645         (func_emit_tests_Makefile_am): New function.
84646         (func_create_testdir): When --with-tests was specified, emit a
84647         tests/ directory.
84648         * MODULES.html.sh (Future developments): Update.
84649
84650 2005-08-24  Bruno Haible  <bruno@clisp.org>
84651
84652         * modules/tls-tests: New file.
84653         * tests/test-tls.c: New file, from GNU gettext.
84654
84655 2005-08-24  Bruno Haible  <bruno@clisp.org>
84656
84657         * modules/lock-tests: New file.
84658         * tests/test-lock.c: New file, from GNU gettext.
84659
84660 2005-08-24  Bruno Haible  <bruno@clisp.org>
84661
84662         * lib/lock.h: Add multiple inclusion guard.
84663         * lib/tls.h: Add multiple inclusion guard.
84664
84665 2005-08-24  Bruno Haible  <bruno@clisp.org>
84666
84667         * gnulib-tool: Add support for the --aux-dir option to
84668         --create-testdir, --create-megatestdir, --test, --megatest.
84669         (func_create_testdir, func_create_megatestdir): Optionally emit a
84670         AC_CONFIG_AUX_DIR directive.
84671         (create-testdir, create-megatestdir, test, megatest): Provide a
84672         default value for $auxdir.
84673
84674 2005-08-24  Bruno Haible  <bruno@clisp.org>
84675
84676         * gnulib-tool (import): Use compound statement instead of subshell
84677         where possible.
84678
84679 2005-08-24  Bruno Haible  <bruno@clisp.org>
84680
84681         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84682
84683 2005-08-24  Bruno Haible  <bruno@clisp.org>
84684
84685         * gnulib-tool (func_version): Update.
84686
84687 2005-08-24  Bruno Haible  <bruno@clisp.org>
84688
84689         * gnulib-tool (func_import, func_create_testdir,
84690         func_create_megatestdir): Quote all autoconf macro arguments.
84691
84692 2005-08-24  Bruno Haible  <bruno@clisp.org>
84693
84694         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84695         option --force, because --force causes the aclocal.m4 of each
84696         subdirectory to be newer than the corresponding config.h.in.
84697
84698 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84699
84700         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84701         All contents moved to gl_REGEX.
84702         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84703         assume that it does.
84704
84705 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         * lib/regex.h (REG_NOSYS)
84708         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84709         Define, since POSIX requires it as of 2001.
84710         (_REG_ENOSYS)
84711         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84712         New private symbol, used to keep the enum signed in all cases.
84713         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84714         Youngman in
84715         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84716
84717         * lib/regex_internal.c (re_string_skip_chars, register_state):
84718         (calc_state_hash):
84719         Remove forward decls; no longer needed now that we use prototypes.
84720         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84721         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84722         (clean_state_log_if_needed): Likewise.
84723
84724 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84725
84726         * config/srclist.txt: Add glibc bugs 1231-1233.
84727
84728 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84729
84730         Fix problems reported by Sam Steingold in
84731         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84732         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84733         assumed that reg_errcode_t is a signed type, which is not
84734         necessarily true if _XOPEN_SOURCE is not defined.
84735         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84736         since some compilers warn about it otherwise.
84737
84738 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84739
84740         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84741         (init_word_char, create_initial_state, duplicate_node_closure):
84742         (fetch_token, peek_token_bracket, build_range_exp):
84743         (build_collating_symbol): Remove forward decls; no longer needed
84744         now that we use prototypes.
84745
84746         * lib/regcomp.c:
84747         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84748         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84749         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84750         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84751         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84752         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84753         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84754         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84755         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84756         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84757         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84758         (build_charclass, build_charclass_op, fetch_number, create_tree):
84759         (create_token_tree, mark_opt_subexp, duplicate_tree):
84760         Use prototypes rather than old-style definitions.
84761
84762         * lib/regex_internal.c:
84763         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84764         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84765         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84766         (re_string_reconstruct, re_string_peek_byte_case):
84767         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84768         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84769         (re_node_set_init_copy, re_node_set_add_intersect):
84770         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84771         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84772         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84773         (re_acquire_state, re_acquire_state_context, register_state):
84774         (create_ci_newstate, create_cd_newstate, free_state):
84775         Likewise.
84776         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84777         re_search_2):
84778         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84779         (re_search_internal, prune_impossible_nodes):
84780         (acquire_init_state_context, check_matching, static):
84781         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84782         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84783         (update_regs, sift_states_backward, build_sifted_states):
84784         (clean_state_log_if_needed, merge_state_array):
84785         (update_cur_sifted_state, add_epsilon_src_nodes):
84786         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84787         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84788         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84789         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84790         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84791         (check_arrival, check_arrival_add_next_nodes):
84792         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84793         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84794         (check_node_accept_bytes, check_node_accept, extend_buffers):
84795         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84796         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84797         (sift_ctx_init):
84798         Likewise.
84799
84800         * lib/regex_internal.h:
84801         (re_string_allocate, re_string_construct, re_string_reconstruct):
84802         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84803         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84804         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84805         (re_string_context_at, re_string_peek_byte_case):
84806         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84807         is defined, since we now use prototypes always.
84808
84809         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84810         C89 or better.  All uses removed.
84811
84812 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84813
84814         * config/srclist.txt: Add glibc bugs 1220-1227.
84815
84816 2005-08-20  Jim Meyering  <jim@meyering.net>
84817
84818         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84819         of unused local, dfa.
84820
84821 2005-08-20  Bruno Haible  <bruno@clisp.org>
84822
84823         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84824
84825 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84826
84827         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84828         (re_node_set_insert_last, re_dfa_add_node):
84829         Rename local variables to avoid GCC shadowing warnings.
84830
84831 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84832
84833         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84834         [defined lint]: Suppress bogus uninitialized-variable warnings.
84835
84836         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84837         and let the caller return REG_ESPACE if out of space.  This
84838         removes an uninitialied-variable warning with GCC 4.0.1, and also
84839         avoids taking the address of a local variable.  All callers
84840         changed.
84841
84842 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84843
84844         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84845         $LIBCSRC/posix/regexec.c.
84846         Add glibc bug 1217 for regcomp.c.
84847
84848 2005-08-19  Jim Meyering  <jim@meyering.net>
84849
84850         * lib/regexec.c (proceed_next_node): Redo local variables to
84851         avoid GCC shadowing warnings.
84852
84853 2005-08-18  Bruno Haible  <bruno@clisp.org>
84854
84855         * lib/strstr.c (strstr): Fix return value in multibyte case.
84856         * lib/strcasestr.c (strcasestr): Likewise.
84857
84858 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84859
84860         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84861
84862 2005-08-17  Jim Meyering  <jim@meyering.net>
84863
84864         Make the %s format (seconds since the epoch) work for a negative
84865         number and when used with a zero-padded field width, e.g. %015s.
84866
84867         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84868         label so that it precedes the code to set `digits'.  Otherwise,
84869         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84870         print `00-22'.  Now, it prints `-0022', as it should.
84871
84872 2005-08-17  Bruno Haible  <bruno@clisp.org>
84873
84874         * modules/strstr (Files): Add m4/mbrtowc.m4.
84875         (Depends-on): Add mbuiter.
84876
84877 2005-08-17  Bruno Haible  <bruno@clisp.org>
84878
84879         * modules/strcasestr: New file.
84880         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84881         strcasestr.
84882
84883 2005-08-17  Bruno Haible  <bruno@clisp.org>
84884
84885         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84886
84887 2005-08-17  Bruno Haible  <bruno@clisp.org>
84888
84889         * modules/mbuiter: New file.
84890         * MODULES.html.sh (Extended multibyte and wide character utilities):
84891         Add mbuiter.
84892
84893 2005-08-17  Bruno Haible  <bruno@clisp.org>
84894
84895         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84896         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84897
84898 2005-08-17  Bruno Haible  <bruno@clisp.org>
84899
84900         * m4/strcasestr.m4: New file.
84901
84902 2005-08-17  Bruno Haible  <bruno@clisp.org>
84903
84904         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84905         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84906
84907 2005-08-17  Bruno Haible  <bruno@clisp.org>
84908
84909         * lib/strcasestr.h: New file.
84910         * lib/strcasestr.c: New file.
84911
84912 2005-08-17  Bruno Haible  <bruno@clisp.org>
84913
84914         * lib/strcasecmp.c: Use mbuiter.h.
84915
84916 2005-08-17  Bruno Haible  <bruno@clisp.org>
84917
84918         * lib/mbuiter.h: New file.
84919
84920 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84921
84922         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84923         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84924         and gl_GETOPT are both invoked via different paths (as happens
84925         with GNU tar CVS because it uses both argp and getopt), the former
84926         wins.
84927
84928 2005-08-16  Bruno Haible  <bruno@clisp.org>
84929
84930         * modules/tls: New file.
84931         * MODULES.html.sh (Multithreading): Add tls.
84932
84933 2005-08-16  Bruno Haible  <bruno@clisp.org>
84934
84935         * modules/strnlen1: New file.
84936         * MODULES.html.sh (String handling): Add strnlen1.
84937
84938 2005-08-16  Bruno Haible  <bruno@clisp.org>
84939
84940         * modules/strcase (Files): Add m4/mbrtowc.m4.
84941         (Depends-on): Add strnlen1, mbchar.
84942
84943 2005-08-16  Bruno Haible  <bruno@clisp.org>
84944
84945         * modules/mbiter: New file.
84946         * MODULES.html.sh (Extended multibyte and wide character utilities):
84947         Add mbiter.
84948
84949 2005-08-16  Bruno Haible  <bruno@clisp.org>
84950
84951         * modules/mbfile: New file.
84952         * MODULES.html.sh (Extended multibyte and wide character utilities):
84953         Add mbfile.
84954
84955 2005-08-16  Bruno Haible  <bruno@clisp.org>
84956
84957         * modules/mbchar: New file.
84958         * MODULES.html.sh (Extended multibyte and wide character utilities):
84959         New section.
84960
84961 2005-08-16  Bruno Haible  <bruno@clisp.org>
84962
84963         * m4/tls.m4: New file, from GNU gettext.
84964
84965 2005-08-16  Bruno Haible  <bruno@clisp.org>
84966
84967         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84968         always.
84969         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84970
84971 2005-08-16  Bruno Haible  <bruno@clisp.org>
84972
84973         * m4/mbiter.m4: New file.
84974
84975 2005-08-16  Bruno Haible  <bruno@clisp.org>
84976
84977         * m4/mbfile.m4: New file.
84978
84979 2005-08-16  Bruno Haible  <bruno@clisp.org>
84980
84981         * m4/mbchar.m4: New file.
84982
84983 2005-08-16  Bruno Haible  <bruno@clisp.org>
84984
84985         * lib/tls.h: New file, from GNU gettext.
84986         * lib/tls.c: New file, from GNU gettext.
84987
84988 2005-08-16  Bruno Haible  <bruno@clisp.org>
84989
84990         * lib/strnlen1.h: New file.
84991         * lib/strnlen1.c: New file.
84992
84993 2005-08-16  Bruno Haible  <bruno@clisp.org>
84994
84995         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84996         (mbi_init): Update.
84997         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84998         NUL byte, not after it.
84999
85000 2005-08-16  Bruno Haible  <bruno@clisp.org>
85001
85002         * lib/strcase.h (strcasecmp): Add note in comments.
85003         * lib/strncasecmp.c: Use code from strcasecmp.c.
85004         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85005         (strcasecmp): Work correctly in multibyte locales.
85006
85007 2005-08-16  Bruno Haible  <bruno@clisp.org>
85008
85009         * lib/mbiter.h: New file.
85010
85011 2005-08-16  Bruno Haible  <bruno@clisp.org>
85012
85013         * lib/mbfile.h: New file.
85014
85015 2005-08-16  Bruno Haible  <bruno@clisp.org>
85016
85017         * lib/mbchar.h: New file.
85018         * lib/mbchar.c: New file.
85019
85020 2005-08-16  Bruno Haible  <bruno@clisp.org>
85021
85022         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85023         the valid ones. Makes the comparison operations transitive:
85024         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85025         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85026
85027 2005-08-15  Simon Josefsson  <jas@extundo.com>
85028
85029         * modules/ssize_t (License): Change to 'unlimited'.
85030
85031         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85032
85033 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85034
85035         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85036         Add comments for each pending glibc patch.
85037
85038 2005-08-15  Bruno Haible  <bruno@clisp.org>
85039
85040         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85041         __cplusplus is defined.
85042
85043 2005-08-14  Jim Meyering  <jim@meyering.net>
85044
85045         Sync from coreutils.
85046
85047         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85048         Use the hash-table-based cycle-detection code not just when
85049         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85050         Reported by James Youngman in
85051         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85052         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85053         FTS_TIGHT_CYCLE_CHECK.
85054         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85055         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85056         once again.
85057         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85058         * lib/fts.c (fd_safer): Remove decl.
85059         Include fcntl--.h rather than unistd-safer.h
85060         (fts_safe_changedir): Don't call fd_safer; no longer needed
85061         now that we include fcntl--.h.
85062
85063 2005-08-12  Simon Josefsson  <jas@extundo.com>
85064
85065         * modules/getndelim2: Use ssize_t module.
85066         * modules/getnline: Likewise.
85067         * modules/safe-read: Likewise.
85068         * modules/xreadlink: Likewise.
85069
85070         * modules/ssize_t: New file.
85071
85072 2005-08-12  Simon Josefsson  <jas@extundo.com>
85073
85074         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85075
85076 2005-08-12  Simon Josefsson  <jas@extundo.com>
85077
85078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85079         ssize_t.
85080
85081 2005-08-12  Simon Josefsson  <jas@extundo.com>
85082
85083         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85084         readline, getdelim and check_version.
85085         (Support for systems lacking ISO C 99: Sizes of integer types):
85086         Add size_max.
85087
85088 2005-08-12  Bruno Haible  <bruno@clisp.org>
85089
85090         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85091
85092 2005-08-11  Simon Josefsson  <jas@extundo.com>
85093
85094         * modules/readline: New file.
85095
85096         * modules/strnlen (Files): Add strnlen.h.
85097
85098 2005-08-11  Simon Josefsson  <jas@extundo.com>
85099
85100         * m4/readline.m4: New file.
85101
85102 2005-08-11  Simon Josefsson  <jas@extundo.com>
85103
85104         * lib/readline.h, readline.c: New file.
85105
85106 2005-08-11  Simon Josefsson  <jas@extundo.com>
85107
85108         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85109         gl_AVOID.
85110
85111 2005-08-11  Bruno Haible  <bruno@clisp.org>
85112
85113         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85114
85115 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85116
85117         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85118
85119 2005-08-10  Simon Josefsson  <jas@extundo.com>
85120
85121         * tests/test-iconvme.c: New file.
85122
85123 2005-08-10  Simon Josefsson  <jas@extundo.com>
85124
85125         * m4/strnlen.m4: New file.
85126
85127         * m4/strndup.m4: Don't check for strnlen declaration, done in
85128         strnlen.m4.
85129
85130 2005-08-10  Simon Josefsson  <jas@extundo.com>
85131
85132         * lib/strndup.c: Use strnlen.h.
85133
85134         * lib/strnlen.h: New file.
85135
85136 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85137
85138         * README: Typos.
85139
85140 2005-08-02  Simon Josefsson  <jas@extundo.com>
85141
85142         * modules/readline: New file.
85143
85144 2005-08-02  Simon Josefsson  <jas@extundo.com>
85145
85146         * modules/getdelim: New file.
85147
85148         * modules/getline: Rewrite, don't use getndelim2.
85149
85150 2005-08-02  Simon Josefsson  <jas@extundo.com>
85151
85152         * m4/getline.m4: Separate out getdelim stuff into separate module.
85153
85154         * m4/getdelim.m4: New file.
85155
85156 2005-08-02  Simon Josefsson  <jas@extundo.com>
85157
85158         * lib/getline.h, getline.c: Rewrite.
85159
85160         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85161
85162 2005-07-31  Bruno Haible  <bruno@clisp.org>
85163
85164         * lib/lock.h (gl_lock_initializer): New macro.
85165         (gl_lock_define_initialized): Use it.
85166         (gl_rwlock_initializer): New macro.
85167         (gl_rwlock_define_initialized): Use it.
85168         (gl_recursive_lock_initializer): New macro.
85169         (gl_recursive_lock_define_initialized): Use it.
85170
85171 2005-07-30  Karl Berry  <karl@gnu.org>
85172
85173         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85174         Report from Ben Pfaff, regarding getopt.
85175
85176 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85177
85178         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85179         normal way.
85180         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85181         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85182         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85183         (gl_GETOPT): Use the new macros.  Most of the implementation
85184         is moved to the new macros.  This is for programs like Emacs
85185         that don't want all the functionality of gl_GETOPT.
85186
85187 2005-07-26  Bruno Haible  <bruno@clisp.org>
85188
85189         * m4/lock.m4: Update from GNU gettext.
85190
85191 2005-07-26  Bruno Haible  <bruno@clisp.org>
85192
85193         * lib/lock.h: Update from GNU gettext.
85194         * lib/lock.c: Update from GNU gettext.
85195
85196 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85197
85198         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85199         obsolescent AC_TRY_RUN.  Include the default includes files, for
85200         'exit'.
85201
85202 2005-07-24  Bruno Haible  <bruno@clisp.org>
85203
85204         * modules/visibility: New file.
85205         * MODULES.html.sh (Misc): Add visibility.
85206
85207 2005-07-24  Bruno Haible  <bruno@clisp.org>
85208
85209         * m4/visibility.m4: New file.
85210
85211 2005-07-24  Bruno Haible  <bruno@clisp.org>
85212
85213         * doc/visibility.texi: New file.
85214
85215 2005-07-22  Bruno Haible  <bruno@clisp.org>
85216
85217         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85218         $(ALLOCA_H), redundant through BUILT_SOURCES.
85219         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85220         redundant through BUILT_SOURCES.
85221         * modules/byteswap (Makefile.am): Remove explicit dependency on
85222         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85223         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85224         $(FNMATCH_H), redundant through BUILT_SOURCES.
85225         * modules/getopt (Makefile.am): Remove explicit dependency on
85226         $(GETOPT_H), redundant through BUILT_SOURCES.
85227         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85228         redundant through BUILT_SOURCES.
85229         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85230         redundant through BUILT_SOURCES.
85231         * modules/stdbool (Makefile.am): Remove explicit dependency on
85232         $(STDBOOL_H), redundant through BUILT_SOURCES.
85233         * modules/stdint (Makefile.am): Remove explicit dependency on
85234         $(STDINT_H), redundant through BUILT_SOURCES.
85235         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85236         Remove explicit dependency on $(SYSEXITS_H).
85237         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85238
85239 2005-07-18  Simon Josefsson  <jas@extundo.com>
85240
85241         * lib/check-version.c (check_version): Accept identical versions too.
85242
85243 2005-07-18  Bruno Haible  <bruno@clisp.org>
85244
85245         * modules/lock: New file.
85246         * MODULES.html.sh (Multithreading): New section.
85247
85248 2005-07-18  Bruno Haible  <bruno@clisp.org>
85249
85250         * m4/lock.m4: New file, from GNU gettext.
85251
85252 2005-07-18  Bruno Haible  <bruno@clisp.org>
85253
85254         * lib/lock.h: New file, from GNU gettext.
85255         * lib/lock.c: New file, from GNU gettext.
85256
85257 2005-07-18  Bruno Haible  <bruno@clisp.org>
85258
85259         * lib/lock.h (gl_once_t): New type.
85260         (gl_once_define, gl_once): New macros.
85261         * lib/lock.c (fresh_once): New variable.
85262         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85263         functions.
85264
85265 2005-07-16  Simon Josefsson  <jas@extundo.com>
85266
85267         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85268         workaround, suggested by Bruno.
85269
85270 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85271
85272         * modules/xalloc (Depends-on): Add xalloc-die.
85273         * modules/xvasprintf (Depends-on): Add xalloc-die.
85274
85275 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85276
85277         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85278         with a minor change.
85279
85280 2005-07-15  Bruno Haible  <bruno@clisp.org>
85281
85282         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85283         When using lib/poll.c, define poll as rpl_poll.
85284
85285 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85286
85287         * modules/argp (Depends-on): Remove unlocked-io.
85288
85289 2005-07-14  Derek Price  <derek@ximbiot.com>
85290
85291         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85292         for glob symlink bug.
85293
85294 2005-07-14  Bruno Haible  <bruno@clisp.org>
85295
85296         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85297         Instead, test for *_unlocked function declarations directly.
85298
85299 2005-07-11  Simon Josefsson  <jas@extundo.com>
85300
85301         * modules/size_max: New file.
85302
85303         * modules/xsize: Depend on size_max module for size_max.m4.
85304
85305 2005-07-11  Simon Josefsson  <jas@extundo.com>
85306
85307         * lib/size_max.h: New file.
85308
85309 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85310
85311         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85312         copyright symbol and the year.
85313         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85314         (version_etc_va): Use parameterized copyright notice.
85315         Reword to conform to the current GNU coding standards.
85316
85317 2005-07-11  Karl Berry  <karl@gnu.org>
85318
85319         * doc/gnulib.texi (Quoting): new node.
85320         (Initial import): more info, from Patrice.
85321
85322 2005-07-11  Bruno Haible  <bruno@clisp.org>
85323
85324         * gnulib-tool (func_usage): Document option --avoid.
85325         (Command line options): Handle --avoid.
85326         (func_acceptable): New function.
85327         (func_modules_transitive_closure): Use it.
85328
85329 2005-07-11  Bruno Haible  <bruno@clisp.org>
85330
85331         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85332         Reported by Jim Meyering.
85333
85334 2005-07-10  Bruno Haible  <bruno@clisp.org>
85335
85336         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85337         Needed when size_t is smaller than 'unsigned int'.
85338         Reported by Paul Eggert.
85339
85340 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85341
85342         * modules/argp (Depends-on): Add unlocked-io
85343
85344 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85345
85346         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85347         block of defines.
85348
85349 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85350
85351         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85352         fix now.
85353
85354 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85355         and Paul Eggert  <eggert@cs.ucla.edu>
85356
85357         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85358         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85359
85360 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85361
85362         * modules/regex (Files): Add lib/regex_internal.c,
85363         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85364         (Depends-on): Add extensions.
85365         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85366
85367 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85368
85369         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85370         pathconf.
85371         * m4/same.m4 (gl_SAME): Likewise.
85372         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85373
85374         * m4/regex.m4: Adjust to new libc regex implementation.
85375         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85376         all the .c and .h parts of (the new) regex.
85377         Quote the m4 stuff better.
85378         Check for RE_ICASE bug of old gnulib.
85379         Check for REG_STARTEND of recent libc.
85380         Rename local variables from jm_* to gl_*.
85381         Quote operand of "test -f".
85382         Say "recent enough" version of libc, not "version 2".
85383         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85384         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85385         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85386         Remove check for btowc, isascii.
85387         Require AM_LANGINFO_CODESET.
85388
85389 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85390
85391         * lib/regex.c, regex.h: Sync from libc.
85392         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85393         * lib/regexec.c:
85394         New files, synced from libc, except that regex_internal.h
85395         currently has a small porting fix.
85396
85397 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85398
85399         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85400         regex_internal.c, regexec.c.
85401         Add regex_internal.h too, but as a comment, since the libc version
85402         is currently broken in gnulib mode.
85403
85404 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85405
85406         Support programs like Emacs that use gnulib but not gettext.
85407         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85408         * modules/gettext-h: New file.
85409         * modules/gettext (Files): Remove lib/gettext.h.
85410         (Depends-on): Add gettext-h.
85411         (Makefile.am): Remove lib_SOURCES.
85412         * modules/argmatch, modules/c-stack, modules/closeout:
85413         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85414         * modules/execute, modules/file-type, modules/getaddrinfo:
85415         * modules/getopt, modules/human, modules/javacomp:
85416         * modules/javaexec, modules/mkdir-p, modules/obstack:
85417         * modules/openat, modules/pagealign_alloc, modules/pipe:
85418         * modules/quotearg, modules/regex, modules/rpmatch:
85419         * modules/unicodeio, modules/userspec, modules/version-etc:
85420         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85421         * modules/xsetenv:
85422         Depend on gettext-h, not gettext.
85423
85424 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85425
85426         * gnulib-tool (func_import): Add support for 'public domain' license.
85427         * modules/alloca, modules/atexit, modules/memmove:
85428         Now public domain, not GPL.
85429         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85430         * modules/realloc, modules/strerror, modules/strtod:
85431         Now LGPL, not GPL.
85432
85433 2005-07-05  Bruno Haible  <bruno@clisp.org>
85434
85435         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85436         autoconf CVS. Needed for mingw.
85437
85438 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85439
85440         Remove the dependency of the strftime module on the tzset module.
85441         * modules/strftime (Depends-on): Remove dependency on tzset.
85442
85443 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85444
85445         Remove the dependency of the strftime module on the tzset module.
85446         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85447         gl_FUNC_TZSET_CLOBBER.
85448
85449 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85450
85451         Remove the dependency of the strftime module on the tzset module.
85452         * lib/strftime.c (my_strftime)
85453         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85454         Copy the input structure, to work around some of the bug with
85455         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85456         Solaris releases, you should also use the tzset module, but we won't
85457         require it as a dependency any more since we don't want LGPLed code
85458         to depend on GPLed code.
85459
85460 2005-07-02  Jim Meyering  <jim@meyering.net>
85461
85462         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85463         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85464         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85465         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85466
85467 2005-07-02  Jim Meyering  <jim@meyering.net>
85468
85469         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85470
85471 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85474         declares only 'struct timespec;' (!).
85475
85476 2005-07-01  Jim Meyering  <jim@meyering.net>
85477
85478         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85479         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85480         * lib/save-cwd.c, tempname.c:
85481         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85482         and don't include <sys/file.h>).
85483
85484 2005-06-29  Jim Meyering  <jim@meyering.net>
85485
85486         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85487         type name.  Use the variable name instead.
85488         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85489         Likewise.
85490
85491 2005-06-28  Simon Josefsson  <jas@extundo.com>
85492
85493         * modules/check-version (Files): Add check-version.m4.
85494
85495 2005-06-28  Simon Josefsson  <jas@extundo.com>
85496
85497         * m4/check-version.m4: New file, suggested by Jim Meyering
85498         <jim@meyering.net>.
85499
85500 2005-06-28  Simon Josefsson  <jas@extundo.com>
85501
85502         * lib/check-version.h, lib/check-version.c: New files.
85503
85504 2005-06-28  Simon Josefsson  <jas@extundo.com>
85505
85506         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85507         collision with global variable.  Better indentation.  Don't
85508         increment buffer pointer beyond buffer end.  Based on comments
85509         from Paul Eggert <eggert@cs.ucla.edu>.
85510
85511         * lib/base64.h: Indent.
85512
85513 2005-06-28  Simon Josefsson  <jas@extundo.com>
85514
85515         * doc/gnulib.texi (Library version handling): New section.
85516
85517 2005-06-28  Jim Meyering  <jim@meyering.net>
85518
85519         * check-module (find_included_lib_files): Hard-code another
85520         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85521         but modules/fts-lgpl (correctly) does not list those files.
85522
85523         * modules/canonicalize (Files): Add lib/pathmax.h.
85524
85525 2005-06-25  Simon Josefsson  <jas@extundo.com>
85526
85527         * modules/check-version: New file.
85528
85529 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85530
85531         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85532         initializer of struct addrinfo, as an indication that we don't
85533         care how many members the structure has.
85534
85535 2005-06-24  Derek Price  <derek@ximbiot.com>
85536         and Bruno Haible  <bruno@clisp.org>
85537
85538         Remove stat module & update lstat.
85539         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85540         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85541         * m4/stat.m4: Remove this file.
85542
85543 2005-06-24  Derek Price  <derek@ximbiot.com>
85544         and Bruno Haible  <bruno@clisp.org>
85545
85546         Remove stat module & update lstat.
85547         * lib/stat.c: Remove this file...
85548         (slash_aware_lstat): ...moving this content and its support...
85549         * lib/lstat.c (rpl_lstat): ...into here.
85550         * lib/lstat.h: New file.
85551
85552 2005-06-24  Derek Price  <derek@ximbiot.com>
85553         and Bruno Haible  <bruno@clisp.org>
85554
85555         Remove stat module & update lstat.
85556         * config/srclist.txt (libc sources): Remove stat.
85557
85558 2005-06-24  Derek Price  <derek@ximbiot.com>
85559         and Bruno Haible  <bruno@clisp.org>
85560
85561         Remove stat module & update lstat.
85562         * MODULES.html.sh (stat): Remove.
85563         * MODULES.html: Regenerated.
85564         * modules/lstat (Description): Correct function name.
85565         (Files): Add "lstat.h".
85566         (Depends-on): Remove stat, add xalloc, stat-macros.
85567         * modules/stat: Remove this file.
85568         (Include): Add "lstat.h", remove <sys/stat.h>.
85569
85570 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85571
85572         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85573         (ranged_convert): Don't save conversion in a temporary struct.
85574         This causes a warning with GCC 4.0.0, and anyway in the typical
85575         case it's not worth the extra 100 bytes or so of code.
85576         (ranged_convert, __mktime_internal): When calling a function via a
85577         pointer P, use P () rather than (*P) (), as we now assume C89 or
85578         better.
85579
85580 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85581
85582         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85583         "who -r" failed to give output.  Problem reported by Tim Waugh.
85584
85585         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85586         (xcalloc): Use it to avoid needless tests.
85587         Problem reported by Jim Meyering.
85588
85589 2005-06-20  Derek Price  <derek@ximbiot.com>
85590
85591         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85592         unnecessary for Autoconfs > 2.59c.
85593
85594 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85595
85596         * lib/argp.h (__option_is_short): Check upper limit of
85597         __key. Isprint() requires its argument to have the value
85598         of an unsigned char or EOF.
85599
85600 2005-06-16  Jim Meyering  <jim@meyering.net>
85601
85602         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85603         when either N or S is zero.
85604
85605 2005-06-16  Derek Price  <derek@ximbiot.com>
85606
85607         * m4/bison.m4: Declare YACC & YFLAGS precious.
85608
85609 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85610
85611         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85612         multibyte string or pattern, fall back on unibyte matching.
85613         Problem reported by James Youngman.
85614
85615 2005-06-08  Bruno Haible  <bruno@clisp.org>
85616
85617         * modules/csharpcomp: New file.
85618         * MODULES.html.sh (C#): Add csharpcomp.
85619
85620 2005-06-08  Bruno Haible  <bruno@clisp.org>
85621
85622         * m4/csharpcomp.m4: New file, from GNU gettext.
85623
85624 2005-06-08  Bruno Haible  <bruno@clisp.org>
85625
85626         * lib/csharpcomp.h: New file, from GNU gettext.
85627         * lib/csharpcomp.c: New file, from GNU gettext.
85628         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85629
85630 2005-06-08  Bruno Haible  <bruno@clisp.org>
85631
85632         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85633         warning on mingw.
85634
85635 2005-06-07  Derek Price  <derek@ximbiot.com>
85636
85637         Sync from CVS.
85638         * lib/glob_.h: Indent nested #ifdef.
85639
85640 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85641
85642         Sync from coreutils.
85643         Use "file name" when talking about file names, instead of "filename"
85644         or "path", as per the GNU coding standards.
85645         * lib/mkdir-p.c: Renamed from makepath.c.
85646         (make_dir_parents): Renamed from make_path.  All callers changed.
85647         * lib/mkdir-p.h: Likewise.  All includers changed.
85648         * lib/filenamecat.c: Renamed from path-concat.c.
85649         (file_name_concat): Renamed from path_concat.  All callers changed.
85650         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85651         * lib/filenamecat.h: Likewise.  All includers changed.
85652         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85653         in comments or local variable names.
85654         * lib/basename.c: Likewise.
85655         * lib/canonicalize.c, canonicalize.h: Likewise.
85656         * lib/dirname.c, dirname.h: Likewise.
85657         * lib/euidaccess.c: Likewise.
85658         * lib/exclude.c: Likewise
85659         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85660         * lib/fsusage.c, fsuage.h: Likewise.
85661         * lib/fts.c, fts_.h: Likewise.
85662         * lib/getcwd.c: Likewise.
85663         * lib/getloadavg.c: Likewise.
85664         * lib/mkstemp.c: Likewise.
85665         * lib/mountlist.c, mountlist.h: Likewise.
85666         * lib/openat.c, openat.h: Likewise.
85667         * lib/readlink-stub.c: Likewise.
85668         * lib/readutmp.c, readutmp.h: Likewise.
85669         * lib/rename.c: Likewise.
85670         * lib/rmdir.c: Likewise.
85671         * lib/same.c: Likewise.
85672         * lib/savedir.c: Likewise.
85673         * lib/stripslash.c: Likewise.
85674         * lib/tempname.c: Likewise.
85675         * lib/xreadlink.c: Likewise.
85676         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85677         All uses changed.
85678         * lib/exclude.h: Likewise.
85679
85680         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85681         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85682         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85683         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85684         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85685         files have been getting away with it for years (MORE/BSD 4.3
85686         is extinct now).
85687         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85688         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85689
85690         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85691         Define to 256, not 255, as per modern POSIX.
85692
85693 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85694
85695         Sync from coreutils.
85696         Use "file name" when talking about file names, instead of "filename"
85697         or "path", as per the GNU coding standards.
85698         * MODULES.html.sh: mkdir-p renamed from makepath.
85699         filenamecat renamed from path-concat.
85700         * modules/filenamecat: Renamed from modules/path-concat.
85701         (Files): filenamecat.h and filenamecat.c renamed from
85702         path-concat.h and path-concat.c.
85703         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85704         (Include): filenamecat.h, not path-concat.h.
85705         * modules/mkdir-p: Renamed from modules/makepath.
85706         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85707         makepath.c.
85708         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85709         (Include): mkdir-p.h, not makepath.h.
85710
85711 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85712
85713         Sync from coreutils.
85714         * m4/mkdir-p.m4: Renamed from makepath.m4.
85715         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85716         Rename files from makepath.c to mkdir-p.c, and from
85717         makepath.h to mkdir-p.h.
85718         * m4/filenamecat.m4: Renamed from path-concat.m4.
85719         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85720         Rename files from path-concat.c to filenamecat.c,
85721         and from path-concat.h to filenamecat.h.
85722         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85723         "file name" in local variables or comments.
85724         * m4/rename.m4: Likewise.
85725
85726 2005-06-01  Bruno Haible  <bruno@clisp.org>
85727
85728         * modules/csharpexec: New file.
85729         * MODULES.html.sh (C#): New section.
85730
85731 2005-06-01  Bruno Haible  <bruno@clisp.org>
85732
85733         * m4/csharp.m4: New file, from GNU gettext.
85734         * m4/csharpexec.m4: New file, from GNU gettext.
85735
85736 2005-06-01  Bruno Haible  <bruno@clisp.org>
85737
85738         * lib/csharpexec.h: New file, from GNU gettext.
85739         * lib/csharpexec.c: New file, from GNU gettext.
85740         * lib/csharpexec.sh.in: New file, from GNU gettext.
85741
85742 2005-05-31  Derek Price  <derek@ximbiot.com>
85743             Paul Eggert  <eggert@cs.ucla.edu>
85744
85745         Sync from cvs.
85746         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85747
85748 2005-05-31  Derek Price  <derek@ximbiot.com>
85749             Paul Eggert  <eggert@cs.ucla.edu>
85750
85751         Sync from cvs.
85752         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85753
85754 2005-05-29  Derek Price  <derek@ximbiot.com>
85755
85756         * config/srclist.txt (glob_.h, glob.c): Add these files.
85757
85758 2005-05-29  Derek Price  <derek@ximbiot.com>
85759
85760         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85761         * modules/glob: New file.
85762         * modules/getlogin_r: Add link to POSIX spec in description.
85763
85764 2005-05-29  Derek Price  <derek@ximbiot.com>
85765             Paul Eggert  <eggert@cs.ucla.edu>
85766
85767         * m4/glob.m4: New file.
85768
85769 2005-05-29  Derek Price  <derek@ximbiot.com>
85770             Paul Eggert  <eggert@cs.ucla.edu>
85771
85772         * lib/glob_.h, lib/glob.c: New files.
85773
85774 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85775
85776         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85777         * modules/fts-lgpl (Depends-on): Remove gettext.
85778
85779 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85780
85781         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85782         and don't require gt_INTTYPES_PRI.
85783
85784 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85785
85786         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85787
85788         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85789         the configuration hassle isn't worth it.
85790         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85791         (LONGEST_MODIFIER, PRIuMAX): Remove.
85792
85793 2005-05-27  Bruno Haible  <bruno@clisp.org>
85794
85795         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85796
85797 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85798
85799         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85800         _POSIX_PTHREAD_SEMANTICS for Solaris.
85801
85802 2005-05-25  Derek Price  <derek@ximbiot.com>
85803
85804         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85805
85806 2005-05-25  Derek Price  <derek@ximbiot.com>
85807             Paul Eggert  <eggert@cs.ucla.edu>
85808
85809         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85810         * lib/getlogin_r.c, getlogin_r.h: New files.
85811
85812 2005-05-25  Bruno Haible  <bruno@clisp.org>
85813             Derek Price  <derek@ximbiot.com>
85814
85815         * lib/getlogin_r.h: Simplify API documentation.
85816
85817 2005-05-23  Derek Price  <derek@ximbiot.com>
85818
85819         * modules/minmax (Files): Add m4/minmax.m4.
85820         (configure.ac): Add gl_MINMAX.
85821
85822 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85823
85824         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85825         so that unistd-safer.h (GPL'ed code) need not be included.
85826
85827 2005-05-22  Bruno Haible  <bruno@clisp.org>
85828
85829         * m4/minmax.m4: New file.
85830         Based on a patch by Derek Price <derek@ximbiot.com>.
85831
85832 2005-05-22  Bruno Haible  <bruno@clisp.org>
85833
85834         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85835         (INT64_MIN): Fix definition.
85836         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85837
85838         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85839         NEED_SIGNED_INT_TYPES.
85840
85841         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85842         HAVE_SYSTEM_INTTYPES.
85843
85844 2005-05-22  Bruno Haible  <bruno@clisp.org>
85845
85846         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85847         Also include <sys/param.h> if it defines MIN, MAX.
85848         Based on a patch by Derek Price <derek@ximbiot.com>.
85849
85850 2005-05-21  Jim Meyering  <jim@meyering.net>
85851
85852         * modules/fts (Files): Add m4/inttypes-pri.m4.
85853         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85854
85855 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85856
85857         New fts module.
85858         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85859         (setup_dir, free_dir): New functions.
85860         (enter_dir, leave_dir): Define trivial
85861         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85862         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85863         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85864         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85865         Move to fts-cycle.c.
85866         (fts_open): Use setup_dir.
85867         (fts_close): Use free_dir.
85868         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85869         This adds a label and some gotos, but the alternatives were messier.
85870         Check for memory allocation failure when entering a dir.
85871         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85872         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85873         (FTS): New member fts_cycle, that is a union that contains the
85874         old active_dir_ht and cycle_state.  All uses changed to mention
85875         fts_cycle.ht and fts_cycle.state.
85876         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85877         fts.c, with the following changes:
85878         (setup_dir, free_dir): New functions.
85879         (enter_dir): Now returns bool.  Return true if successful, false
85880         if memory exhausted.  All callers changed.
85881         Do not bother partly cleaning up on
85882         memory allocation failure; that is free_dir's job.
85883         However, free ad if hash_insert fails, to avoid memory leak.
85884         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85885         fts->fts_options to see which union member to use.
85886
85887 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85888
85889         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85890         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85891
85892 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85893
85894         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85895
85896 2005-05-20  Jim Meyering  <jim@meyering.net>
85897
85898         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85899         Now a macro, to pacify GCC.
85900
85901 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85902
85903         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85904         of -1.
85905
85906 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85907
85908         * lib/chown.c (rpl_chown): Return -1 on failure.
85909
85910 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85911
85912         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85913         Don't check for stddef.h.
85914         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85915         don't use its results.
85916         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85917         since we include them unconditionally.  Don't require
85918         AM_STDBOOL_H, since stdbool is a prerequisite.
85919         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85920         since we assume C89 or better.
85921         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85922         as we don't use their results.
85923         Don't check for fchdir, memmove, memset, strrchr, as we use
85924         them unconditionally.
85925         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85926         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85927
85928 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85929
85930         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85931         Include <stddef.h> unconditionally, since we assume C89 now.
85932         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85933         * lib/fts.c: Include fts_.h first, to check interface.
85934         Do not include intprops.h; no longer needed.
85935         Include cycle-check.h and hash.h, since fts_.h no longer does.
85936         Remove unnecessary casts of closedir to void.
85937         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85938         decide whether to decrement nlinks.
85939         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85940         (FTS): Use struct hash_table * instead of Hash_table, so that
85941         we no longer need to include hash.h here.
85942
85943 2005-05-18  Jim Meyering  <jim@meyering.net>
85944
85945         * modules/dirfd (License): Change to LGPL.  Most of the code
85946         is already in the public domain.
85947
85948 2005-05-18  Jim Meyering  <jim@meyering.net>
85949
85950         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85951         Reported by Yoann Vandoorselaere.
85952
85953 2005-05-17  Jim Meyering  <jim@meyering.net>
85954
85955         * m4/fts.m4: New file, from coreutils.
85956
85957 2005-05-17  Jim Meyering  <jim@meyering.net>
85958
85959         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85960
85961 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85962
85963         Sync from coreutils.
85964         * m4/unlinkdir.m4: New file.
85965
85966 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85967
85968         Sync from coreutils.
85969         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85970         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85971         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85972         White space changes only.
85973         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85974         special.
85975         * lib/yesno.c: Include getline.h, not ctype.h.
85976         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85977         Use getline to remove arbitrary restriction on response length.
85978
85979 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85980
85981         * config/srclist-update: Spell out "Street" in FSF postal
85982         mail address; this is the style the FSF seems to prefer.
85983
85984         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85985         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85986         this updates FSF postal mail address.
85987
85988         Sync from coreutils.
85989         * modules/unlinkdir: New file.
85990         * modules/yesno (Depends-on): Add getline.
85991         * MODULES.html.sh (File system functions): Add unlinkdir.
85992
85993 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85994
85995         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85996         lib/strsep.h:
85997         Change the initial comment to refer to GPL, not LGPL.
85998         gnulib-tool will change it to LGPL as needed.
85999
86000         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86001         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86002         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86003         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86004         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86005         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86006         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86007         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86008         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86009         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86010         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86011         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86012         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86013         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86014         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86015         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86016         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86017         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86018         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86019         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86020         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86021         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86022         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86023         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86024         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86025         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86026         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86027         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86028         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86029         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86030         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86031         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86032         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86033         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86034         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86035         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86036         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86037         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86038         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86039         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86040         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86041         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86042         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86043         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86044         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86045         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86046         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86047         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86048         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86049         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86050         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86051         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86052         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86053         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86054         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86055         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86056         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86057         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86058         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86059         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86060         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86061         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86062         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86063         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86064         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86065         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86066         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86067         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86068         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86069         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86070         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86071         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86072         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86073         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86074         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86075         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86076         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86077         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86078         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86079         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86080         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86081         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86082         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86083         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86084         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86085         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86086         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86087         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86088         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86089         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86090         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86091         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86092         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86093         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86094         lib/yesno.c, lib/yesno.h:
86095         Update FSF postal mail address.
86096
86097 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86098
86099         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86100         tests/test-memmem.c, tests/test-stpncpy.c:
86101         Update FSF postal mail address.
86102
86103 2005-05-13  Bruno Haible  <bruno@clisp.org>
86104
86105         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86106         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86107         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86108         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86109         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86110         Add support for 64-bit integers in the MSVC compiler.
86111
86112 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86113
86114         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86115
86116 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86117
86118         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86119
86120 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86121
86122         * doc/getdate.texi (General date syntax): Don't say that date
86123         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86124         Problem reported by Nic Ferrier.
86125
86126 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86127
86128         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86129         specified in ai_socktype. Fix invalid ai_protocol
86130         check. ai_protocol is usually set to 0 or depending on
86131         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86132         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86133         ai_socktype / ai_protocol in the returned addrinfo structure.
86134
86135 2005-05-10  Simon Josefsson  <jas@extundo.com>
86136
86137         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86138         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86139
86140 2005-05-10  Karl Berry  <karl@gnu.org>
86141
86142         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86143         (from http://www.gnu.org/licenses).
86144         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86145         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86146         fdl.texi suffices.
86147
86148 2005-05-10  Karl Berry  <karl@gnu.org>
86149
86150         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86151         (COPYING.DOC): remove.
86152
86153         * config/srclist-update: new FSF address.
86154
86155 2005-05-10  Derek Price  <derek@ximbiot.com>
86156
86157         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86158         possible.
86159
86160 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86161             Bruno Haible  <bruno@clisp.org>
86162
86163         * modules/inet_ntop: New file.
86164         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86165         inet_ntop.
86166
86167 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86168             Bruno Haible  <bruno@clisp.org>
86169
86170         * m4/inet_ntop.m4: New file.
86171
86172 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86173             Bruno Haible  <bruno@clisp.org>
86174
86175         * lib/inet_ntop.h: New file.
86176         * lib/inet_ntop.c: New file, from glibc with modifications.
86177
86178 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86179
86180         * modules/time_r (License): Change to LGPL.
86181         * modules/extensions (License): Change to LGPL.  Actually,
86182         the license is more permissive than that, but currently gnulib-tool
86183         doesn't know how to handle more-permissive licenses.
86184
86185         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86186         Problem reported by Dave Love.
86187
86188 2005-05-08  Jim Meyering  <jim@meyering.net>
86189
86190         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86191         blank.
86192
86193 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86194
86195         * modules/argmatch (Depends-on): Add stdbool.
86196         * modules/backupfile (Depends-on): Likewise.
86197         * modules/chdir-long (Depends-on): Likewise.
86198         * modules/closeout (Depends-on): Likewise.
86199         * modules/cycle-check (Depends-on): Likewise.
86200         * modules/dirname (Depends-on): Likewise.
86201         * modules/fnmatch (Depends-on): Likewise.
86202         * modules/fsusage (Depends-on): Likewise.
86203         * modules/fwriteerror (Depends-on): Likewise.
86204         * modules/getcwd (Depends-on): Likewise.
86205         * modules/getloadavg (Depends-on): Likewise.
86206         * modules/hard-locale (Depends-on): Likewise.
86207         * modules/makepath (Depends-on): Likewise.
86208         * modules/mountlist (Depends-on): Likewise.
86209         * modules/nanosleep (Depends-on): Likewise.
86210         * modules/posixtm (Depends-on): Likewise.
86211         * modules/quotearg (Depends-on): Likewise.
86212         * modules/readtokens (Depends-on): Likewise.
86213         * modules/readtokens0 (Depends-on): Likewise.
86214         * modules/readutmp (Depends-on): Likewise.
86215         * modules/save-cwd (Depends-on): Likewise.
86216         * modules/strftime (Depends-on): Likewise.
86217         * modules/userspec (Depends-on): Likewise.
86218         * modules/utimecmp (Depends-on): Likewise.
86219         * modules/xgetcwd (Depends-on): Likewise.
86220         * modules/xnanosleep (Depends-on): Likewise.
86221         * modules/xstrtod (Depends-on): Likewise.
86222         * modules/yesno (Depends-on): Likewise.
86223
86224 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86225
86226         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86227         needless checks.
86228
86229 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86230
86231         Merge from coreutils.  Among other things,
86232         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86233         * lib/fd-safer.c: New file.
86234         * lib/fcntl-safer.h, open-safer.c: Remove.
86235         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86236         * lib/dup-safer.c: Include unistd-safer.h first.
86237         Don't include errno.h.
86238         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86239         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86240         * lib/file-type.c: Rely on file-type.h change.
86241         * lib/getloadavg.c: Include unistd-safer.h.
86242         (getloadavg): Use safer open.
86243         * lib/getusershell.c: Include "stdio-safer.h".
86244         (getusershell): Use safer fopen.
86245         * lib/long-options.c (long_options): Use NULL rather than 0.
86246         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86247         'free'.
86248         * lib/modechange.c: Likewise.
86249         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86250         (MODE_DONE): New constant.
86251         (struct mode_change): Remove 'next' member.
86252         (make_node_op_equals): New function; like the old one of the
86253         same name, except it allocates an array.
86254         (mode_compile, mode_create_from_ref): Use it.
86255         (mode_compile): Allocate result as an array, not a linked list.
86256         Parse octal string ourself, so that we catch mistakes like "+0".
86257         (mode_adjust): Arg is an array, not a linked list.
86258         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86259         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86260         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86261         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86262         Remove.  This is now stat-macros.h's job.
86263         (talloc): Remove.  All callers replaced by xalloc, so that
86264         our invokers don't have to worry about reporting memory failures.
86265         (make_node_op_equals): Remove.
86266         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86267         New constants.
86268         (struct mode_change): Moved here from modechange.h.
86269         (mode_append_entry): Remove.
86270         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86271         apps to have incorrect behavior.  Use simpler algorithm for head
86272         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86273         Detect more invalid usages rather than having somewhat-random behavior.
86274         Don't insert an "a=" action, as that leads to incorrect behavior.
86275         (mode_compile, mode_create_from_ref): Return NULL on error instead
86276         of an enum, since now there's only one way to have an error.  All
86277         callers changed.
86278         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86279         at the correct time.  Simplify calculation of "+u" and its ilk.
86280         Don't mishandle "+X".
86281         (mode_free): Remove "register" and localize decls.
86282         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86283         (struct mode_change): Move to modechange.c; callers don't
86284         need to see this stuff.
86285         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86286         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86287         (mode_change, mode_adjust): Reflect the new signatures noted above.
86288         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86289         that might redefine system include files.
86290         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86291         (my_usleep): Use NULL rather than (void *) 0.
86292         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86293         Use siginterrupt to specify that system calls should be interrupted.
86294         (rpl_nanosleep): Move initialization of suspended closer to call of
86295         my_usleep.
86296         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86297         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86298         (desirable_utmp_entry): New function.
86299         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86300         using x2nrealloc, to simplify logic.
86301         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86302         size calculation.  Do not assume utmp file is a regular file.
86303         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86304         (READ_UTMP_CHECK_PIDS): New constant.
86305         * lib/save-cwd.c: Include unistd-safer.h.
86306         (save_cwd): Use fd_safer.
86307         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86308         [!_LIBC] Include "stat-macros.h" instead.
86309         * lib/unistd-safer.h (fd_safer): New decl.
86310
86311 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         * modules/getloadavg (Depends-on): Add unistd-safer.
86314         * modules/getusershell (Depends-on): Add stdio-safer.
86315         * modules/lstat (Depends-on): Remove xalloc.
86316         * modules/mkstemp (Depends-on): Add stat-macros.
86317         * modules/modechange (Depends-on): Remove xstrtol.
86318         Add stat-macros, xalloc.
86319         * modules/save-cwd (Depends-on): Add unistd-safer.
86320         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86321         * modules/unistd-safer (Files): Add lib/fd-safer.c
86322         (Makefile.am): Remove lib_SOURCES.
86323
86324         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86325         Remove fcntl-safer; unistd-safer supersedes it.
86326
86327 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86328
86329         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86330         AC_HEADER_STAT.
86331         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86332         (gl_PREREQ_CHOWN): Remove.
86333         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86334         it.  Don't require AC_HEADER_STAT.
86335         (gl_PREREQ_LSTAT): Remove.
86336         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86337         Don't require AC_HEADER_STAT.
86338         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86339         (gl_PREREQ_RMDIR): Remove.
86340         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86341         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86342         the stat-macros module a prerequisite.
86343         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86344         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86345         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86346         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86347         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86348         variable names.
86349         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86350         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86351         variable prefixes.
86352         * m4/fcntl-safer.m4: Remove.
86353         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86354         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86355         Invoke gl_PREREQ_FD_SAFER.
86356         (gl_PREREQ_FD_SAFER): New macro.
86357         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86358         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86359         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86360         Remove duplicate call to AC_LIBOBJ(readutmp).
86361         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86362
86363         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86364         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86365
86366 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86367
86368         * MODULES.html.sh (Misc): Add byteswap.
86369
86370 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86371
86372         * modules/getcwd (Depends-on): Add extensions.
86373         * modules/openat (Depends-on): Likewise.
86374
86375 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86376
86377         * modules/byteswap: New file.
86378
86379 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86380
86381         * m4/byteswap.m4: New file.
86382
86383 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86384
86385         * lib/byteswap_.h: New file.
86386
86387 2005-04-25  Karl Berry  <karl@gnu.org>
86388
86389         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86390
86391 2005-04-25  Albert Chin  <china@thewrittenword.com>
86392
86393         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86394         Toolkit C bug.
86395
86396 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86397
86398         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86399         (func_ln_if_changed): Remove forcibly for no error message
86400         in case file does not exist.
86401
86402 2005-04-19  Simon Josefsson  <jas@extundo.com>
86403
86404         * gnulib-tool (Options): Make --symlink mean --symbolic.
86405
86406 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86407
86408         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86409
86410 2005-04-16  Simon Josefsson  <jas@extundo.com>
86411
86412         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86413
86414 2005-04-15  Simon Josefsson  <jas@extundo.com>
86415
86416         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86417
86418 2005-04-15  Simon Josefsson  <jas@extundo.com>
86419
86420         * gnulib-tool: Rename --symlink to --symbolic.
86421
86422 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86423
86424         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86425         symbolic links to files instead of copying/moving.  Add --aux-dir,
86426         specifying directory relative --dir where auxiliary build tools
86427         are placed.
86428
86429 2005-04-14  Bruno Haible  <bruno@clisp.org>
86430
86431         * modules/allocsa (License): Change to LGPL.
86432         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86433
86434 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86435
86436         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86437         that "UTC +1 second" continues to work.  Problem reported
86438         by Dmitry V. Levin.
86439         (relunit_snumber): New rule.
86440         (relunit): Use it.
86441
86442 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86443
86444         * lib/getdate.y (universal_time_zone_table): New constant.
86445         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86446         universal_time_zone_table.
86447         (lookup_zone): Prefer universal_time_zone_table to
86448         local_time_zone_table, so that "GMT" time stamps are allowed in
86449         London during the summer.  Problem reported by Ian Abbott.
86450
86451 2005-04-12  Jim Meyering  <jim@meyering.net>
86452
86453         * lib/human.c (humblock): Set *options even when returning due to
86454         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86455         warning from gcc-4.
86456
86457 2005-04-09  Jim Meyering  <jim@meyering.net>
86458
86459         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86460         -Wuninitialized: initialize tm0.tm_year.
86461
86462 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86463
86464         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86465         count, since there's no maximum.  All uses changed.
86466         Add member dsts_seen.
86467         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86468         not being INT_MAX.
86469         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86470         Use pc_rels_seen to decide whether a date is absolute.
86471
86472         * lib/getdate.y (number): Don't overwrite year.
86473         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86474         check.
86475
86476 2005-04-02  Simon Josefsson  <jas@extundo.com>
86477
86478         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86479         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86480
86481 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86482
86483         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86484         where no absolute path name can be longer than PATH_MAX.
86485
86486 2005-03-27  Jim Meyering  <jim@meyering.net>
86487
86488         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86489
86490 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86491
86492         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86493         "one's complement" -> "ones' complement" in comment, as per Knuth.
86494         "value of type" -> "type or expression" in comment.
86495         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86496
86497 2005-03-26  Jim Meyering  <jim@meyering.net>
86498
86499         Comment nits.
86500         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86501         Correct typos: s/or/of/.
86502
86503 2005-03-26  Jim Meyering  <jim@meyering.net>
86504
86505         * modules/check-include-files: Move to ../ and rename to...
86506         * check-module: ...this.
86507
86508 2005-03-25  Jim Meyering  <jim@meyering.net>
86509
86510         * modules/xvasprintf (Files): Add xalloc.h.
86511
86512 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86513
86514         * modules/gettext (Files): config/config.rpath ->
86515         build-aux/config.rpath
86516         * modules/iconv (Files): Likewise.
86517         Problem reported by Oskar Liljeblad.
86518
86519 2005-03-23  Jim Meyering  <jim@meyering.net>
86520
86521         * modules/check-include-files: New script to check for
86522         missing dependencies, multiple includes, etc.
86523
86524         * modules/c-strtold (Depends-on): Add xalloc.
86525         * modules/c-strtod (Depends-on): Add xalloc.
86526         * modules/hash (Depends-on): Add xalloc.
86527         (Files): Remove lib/xalloc.h.
86528
86529         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86530         * modules/userspec (Files): Add lib/inttostr.h.
86531
86532 2005-03-23  Jim Meyering  <jim@meyering.net>
86533
86534         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86535
86536 2005-03-22  Jim Meyering  <jim@meyering.net>
86537
86538         * modules/stat-macros: New module.
86539         * modules/canonicalize, modules/euidaccess, modules/file-type,
86540         * modules/filemode, modules/lchown, modules/makepath,
86541         * modules/rmdir, modules/stat: Depend on new stat-macros module
86542         rather than listing lib/stat-macros.h manually.
86543         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86544
86545 2005-03-22  Jim Meyering  <jim@meyering.net>
86546
86547         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86548
86549 2005-03-22  Bruno Haible  <bruno@clisp.org>
86550
86551         * config/srclist.txt: Replace target directory 'config' with
86552         'build-aux'.
86553         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86554         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86555         ../build-aux/.
86556
86557 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86558
86559         * modules/chdir-long (Depends-on): Add mempcpy.
86560
86561         * modules/acl, modules/backupfile, modules/c-strtod,
86562         modules/c-strtold, modules/canon-host, modules/canonicalize,
86563         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86564         modules/exclude, modules/exitfail, modules/file-type,
86565         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86566         modules/getdate, modules/getline, modules/getpagesize,
86567         modules/getpass, modules/getugroups, modules/group-member,
86568         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86569         modules/inttostr, modules/long-options, modules/makepath,
86570         modules/md5, modules/memcasecmp, modules/memcoll,
86571         modules/modechange, modules/mountlist, modules/path-concat,
86572         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86573         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86574         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86575         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86576         modules/strftime, modules/strndup, modules/strverscmp,
86577         modules/timespec, modules/unlocked-io, modules/userspec,
86578         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86579         modules/yesno:
86580         Remove lib_SOURCES line from Makefile.am section, as this is now
86581         done automatically by the corresponding Autoconf macro.
86582
86583 2005-03-21  Jim Meyering  <jim@meyering.net>
86584
86585         Changes imported from coreutils.
86586
86587         * lib/cycle-check.c: Don't include xalloc.h.
86588
86589         * lib/path-concat.c: Don't include assert.h.
86590         (path_concat): Remove assertion that would have triggered
86591         for ABASE starting with more than one slash.
86592         Reported by Andreas Schwab.
86593
86594         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86595         properly when ABASE is an absolute file name.
86596         Correct the description of this function.
86597         Include <assert.h>.
86598         Add an assertion and a test driver.
86599         This fixes a bug introduced on 2004-07-02.
86600         Andreas Schwab reported the resulting failure of cp --parents:
86601         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86602
86603 2005-03-21  Jim Meyering  <jim@meyering.net>
86604
86605         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86606         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86607
86608 2005-03-21  Jim Meyering  <jim@meyering.net>
86609         and  Paul Eggert  <eggert@cs.ucla.edu>
86610
86611         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86612         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86613         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86614         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86615         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86616         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86617         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86618         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86619         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86620         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86621         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86622         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86623         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86624         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86625         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86626         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86627         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86628         for these modules.
86629
86630 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86631
86632         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86633         (which shouldn't happen), generate nothing instead of returning 0
86634         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86635
86636 2005-03-16  Bruno Haible  <bruno@clisp.org>
86637
86638         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86639         HAVE_LONGLONG_64BIT.
86640
86641 2005-03-16  Bruno Haible  <bruno@clisp.org>
86642
86643         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86644         HAVE_LONGLONG_64BIT.
86645
86646 2005-03-16  Bruno Haible  <bruno@clisp.org>
86647
86648         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86649         HAVE_LONGLONG_64BIT.
86650
86651 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86652
86653         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86654         reliably distinguish strftime failure from empty output on POSIX
86655         hosts.
86656
86657 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86658
86659         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86660         (iconv_string): Don't guess a size-zero buffer, as that might cause
86661         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86662         result would be 'too large', where 'too large' is (heuristically)
86663         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86664         overflow concerns.  This will prevent some unwanted malloc failures
86665         when the inputs are very large.
86666
86667 2005-03-15  Karl Berry  <karl@gnu.org>
86668
86669         * config/srclist.txt (config.rpath): from gettext.
86670         * config/config.rpath: update.
86671
86672 2005-03-15  Bruno Haible  <bruno@clisp.org>
86673
86674         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86675         to 'negate'.
86676
86677         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86678         variable.
86679
86680         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86681         results.
86682
86683 2005-03-14  Simon Josefsson  <jas@extundo.com>
86684
86685         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86686         <fx@gnu.org>.
86687
86688 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86689
86690         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86691         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86692         intprops.h.
86693         * lib/strtol.c: Likewise.
86694
86695 2005-03-14  Jim Meyering  <jim@meyering.net>
86696
86697         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86698         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86699         to be nonzero so that we (and caller) can detect the difference
86700         between a valid zero-length expansion and an error return, even
86701         when the underlying strftime fails before writing anything into
86702         that location.
86703
86704 2005-03-14  Bruno Haible  <bruno@clisp.org>
86705
86706         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86707         Update from GNU gettext 0.14.3.
86708
86709 2005-03-10  Jim Meyering  <jim@meyering.net>
86710
86711         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86712
86713 2005-03-10  Jim Meyering  <jim@meyering.net>
86714
86715         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86716         so that this module works on systems without fchdir.
86717
86718 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86719
86720         Factor int-properties macros into a single file, except for
86721         glibc-related files.
86722         * lib/intprops.h: New file.
86723         * lib/getloadavg.c: Include it instead of limits.h.
86724         (INT_STRLEN_BOUND): Remove.
86725         * lib/human.c: Include intprops.h.
86726         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86727         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86728         302/1000.
86729         * lib/inttostr.h: Include intprops.h instead of limits.h.
86730         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86731         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86732         for consistency with intprops.h.
86733         (time_t_is_integer, twos_complement_arithmetic): Use them.
86734         * lib/sig2str.h: Include <signal.h>, intprops.h.
86735         (INT_STRLEN_BOUND): Remove.
86736         * lib/strftime.c (TYPE_SIGNED): Remove.
86737         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86738         * lib/strtol.c: Adjust comments to match intprops.h.
86739         * lib/userspec.c: Include intprops.h.
86740         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86741         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86742         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86743         instead of rolling our own expressions.
86744         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86745
86746         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86747         instead of int.
86748         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86749         the right thing even if adding 1900 would overflow.  Similarly
86750         for tm_mon + 1 and tm_yday + 1.
86751         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86752         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86753         (DO_SIGNED_NUMBER): New macro.
86754         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86755
86756 2005-03-07  Bruno Haible  <bruno@clisp.org>
86757
86758         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86759
86760 2005-03-07  Bruno Haible  <bruno@clisp.org>
86761
86762         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86763
86764 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86765
86766         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86767         (func_import): Only replace files via --import when they have actually
86768         changed.
86769
86770 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86771
86772         * m4/mmap-anon.m4: New file.
86773         * m4/pagealign_alloc.m4: New file.
86774
86775 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86776             Bruno Haible  <bruno@clisp.org>
86777
86778         * modules/pagealign_alloc: New file.
86779         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86780
86781 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86782             Bruno Haible  <bruno@clisp.org>
86783
86784         * lib/pagealign_alloc.h: New file.
86785         * lib/pagealign_alloc.c: New file.
86786
86787 2005-03-03  Bruno Haible  <bruno@clisp.org>
86788
86789         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86790         Use an all-permissive copyright notice, recommended by RMS.
86791
86792 2005-03-02  Bruno Haible  <bruno@clisp.org>
86793
86794         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86795         of AIX, the replacement has to be done only after <string.h> is
86796         included, therefore not in config.h. stpncpy.h does the replacement,
86797         and stpncpy.c uses it.
86798
86799 2005-03-02  Bruno Haible  <bruno@clisp.org>
86800
86801         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86802         stpncpy.c uses it.
86803
86804 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86805
86806         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86807         The workaround isn't strictly needed for POSIX conformance, and
86808         it's too much of a pain to configure and maintain.  We'll ask
86809         people to fix their kernels instead.
86810         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86811         (NANOSLEEP_BUG_WORKAROUND): Remove.
86812         (xnanosleep): Remove the workaround.
86813
86814 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86815
86816         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86817         Reported by Derek Price.
86818         (Include): Add "timespec.h".
86819
86820         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86821
86822 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86823
86824         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86825         to detect nanosleep bug.
86826
86827 2005-03-01  Bruno Haible  <bruno@clisp.org>
86828
86829         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86830
86831 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86832
86833         * modules/gethrxtime: New file.
86834         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86835         (Depends-on): Add gethrxtime.
86836         (configure.ac): Add gl_XNANOSLEEP.
86837         (Makefile.am): Remove lib_SOURCES line.
86838
86839 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86840
86841         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86842         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86843
86844 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86845
86846         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86847         * lib/timespec.h (gettime): Return void, since it always
86848         succeeds now.  All uses changed.
86849         * lib/gettime.c (gettime): Likewise.
86850         [HAVE_NANOTIME]: Prefer nanotime.
86851         Assume gettimeofday succeeds, as POSIX requires.
86852         Assime time () succeeds, since other code already does.
86853         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86854         (timespec_subtract): Remove.
86855         (NANOSLEEP_BUG_WORKAROUND): New constant.
86856         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86857         things considerably.  Use it only on GNU/Linux hosts, since the
86858         workaround shouldn't be needed elsewhere.
86859
86860 2005-02-24  Bruno Haible  <bruno@clisp.org>
86861
86862         * modules/gettext (Files): Add m4/glibc2.m4.
86863
86864 2005-02-24  Bruno Haible  <bruno@clisp.org>
86865
86866         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86867         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86868         * m4/progtest.m4:
86869         Update from GNU gettext 0.14.2.
86870         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86871
86872 2005-02-24  Bruno Haible  <bruno@clisp.org>
86873
86874         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86875         * lib/config.charset: Update from GNU gettext 0.14.2.
86876
86877 2005-02-24  Bruno Haible  <bruno@clisp.org>
86878
86879         * lib/gettext.h: Update from GNU gettext 0.14.2.
86880
86881 2005-02-23  Simon Josefsson  <jas@extundo.com>
86882
86883         * m4/iconvme.m4: New file.
86884
86885 2005-02-23  Jim Meyering  <jim@meyering.net>
86886
86887         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86888         change.
86889         Thanks to Bruno Haible for catching it.
86890
86891 2005-02-22  Simon Josefsson  <jas@extundo.com>
86892
86893         * modules/iconvme: New file.
86894
86895         * MODULES.html.sh: Add iconvme.
86896
86897 2005-02-22  Simon Josefsson  <jas@extundo.com>
86898
86899         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86900
86901 2005-02-22  Simon Josefsson  <jas@extundo.com>
86902
86903         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86904
86905 2005-02-22  Jim Meyering  <jim@meyering.net>
86906
86907         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86908         s/ifndef/ifdef/.
86909
86910 2005-02-20  Neil Conway  <neilc@samurai.com>
86911
86912         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86913         returned by OSX/Darwin if the specified buffer is not large
86914         enough for the hostname.
86915
86916 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86917
86918         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86919         pass it to _help, otherwise the latter coredumps trying to
86920         dereference state.root_argp.
86921
86922 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86923
86924         * modules/chdir-long (Depends-on): Add memrchr.
86925         * modules/memrchr (Files): Add lib/memrchr.h.
86926         (Include): "memrchr.h".
86927
86928 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86929
86930         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86931
86932 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86933
86934         * lib/memrchr.h: New file.
86935         * lib/chdir-long.c: Include it.
86936         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86937         Don't bother including stddef.h.
86938
86939 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86940
86941         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86942         inclusion.
86943         Include <sys/types.h>, for dev_t.
86944         (ME_DUMMY, ME_REMOTE): Move from here....
86945         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86946         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86947         Dmitry V. Levin.
86948         Include mountlist.h first, to test the interface.
86949
86950 2005-01-29  Bruno Haible  <bruno@clisp.org>
86951
86952         * lib/progname.c (program_name): Initialize.
86953         Needed when linking statically on MacOS X.
86954
86955 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86956
86957         Sync from coreutils.
86958         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86959         (Depends-on): Add c-strtod.
86960         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86961
86962 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         Sync from coreutils.
86965         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86966
86967         Remove files that are specific to coreutils.
86968         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86969
86970 2005-01-28  Bruno Haible  <bruno@clisp.org>
86971
86972         * modules/javacomp: New file.
86973         * MODULES.html.sh (Java): Add javacomp.
86974
86975 2005-01-28  Bruno Haible  <bruno@clisp.org>
86976
86977         * m4/javacomp.m4: New file, from GNU gettext.
86978
86979 2005-01-28  Bruno Haible  <bruno@clisp.org>
86980
86981         * lib/javacomp.sh.in: New file, from GNU gettext.
86982         * lib/javacomp.h: New file, from GNU gettext.
86983         * lib/javacomp.c: New file, from GNU gettext.
86984
86985 2005-01-26  Simon Josefsson  <jas@extundo.com>
86986
86987         * lib/gai_strerror.c: Use GPL in header.
86988
86989 2005-01-26  Bruno Haible  <bruno@clisp.org>
86990
86991         * modules/javaexec: New file.
86992         * MODULES.html.sh (Java): Add javaexec.
86993
86994 2005-01-26  Bruno Haible  <bruno@clisp.org>
86995
86996         * m4/javaexec.m4: New file, from GNU gettext.
86997
86998 2005-01-26  Bruno Haible  <bruno@clisp.org>
86999
87000         * lib/javaexec.sh.in: New file, from GNU gettext.
87001         * lib/javaexec.h: New file, from GNU gettext.
87002         * lib/javaexec.c: New file, from GNU gettext.
87003
87004 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87005
87006         * modules/lchown (Depends-on): Remove lchown.h
87007
87008 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87009
87010         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87011         must be defined if the header file was not found, in order
87012         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87013
87014 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87015
87016         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87017         initializers for struct pentry_state.
87018         (__argp_error): Check return value of __asprintf
87019         (__argp_failure): Translate error message
87020
87021         * lib/argp-parse.c: Removed braces around the expansion of N_()
87022
87023 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87024
87025         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87026         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87027         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87028         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87029         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87030         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87031         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87032         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87033         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87034         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87035         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87036         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87037         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87038         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87039         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87040         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87041         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87042         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87043         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87044         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87045         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87046         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87047         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87048         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87049         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87050         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87051         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87052         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87053         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87054         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87055         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87056         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87057         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87058         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87059         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87060         Use an all-permissive copyright notice, recommended by RMS.
87061
87062 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87063
87064         * modules/chdir-long (Depends-on): Remove mempcpy.
87065
87066 2005-01-21  Jim Meyering  <jim@meyering.net>
87067
87068         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87069         same value as for Solaris 9.
87070
87071         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87072         component length.  This included changing the parameter to be
87073         of type `char *' rather than `char const *'.
87074         * lib/chdir-long.h (chdir_long): Update prototype.
87075
87076         * lib/openat.c (fdopendir, fstatat): New functions.
87077         * lib/openat.h: Include headers required for use of DIR and struct
87078         stat.
87079         [AT_SYMLINK_NOFOLLOW]: Define.
87080         (fdopendir, fstatat): Add prototypes.
87081
87082 2005-01-21  Bruno Haible  <bruno@clisp.org>
87083
87084         * modules/classpath: New file.
87085         * MODULES.html.sh (Java): Add classpath.
87086
87087 2005-01-21  Bruno Haible  <bruno@clisp.org>
87088
87089         * lib/classpath.h: New file, from GNU gettext.
87090         * lib/classpath.c: New file, from GNU gettext.
87091
87092 2005-01-20  Simon Josefsson  <jas@extundo.com>
87093
87094         * modules/version-etc-fsf: New file.
87095
87096 2005-01-20  Simon Josefsson  <jas@extundo.com>
87097
87098         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87099         * lib/version-etc.c: Remove version_etc_copyright.
87100         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87101         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87102
87103 2005-01-20  Simon Josefsson  <jas@extundo.com>
87104
87105         * lib/base64.h (isbase64): Add.
87106
87107         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87108         using a unsigned prototype, don't inline.
87109         (base64_decode): Use it.
87110
87111 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87112
87113         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87114         it.
87115
87116 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87117
87118         * lib/save-cwd.c (save_cwd): Remove code to support the case
87119         where fchdir is missing or flaky.
87120
87121 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87122
87123         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87124
87125 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87126
87127         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87128         AC_LIBSOURCES now does this.
87129         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87130         with new ullong_max module.
87131
87132 2005-01-19  Bruno Haible  <bruno@clisp.org>
87133
87134         * modules/sh-quote: New file.
87135         * MODULES.html.sh (Executing programs): Add sh-quote.
87136
87137 2005-01-19  Bruno Haible  <bruno@clisp.org>
87138
87139         * lib/sh-quote.h: New file, from GNU gettext.
87140         * lib/sh-quote.c: New file, from GNU gettext.
87141
87142 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87143
87144         Merge from coreutils.
87145         * m4/ullong_max.m4: New file.
87146         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87147         (gl_MACROS): Assume localeconv exists.
87148
87149 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87150
87151         Merge changes from coreutils, as described below in several
87152         changelogs dated today.
87153
87154         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87155         (O_DIRECTORY): Remove; not needed here, since "." must be
87156         a directory.  All uses removed.
87157         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87158         universal on Suns, and we also need to test for IRIX.
87159         Revamp code to use 'if' rather than '#if'.
87160         Avoid unnecessary comparison of cwd->desc to 0.
87161
87162         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87163         for known valid error numbers rather than observed invalid ones.
87164
87165 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87166
87167         * modules/ullong_max: New file.
87168
87169         * modules/chdir-long, modules/openat: New files.
87170         * modules/save-cwd (Depends-on): Depend on chdir-long.
87171         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87172
87173 2005-01-18  Jim Meyering  <jim@meyering.net>
87174
87175         Merge from coreutils.
87176         * m4/chdir-long.m4, m4/openat.m4: New files.
87177         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87178         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87179         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87180         is sane and DOES follow symlinks.  Besides, testing 20 different
87181         systems found no broken chown implementations.
87182         Prompted by a change in rsync's copy of this macro.
87183         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87184
87185         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87186
87187         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87188         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87189         NULL-means-set-to-current-time semantics.
87190         Remove temporary file immediately, rather than waiting
87191         for configure's at-exit trap code to do it.
87192
87193 2005-01-18  Jim Meyering  <jim@meyering.net>
87194
87195         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87196
87197         * lib/utimens.c (futimens): Account for the fact that futimes
87198         can also fail with errno == ENOSYS or errno == ENOENT.
87199         Patch from Dmitry V. Levin.
87200
87201         Change the name of the robust chdir function from chdir to chdir_long.
87202         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87203         (restore_cwd): Use chdir_long, not chdir.
87204         * lib/chdir-long.c: Renamed from chdir.c.
87205         * lib/chdir-long.h: Renamed from chdir.h.
87206         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87207         Hurd.
87208
87209 2005-01-18  Bruno Haible  <bruno@clisp.org>
87210
87211         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87212         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87213         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87214         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87215         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87216         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87217         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87218         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87219         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87220         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87221         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87222         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87223         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87224         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87225         Use an all-permissive copyright notice, recommended by RMS.
87226
87227 2005-01-18  Bob Proulx  <bob@proulx.com>
87228
87229         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87230         simplify offsetof() macro construct to avoid compile failure with
87231         native HP-UX 11.0 ANSI C compiler.
87232
87233 2005-01-17  Bruno Haible  <bruno@clisp.org>
87234
87235         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87236         redundant because stpncpy.m4 takes care of it.
87237
87238 2005-01-17  Bruno Haible  <bruno@clisp.org>
87239
87240         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87241
87242 2005-01-17  Bruno Haible  <bruno@clisp.org>
87243
87244         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87245         used.
87246
87247 2005-01-17  Bruno Haible  <bruno@clisp.org>
87248
87249         * lib/fwriteerror.h (fwriteerror): Change specification to include
87250         fclose.
87251         * lib/fwriteerror.c: Include <stdbool.h>.
87252         (fwriteerror): At the end, close the file stream. Record whether
87253         stdout was already closed.
87254
87255 2005-01-17  Bruno Haible  <bruno@clisp.org>
87256
87257         * lib/execute.c (environ): Declare if needed.
87258         * lib/pipe.c (environ): Likewise.
87259         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87260
87261 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87262
87263         * modules/argp: Depend on vsnprintf
87264
87265 2005-01-10  Jim Meyering  <jim@meyering.net>
87266
87267         * modules/closeout (Depends-on): Add atexit.
87268
87269 2005-01-06  Bruno Haible  <bruno@clisp.org>
87270
87271         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87272
87273 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87274
87275         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87276         definitions to be after all include files, to avoid collisions.
87277         Problem reported by Bob Proulx.
87278
87279 2005-01-04  Jim Meyering  <jim@meyering.net>
87280
87281         Changes imported from coreutils.
87282         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87283         as the mkstemp template, use a temporary directory and an
87284         8.3-friendly template to avoid trouble on systems like DJGPP.
87285         Reported by Juan M. Guerrero via Stepan Kasal.
87286         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87287         close. Remove the temporary directory right away, rather than waiting
87288         for configure's at-exit trap code to do it.
87289         Suggestion from Stepan Kasal.
87290
87291 2005-01-01  Simon Josefsson  <jas@extundo.com>
87292
87293         * gnulib-tool: Print #include directives when --import'ing.
87294
87295 2004-12-28  Simon Josefsson  <jas@extundo.com>
87296
87297         * tests/test-base64.c: Include required header files.  Remove
87298         unused variables.
87299
87300 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87301
87302         * modules/error (Depends-on): Remove gettext.
87303
87304 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87305
87306         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87307         not needed.  This removes a dependency on the gettext module.
87308         [defined _LIBC]: Do not include <libintl.h>; not needed.
87309
87310 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87311
87312         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87313         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87314
87315 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87316
87317         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87318         HAVE_DECL_STRTOLD.
87319
87320 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87321
87322         * modules/getdate (Depends-on): Remove alloca-opt.
87323
87324 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87325
87326         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87327
87328 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87329
87330         * lib/argp-parse.c: Include <stddef.h>.
87331         (alignof, alignto): New macros.
87332         (parser_init): Don't assume that void * is aligned sufficiently
87333         for struct option.
87334
87335         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87336         need to extend the stack.
87337         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87338         large.
87339
87340 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87341
87342         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87343
87344 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87345
87346         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87347         (2004-10-24) change.  Apparently this was a false alarm.
87348
87349         * modules/getdate: Depend on alloca-opt, not alloca.
87350
87351 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87352
87353         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87354         Remove now-obsolete comment about AIX.
87355         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87356         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87357         (YYMAXDEPTH): New macro.
87358
87359 2004-12-18  Simon Josefsson  <jas@extundo.com>
87360
87361         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87362
87363 2004-12-18  Bruno Haible  <bruno@clisp.org>
87364
87365         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87366
87367 2004-12-18  Bruno Haible  <bruno@clisp.org>
87368
87369         * lib/fatal-signal.c (fatal_signals): Make non-const.
87370         (init_fatal_signals): New function.
87371         (uninstall_handlers, install_handlers): Ignore signals that were set to
87372         SIG_IGN.
87373         (at_fatal_signal): Call init_fatal_signals.
87374         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87375         SIG_IGN.
87376         Reported by Paul Eggert.
87377
87378 2004-12-18  Bruno Haible  <bruno@clisp.org>
87379
87380         * doc/alloca.texi: New file.
87381         * doc/alloca-opt.texi: New file.
87382
87383 2004-12-17  Jim Meyering  <jim@meyering.net>
87384
87385         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87386         Otherwise, install-sh could exit with improper exit status when
87387         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87388
87389 2004-12-16  Simon Josefsson  <jas@extundo.com>
87390
87391         * tests/test-base64.c: Add license.
87392
87393 2004-12-15  Stepan Kasal  <address@hidden>
87394
87395         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87396
87397 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87398
87399         * modules/getcwd (Files): Add m4/d-ino.m4.
87400         Suggested by Mark D. Baushke.
87401
87402 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87403
87404         * lib/getdate.y (textint): New member "negative".
87405         (time_zone_hhmm): New function.
87406         Expect 14 shift-reduce conflicts, not 13.
87407         (o_colon_minutes): New rule.
87408         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87409         (yylex): Set the "negative" member of signed numbers.
87410
87411 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87412
87413         * doc/getdate.texi (Time of day items, Time zone items):
87414         Describe new formats +00:00, UTC+00:00.
87415
87416 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87417
87418         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87419         spurious "-l"s.  Problem reported by Stepan Kasal.
87420
87421 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87422
87423         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87424         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87425
87426 2004-12-04  Simon Josefsson  <jas@extundo.com>
87427
87428         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87429         Vandoorselaere <yoann@prelude-ids.org>.
87430
87431 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87432
87433         Changes imported from coreutils.
87434         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87435         exist.
87436         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87437
87438 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87439
87440         Changes imported from coreutils.
87441         * lib/hard-locale.c: Assume <locale.h> exists.
87442         Include "strdup.h".
87443         (GLIBC_VERSION): New macro.
87444         (hard_locale): Assume setlocale exists.
87445         Rewrite to avoid #ifdef.
87446         Use strdup rather than malloc + strcpy.
87447         * lib/human.c: Assume <locale.h> exists.
87448         (human_readable): Assume localeconv exists.
87449
87450 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87451
87452         * modules/hard-locale (Depends-on): Add strdup.
87453
87454 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87455
87456         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87457         convert T2, not T.  (Imported from libc.)
87458
87459 2004-11-30  Simon Josefsson  <jas@extundo.com>
87460
87461         * modules/restrict (License): Change to LGPL.
87462
87463 2004-11-30  Simon Josefsson  <jas@extundo.com>
87464
87465         * m4/restrict.m4: Add copyright and copying conditions.
87466
87467 2004-11-30  Simon Josefsson  <jas@extundo.com>
87468
87469         * m4/base64.m4: New file.
87470
87471 2004-11-30  Simon Josefsson  <jas@extundo.com>
87472
87473         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87474         base64.
87475
87476         * tests/test-base64.c: New file.
87477
87478         * modules/base64: New file.
87479
87480 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87481
87482         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87483         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87484
87485         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87486
87487 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87488
87489         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87490         (__getcwd.c): Don't restore errno; glibc doesn't.
87491         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87492         first, falling back to our code only if its results look suspicious.
87493         Ensure that the resulting buffer is only as large as necessary.
87494
87495         * lib/readutmp.c: Include readutmp.h first.
87496         Include <errno.h>, since readutmp.h no longer does that.
87497         * lib/readutmp.h: Don't include <errno.h>,
87498         <sys/param.h>, <time.h>; not needed to establish interface.
87499         (errno): Remove decl.
87500         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87501         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87502         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87503
87504 2004-11-28  Simon Josefsson  <jas@extundo.com>
87505
87506         * lib/base64.h, base64.c: New file.
87507
87508 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87509
87510         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87511
87512 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87513
87514         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87515         (Depends-on): Remove pathmax, same.  Add mempcpy.
87516         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87517         (Makefile.am): Append getcwd.h to lib_SOURCES.
87518         (Include): Add getcwd.h.
87519         (Maintainer): Change from Jim Meyering to "all, glibc",
87520         since getdate now uses intended-for-glibc code.
87521         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87522         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87523
87524 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87525
87526         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87527         HP's ANSI C compiler.
87528         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87529         Declaring int functions causes warnings on some modern systems and
87530         shouldn't be needed to compile on ancient ones.
87531         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87532         defined.
87533
87534         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87535         with the following changes.
87536         (__set_errno): Parenthesize properly.
87537         Include <stdbool.h>.
87538         (MIN, MAX, MATCHING_INO): New macros.
87539         (__getcwd): Define with prototype, not K&R form.
87540         Use heuristics to allocate default buffer on stack if possible.
87541         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87542         behavior, and to avoid the PATH_MAX limit when computing
87543         ../../../../...
87544         Use MATCHING_INO to compare inode number to file.
87545         Check for arithmetic overflow in size calculations.
87546         Fix bug in reallocation of dot array that caused getcwd to fail
87547         on directories nested deeper than 75.
87548         Be more careful about saving errno on error.
87549         Do not use realloc; use only free+malloc, as this is a bit
87550         more flexible and avoids a needless copy operation.
87551         Do not inspect st_dev and st_ino for symbolic links; POSIX
87552         doesn't specify the latter.
87553         Check for closedir errors.
87554         Avoid needless casts.
87555         Use "#ifdef weak_alias" around weak_alias, to be like other
87556         glibc code.
87557         The following changes to getcwd.c have effect only when used in
87558         gnulib; they have no effect inside glibc proper.
87559         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87560         as alloca isn't used.
87561         (alloca, __alloca): Likewise.
87562         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87563         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87564         unconditionally, as gnulib assumes C89 or better.
87565         Do not include <sys/param.h>.
87566         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87567         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87568         better.
87569         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87570         Include <dirent.h> in a way that is compatible with modern Autoconf.
87571         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87572         New macros, if not already defined.
87573         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87574         Use "_LIBC", not "defined _LIBC", for consistency.
87575         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87576         a mempcpy module.
87577         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87578         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87579         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87580         credit only to Jim Meyering and adjust the copyright dates.
87581         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87582         <stdlib.h>, <unistd.h>, "pathmax.h".
87583         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87584         (INITIAL_BUFFER_SIZE): Remove.
87585         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87586
87587 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87588
87589         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87590         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87591         Use the _ONCE methods, for efficiency.
87592         Check for fcntl.h.  In test program, include <errno.h>
87593         and <fcntl.h> if available.  Remove old K&R cruft from
87594         test program.  Check for common errors in GNU/Linux,
87595         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87596         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87597         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87598         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87599         name accordingly.
87600         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87601         accommodate new getcwd.c.
87602         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87603         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87604         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87605         that's all we need now.
87606
87607 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87608
87609         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87610         argp-parse.c depends on getopt internals, that means we should
87611         always use our getopt, to be on the safe side.
87612         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87613         order not to spoil the result of an eventual previous invocation
87614         of gl_GETOPT_SUBSTITUTE.
87615
87616 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87617
87618         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87619         redefinition warnings. To avoid them, include the defines
87620         in `#if !defined __need_getopt ... #endif'. The only place
87621         where __getopt_argv_const is used is in definitions
87622         of getopt_long and getopt_long_only below, which are as well
87623         protected by `#ifndef __need_getopt'.
87624         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87625         __need_getopt after including <stdio.h> and <unistd.h> These
87626         headers might have defined it.
87627
87628 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87629
87630         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87631
87632 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87633
87634         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87635         (futimens): New function, which uses futimes if available.
87636         (futimens, utimens): Support timespec==NULL, with same semantics
87637         as utime and utimens.
87638         * lib/utimens.h (futimens): New decl.
87639
87640 2004-11-23  Jim Meyering  <jim@meyering.net>
87641
87642         * lib/getopt_.h: Remove trailing blanks.
87643
87644 2004-11-23  Jim Meyering  <jim@meyering.net>
87645
87646         * lib/__fpending.c: Add comment.
87647
87648 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87649
87650         * modules/canonicalize (Depends-on): Add xreadlink.
87651         Problem reported by James Youngman.
87652
87653 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87654
87655         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87656         New macros.
87657         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87658         optopt): Use them instead of invoking ## directly; otherwise, the
87659         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87660
87661 2004-11-19  Bruno Haible  <bruno@clisp.org>
87662
87663         * lib/strtok_r.c: Move comments from here...
87664         * lib/strtok_r.h: ... to here.
87665
87666 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87667
87668         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87669         implementations that mishandle size_t overflow.
87670
87671 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87672
87673         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87674         might fail.  Problem reported by Yoann Vandoorselaere.
87675         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87676         implementations that mishandle size_t overflow.
87677
87678 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87679
87680         * modules/canon-host (Depends-on): Add strdup.
87681
87682 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87683
87684         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87685
87686 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87687
87688         * lib/canon-host.c: Include "strdup.h".
87689         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87690         Use strdup instead of malloc/strcpy to duplicate strings.
87691
87692         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87693         (human_space_before_unit): New constant.
87694         * lib/human.c (human_readable): Support it.
87695
87696         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87697         (xgetcwd): Set errno correctly when failing.
87698         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87699         the failure is actually due to a PATH_MAX problem.
87700
87701         Further getopt changes to make it more likely that glibc will
87702         buy the changes back.
87703         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87704         (getopt): Use it, so to preserve glibc semantic
87705         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87706         when compiling for libc.
87707         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87708         (getopt_long, getopt_long_only): Use it.
87709
87710         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87711         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87712         (getopt): Argv is now char * const *, as per standard.
87713         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87714         not char *__getopt_argv_const *.
87715         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87716         _getopt_long_only_r): Likewise.
87717         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87718         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87719         _getopt_long_r, _getopt_long_only_r): Likewise.
87720         * lib/getopt_.h (__getopt_argv_const): Remove.
87721         (getopt): Argv is now char * const *, as per standard.
87722
87723         * lib/getdate.y (tORDINAL): New token.
87724         (day, relunit): Allow it for relative times.
87725         (relative_time_table): Use tORDINAL for ordinals.
87726
87727 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87728
87729         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87730         Document that "second" isn't allowed as an ordinal number.
87731
87732 2004-11-16  Jim Meyering  <jim@meyering.net>
87733
87734         * modules/closeout (Depends-on): Add fpending.
87735
87736 2004-11-15  Jim Meyering  <jim@meyering.net>
87737
87738         * lib/closeout.c: Include "__fpending.h" once again.
87739         Include <stdbool.h>.
87740         (close_stdout): Don't fail just because stdout was closed initially,
87741         since some programs don't write to stdout in the normal course of
87742         operation (other than --version and --help), and we don't want this
87743         function to make e.g. `touch file >&-' fail.
87744         But do fail if it was closed and someone has tried to write to it.
87745         E.g., `printf foo >&-' must fail.
87746
87747 2004-11-13  Jim Meyering  <jim@meyering.net>
87748
87749         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87750
87751 2004-11-12  Simon Josefsson  <jas@extundo.com>
87752
87753         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87754         small doc fix is still pending.
87755
87756 2004-11-11  Simon Josefsson  <jas@extundo.com>
87757
87758         * modules/strtok_r: New file.
87759
87760         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87761         strtok_r.
87762
87763 2004-11-11  Simon Josefsson  <jas@extundo.com>
87764
87765         * m4/strtok_r.m4: New file.
87766
87767         * m4/getopt.m4: Replace opterr.
87768
87769 2004-11-11  Simon Josefsson  <jas@extundo.com>
87770
87771         * lib/strtok_r.h, strtok_r.c: New file.
87772
87773 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87774
87775         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87776         of replacing opterr, getopt, etc.  This should handle the
87777         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87778
87779 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87780
87781         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87782         we can stop lying to compilers about the constness of argv when we
87783         are compiled outside glibc.
87784         (getopt, getopt_long, getopt_long_only): Use it.
87785         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87786         _getopt_internal, getopt): Likewise.
87787         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87788         _getopt_long_only_r): Likewise.
87789         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87790         _getopt_long_r, _getopt_long_only_r): Likewise.
87791
87792         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87793         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87794         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87795         the other external symbols.
87796         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87797         declaration, since the above renaming now works around collisions.
87798
87799 2004-11-11  Jim Meyering  <jim@meyering.net>
87800
87801         * lib/linebreak.c: Remove trailing blanks.
87802         * lib/alloca_.h: Likewise.
87803         * lib/acosl.c: Likewise.
87804         * lib/euidaccess.c: Likewise.
87805         * lib/allocsa.h: Likewise.
87806
87807 2004-11-10  Simon Josefsson  <jas@extundo.com>
87808
87809         * m4/getaddrinfo.m4: New file.
87810
87811 2004-11-10  Simon Josefsson  <jas@extundo.com>
87812
87813         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87814
87815 2004-11-10  Simon Josefsson  <jas@extundo.com>
87816
87817         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87818         getaddrinfo.
87819
87820         * modules/getaddrinfo: New file.
87821
87822 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87823
87824         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87825
87826 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87827
87828         * lib/mktime.c (SHR): New macro, which is a portable
87829         substitute for >> that should work even on Crays.
87830         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87831         Problem reported by Mark D. Baushke in
87832         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87833         * lib/getdate.y (SHR): Likewise.
87834         (tm_diff): Use it.
87835         * lib/strftime.c (SHR): Likewise.
87836         (tm_diff): Use it.
87837         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87838         quote_these_too, so that right shifts are well defined.  All uses
87839         changed.
87840
87841 2004-11-10  Jim Meyering  <jim@meyering.net>
87842
87843         Ensure that no close failure goes unreported.
87844         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87845         return early when it seems there's nothing to flush.
87846         Don't include __fpending.h.
87847
87848 2004-11-10  Jim Meyering  <jim@meyering.net>
87849
87850         * modules/closeout (Depends-on): Remove fpending.
87851
87852 2004-11-10  Jim Meyering  <jim@meyering.net>
87853
87854         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87855
87856 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87857
87858         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87859         gl_FUNC_STRFTIME.
87860         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87861         and AC_REQUIRE when possible, to avoid duplicate checks.
87862         Check for <wchar.h>.
87863
87864 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87865
87866         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87867
87868 2004-11-09  Bruno Haible  <bruno@clisp.org>
87869
87870         * m4/sockpfaf.m4: New file.
87871
87872 2004-11-05  Bruno Haible  <bruno@clisp.org>
87873
87874         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87875         Reported by Mark D. Baushke <mdb@cvshome.org>.
87876
87877 2004-11-04  Bruno Haible  <bruno@clisp.org>
87878
87879         2004-09-11  Bruno Haible  <bruno@clisp.org>
87880                 * allocsa.valgrind: New file.
87881         2004-02-06  Bruno Haible  <bruno@clisp.org>
87882                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87883                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87884                 Reported by Christopher Seip <chris.seip@hp.com>.
87885
87886 2004-11-04  Bruno Haible  <bruno@clisp.org>
87887
87888         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87889         (Makefile.am): Distribute it.
87890
87891 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87892
87893         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87894         with errno == ERANGE if the buffer is too small.
87895         Problem reported by Mark D. Baushke.
87896
87897 2004-11-03  Albert Chin  <china@thewrittenword.com>
87898             Paul Eggert  <eggert@cs.ucla.edu>
87899
87900         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87901         equivalent, substitute $ac_type for equivalent type rather than
87902         blindly using uint32_t *always* which won't work if uint32_t is not
87903         available.  Define _UINT32_T to work around typedef of uint32_t if
87904         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87905         2.5.1.
87906
87907 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87908
87909         * m4/jm-macros.m4: Sync from coreutils.
87910         (gl_MACROS): Check for mbrlen, for pathchk.
87911         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87912
87913 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87914
87915         * lib/xreadlink.c (MAXSIZE): New macro.
87916         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87917         size does not exceed MAXSIZE.  Avoid cast.
87918         As suggested by Mark D. Baushke in
87919         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87920         if readlink fails with buffer size just under MAXSIZE, try again
87921         with MAXSIZE.
87922
87923 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87924
87925         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87926
87927 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87928         and  Paul Eggert  <eggert@cs.ucla.edu>
87929
87930         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87931         (get_date): Overparenthesize to avoid GCC warning.
87932
87933 2004-11-02  Bruno Haible  <bruno@clisp.org>
87934
87935         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87936         returns void.
87937
87938 2004-11-02  Bruno Haible  <bruno@clisp.org>
87939
87940         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87941         function returns void.
87942
87943 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87944
87945         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87946         fflush_unlocked, flockfile, funlockfile, funlockfile,
87947         fputs_unlocked, putc_unlocked.
87948
87949 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87950
87951         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87952         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87953         already declared.
87954
87955 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87956
87957         * modules/getdate (Files): Add doc/getdate.texi.
87958         (Depends-on): Add setenv, xalloc.
87959
87960 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87961
87962         * lib/getdate.y: Add support for TZ="foo" within a date string.
87963         Fix some bugs near time_t boundaries.  Reject dates with
87964         out-of-range components, e.g., "Sept 31".
87965         Include <stdlib.h>, "setenv.h", "xalloc.h".
87966         (ISDIGIT_LOCALE): Remove; unused.
87967         Note that the TZ and time functions used here are not reentrant.
87968         (mktime_ok, get_tz): New functions.
87969         (TZBUFSIZE): New constant.
87970         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87971         This requires that we sometimes generate our own TZ="XXX..." setting.
87972
87973 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87974
87975         * doc/getdate.texi: New file, from coreutils with modifications for
87976         the new TZ parsing.
87977
87978 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87979
87980         * lib/mktime.c (not_equal_tm): Remove redundant check.
87981
87982 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87983
87984         * modules/regex (lib_SOURCES): Add regex.c.
87985         Reported by James Youngman in
87986         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87987
87988 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87989
87990         * lib/getdate.y: Use Bison 1.875 features, and some minor
87991         code cleanups.  This change does not affect semantics.
87992         Don't include <stdlib.h>; no longer needed.
87993         Don't include unlocked-io.h; only the "#if TEST" code uses
87994         stdio, and performance isn't crucial there.
87995         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87996         Bison 1.875 features as described below.
87997         All uses of "PC." replaced by "pc->".
87998         (YYSTYPE): Add a forward declaration.
87999         (yylex, yyerror): Use full prototypes in forward decls.
88000         Use "%pure-parser" rather than obsolescent "%pure_parser".
88001         Use %parse-param and %lex-param instead of obsolescent
88002         YYPARSE_PARAM and YYLEX_PARAM.
88003         (meridian_table, month_and_day_table, time_units_table,
88004         relative_time_table, time_zone_table, military_table,
88005         lookup_zone, lookup_word, get_date):
88006         Use NULL instead of 0 where appropriate.
88007         (to_hour): Avoid abort (), to avoid a dependency on
88008         stdlib.h.
88009         (yyerror, yylex): Now accepts parser_control * arg.
88010         (main) [TEST]: Use '\0' rather than 0 for char.
88011
88012 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88013
88014         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88015
88016 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88017
88018         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88019         It's now the caller's responsibility to handle the case where
88020         !HAVE_GETPAGESIZE && !defined getpagesize.
88021
88022         * lib/mktime.c (leapyear): Arg is long int, not int.
88023
88024 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88025
88026         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88027
88028 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88029
88030         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88031         missing.  Problem reported by James Youngman.
88032
88033 2004-10-16  Simon Josefsson  <jas@extundo.com>
88034
88035         * gnulib-tool: Fix comments.  Fix parse problem.
88036         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88037
88038 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88039
88040         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88041         implementation of getopt_long.  Problem reported by Alexander Taler in:
88042         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88043
88044 2004-10-15  Bruno Haible  <bruno@clisp.org>
88045
88046         * gnulib-tool: Untabify. Initialize supplied_libname.
88047         (func_usage): More homogenous output.
88048         (func_modules_transitive_closure, func_modules_to_filelist,
88049         func_emit_lib_Makefile_am): New functions.
88050         (func_import): New function, extracted from big case statement. Use
88051         func_get_license, func_modules_transitive_closure,
88052         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88053         opt_lgpl. Don't use test -a, as it's not portable.
88054         (func_create_testdir): Use func_modules_transitive_closure,
88055         func_modules_to_filelist, func_emit_lib_Makefile_am.
88056
88057 2004-10-15  Bruno Haible  <bruno@clisp.org>
88058
88059         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88060
88061 2004-10-15  Bruno Haible  <bruno@clisp.org>
88062
88063         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88064         the portions belonging to each module.
88065         Suggested by Derek Robert Price <derek@ximbiot.com>.
88066
88067 2004-10-12  Simon Josefsson  <jas@extundo.com>
88068
88069         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88070         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88071         to real functions.
88072
88073 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88074
88075         * modules/vsnprintf: New file.
88076
88077 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88078
88079         * m4/vsnprintf.m4: New file.
88080
88081 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88082
88083         * lib/vsnprintf.h: New file.
88084         * lib/vsnprintf.c: New file.
88085
88086 2004-10-11  Bruno Haible  <bruno@clisp.org>
88087
88088         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88089         vsnprintf.
88090
88091 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88092
88093         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88094
88095 2004-10-07  Bruno Haible  <bruno@clisp.org>
88096
88097         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88098         fits into the provided buffer.
88099
88100 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88101
88102         * lib/diacrit.c, diacrit.h: Add GPL notice.
88103
88104         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88105         notice.
88106         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88107         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88108         This avoids a potential constant-folding bug.
88109
88110 2004-10-05  Bruno Haible  <bruno@clisp.org>
88111
88112         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88113         for the declaration of strsep.
88114
88115 2004-10-05  Bruno Haible  <bruno@clisp.org>
88116
88117         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88118
88119 2004-10-04  Simon Josefsson  <jas@extundo.com>
88120
88121         * modules/memmem: New file.
88122         * tests/test-memmem.c: New file.
88123         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88124
88125 2004-10-04  Simon Josefsson  <jas@extundo.com>
88126
88127         * m4/memmem.m4: New file.
88128
88129 2004-10-04  Simon Josefsson  <jas@extundo.com>
88130
88131         * lib/memmem.h: New file.
88132         * lib/memmem.c: New file, taken from glibc.
88133
88134 2004-10-04  Simon Josefsson  <jas@extundo.com>
88135
88136         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88137         '#ifdef USE_UNLOCKED_IO'.
88138
88139 2004-10-04  Simon Josefsson  <jas@extundo.com>
88140
88141         * config/srclist.txt: Add memmem from glibc.
88142
88143 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88146
88147         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88148         modules/exclude, modules/getdate, modules/getline,
88149         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88150         modules/getusershell, modules/linebuffer, modules/md5,
88151         modules/mountlist, modules/posixtm, modules/readtokens,
88152         modules/readutmp, modules/regex, modules/sha1,
88153         modules/version-etc, modules/yesno:
88154         Remove dependency on unlocked-io.
88155
88156 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88159
88160         * m4/unlocked-io.m4: Add copyright notice.
88161         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88162
88163 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88164
88165         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88166         * lib/xmalloc.c (xmemdup): Likewise.
88167         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88168         XFREE): Remove these long-obsolescent macros.
88169         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88170         * lib/xstrdup.c: Remove.
88171
88172         * lib/regex.c (re_comp): Cast gettext return value to char *,
88173         Problem reported by Martin Neitzel via Mark D. Baushke.
88174
88175 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88176
88177         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88178         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88179         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88180         regex.c, sha1.c, version-etc.c, yesno.c:
88181         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88182         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88183         the includer's responsibility.
88184
88185         Sync from coreutils.
88186
88187         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88188         points to the start of a string, as the C Standard says the
88189         resulting behavior is undefined.
88190
88191         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88192         simple -> simple_backups, numbered_existing ->
88193         numbered_existing_backups, numbered -> numbered_backups
88194         to avoid shadowing problems.  All uses changed.
88195         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88196         * lib/backupfile.c (check_extension, numbered_backup):
88197         Rename locals to avoid shadowing 'basename'.
88198         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88199         once.
88200
88201         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88202         * lib/.cvsignore: Add getopt.h.
88203
88204 2004-10-04  Bruno Haible  <bruno@clisp.org>
88205
88206         * modules/README: New file.
88207         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88208         not a module.
88209
88210 2004-10-02  Jim Meyering  <jim@meyering.net>
88211
88212         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88213
88214 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88215
88216         * modules/strsep: New file.
88217
88218 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88219
88220         * m4/strsep.m4: New file.
88221
88222 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88223
88224         * lib/strsep.h: New file.
88225         * lib/strsep.c: New file.
88226
88227 2004-10-01  Simon Josefsson  <jas@extundo.com>
88228
88229         * lib/snprintf.c (snprintf): Handle size==0.
88230
88231 2004-10-01  Simon Josefsson  <jas@extundo.com>
88232             Bruno Haible  <bruno@clisp.org>
88233
88234         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88235         (snprintf): Declare 'args'.
88236
88237 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88238
88239         * lib/snprintf.c: Remove comments as to why each header is needed.
88240
88241 2004-10-01  Bruno Haible  <bruno@clisp.org>
88242
88243         * MODULES.html.sh: Add strsep.
88244
88245 2004-09-30  Simon Josefsson  <jas@extundo.com>
88246
88247         * modules/snprintf: New file.
88248
88249 2004-09-30  Simon Josefsson  <jas@extundo.com>
88250
88251         * m4/snprintf.m4: New file.
88252
88253 2004-09-30  Simon Josefsson  <jas@extundo.com>
88254
88255         * lib/snprintf.h, lib/snprintf.c: New files.
88256
88257 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88258
88259         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88260         (hol_entry_help): Never translate an empty string.
88261         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88262         * lib/argp.h (OPTION_NO_TRANS): New option.
88263
88264 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88265
88266         * modules/argp (Maintainer): Replace Simon Josefsson
88267         by Sergey Poznyakoff.
88268
88269 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88270
88271         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88272         changes merged back into glibc.
88273
88274 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88275
88276         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88277
88278 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88279
88280         * lib/xvasprintf.c: Include xalloc.h.
88281         (xvasprintf): Use xalloc_die, not xmalloc_die.
88282
88283 2004-09-29  Bruno Haible  <bruno@clisp.org>
88284
88285         * modules/alloca-opt: New file, derived from modules/alloca.
88286         * modules/allocsa: Depend on alloca-opt instead of alloca.
88287         * modules/setenv: Likewise.
88288         * modules/vasnprintf: Likewise.
88289         * MODULES.html.sh: Add alloca-opt.
88290
88291 2004-09-28  Simon Josefsson  <jas@extundo.com>
88292
88293         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88294         LGPL, and to replace license template from GPL to LGPL.
88295
88296 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88297
88298         * modules/dummy: Change license to LGPL.
88299
88300 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88301
88302         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88303
88304 2004-09-24  Simon Josefsson  <jas@extundo.com>
88305
88306         * modules/minmax (License): Change from GPL to LGPL.
88307
88308 2004-09-23  Simon Josefsson  <jas@extundo.com>
88309
88310         * gnulib-tool (--import): Typo.
88311
88312 2004-09-23  Simon Josefsson  <jas@extundo.com>
88313
88314         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88315
88316 2004-09-22  Bruno Haible  <bruno@clisp.org>
88317
88318         * modules/*: Add 'License' field.
88319         * gnulib-tool: Accept --extract-license option.
88320         (func_get_license): New function.
88321
88322 2004-09-21  Bruno Haible  <bruno@clisp.org>
88323
88324         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88325         Reported by Simon Josefsson.
88326
88327 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88328
88329         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88330         gl_AC_TYPE_LONG_LONG.
88331
88332 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88333
88334         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88335
88336 2004-09-18  Simon Josefsson  <jas@extundo.com>
88337         and  Paul Eggert  <eggert@cs.ucla.edu>
88338
88339         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88340         calls with autoreconf.  Define GL_LIB.
88341
88342 2004-09-14  Karl Berry  <karl@gnu.org>
88343
88344         * config/srclist.txt: unsync setenv.c, sigh.
88345
88346 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88349         Problem reported by Bruno Haible in:
88350         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88351
88352 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88353
88354         * config/srclist.txt: Comment out argp-pvh.c.
88355
88356 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88357
88358         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88359         in case some system header has #define'd it.  Problem reported by
88360         Soeren D. Schulze in
88361         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88362
88363 2004-09-09  Karl Berry  <karl@gnu.org>
88364
88365         * regex.[ch]: delete from the root.  These were supposed to be
88366                 synced with emacs cvs, but this has not happened for about
88367                 a year, and anyway nothing else uses emacs regex.[ch].
88368                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88369                 lib/regex[.ch] is untouched.
88370
88371 2004-09-09  Bruno Haible  <bruno@clisp.org>
88372
88373         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88374
88375 2004-09-09  Bruno Haible  <bruno@clisp.org>
88376
88377         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88378         modifications.
88379         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88380
88381 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88382
88383         * modules/xvasprintf: New file.
88384         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88385
88386 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88387
88388         * lib/xvasprintf.h: New file.
88389         * lib/xvasprintf.c: New file.
88390         * lib/xasprintf.c: New file.
88391
88392 2004-09-08  Bruno Haible  <bruno@clisp.org>
88393
88394         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88395
88396 2004-09-08  Bruno Haible  <bruno@clisp.org>
88397
88398         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88399         length is > INT_MAX.
88400         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88401         more.
88402
88403 2004-09-08  Bruno Haible  <bruno@clisp.org>
88404
88405         * lib/stdint_.h: New file, taken from GNU clisp.
88406
88407 2004-09-08  Bruno Haible  <bruno@clisp.org>
88408             Oskar Liljeblad  <oskar@osk.mine.nu>
88409
88410         * modules/stdint: New file.
88411         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88412
88413 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88414
88415         Import from coreutils.
88416         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88417         strings on unbounded length.  alloca's performance benefits aren't
88418         that important here.
88419         (V_STRDUP): Remove.
88420         (parse_with_separator): New function, with most of the internals
88421         of the old parse_user_spec.  Allow user to omit both user and group,
88422         for compatibility with FreeBSD.
88423         Clone only the user name, not the entire spec.
88424         Do not set *uid, *gid unless entirely successful.
88425         Avoid memory leak in some failing cases.
88426         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88427         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88428         (parse_user_spec): Rewrite to use parse_with_separator.
88429
88430 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88431
88432         * modules/userspec: Don't depend on alloca.
88433
88434 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88435
88436         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88437
88438 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88439
88440         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88441         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88442         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88443
88444 2004-08-16  Simon Josefsson  <jas@extundo.com>
88445
88446         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88447         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88448         Add --dry-run for --import.
88449         Let user provided command line parameters override configure.ac
88450         settings.
88451
88452 2004-08-12  Simon Josefsson  <jas@extundo.com>
88453
88454         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88455         as discussed with Paul Eggert in threads rooted at
88456         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88457         and
88458         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88459         Before, the test was empty, and relied on ELIDE_CODE in source
88460         code.)
88461         (gl_PREREQ_GETOPT): New macro.
88462         (gl_GETOPT): Use them.
88463
88464 2004-08-12  Simon Josefsson  <jas@extundo.com>
88465
88466         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88467         * lib/getopt_.h: Renamed from getopt.h.
88468
88469 2004-08-12  Simon Josefsson  <jas@extundo.com>
88470
88471         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88472         Change default library name from libfoo to libgnu.
88473         Now, if you have a configure.ac that says:
88474                 gl_SOURCE_BASE(gl)
88475                 gl_M4_BASE(gl/m4)
88476                 gl_MODULES(error getopt etcetera)
88477                 gl_INIT
88478         you can import all you need by running:
88479                 ../gnulib/gnulib-tool --import
88480
88481         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88482         (Makefile.am): Rewrite, use logic from argz.
88483         (Include): Use <getopt.h> instead of "getopt.h".
88484
88485 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88486
88487         * modules/argp (Files): Add m4/unlocked-io.m4.
88488         (Depends-on): Add extensions.
88489
88490 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88491
88492         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88493         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88494         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88495         Check for program_invocation_name, program_invocation_short_name,
88496         flockfile, funlockfile, features.h, _getopt_long_only_r.
88497
88498 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88499
88500         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88501         its complicated substitute.
88502         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88503         and program_invocation_name.
88504         (__argp_basename) [!_LIBC]: Remove; the only use was
88505         replaced by its body.
88506         (__argp_short_program_name): Change condition from
88507         !defined __argp_short_program_name to
88508         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88509         to match argp-namefrob.h.
88510         (__argp_failure): Don't assume strerror_r returns char *.
88511         * lib/argp-parse.c (N_): Define unconditionally.
88512         (argp_default_options): Fill out initializers with 0 to avoid
88513         gcc warnings.
88514
88515 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88516
88517         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88518         getopt1.c.
88519
88520 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88521
88522         Merge from coreutils.
88523
88524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88525
88526         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88527         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88528
88529 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88530
88531         Merge from coreutils.
88532
88533         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88534         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88535         for Reliant Unix 5.43.
88536
88537         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88538         (union fooround): Use uintmax_t, not long int.
88539         The rest is a merge from libc:
88540         [defined _LIBC]: Include <shlib-compat.h>.
88541         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88542
88543         * lib/settime.c (settime): Recode to avoid warning with
88544         Sun Forte C 6U2.
88545
88546         * lib/strverscmp.c: Convert to UTF-8.
88547
88548 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88549
88550         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88551         m4/uintmax_t.m4.
88552
88553 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88554
88555         * modules/xalloc-die: New file.
88556         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88557
88558         * modules/md5 (Files): Add m4/uint32_t.m4.
88559         * modules/sha1: Renamed from modules/sha.
88560         (Files):
88561         Rename lib/sha.h to lib/sha1.h.
88562         Rename lib/sha.c to lib/sha1.c.
88563         Rename m4/sha.m4 to m4/sha1.m4.
88564         (lib_SOURCES): Likewise.
88565         (configure.ac): Rename gl_SHA to gl_SHA1.
88566         (Include): sha.h -> sha1.h.
88567
88568 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88569
88570         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88571         * m4/sha1.m4: Renamed from sha.m4.
88572         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88573
88574 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88575
88576         * lib/obstack.h (obstack_empty_p):
88577         Don't assume that chunk->contents is suitably aligned.
88578         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88579         Likewise. Problem reported by Benno in
88580         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88581
88582         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88583         readable.  This could be improved further but it'd take some work.
88584
88585 2004-08-08  Simon Josefsson  <jas@extundo.com>
88586
88587         * modules/xgethostname (Depends-on): Remove exit and error (not
88588         used).
88589
88590         * modules/getpass-gnu: Add getpass.h.
88591         (Depends-on): Add stdbool.
88592         * modules/getpass: Add getpass.h.
88593
88594 2004-08-08  Simon Josefsson  <jas@extundo.com>
88595
88596         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88597         Check getpass declaration.
88598
88599 2004-08-08  Simon Josefsson  <jas@extundo.com>
88600
88601         * lib/xgethostname.c: Don't include error.h (not used).
88602
88603         * lib/getpass.h: Add.
88604         * lib/getpass.c: Include getpass.h first.
88605
88606 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88607
88608         * lib/xalloc-die.c: New file.
88609         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88610         All uses removed.
88611         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88612         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88613         xalloc-die.c.
88614         (_, N_, xalloc_die): Move to xalloc-die.c.
88615         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88616         so that we needn't mess with xalloc_msg_memory_exhausted.
88617
88618         * lib/sha1.h: Renamed from sha.h.
88619         (SHA1_H): Renamed from _SHA_H.
88620         (sha1_ctx): Renamed from sha_ctx.
88621         (sha1_init_ctx): Renamed from sha_init_ctx.
88622         (sha1_process_block): Renamed from sha_process_block.
88623         (sha1_process_bytes): Renamed from sha_process_bytes.
88624         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88625         (sha1_read_ctx): Renamed from sha_read_ctx.
88626         (sha1_stream): Renamed from sha_stream.
88627         (sha1_buffer): Renamed from sha_buffer.
88628         * lib/sha1.c: Likewise; renamed from sha.c.
88629         Do not include <sys/types.h>.
88630         Include <stddef.h> rather than <stdlib.h>.
88631
88632 2004-08-08  Bruno Haible  <bruno@clisp.org>
88633
88634         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88635         FILESYSTEM_PREFIX_LEN.
88636         * lib/progreloc.c: Likewise.
88637         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88638
88639 2004-08-06  Simon Josefsson  <jas@extundo.com>
88640
88641         * modules/progname (Depends-on): Don't depend on stdbool.
88642
88643 2004-08-06  Simon Josefsson  <jas@extundo.com>
88644
88645         * modules/getsubopt: New file.
88646         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88647         getsubopt.
88648
88649 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88650
88651         More merge from coreutils.
88652
88653         * m4/utimens.m4, m4/utimecmp.m4: New files.
88654         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88655         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88656         prereq.m4, sha.m4: Import changes from coreutils.
88657
88658 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88659
88660         More merge from coreutils.
88661         * modules/raise, modules/readtokens0, modules/utimens:
88662         * modules/utimecmp, module/xnanosleep: New files.
88663         * modules/strftime: Add lib/strftime.h.
88664         Change include from <time.h> to "strftime.h".
88665         * modules/yesno: Add lib/yesno.h.
88666         * modules/backupfile: Remove lib/addext.c.
88667         * modules/euidaccess: Add stat-macros.h.
88668         * modules/canonicalize, modules/euidaccess,
88669         modules/filemode, modules/lchown, modules/makepath,
88670         modules/rmdir, modules/stat: Likewise.
88671
88672 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88673
88674         Merge from tar.
88675         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88676         SIZE_MAX is a valid preprocessor constant.
88677         (__argp_basename): Change from "#ifndef _LIBC"
88678         to "#ifndef __argp_short_program_name", so that
88679         we don't compile these functions for tar.
88680
88681         More merges from coreutils.
88682         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88683         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88684         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88685         * lib/addext.c: Remove; no longer needed.
88686         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88687         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88688         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88689         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88690         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88691         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88692         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88693         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88694         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88695         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88696         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88697         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88698         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88699         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88700         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88701         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88702         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88703         Import changes from coreutils.
88704
88705 2004-08-05  Simon Josefsson  <jas@extundo.com>
88706
88707         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88708
88709 2004-08-05  Simon Josefsson  <jas@extundo.com>
88710
88711         * m4/getsubopt.m4: New file.
88712
88713 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88714
88715         Merge from coreutils.
88716
88717         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88718         * m4/getcwd-path-max.m4: New files.
88719
88720         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88721         FILESYSTEM_PREFIX_LEN ->
88722         FILE_SYSTEM_PREFIX_LEN.
88723         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88724         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88725         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88726         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88727
88728         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88729         prerequisite modules now handle the DOS stuff.
88730         Don't check for unistd.h.
88731
88732 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88733
88734         Merge from coreutils.
88735
88736         * lib/.gdb-history: Remove; this doesn't belong here.
88737
88738         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88739         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88740         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88741         * lib/getcwd.c: New files.
88742
88743         * lib/dirname.h: Include <stdbool.h>.
88744         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88745         for consistency with POSIX terminology.  All uses changed.
88746         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88747         (strip_trailing_slashes): Use bool for booleans.
88748         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88749
88750         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88751         sometimes returns a positive errno value even when it succeeds.
88752         (print_errno_message) [!LIBC]: Fall back on strerror if
88753         __strerror_r fails.
88754
88755         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88756         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88757         (longest_relative_suffix): New function.
88758         (path_concat): Use it.  Assume first argument is not NULL.
88759         Port to DOS.  Omit redundant separators.
88760         Report an error instead of returning NULL.
88761         Use mempcpy instead of memcpy.
88762         (xpath_concat): Remove: not declared or used.
88763
88764         * lib/same.h: Include <stdbool.h>
88765         (same_name): Return bool, not int.
88766         * lib/same.c (same_name): Likewise.
88767         (errno): Don't declare; we assume C89 or better now.
88768
88769         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88770         if not already defined.
88771
88772         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88773         * lib/dup-safer.c (errno): Likewise.
88774
88775 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88776
88777         Merge from coreutils.
88778         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88779         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88780         * modules/path-concat: Don't depend on strdup.
88781
88782 2004-08-03  Simon Josefsson  <jas@extundo.com>
88783
88784         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88785         * lib/progname.h: Don't include stdbool.h.
88786
88787 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88788
88789         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88790         * MODULES.html.sh (func_all_modules): Remove fatal.
88791
88792 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88793
88794         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88795
88796 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88797
88798         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88799         working.
88800
88801 2004-08-02  Simon Josefsson  <jas@extundo.com>
88802
88803         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88804         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88805         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88806
88807 2004-08-01  Simon Josefsson  <jas@extundo.com>
88808
88809         * lib/xgetdomainname.c: Include stdlib.h, for free().
88810
88811 2004-07-19  Bruno Haible  <bruno@clisp.org>
88812
88813         * MODULES.html.sh (func_all_modules): Add dummy.
88814
88815 2004-07-16  Simon Josefsson  <jas@extundo.com>
88816
88817         * modules/dummy: New file.
88818
88819 2004-07-16  Simon Josefsson  <jas@extundo.com>
88820
88821         * lib/dummy.c: New file.
88822
88823 2004-07-16  Bruno Haible  <bruno@clisp.org>
88824
88825         * lib/backupfile.h: Add extern "C" for C++.
88826         * lib/closeout.h: Likewise.
88827         * lib/copy-file.h: Likewise.
88828         * lib/findprog.h: Likewise.
88829         * lib/full-write.h: Likewise.
88830         * lib/pathname.h: Likewise.
88831         * lib/progname.h: Likewise.
88832         * lib/stpcpy.h: Likewise.
88833         * lib/stpncpy.h: Likewise.
88834         * lib/strcase.h: Likewise.
88835         * lib/strstr.h: Likewise.
88836         * lib/xalloc.h: Likewise.
88837
88838         * lib/mbswidth.h: Add extern "C" for C++.
88839         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88840
88841 2004-07-13  Robert Millan  <robertmh@gnu.org>
88842
88843         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88844
88845 2004-07-09  Simon Josefsson  <jas@extundo.com>
88846
88847         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88848         failed without this.)
88849
88850 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88851
88852         * modules/chown (Files): Add lib/fchown-stub.c, since
88853         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88854
88855 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88856
88857         * lib/fchown-stub.c: New file.
88858
88859 2004-06-24  Jim Meyering  <jim@meyering.net>
88860
88861         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88862
88863 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88864
88865         * modules/argz: Omit "#include".
88866
88867         * MODULES.html.sh (func_all_modules): Add calloc, to match
88868         2004-06-01 addition of calloc module.
88869
88870 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88871
88872         * m4/argz.m4: New file, which is autoupdated from libtool.
88873
88874 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88875
88876         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88877         libtool.
88878
88879 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88880
88881         * config/srclist-update: Don't insist on "USA." before the
88882         close-comment, as libtool omits the period and puts the */ on a
88883         separate line.
88884         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88885         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88886
88887 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88888
88889         * modules/argz: New file.
88890         * MODULES.html.sh (func_all_modules): Add argz.
88891
88892 2004-06-12  Jim Meyering  <jim@meyering.net>
88893         and  Paul Eggert  <eggert@cs.ucla.edu>
88894
88895         * modules/hash (Files): Add lib/xalloc.h.
88896         * modules/pipe (Depends-on): Add wait-process.
88897         * modules/stat (Depends-on): Add xalloc.
88898         * modules/userspec (Files): Add lib/userspec.h.
88899         * modules/xstrto
88900
88901         Upgrade from gettext-0.13.
88902         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88903         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88904         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88905
88906 2004-06-10  Jim Meyering  <jim@meyering.net>
88907
88908         * lib/calloc.c: New file.
88909
88910 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88911
88912         * lib/getdate.y (yylex): Allow space between sign and number.
88913         Problem reported by Dan Jacobson.
88914
88915 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88916
88917         Merge from coreutils CVS.
88918
88919         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88920         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88921         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88922         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88923         xstrtol.m4: Fix copyright date and/or serial number.
88924
88925         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88926         See if we need an fchown replacement.
88927         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88928         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88929         and use the replacement function if we detect either defect.
88930
88931         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88932         gl_UTIMECMP.
88933
88934 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88935         and  Jim Meyering  <jim@meyering.net>
88936
88937         Merge from coreutils CVS.
88938
88939         * lib/stat-macros.h: New file, with contents from file-type.h
88940         and coreutils' system.h.
88941         * lib/file-type.c: Include "stat-macros.h".
88942         * lib/file-type.h (file_type): Move all macro definitions to new file,
88943         stat-macros.h.
88944
88945         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88946         Wrap old code with this conditional.
88947         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88948         function that does not dereference symlinks.
88949         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88950
88951         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88952         dependency problems.
88953         (xreadlink): Accept new arg SIZE, for efficiency.
88954         All decls and uses changed.
88955         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88956
88957         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88958         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88959
88960         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88961         sysexits.h.
88962
88963 2004-06-01  Jim Meyering  <jim@meyering.net>
88964
88965         * m4/calloc.m4: New file.
88966
88967 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88968
88969         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88970         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88971         Also, fix a typo in a diagnostic.
88972
88973 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88974
88975         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88976         or AC_FUNC_REALLOC.
88977
88978 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88979
88980         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88981         macros to be defined.
88982         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88983         the allocator returns NULL because the requested size is zero.
88984
88985 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88986
88987         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88988         var.  Add comment explaining why libc still defines it.  This
88989         merges the following patch from glibc:
88990         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88991
88992 2004-05-20  Andreas Schwab  <schwab@suse.de>
88993
88994         * m4/free.m4: Replace free if it not known to work, not the other
88995         way round.
88996
88997 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88998
88999         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89000         present in glibc since revision 1.1 of this file.
89001         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89002         obstack_alignment_mask, obstack_alloc, obstack_base,
89003         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89004         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89005         obstack_grow0, obstack_init, obstack_int_grow,
89006         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89007         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89008         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89009         nonexistent functions.
89010
89011 2004-05-18  Karl Berry  <karl@gnu.org>
89012
89013         * config/srclist.txt: break link for vasnprintf.c.
89014
89015 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89016
89017         Port obstack to the AS/400, where pointers are 16 bytes wide and
89018         you cannot cast an integer to a valid pointer.  This patch is
89019         currently waiting to be integrated into glibc; see
89020         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89021
89022         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89023         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89024         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89025         (struct obstack): temp member is now a union of a pointer and
89026         an integer, instead of an integer.  All integer uses changed.
89027         This does not affect the physical layout of struct obstack,
89028         except on hosts (like the AS/400) where the size or alignment of
89029         void * is greater than that of ptrdiff_t.
89030         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89031         __STDC__)]: Store temporary in pointer member of union, not
89032         integer member.
89033         * lib/obstack.c: Include <stddef.h>, for offsetof.
89034         (struct fooalign): Remove; it doesn't need a name.
89035         (union fooround): Change double to long double, and add void *.
89036         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89037         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89038         not a macro.  Hence the values are always int; so remove all
89039         casts-to-int in uses.
89040
89041 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89042
89043         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89044         we can get this patch merged into glibc.
89045
89046 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89047             Paul Eggert  <eggert@cs.ucla.edu>
89048
89049         * m4/argp: Depend on alloca.
89050
89051 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89052             Paul Eggert  <eggert@cs.ucla.edu>
89053
89054         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89055         freecoding.
89056
89057 2004-05-17  Bruno Haible  <bruno@clisp.org>
89058
89059         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89060         precision that consists of a '.' followed by an empty digit string.
89061         Patch by Tor Lillqvist <tml@iki.fi>.
89062
89063 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89064
89065         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89066         for backward compatibility with older code.  We need our own
89067         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89068         it under some other name, and our alloca.h will define it.
89069
89070 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89071             Derek Price  <derek@ximbiot.com>
89072
89073         * lib/alloca.c: Include <alloca.h>, to get our interface.
89074         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89075         include <alloca.h> first.  Use C89 prototype for alloca; this
89076         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89077         Use #elif for simplicity, since we can assume C89 now.
89078         Don't try to source the system alloca.h since it will not be found
89079         and to prevent recursively including its replacement.
89080         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89081         * lib/regex.c: Likewise.
89082
89083 2004-05-16  Derek Price  <derek@ximbiot.com>
89084             Paul Eggert  <eggert@cs.ucla.edu>
89085
89086         getline cleanup.  This changes the getndelim2 API: both order of
89087         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89088         no delimiter).
89089
89090         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89091         interface does that.
89092         (getline): Always use getdelim, so that we don't have two
89093         copies of this code.
89094         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89095         if available.
89096         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89097         (GETNDELIM2_MAXIMUM): New macro.
89098         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89099         instead of the old practice of delim2==0.  All callers changed.
89100         Return -1 on overflow, instead of returning junk.
89101         Do not set *linesize unless allocation succeeds.
89102         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89103         that we include sys/types.h.
89104         * lib/getnline.h: Likewise.
89105         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89106         (getndelim2): Reorder arguments.
89107         * lib/getnline.c (getnline, getndelim):
89108         Don't discard the NMAX argument.
89109         (getnline): Invoke getndelim, to avoid code duplication.
89110         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89111         of (size_t) -1 by callers of the getnline family.
89112
89113 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89114
89115         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89116         Check for gettimeofday.
89117         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89118         Check for settimeofday, stime.
89119
89120 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89121
89122         * lib/nanosleep.c (suspended): Change its type from int to
89123         sig_atomic_t volatile.
89124         (first_call): Make it private to rpl_nanosleep, and have it
89125         be zero initially as that's a bit faster.
89126         (my_usleep): Round up fractional times instead of truncating them,
89127         as this is the usual meaning for 'sleep'.
89128
89129         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89130         doesn't work.
89131         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89132         (ENOSYS): Define if not defined.
89133         (settime): Fall back on stime if it exists and settimeofday fails.
89134         But don't bother with fallbacks if a method fails with errno == EPERM.
89135
89136 2004-05-11  Jim Meyering  <jim@meyering.net>
89137
89138         Prior to this change, the save_cwd caller required read access to the
89139         current directory on most systems (ones with the fchdir function).
89140
89141         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89142         fails, try write-only, and finally, resort to using xgetcwd.
89143
89144 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89145
89146         * lib/obstack.c, obstack.h: Import changes from libc.
89147
89148 2004-04-28  Bruno Haible  <bruno@clisp.org>
89149
89150         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89151         also implicitly appends .exe to executables.
89152         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89153         accepts Windows pathnames.
89154         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89155         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89156         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89157         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89158         Reported by Derek Robert Price <derek@ximbiot.com>.
89159
89160 2004-04-21  Karl Berry  <karl@gnu.org>
89161
89162         * config/srclist.txt (localcharset.c): break sync.
89163
89164 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89165
89166         * m4/host-os.m4: Add a copyright notice.
89167
89168 2004-04-20  Jim Meyering  <jim@meyering.net>
89169
89170         Change UTILS_ to gl_ in AC_DEFINE'd names.
89171         Change utils_- and jm_-prefixed variables, too.
89172         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89173         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89174         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89175
89176         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89177         Don't emit trailing blanks.
89178         Also rename jm_-prefixed variables to have gl_ prefix.
89179
89180         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89181         Also rename jm_-prefixed variables to have gl_ prefix.
89182
89183         * m4/jm-macros.m4: Reflect the renamings.
89184         * m4/prereq.m4: Likewise.
89185
89186 2004-04-20  Jim Meyering  <jim@meyering.net>
89187
89188         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89189         memory.
89190
89191 2004-04-20  Jim Meyering  <jim@meyering.net>
89192             Bruno Haible  <bruno@clisp.org>
89193
89194         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89195         memory when realloc fails.
89196
89197 2004-04-19  Jim Meyering  <jim@meyering.net>
89198
89199         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89200         now that readutmp.c may call `free (0)'.
89201
89202 2004-04-19  Bruno Haible  <bruno@clisp.org>
89203
89204         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89205         * m4/inttypes_h.m4: Likewise.
89206         * m4/stdint_h.m4: Likewise.
89207         * m4/intmax_t.m4: Likewise.
89208         * m4/uintmax_t.m4: Likewise.
89209
89210 2004-04-18  Jim Meyering  <jim@meyering.net>
89211
89212         * m4/prereq.m4: Don't forbid jm_ prefix.
89213
89214         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89215         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89216         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89217         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89218         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89219         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89220         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89221         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89222         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89223         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89224         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89225         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89226         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89227         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89228         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89229         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89230         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89231         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89232         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89233
89234 2004-04-18  Jim Meyering  <jim@meyering.net>
89235
89236         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89237         failure, don't leak memory and do call END_UTMP_ENT.
89238
89239 2004-04-16  Jim Meyering  <jim@meyering.net>
89240
89241         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89242         coreutils' stat program.
89243         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89244
89245 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89246
89247         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89248         C89.
89249         (CHAR_BIT): Remove, since we assume C89.
89250         Include <stdint.h> if available, as per current Autoconf CVS advice.
89251
89252 2004-03-31  Jim Meyering  <jim@meyering.net>
89253
89254         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89255         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89256         * m4/xalloc.m4: Likewise.
89257
89258 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89259
89260         Merge from coreutils.
89261
89262         * m4/inttostr.m4: New file.
89263         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89264         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89265         Require gl_CLOCK_TIME.
89266         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89267
89268 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89269
89270         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89271         not bool, to be more consistent with Unix conventions.
89272         Suggested by Bruno Haible.
89273
89274         Merge from coreutils.
89275
89276         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89277         * lib/umaxtostr.c: New files.
89278
89279         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89280         the usual <time.h> dance.
89281         (get_date): Change signature to support fractional time stamps.
89282         All callers changed.
89283         * lib/getdate.y: Include "getdate.h" first, as we can now
89284         assume C89 and don't need to worry about 'const'.
89285         Similarly, include "unlocked-io.h" near start, not in middle.
89286         Include <limits.h>.
89287         (textint.value): Use long int rather than int.
89288         (textint.digits): Use size_t rather than int.
89289         (BILLION, LOG10_BILLION): New constants.
89290         (parser_control): New member rel_ns.  Members day_ordinal,
89291         time_zone, month, day, hour, minutes, rel_year, rel_month,
89292         rel_day, rel_hour, rel_minutes, rel_seconds
89293         are now long int, not int.  Member seconds is now struct timespec,
89294         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89295         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89296         not int.
89297         (%union.intval): Now long int, not int.
89298         New member timespec.
89299         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89300         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89301         (spec): Now is a timespec or an item list.
89302         (timespec, items): New nonterminals.
89303         (time, rel, relunit, number, get_date):
89304         Add support for fractional seconds.
89305         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89306         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89307         (to_hour): First arg is now long int, not int.
89308         (to_year): Returns long int, not int.
89309         Don't treat year -70 like 70.
89310         (tm_diff): Returns long int, not int.
89311         (lookup_word): Use bool instead of int when appropriate.
89312         (yylex): Use size_t for count, not int.
89313         Detect overflow when parsing large integer constants.
89314         Add support for fractions.
89315         (get_date): Make pointers 'const' if possible.
89316         Use more-portable code to detect integer overflow.
89317         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89318         Don't use ctime; it's not reliable if the year has >4 digits.
89319
89320         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89321         This is for compatibility with BSD.
89322
89323         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89324         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89325         From coreutils' system.h.
89326
89327         * lib/userspec.c: Don't include "posixver.h".
89328         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89329         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89330         compatible extension.  Simplify code by removing a boolean int
89331         that was always nonzero if a string was nonnull.
89332
89333 2004-03-30  Jim Meyering  <jim@meyering.net>
89334
89335         Merge from coreutils.
89336
89337         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89338         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89339         on some systems one must include <grp.h> before it.
89340         Reported by Christian Krackowizer.
89341
89342 2004-03-30  Jim Meyering  <jim@meyering.net>
89343
89344         Merge from coreutils.
89345
89346         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89347
89348         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89349         an empty input stream.
89350
89351         * lib/readtokens.c: Include <stdbool.h>.
89352         (readtoken): Use `size_t' rather than int/long.
89353         All callers adjusted.
89354         Use `bool' rather than `int' where appropriate.
89355         Use memset rather than an explicit loop.
89356         Use x2nrealloc rather than xrealloc.
89357         Allow the use of `\0' as a delimiter.
89358         (readtokens): Likewise.
89359         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89360
89361 2004-03-30  Jim Meyering  <jim@meyering.net>
89362
89363         * m4/realloc.m4: Remove file, since now it does no more than
89364         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89365         the `configure.ac' section of module/realloc.
89366         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89367
89368 2004-03-30  Bruno Haible  <bruno@clisp.org>
89369
89370         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89371         nonnull.
89372
89373 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89374
89375         Merge changes to getloadavg.c from coreutils and Emacs.
89376
89377         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89378         Define to an expression, not to the empty string.
89379         Include cloexec.h and xalloc.h.
89380         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89381         Use set_cloexec_flag rather than rolling our own.
89382         * lib/cloexec.c, lib/cloexec.h: New files.
89383
89384 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89385
89386         * m4/cloexec.m4: New file.
89387
89388 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89389
89390         * lib/getopt.h: Sync with libc CVS.
89391
89392 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89393             Bruno Haible  <bruno@clisp.org>
89394
89395         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89396         mbswidth.
89397
89398 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89399             Bruno Haible  <bruno@clisp.org>
89400
89401         * lib/mbswidth.h: Include <wchar.h> only if
89402         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89403         <wchar.h>.
89404         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89405
89406 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89407
89408         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89409         Sync with libc CVS.
89410         * lib/getopt_int.h: New file, also synced from libc.
89411
89412 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89413
89414         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89415         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89416         Bring back getopt.c, getopt.h, getopt1.c.
89417
89418 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89419
89420         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89421         All uses changed.  Check for sa_sigaction member; this fixes
89422         a bug first reported by Jason Andrade in
89423         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89424
89425 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89426
89427         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89428         '#if' expressions.  Unlike the code it replaces, it does not
89429         depend on (defined _SC_PAGESIZE).  However, it does depend on
89430         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89431         first reported by Jason Andrade in
89432         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89433
89434 2004-02-25  Simon Josefsson  <jas@extundo.com>
89435
89436         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89437
89438 2004-02-25  Simon Josefsson  <jas@extundo.com>
89439
89440         * lib/strdup.h: New file.
89441         * lib/strdup.c: Include it.
89442         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89443         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89444
89445 2004-02-23  Karl Berry  <karl@gnu.org>
89446
89447         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89448         (from fencepost.gnu.org:/gd/gnuorg).
89449
89450 2004-02-23  Karl Berry  <karl@gnu.org>
89451
89452         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89453         * config/srclist.txt: add maintain/standards documents.
89454
89455 2004-02-18  Bruno Haible  <bruno@clisp.org>
89456
89457         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89458         Reported by Derek Robert Price <derek@ximbiot.com>.
89459
89460 2004-02-16  Karl Berry  <karl@gnu.org>
89461
89462         * config/mkinstalldirs, install-sh: update from automake.
89463
89464 2004-02-06  Karl Berry  <karl@gnu.org>
89465
89466         * m4/po.m4: update from gettext 0.14.1.
89467
89468 2004-02-06  Karl Berry  <karl@gnu.org>
89469
89470         * lib/config.charset: update from gettext 0.14.1.
89471
89472 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89473
89474         Add comments and code, prompted by suggestions from Bruno Haible
89475         for sh-quote.
89476         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89477         describing the enum quoting_style values.
89478         * lib/quotearg.c (quotearg_alloc): New function.
89479         (quotearg_buffer_restyled): Treat lone { and } as special.
89480         Treat = as special.  Work around bug with older shells
89481         that "see" a '\' that is really the 2nd byte of a multibyte char.
89482         Quote empty string with shell_quoting_style.
89483
89484 2004-02-03  Bruno Haible  <bruno@clisp.org>
89485
89486         * m4/pipe.m4: New file, from GNU gettext.
89487
89488 2004-02-03  Bruno Haible  <bruno@clisp.org>
89489
89490         * lib/pipe.h: New file, from GNU gettext.
89491         * lib/pipe.c: New file, from GNU gettext.
89492
89493 2004-01-27  Bruno Haible  <bruno@clisp.org>
89494
89495         * m4/execute.m4: New file, from GNU gettext.
89496
89497 2004-01-27  Bruno Haible  <bruno@clisp.org>
89498
89499         * lib/execute.h: New file, from GNU gettext.
89500         * lib/execute.c: New file, from GNU gettext.
89501         * lib/w32spawn.h: New file, from GNU gettext.
89502
89503 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89504
89505         Merge from diffutils.
89506
89507         * lib/file-type.c (file_type): Add typed memory objects.
89508         * lib/file-type.h (S_TYPEISTMO): New macro.
89509
89510         * lib/c-stack.h (c_stack_action): Remove argv argument.
89511         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89512         (die): Don't calculate message unless segv_action returns.
89513         (get_stack_location, min_address_from_argv, max_address_from_argv,
89514         volatile stack_base, volatile_stack_size): Remove.
89515         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89516         that every segmentation violation is a stack overflow.  (Ouch!)
89517         See Debian bug 136249 (still outstanding) for more info about why
89518         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89519
89520 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89521
89522         Exit-status fix from coreutils.
89523
89524         Use exit_failure consistently in place of EXIT_FAILURE,
89525         so that program exit statuses are consistent on failure.
89526
89527         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89528         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89529         * lib/argmatch.h: Comment fix to match the above.
89530         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89531         Now a macro referring to exit_failure, instead of a separate
89532         variable.  Include "exitfail.h" to get it.
89533         * lib/xstrtol.h: Include "exitfail.h".
89534         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89535
89536         * lib/long-options.c (parse_long_options): Use prototype
89537         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89538         for clarity.
89539
89540 2004-01-21  Jim Meyering  <jim@meyering.net>
89541
89542         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89543         so as not to conflict with a different-sized __mktime_internal
89544         function in GNU libc.
89545         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89546         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89547
89548 2004-01-20  Karl Berry  <karl@gnu.org>
89549
89550         * config/config.guess: update from config.
89551
89552         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89553
89554 2004-01-20  Bruno Haible  <bruno@clisp.org>
89555
89556         Safer stack allocation.
89557         * lib/setenv.c: Include allocsa.h.
89558         (alloca): Remove fallback definition.
89559         (freea): Remove macro.
89560         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89561         instead of freea.
89562
89563 2004-01-20  Bruno Haible  <bruno@clisp.org>
89564
89565         * m4/eealloc.m4: New file, from GNU gettext.
89566
89567 2004-01-20  Bruno Haible  <bruno@clisp.org>
89568
89569         * m4/allocsa.m4: New file, from GNU gettext.
89570
89571 2004-01-20  Bruno Haible  <bruno@clisp.org>
89572
89573         * lib/xallocsa.h: New file, from GNU gettext.
89574         * lib/xallocsa.c: New file, from GNU gettext.
89575
89576 2004-01-20  Bruno Haible  <bruno@clisp.org>
89577
89578         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89579
89580 2004-01-20  Bruno Haible  <bruno@clisp.org>
89581
89582         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89583         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89584         specially.
89585
89586 2004-01-20  Bruno Haible  <bruno@clisp.org>
89587
89588         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89589         patch.
89590
89591 2004-01-20  Bruno Haible  <bruno@clisp.org>
89592
89593         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89594
89595 2004-01-20  Bruno Haible  <bruno@clisp.org>
89596
89597         * lib/eealloc.h: New file.
89598
89599 2004-01-20  Bruno Haible  <bruno@clisp.org>
89600
89601         * lib/binary-io.h: Avoid warnings on Cygwin.
89602
89603 2004-01-20  Bruno Haible  <bruno@clisp.org>
89604
89605         * lib/allocsa.h: New file, from GNU gettext.
89606         * lib/allocsa.c: New file, from GNU gettext.
89607
89608 2004-01-18  Karl Berry  <karl@gnu.org>
89609
89610         * doc/gpl.texi, doc/lgpl.texi: new files.
89611
89612 2004-01-18  Karl Berry  <karl@gnu.org>
89613
89614         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89615         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89616
89617 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89618
89619         Merge from coreutils.
89620
89621         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89622         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89623         (gl_DEFAULT_POSIX2_VERSION): Move
89624         the documentation from 'configure' into 'config.hin',
89625         so that 'configure --help' isn't burdened by it and
89626         we don't have to worry about its formatting there.
89627         Reword the documentation so that it's more succinct
89628         and can be run together into a single paragraph.
89629         * m4/same.m4 (gl_SAME): Check for pathconf.
89630
89631 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89632
89633         Merge from coreutils.
89634
89635         * lib/posixver.c: Include posixver.h.
89636
89637         * lib/same.c: Include <stdbool.h>, <limits.h>.
89638         (_POSIX_NAME_MAX): Define if not defined.
89639         (MIN): New macro.
89640         (same_name): If file names are silently truncated, report
89641         that the file names are the same if they are the same after
89642         the silent truncation.
89643
89644         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89645         conversion function.
89646         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89647         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89648         longer needed.
89649
89650 2004-01-15  Jim Meyering  <jim@meyering.net>
89651
89652         Merge from coreutils.
89653
89654         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89655         if no library is required.
89656         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89657         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89658         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89659         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89660         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89661         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89662         value, $ac_cv_search_crypt, if it's "none required".
89663         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89664         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89665         not gl_FUNC_GETLOADAVG.
89666         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89667         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89668
89669 2004-01-15  Jim Meyering  <jim@meyering.net>
89670
89671         Merge from coreutils.
89672
89673         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89674         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89675         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89676
89677         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89678         optional configure-time default.
89679
89680         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89681
89682         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89683
89684 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89685
89686         Merge from coreutils.
89687
89688         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89689         value, $ac_cv_search_nanosleep, if it's "none required".
89690
89691 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89692
89693         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89694         with like-named macro in fnmatch.c.
89695         (EXT): Use an internal constant instead.
89696
89697         Merge fnmatch patches from glibc.
89698         * lib/fnmatch.c (mbsinit): Remove define.
89699         Add libc_hidden_ver (__fnmatch, fnmatch).
89700         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89701         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89702
89703 2004-01-14  Karl Berry  <karl@gnu.org>
89704
89705         * config/install-sh: update from automake.
89706
89707 2004-01-13  Karl Berry  <karl@gnu.org>
89708
89709         * config/install-sh: update from automake.
89710
89711 2004-01-09  Karl Berry  <karl@gnu.org>
89712
89713         * config/install-sh: update from automake.
89714
89715 2004-01-05  Karl Berry  <karl@gnu.org>
89716
89717         * config/config.{sub,guess}: update from config.
89718
89719 2003-12-31  Karl Berry  <karl@gnu.org>
89720
89721         * config/depcomp: update from automake.
89722
89723 2003-12-14  Karl Berry  <karl@gnu.org>
89724
89725         * lib/config.charset: update from gettext-runtime.
89726
89727 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89728
89729         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89730         Bug reported by Alfred M. Szmidt.
89731
89732 2003-12-03  Bruno Haible  <bruno@clisp.org>
89733
89734         * m4/gettext.m4: Upgrade from gettext-0.13.
89735         * m4/po.m4: Upgrade from gettext-0.13.
89736         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89737         * m4/intmax.m4: New file, from gettext-0.13.
89738         * m4/printf-posix.m4: New file, from gettext-0.13.
89739
89740 2003-11-29  Karl Berry  <karl@gnu.org>
89741
89742         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89743
89744 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89745             Bruno Haible  <bruno@clisp.org>
89746
89747         * lib/printf-parse.h: Don't include sys/types.h.
89748         (ARG_NONE): New macro.
89749         (char_directive): Change type of *arg_index fields to size_t.
89750         * lib/printf-parse.c: Don't include sys/types.h.
89751         (SSIZE_MAX): Remove macro.
89752         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89753         Remove unnecessary overflow check.
89754         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89755         fields.
89756
89757 2003-11-25  Bruno Haible  <bruno@clisp.org>
89758
89759         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89760
89761 2003-11-25  Bruno Haible  <bruno@clisp.org>
89762
89763         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89764         gt_TYPE_SSIZE_T.
89765
89766 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89767
89768         * modules/alloca: Remove dependency on xalloc.
89769
89770 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89771
89772         * lib/alloca.c: Remove dependency on xalloc module.
89773         (xalloc_die): Remove.
89774         (memory_full) [!defined emacs]: New macro.
89775         [!defined emacs]: Don't include xalloc.h.
89776         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89777         address arithmetic overflows.  Change datatypes a bit to avoid
89778         unnecessary casts.
89779
89780 2003-11-22  Jim Meyering  <jim@meyering.net>
89781
89782         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89783         s/size/size_t/.
89784
89785 2003-11-21  Karl Berry  <karl@gnu.org>
89786
89787         * config/config.{sub,guess}: update from config.
89788
89789 2003-11-18  Karl Berry  <karl@gnu.org>
89790
89791         * config/config.{sub,guess}: update from config.
89792
89793         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89794
89795 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89796
89797         * README: Mention that S+T cannot overflow if S is the size of
89798         an existing object and T is sufficiently small.
89799
89800 2003-11-17  Jim Meyering  <jim@meyering.net>
89801
89802         On systems without utime and without a utimes function capable of
89803         dealing with a NULL struct utimbuf* argument, this utime replacement
89804         could -- in unusual circumstances -- leak a file descriptor.
89805         * lib/utime.c: Include <unistd.h> and <errno.h>.
89806         (utime_null): Be sure to close `fd' and to preserve errno.
89807         Reported by Geoff Collyer via Arnold Robbins.
89808
89809 2003-11-17  Bruno Haible  <bruno@clisp.org>
89810
89811         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89812         (Depends-on): Add xsize.
89813
89814 2003-11-17  Bruno Haible  <bruno@clisp.org>
89815
89816         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89817
89818 2003-11-17  Bruno Haible  <bruno@clisp.org>
89819
89820         * lib/vasnprintf.c (alloca): Remove fallback definition.
89821         (freea): Remove definition.
89822         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89823         Reported by Paul Eggert.
89824
89825 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89826             Bruno Haible  <bruno@clisp.org>
89827
89828         Protect against address arithmetic overflow.
89829         * lib/printf-args.h: Include stddef.h.
89830         (arguments): Change type of field 'count' to size_t.
89831         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89832         'unsigned int' where appropriate.
89833         * lib/printf-parse.h: Include sys/types.h.
89834         (char_directive): Change type of *arg_index fields to ssize_t.
89835         (char_directives): Change type of fields 'count', max_*_length to
89836         size_t.
89837         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89838         (SSIZE_MAX): Define fallback value.
89839         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89840         instead of 'int' where appropriate. Check a_allocated, d_allocated
89841         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89842         * lib/vasnprintf.c: Include xsize.h.
89843         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89844         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89845         overflow. Avoid wraparound when converting a width or precision from
89846         decimal to binary.
89847
89848 2003-11-16  Bruno Haible  <bruno@clisp.org>
89849
89850         Update from GNU gettext.
89851         * lib/printf-parse.c: Generalize to it can be compiled for wide
89852         strings.
89853         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89854         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89855         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89856         SNPRINTF): New macros.
89857         Don't include <alloca.h> if the file is used inside libintl.
89858         (local_wcslen): New function, for Solaris 2.5.1.
89859         (VASNPRINTF): Use it instead of wcslen.
89860
89861 2003-11-16  Bruno Haible  <bruno@clisp.org>
89862
89863         * lib/xsize.h (xmax): New function.
89864         (xsum, xsum3, xsum4): Declare as "pure" functions.
89865
89866 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89867
89868         * modules/xalloc (Files): Undo latest change, since xalloc.h
89869         no longer needs SIZE_MAX or PTRDIFF_MAX.
89870
89871 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89872
89873         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89874         gl_PTRDIFF_MAX.
89875
89876 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89877
89878         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89879         "return", to pacify some unknown compiler.  Problem reported
89880         by Joerg Schilling.
89881
89882 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89883
89884         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89885         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89886         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89887         heuristic is just as accurate as far as we know, and it removes a
89888         dependency on size_max.m4 and ptrdiff_max.m4.
89889
89890 2003-11-11  Bruno Haible  <bruno@clisp.org>
89891
89892         * modules/xsize (Files): Add m4/size_max.m4.
89893         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89894
89895 2003-11-11  Bruno Haible  <bruno@clisp.org>
89896
89897         * m4/size_max.m4: New file.
89898         * m4/ptrdiff_max.m4: New file.
89899         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89900         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89901         (gl_XALLOC): Invoke it.
89902
89903 2003-11-11  Bruno Haible  <bruno@clisp.org>
89904
89905         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89906         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89907         defined.
89908
89909 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89910
89911         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89912         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89913         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89914         From Bruno Haible.
89915         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89916         not (size_t) -1, since it's defined here.
89917
89918 2003-11-09  Karl Berry  <karl@gnu.org>
89919
89920         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89921
89922 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89923
89924         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89925         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89926         Reject sizes of exactly SIZE_MAX bytes.
89927         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89928         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89929
89930 2003-11-05  Bruno Haible  <bruno@clisp.org>
89931
89932         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89933         SIZE_MAX defined in <limits.h> on Solaris.
89934
89935 2003-11-04  Jim Meyering  <jim@meyering.net>
89936
89937         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89938         variable names, rather than @VAR@.
89939         * modules/poll: Likewise.
89940
89941 2003-11-04  Bruno Haible  <bruno@clisp.org>
89942
89943         * modules/xsize: New file.
89944         * modules/linebreak: Depend on xsize.
89945         * MODULES.html.sh (func_all_modules): Add xsize.
89946
89947 2003-11-04  Bruno Haible  <bruno@clisp.org>
89948
89949         * m4/xsize.m4: New file.
89950
89951 2003-11-04  Bruno Haible  <bruno@clisp.org>
89952
89953         * lib/xsize.h: New file.
89954         * lib/linebreak.c: Include xsize.h.
89955         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89956         argument for overflow.
89957         Suggested by Paul Eggert.
89958
89959 2003-11-03  Karl Berry  <karl@gnu.org>
89960
89961         * config/config.{guess,sub}: update from config.
89962
89963 2003-11-03  Jim Meyering  <jim@meyering.net>
89964
89965         * modules/userspec (lib_SOURCES): Add userspec.h.
89966         (Include): Add "userspec.h".
89967         Improve description.
89968
89969 2003-11-03  Jim Meyering  <jim@meyering.net>
89970
89971         * lib/userspec.c: Include "userspec.h".
89972         * lib/userspec.h: New file.
89973
89974 2003-11-03  Bruno Haible  <bruno@clisp.org>
89975
89976         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89977
89978 2003-11-03  Bruno Haible  <bruno@clisp.org>
89979
89980         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89981         available, to avoid (extremely rare) race condition.
89982         Suggested by Paul Eggert.
89983
89984 2003-11-02  Karl Berry  <karl@gnu.org>
89985
89986         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89987
89988 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89989
89990         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89991         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89992         (read_filesystem_list): Set and use me_type_malloced.
89993         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89994         whatever the type happens to be), for brevity and consistency.
89995         Check for size calculation overflow on Alphas running OSF/1.
89996
89997 2003-10-31  Jim Meyering  <jim@meyering.net>
89998
89999         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90000
90001         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90002
90003 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90004             Bruno Haible  <bruno@clisp.org>
90005
90006         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90007         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90008
90009 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90010
90011         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90012         netbsd*-gnu*.  Suggested by Robert Millan.
90013
90014 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90015
90016         * modules/group-member: Depend on stdbool.
90017
90018 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90019
90020         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90021
90022 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90023
90024         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90025         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90026         after the 'gnu' in these cases.  This fixes some bugs in the
90027         previous change, and is based on suggestions by Robert Millan.
90028
90029 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90030
90031         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90032         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90033         no longer needed.
90034         * lib/quotearg.c (quotearg_n_options): Use it.
90035         * lib/group-member.c: Include <stdbool.h>.
90036         (free_group_info): Arg is now const *; don't free arg.
90037         (get_group_info): Now returns bool and accepts struct group_info *,
90038         rather than returning a malloc'ed struct group_info *.
90039         All uses changed.  Check for overflow in internal size calculation.
90040
90041         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90042         rather than xmalloc/xrealloc.
90043         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90044         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90045         conformance bug: the old code used a pointer after freeing the
90046         storage that it addressed.
90047         * lib/hash.c (hash_initialize): Simplify the code by using
90048         xalloc_oversized rather than doing it by hand.
90049         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90050         the buffer preserved.  Use free and xmalloc instead.
90051         * lib/quotearg.c (quotearg_n_options): Likewise.
90052         Use a simpler test for size overflow.  Don't use xalloc_oversized
90053         because unsigned int might be wider than size_t (!); this suggests
90054         that we should switch from unsigned int to size_t for slot numbers.
90055
90056 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90057
90058         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90059         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90060         NetBSD kernels.  Requested by Richard Stallman.
90061
90062 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90063
90064         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90065         to allocate the returned structure.  Do not allocate a subarray,
90066         as x2nrealloc will do that.
90067         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90068         instead of xnrealloc.
90069         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90070
90071 2003-10-27  Bruno Haible  <bruno@clisp.org>
90072
90073         * lib/stdbool_.h: Better support for BeOS.
90074
90075 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90076
90077         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90078         now uses inline.
90079
90080 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90081
90082         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90083         callers that want to do their own size-overflow checking.  Include
90084         <stdbool.h>, since xalloc_oversized returns bool.
90085         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90086         to use xalloc_oversized.
90087
90088         Add two functions x2realloc, x2nrealloc, for programs that grow
90089         arrays dynamically by doubling their sizes.
90090         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90091         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90092         New functions.
90093
90094         Port to C99 semantics for 'inline' of external functions.
90095         Bug reported by Bruno Haible.
90096         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90097         with the old contents of xnmalloc.
90098         (xnmalloc, xmalloc): Use it.
90099         (xnrealloc_inline): New static inline function,
90100         with the old contents of xnrealloc.
90101         (xnrealloc, xrealloc): Use it.
90102
90103         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90104         that.
90105
90106 2003-10-26  Karl Berry  <karl@gnu.org>
90107
90108         * config/srclist.txt (COPYING.DOC): no longer available from
90109         /gd/gnuorg; don't know where the ultimate source is.
90110
90111 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90112
90113         Fix several address-calculation bugs in the hash modules,
90114         plus some minor code cleanup.
90115
90116         * lib/hash.h: Include <stdbool.h>, for bool.
90117         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90118         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90119         hash_get_n_entries, hash_get_max_bucket_length,
90120         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90121         hash_rehash): Use size_t rather than unsigned.
90122         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90123         hash_get_n_buckets_used, hash_get_n_entries,
90124         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90125         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90126         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90127         Likewise.
90128         (SIZE_MAX): Define if not defined.
90129         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90130         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90131         hash_print):
90132         Use const * when possible.
90133         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90134         (check_tuning): Fix bug: if tuning parameters were very close to
90135         0 or 1, rounding errors could have caused subscript violations.
90136         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90137         (hash_initialize): Add 'fail:' label
90138         to free table and return NULL, and use it to simplify code.
90139         Use calloc rather than clearing the storage ourself.
90140         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90141         buffer size calculations.
90142         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90143         Include <stddef.h>, for size_t.
90144         * lib/hash-pjw.c (hash_pjw): Likewise.
90145         Switch to method described by Bruno Haible.
90146         Include <limits.h>, for CHAR_BIT.
90147         (SIZE_BITS): New macro.
90148
90149 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90150
90151         * m4/getline.m4 (AM_FUNC_GETLINE):
90152         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90153         hosts.  Problem reported by Derek Robert Price in
90154         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90155         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90156         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90157
90158 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90159
90160         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90161         ceiling the allocation at NMAX bytes rather than silently
90162         discarding input bytes before NMAX is reached.  This makes
90163         a difference only if NMAX exceeds SIZE_MAX / 2.
90164
90165         * lib/obstack.c: Merge from glibc.
90166         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90167         Add libc_hidden_def (_obstack_newchunk).
90168         (_obstack_free) [! defined _LIBC]: Remove.
90169         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90170         a clone of the function body.
90171         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90172         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90173
90174         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90175         glibc.
90176         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90177         arg to memcpy.
90178
90179         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90180         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90181         Don't use lvalue casts, as GCC plans to remove support for them
90182         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90183         was also present in the non-GCC version, indicating that this
90184         code had always been buggy and had never been widely used.
90185         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90186         Use the fast variant of each macro, rather than copying the
90187         definiens of the fast variant; that way, we'll be more likely to
90188         catch future bugs in the fast variants.
90189
90190 2003-10-20  Bruno Haible  <bruno@clisp.org>
90191
90192         * modules/wait-process: New file.
90193         * MODULES.html.sh (func_all_modules): Add wait-process.
90194
90195 2003-10-20  Bruno Haible  <bruno@clisp.org>
90196
90197         * m4/wait-process.m4: New file.
90198
90199 2003-10-20  Bruno Haible  <bruno@clisp.org>
90200
90201         * lib/wait-process.h: New file, from GNU gettext.
90202         * lib/wait-process.c: New file, from GNU gettext.
90203
90204 2003-10-19  Jim Meyering  <jim@meyering.net>
90205
90206         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90207         HPUX 10.20.
90208
90209 2003-10-18  Karl Berry  <karl@gnu.org>
90210
90211         * config/config.guess: update from config.
90212
90213 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90214
90215         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90216         (getgroups): First arg is int, not size_t.
90217         Don't let 'free' mangle errno.
90218
90219 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90220
90221         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90222
90223 2003-10-16  Karl Berry  <karl@gnu.org>
90224
90225         * config/config.{guess,sub}: update from config.
90226
90227 2003-10-16  Jim Meyering  <jim@meyering.net>
90228
90229         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90230         memcpy.
90231
90232 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90233
90234         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90235         (SIZE_MAX): Remove.
90236         (new_exclude, add_exclude_file): Initial size no longer needs to
90237         be a power of 2.
90238         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90239         our own address arithmetic overflow checking.
90240
90241         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90242         (fnmatch): Do not alloca more than 2000 wide characters;
90243         instead, use malloc for large buffers.
90244         Check for address arithmetic overflow, and return -1
90245         with errno set to ENOMEM in that case.
90246         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90247         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90248         instead, return -1.  Check for address arithmetic overflow.
90249
90250 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90251
90252         Handle invalid suffixes and overflow independently, so that
90253         callers can treat them independently as needed.  Fix some bugs in
90254         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90255         suffix for a human-readable blocksize.  The major caller-visible
90256         change is the addition of a new
90257         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90258         that both overflow and suffix chars were found.
90259
90260         * lib/human.c (humblock): Don't check separately for invalid suffix
90261         char; that is xstrtoumax's job (now that its bug is fixed).
90262         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90263         INTMAX_MAX]: New macros.
90264         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90265         TYPE_MAXIMUM): New macros.
90266         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90267         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90268         if overflow occurs, as it's what __strtol does and it's more useful
90269         in practice.
90270         (__xstrtol): If __strtol reports some error other than ERANGE,
90271         reflect it to the caller as LONGINT_INVALID.  If it reports
90272         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90273         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90274         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90275         value.
90276         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90277         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90278         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90279         [defined UINTMAX_MAX]: New macros.
90280
90281 2003-10-14  Bruno Haible  <bruno@clisp.org>
90282
90283         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90284
90285 2003-10-14  Bruno Haible  <bruno@clisp.org>
90286
90287         * m4/sig_atomic_t: New file, from GNU gettext.
90288         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90289
90290 2003-10-14  Bruno Haible  <bruno@clisp.org>
90291
90292         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90293         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90294         Also use volatile where needed.
90295
90296 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90297
90298         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90299         Change maintainer from Bruno Haible to 'all'.
90300
90301 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90302
90303         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90304
90305 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90306
90307         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90308         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90309         and define in terms of the other primitives.
90310         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90311         (SIZE_MAX): Define if not already defined.
90312         (array_size_overflow): New function.
90313         (xalloc_die): Abort instead of exiting if 'error' returns.
90314         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90315         (xmalloc, xrealloc): Use them.
90316         (xcalloc): Check for address arithmetic overflow.
90317         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90318         a bit faster than strcpy.
90319
90320 2003-10-10  Simon Josefsson  <jas@extundo.com>
90321
90322         * modules/argp (Depends-on): Add restrict and strcase.
90323
90324 2003-10-10  Simon Josefsson  <jas@extundo.com>
90325
90326         * m4/argp.m4: Add AC_C_INLINE.
90327
90328 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90329
90330         Merge getpass from libc, plus a few fixes.
90331
90332         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90333         Include <stdbool.h>.
90334         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90335         __fsetlocking to empty.
90336         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90337         do include <bits/libc-lock.h>.
90338         Do not include <fcntl.h>; not needed.
90339         [_LIBC]: Include <wchar.h>.
90340         (NOTCANCEL_MODE): New macro.
90341         (flockfile, funlockfile) [_LIBC]: New macros.
90342         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90343         [!_LIBC]: New macros.
90344         (call_fclose): New function.
90345         (getpass): Use it.  Save tty stream separately; this simplifies the
90346         code and makes it more reliable if stdin happens to equal stdout.
90347         Invoke __fsetlocking on tty.
90348         Handle thread cancellation if needed.
90349         Namespace cleanup (use __tcgetattr, __getline).
90350         Use bool for Booleans.
90351         [USE_IN_LIBIO]: Handle wide streams.
90352         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90353         stream might go where.
90354
90355         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90356         doesn't have to include <stdio.h> before us.
90357         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90358         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90359         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90360         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90361         if not declared, so that we can use getpass.c code from libc without
90362         rewriting it.
90363         (flockfile, ftrylockfile, funlockfile): New macros.
90364
90365 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90366
90367         * modules/getpass: Depend on stdbool.
90368
90369 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90370
90371         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90372
90373 2003-10-07  Karl Berry  <karl@gnu.org>
90374
90375         * config/config.{guess,sub}: update from config.
90376
90377 2003-10-06  Jim Meyering  <jim@meyering.net>
90378             Bruno Haible  <bruno@clisp.org>
90379
90380         This lets translators provide better translations for the
90381         "Written by ..." part of --version output.
90382         * lib/version-etc.h: Include stdarg.h.
90383         (version_etc_copyright): Declare as readonly.
90384         (version_etc): Make this function variadic with a NULL-terminated list
90385         of author name strings.
90386         (version_etc_va): New declaration.
90387         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90388         (version_etc_copyright): Declare as readonly.
90389         (version_etc_va): New function. Provide a different translatable string
90390         for each possible number of authors < 10. Abbreviate when there are 10
90391         authors or more.
90392         (version_etc): Make this function variadic. Call version_etc_va.
90393         Suggestion from Gary V. Vaughan.
90394
90395         * lib/long-options.h (parse_long_options): Change prototype: the
90396         authors string is moved to the end and becomes variadic.
90397         * lib/long-options.c: Include stdarg.h.
90398         (parse_long_options): Make this function variadic, too.
90399         Call version_etc_va, not version_etc.
90400
90401 2003-10-06  Bruno Haible  <bruno@clisp.org>
90402
90403         * modules/version-etc-2: Remove file.
90404         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90405
90406 2003-10-06  Bruno Haible  <bruno@clisp.org>
90407
90408         * modules/fatal-signal: New file.
90409         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90410
90411 2003-10-06  Bruno Haible  <bruno@clisp.org>
90412
90413         * m4/fatal-signal.m4: New file.
90414         * m4/signalblocking.m4: New file, from GNU gettext.
90415
90416 2003-10-06  Bruno Haible  <bruno@clisp.org>
90417
90418         * lib/version-etc-2.h: Remove file.
90419         * lib/version-etc-2.c: Remove file.
90420
90421 2003-10-06  Bruno Haible  <bruno@clisp.org>
90422
90423         * lib/fatal-signal.h: New file, from GNU gettext.
90424         * lib/fatal-signal.c: New file, from GNU gettext.
90425
90426 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90427
90428         * README: Rework advice for preventing empty .o files.
90429         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90430         not <sys/types.h>.
90431
90432 2003-10-04  Karl Berry  <karl@gnu.org>
90433
90434         * lib/argp*: update from libc.
90435
90436 2003-10-04  Karl Berry  <karl@gnu.org>
90437
90438         * config/config.{guess,sub}: update from config.
90439
90440 2003-10-02  Bruno Haible  <bruno@clisp.org>
90441
90442         * modules/lchown (Include): Add lchown.h.
90443         * modules/time_r (Include): Use "..." syntax.
90444         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90445
90446 2003-10-01  Simon Josefsson  <jas@extundo.com>
90447
90448         * MODULES.html.sh (func_all_modules): Move gethostname from section
90449         'based on' to section 'lacking' POSIX:2001.
90450
90451 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90452
90453         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90454         to output mode on the same stream.
90455
90456 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90457
90458         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90459         Fix arg typo in previous patch.
90460
90461 2003-09-28  Jim Meyering  <jim@meyering.net>
90462
90463         * lib/error.c: Correct cpp indentation.
90464
90465 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90466
90467         * modules/free: New file.
90468
90469 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90470
90471         * m4/free.m4: New file.
90472
90473 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90474
90475         * lib/minmax.h (MIN, MAX)
90476         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90477         Omit the special code that used __typeof__, since we worry that
90478         it could be more trouble than it's worth.  See:
90479         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90480         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90481
90482         * lib/free.c: New file.
90483
90484 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90485
90486         Trivial fixes to Makefile.am parts of module listings.
90487         * modules/strstr: Append strstr.h to lib_SOURCES.
90488         * modules/strcase: Likewise, for strcase.h.
90489
90490 2003-09-27  Karl Berry  <karl@gnu.org>
90491
90492         * config/mkinstalldirs: update from automake.
90493
90494 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90495
90496         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90497         (error_tail): Do not loop, reallocating temporary buffer, since
90498         the output cannot contain more wide characters than the input
90499         contains bytes, the size must be big enough already.  This avoids
90500         one potential size overflow calculation.  Check for size overflow
90501         when calculating temporary buffer size.  Free temporary buffer
90502         when done, if it was allocated with malloc; this plugs a memory
90503         leak.  Remove casts from void * to pointers, that are no longer
90504         needed now that we're assuming C89 or better.
90505
90506         Merge error changes from glibc.
90507
90508         * lib/error.c, error.h: Update copyright notice header to match glibc.
90509         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90510         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90511         Disable cancellation while printing error.
90512         * lib/error.h: Prepend __ to parameter names.
90513
90514 2003-09-26  Jim Meyering  <jim@meyering.net>
90515
90516         * lib/error.c (error_tail): Move some declarations
90517         into inner scope where the local variables are used.
90518
90519 2003-09-26  Bruno Haible  <bruno@clisp.org>
90520
90521         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90522         stpncpy().
90523         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90524
90525 2003-09-26  Bruno Haible  <bruno@clisp.org>
90526
90527         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90528         (stpncpy): Define as alias for gnu_stpncpy.
90529         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90530
90531 2003-09-25  Simon Josefsson  <jas@extundo.com>
90532
90533         * lib/xgetdomainname.h: New file.
90534         * lib/xgetdomainname.c: New file.
90535
90536 2003-09-25  Simon Josefsson  <jas@extundo.com>
90537             Bruno Haible  <bruno@clisp.org>
90538
90539         * modules/getdomainname: New file.
90540         * modules/xgetdomainname: New file.
90541         * MODULES.html.sh (func_all_modules): Add getdomainname,
90542         xgetdomainname.
90543
90544 2003-09-25  Simon Josefsson  <jas@extundo.com>
90545             Bruno Haible  <bruno@clisp.org>
90546
90547         * m4/getdomainname.m4: New file.
90548
90549 2003-09-25  Simon Josefsson  <jas@extundo.com>
90550             Bruno Haible  <bruno@clisp.org>
90551
90552         * lib/getdomainname.h: New file.
90553         * lib/getdomainname.c: New file.
90554
90555 2003-09-25  Karl Berry  <karl@gnu.org>
90556
90557         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90558
90559 2003-09-25  Karl Berry  <karl@gnu.org>
90560
90561         * config/install-sh: update from automake.
90562
90563 2003-09-25  Bruno Haible  <bruno@clisp.org>
90564
90565         * modules/version-etc-2: New file, from modules/version-etc with
90566         modifications.
90567         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90568
90569 2003-09-25  Bruno Haible  <bruno@clisp.org>
90570
90571         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90572         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90573
90574 2003-09-24  Simon Josefsson  <jas@extundo.com>
90575
90576         * modules/xgethostname: Add xgethostname.h.
90577
90578 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90579
90580         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90581         the buffer associated with the argument.  Bug reported by
90582         Simon Josefsson.
90583
90584 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90585
90586         * README: Document assumptions that 'int' is at least 32 bits
90587         wide, that integer arithmetic is 2's complement without overflow,
90588         that there are no holes in integer values, that adding sizes of
90589         two nonoverlapping objects can't overflow, and that all-bits-zero
90590         yields scalar zero.  Fix spelling and capitalization typos.
90591
90592 2003-09-19  Karl Berry  <karl@gnu.org>
90593
90594         * lib/argp.h: update from libc.
90595
90596 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90597
90598         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90599         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90600         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90601
90602 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90603
90604         * gnulib-tool: Use "test -h", not "test -L", for portability
90605         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90606         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90607         (sed_extract_prog): Issue s commands one-by-one, rather than
90608         using \| in one s command.
90609
90610 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90611
90612         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90613         input error, instead of returning NULL the next time we are called
90614         (and therefore losing track of errno).
90615
90616 2003-09-16  Bruno Haible  <bruno@clisp.org>
90617
90618         * gnulib-tool (func_create_testdir): Warn about duplicated
90619         dependencies.
90620
90621 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90622
90623         * modules/argmatch, modules/fatal, modules/obstack,
90624         modules/xalloc, modules/xgethostname: Sort dependencies by
90625         importance, not alphabetically.
90626
90627 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90628
90629         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90630         fails, so that the caller gets the proper errno.
90631
90632         * lib/readutmp.c (read_utmp): Likewise.
90633         Check for fstat error.  Close stream and free storage
90634         when failing.
90635
90636 2003-09-14  Karl Berry  <karl@gnu.org>
90637
90638         * config/srclist.txt (strdup.c): disable for c89 changes.
90639
90640 2003-09-14  Jim Meyering  <jim@meyering.net>
90641
90642         * lib/getloadavg.c: Correct cpp indentation.
90643         * lib/strdup.c: Likewise.
90644         * lib/vasnprintf.c: Likewise.
90645
90646 2003-09-14  Bruno Haible  <bruno@clisp.org>
90647
90648         * modules/fwriteerror: New file.
90649         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90650
90651 2003-09-14  Bruno Haible  <bruno@clisp.org>
90652
90653         * lib/fwriteerror.h: New file.
90654         * lib/fwriteerror.c: New file.
90655
90656 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90657
90658         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90659         modules/xgethostname, modules/xalloc: Depend on exit.
90660
90661 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90662
90663         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90664
90665         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90666         and AC_MINIX, too, so that their extensions are available.
90667
90668         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90669         This macro has been superseded by gl_BACKUPFILE.
90670
90671         More patches to assume C89 or better.
90672
90673         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90674
90675         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90676         unconditionally.
90677         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90678         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90679         Include <string.h>, <stdlib.h> unconditionally.
90680         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90681         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90682         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90683         headers or for string.h.
90684         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90685         or strtoul.
90686
90687         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90688         headers.
90689         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90690         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90691         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90692         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90694         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90695         memcpy, memset.
90696         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90697         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90698         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90699         strtol.
90700         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90701         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90702         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90703         strtoul.
90704
90705 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90706
90707         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90708         * lib/obstack.c [!defined _LIBC]: Likewise.
90709         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90710         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90711         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90712
90713         More changes to assume C89 or better.
90714
90715         * lib/error.c (error_tail): Assume vprintf.
90716
90717         * lib/argmatch.c (getenv): Remove decl.
90718         * lib/progreloc.c (get_full_program_name): Define via prototype.
90719         * lib/setenv.c (clearenv): Likewise.
90720         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90721         needed.
90722         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90723         (malloc, memcpy): Remove decls.
90724         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90725         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90726         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90727         (memcpy): Remove macro.
90728         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90729         (__P): Remove.  All uses removed.
90730         (PTR): Remove.  All uses changed to void *.
90731         (CHAR_BIT, NULL): Remove.
90732         (spaces, zeros, memset_space, memset_zero)
90733         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90734         Remove.
90735         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90736         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90737         Define with prototype.
90738         Remove now-unnecessary prototype decl.
90739         (extra_args_spec): Assume ANSI C.  All uses changed.
90740         (extra_args_spec_iso): Remove.
90741         (my_strftime, emacs_strftimeu): Define via prototype.
90742         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90743         unconditionally.
90744         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90745         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90746         (strtoul, strtol): Remove decls.
90747         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90748         LONG_MAX): Remove.
90749         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90750         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90751         (LOCALE_PARAM_PROTO): New macro.
90752         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90753         (INTERNAL (strtol), strtol): Define with a prototype.
90754         (PARAMS): Remove.  All uses removed.
90755         * lib/tempname.c: Include <string.h> unconditionally.
90756         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90757         * lib/xgethostname.c (main): Define with a prototype.
90758         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90759         Include <stdlib.h> unconditionally.
90760         (calloc, malloc, realloc, free): Remove decls.
90761         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90762         Include <stdlib.h> unconditionally.  Sort include file names.
90763         (strtod): Remove.
90764         (xstrtod): Define with a prototype.
90765         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90766         (strtol, strtoul): Remove decls.
90767
90768 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90769
90770         More patches to assume C89 or better.
90771         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90772         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90773         string.h, memchr, STDC_HEADERS.
90774
90775 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90776
90777         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90778         Include <stdlib.h>, <string.h> unconditionally.
90779         Remove now-unnecessary cast to char *.
90780         * lib/strnlen.c: Include <string.h> unconditionally.
90781         * lib/yesno.c (yesno): Define with a prototype.
90782
90783 2003-09-11  Bruno Haible  <bruno@clisp.org>
90784
90785         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90786
90787 2003-09-10  Jim Meyering  <jim@meyering.net>
90788
90789         * lib/error.c: Correct indentation of cpp directives.
90790
90791 2003-09-10  Bruno Haible  <bruno@clisp.org>
90792
90793         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90794         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90795         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90796         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90797         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90798         <stdlib.h> and <string.h> checks.
90799         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90800         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90801
90802 2003-09-10  Bruno Haible  <bruno@clisp.org>
90803
90804         * lib/strcspn.c: Include <string.h> unconditionally.
90805         * lib/strpbrk.c: Include <string.h> unconditionally.
90806         * lib/strstr.c: Include <string.h> unconditionally.
90807         * lib/unicodeio.c: Include <string.h> unconditionally.
90808         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90809         * lib/unsetenv.c: Likewise.
90810         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90811         * lib/yesno.c: Include <stdlib.h> unconditionally.
90812         (rpmatch): Add prototype.
90813
90814 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90815
90816         More patches to assume C89 or better.
90817         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90818         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90819         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90820         or for string.h.
90821         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90822         stdlib.h.
90823         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90824         C headers.
90825         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90826         string.h.
90827         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90828         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90829         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90830         or for string.h.
90831         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90832         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90833         C headers.
90834         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90835         memcpy.
90836         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90837         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90838         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90839         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90840         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90841         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90842         string.h, free.
90843         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90844         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90845         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90846         C headers, or for string.h.
90847         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90848         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90849         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90850         headers, memory.h, stdlib.h, string.h, strings.h.
90851         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90852         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90853         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90854         strchr.
90855         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90856         headers, memory.h, string.h.
90857         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90858         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90859         free.
90860         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90861         headers.
90862         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90863         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90864         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90865         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90866         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90867
90868 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90869
90870         More K&R removal.
90871
90872         * lib/acosl.c (main): Use a prototype.
90873         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90874         tanl.c: Likewise.
90875
90876         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90877
90878         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90879         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90880         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90881         with a prototype.
90882         * lib/getopt.c (const): Remove macro.
90883         Include <string.h> unconditionally.
90884         (my_index): Remove; all uses changed to strchr.
90885         (strlen): Remove decl.
90886         (exchange): Remove forward decl; no longer needed.
90887         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90888         Define with prototype.
90889         * lib/getopt1.c (const): Remove macro.
90890         (getopt_long, getopt_long_only, main): Define with prototype.
90891
90892         * lib/getugroups.c: Include <string.h> unconditionally.
90893
90894         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90895         (getusershell, setusershell, endusershell, readname, main):
90896         Define with prototypes.
90897
90898         * lib/group-member.c: Include group-member.h first.
90899         Include <stdlib.h> unconditionally.
90900
90901         * lib/hard-locale.c: Include hard-locale.h first.
90902         Include <stdlib.h>, <string.h> unconditionally.
90903
90904         * lib/hash.c (free, malloc): Remove decls.
90905         Include <stdlib.h> unconditionally.
90906
90907         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90908         (getenv): Do not declare.
90909
90910         * lib/idcache.c: Include <string.h> unconditionally.
90911
90912         * lib/long-options.c: Include long-options.h first, to test interface.
90913         Include <stdlib.h> unconditionally.
90914
90915         * lib/makepath.c: Include makepath.h first, to test interface.
90916         Include <stdlib.h> and <string.h> unconditionally.
90917
90918         * lib/linebuffer.c: Include <stdlib.h>.
90919         (free): Remove decl.
90920
90921         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90922         stddef.h. rpl_malloc returns void *, not char *.
90923         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90924         prototype.
90925
90926         * lib/md5.h: Include <limits.h> unconditionally.
90927         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90928         (__P): Remove; all uses removed.
90929         * lib/md5.c: Include "md5.h" first.
90930         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90931         md5_buffer, md5_process_bytes, md5_process_block):
90932         Define with prototypes.
90933         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90934         * lib/sha.c: Include "sha.h" first.
90935         Include <stdlib.h>, <string.h> unconditionally.
90936
90937         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90938         * lib/memcmp.c (__ptr_t): Likewise.
90939         * lib/memrchr.c (__ptr_t): Likewise.
90940         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90941         Include <string.h> unconditionally.
90942         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90943         * lib/memchr.c: Include <stdlib.h> unconditionally.
90944         * lib/memchr.c (LONG_MAX): Remove.
90945         * lib/memrchr.c (LONG_MAX): Likewise.
90946         * lib/memchr.c (__memchr): Define via a prototype.
90947         * lib/memrchr.c (__memrchr): Likewise.
90948         * lib/memcmp.c (__P): Remove, and remove all uses.
90949         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90950         Remove forward decls; no longer needed.
90951         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90952         Use types required by C89 in prototype.
90953
90954         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90955         * lib/savedir.c: Likewise.
90956         * lib/mkdir.c (free): Remove decl.
90957         * lib/rmdir.c (rmdir): Define with a prototype.
90958         * lib/savedir.c: Include savedir.h first, to test interface.
90959
90960         * lib/mktime.c (STDC_HEADERS): Remove.
90961         Include <stdlib.h>, <string.h> unconditionally.
90962
90963         * lib/modechange.c: Include <stdlib.h> unconditionally.
90964         (malloc): Remove decl.
90965
90966         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90967         (free): Remove decl.
90968
90969         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90970         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90971         (This type really should be intptr_t, but that's a C99ism.)
90972         (_obstack_memcpy): Remove: all uses changed to memcpy.
90973         Include <string.h> unconditionally.
90974         (struct obstack): Assume __STDC__ for types of members
90975         chunkfun, freefun, extra_arg.
90976         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90977         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90978         obstack_begin, obstack_specify_allocation,
90979         obstack_specify_allocation_with_arg, obstack_chunkfun,
90980         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90981         Remove unprototyped decls and the macros that use them.
90982         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90983         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90984         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90985         (defined __STDC__ && __STDC__)]:
90986         Remove nonprototyped code.
90987         Include <stdlib.h> unconditionally.
90988         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90989         _obstack_allocated_p, _obstack_free, obstack_free,
90990         _obstack_memory_used, print_and_abort):
90991         Define using prototypes.
90992         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90993         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90994         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90995         obstack_next_free, obstack_object_size, obstack_room) [0]:
90996         Remove unused, unprototyped code.
90997
90998         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90999
91000         * lib/physmem.c (physmem_total, physmem_available, main): Define
91001         with prototypes.
91002
91003         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91004         (main): Define with a prototype.
91005
91006         * lib/posixver.c (getenv): Remove decl.
91007
91008         * lib/putenv.c (malloc): Returns void *, not char *.
91009         Include <string.h> unconditionally.
91010         (strchr, memcpy, NULL): Do not define.
91011
91012         * lib/readtokens.c: Include readtokens.h first, to test interface.
91013         Include <stdlib.h>, <string.h> unconditionally.
91014         (init_tokenbuffer): Define with a prototype.
91015
91016         * lib/regex.c (PARAMS): Remove.  All uses removed.
91017         All uses of _RE_ARGS removed, too.
91018         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91019         unconditionally.
91020         (bzero): Assume memset exists.
91021         (memcmp, memcpy, NULL): Remove.
91022         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91023         char, or assignments to local vars of type signed char.
91024         (init_syntax_once, PREFIX(extract_number_and_incr),
91025         PREFIX(print_partial_compiled_pattern),
91026         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91027         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91028         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91029         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91030         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91031         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91032         wcs_compile_range, byte_compile_range, truncate_wchar,
91033         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91034         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91035         count_mbs_length, wcs_re_match_2_internal,
91036         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91037         PREFIX(alt_match_null_string_p),
91038         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91039         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91040         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91041         now-unnecessary declaration, if any.
91042         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91043         regcomp, regexec):
91044         Remove now-unnecessary casts among pointer types.
91045         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91046
91047         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91048         (free): Remove decl.
91049
91050         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91051
91052         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91053         (free): Remove decl.
91054
91055         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91056         * lib/xgetcwd.c: Likewise.
91057
91058         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91059         (free): Remove decl.
91060
91061         * lib/strchrnul.c (strchrnul): Define with a prototype.
91062         Fix bug: c_in was not converted to char before searching.
91063
91064         The following changes are not K&R related:
91065
91066         * lib/group-member.h: Include <sys/types.h>, so that this file is
91067         self-contained.
91068         * lib/makepath.h: Likewise.
91069
91070         * lib/getusershell.c (readname, default_index, line_size, readname):
91071         Use size_t, not int, for sizes.
91072         (readname): If the size overflows, report an error instead of
91073         looping forever.
91074
91075 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91076
91077         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91078         libc.
91079
91080 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91081
91082         * README: New section: portability guidelines.
91083
91084 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91085
91086         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91087         C89 spec.
91088
91089 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91090
91091         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91092
91093 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91094
91095         Assume C89 or better; remove K&R cruft.
91096         A few of these changes were first proposed by Derek Robert Price
91097         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91098
91099         * lib/addext.c: Include <string.h> unconditionally.
91100         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91101         Don't declare getenv or malloc.
91102
91103         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91104         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91105         (NULL): Remove.
91106         (find_stack_direction, alloca): Use prototypes.
91107
91108         * lib/atexit.c (atexit): Define using a prototype.
91109
91110         * lib/basename.c, dirname.c, stripslash.c:
91111         Include <string.h> unconditionally.
91112
91113         * lib/bcopy.c: Include <stddef.h>.
91114         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91115
91116         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91117
91118         * lib/error.h (error, error_at_line, error_print_progname)
91119         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91120         * lib/error.c: Include error.h first, to check interface.
91121         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91122         (VA_START): Remove; all uses changeed to va_start.
91123         (exit, strerror): Remove decls.
91124         (error_print_progname): Prototype uncondionally.
91125         Don't include <errno.h>; no longer needed.
91126         (private_strerror): Remove.
91127         (error_tail): Always define.
91128         (error, error_at_line): Assume C89 or better; always use prototypes.
91129         * lib/fatal.c: Include "fatal.h" first, to test interface.
91130         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91131         (VA_START): Remove; all uses changed to va_start.
91132         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91133         this case.
91134         (exit): Remove decl.
91135         (fatal): Prototype unconditionally.  Assume va_start works.
91136         Abort at end, to pacify gcc.
91137
91138         * lib/euidaccess.c (main): Define with a prototype.
91139
91140         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91141
91142         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91143
91144         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91145         prototypes.
91146         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91147         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91148         (getenv): Remove decl.
91149         (fnmatch): Define using a prototype.
91150         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91151         (FCT): Define using a prototype.
91152
91153         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91154
91155         * lib/gethostname.c: Include <stddef.h>.
91156         (gethostname): Define with prototype.  Length is size_t, not int.
91157
91158 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91159
91160         Assume C89 or better; remove K&R cruft.
91161         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91162         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91163         string.h, getenv, malloc.
91164         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91165         headers.
91166         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91167         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91168         do not check for strerror.
91169         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91170         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91171         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91172         do not check for doprnt or vprintf.
91173         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91174         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91175
91176 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91177
91178         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91179         getversion.c should have been removed then, but was accidentally
91180         preserved.
91181
91182         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91183         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91184
91185 2003-09-08  Karl Berry  <karl@gnu.org>
91186
91187         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91188                 config, forget about prep.
91189
91190         * config/depcomp, missing: update from automake.
91191
91192 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91193
91194         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91195         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91196
91197 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91198
91199         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91200         copy_tm_result.  Bug reported by Simon Josefsson in
91201         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91202
91203 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91204
91205         * m4/time_r.m4: New file.
91206         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91207         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91208         is. Check for timegm declaration.
91209         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91210         Do not check for gmtime_r.
91211         Replace mktime if __mktime_internal does not exist and if mktime
91212         hasn't been replaced already.
91213
91214 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91215
91216         * lib/time_r.c, lib/time_r.h: New files.
91217
91218         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91219         __localtime_r.
91220         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91221         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91222
91223         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91224         __gmtime_r.
91225         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91226         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91227         Include <time_r.h>.
91228
91229         * lib/timegm.c: Switch to glibc implementation, with the following
91230         changes:
91231         [defined HAVE_CONFIG_H]: Include <config.h>.
91232         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91233         (__mktime_internal) [!defined _LIBC]: New decl.
91234         (__gmtime_r) [!defined _LIBC]: New macro and function.
91235         (timegm): Use a prototype, since gnulib assumes C89.
91236         Do not bother declaring tmp to be const, as it's not really usefu.
91237         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91238         (timegm): Declare only if HAVE_DECL_TIMEGM.
91239
91240 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91241
91242         * MODULES.html.sh (func_all_modules): Add time_r.
91243         * modules/time_r: New file.
91244         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91245         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91246
91247 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91248
91249         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91250         Bug reported by Lute Kamstra in
91251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91252
91253         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91254         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91255         course with correspondingly smaller numbers for tomorrow and
91256         yesterday.  From Tadayoshi Funaba.  Originally installed into
91257         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91258         coreutils merge?).
91259
91260 2003-08-31  Simon Josefsson  <jas@extundo.com>
91261
91262         * modules/timegm: New file.
91263         * MODULES.html.sh (func_all_modules): Add timegm.
91264
91265 2003-08-31  Simon Josefsson  <jas@extundo.com>
91266
91267         * m4/timegm.m4: New file.
91268
91269 2003-08-31  Simon Josefsson  <jas@extundo.com>
91270
91271         * lib/timegm.h: New file.
91272         * lib/timegm.c: New file.  Based on
91273         wget-1.8.2/src/http.c:mktime_from_utc.
91274
91275 2003-08-31  Karl Berry  <karl@gnu.org>
91276
91277         * lib/argp.h: update from libc.
91278
91279 2003-08-28  Bruno Haible  <bruno@clisp.org>
91280
91281         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91282         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91283         followed by '#define fnmatch fnmatch_posix' gives an error.
91284
91285 2003-08-28  Bruno Haible  <bruno@clisp.org>
91286
91287         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91288         warning on QNX, which defines O_BINARY to 000000.
91289
91290 2003-08-27  Jim Meyering  <jim@meyering.net>
91291
91292         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91293         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91294         would fail after 32.  Reported by Danny Levinson.  Details here:
91295         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91296
91297 2003-08-24  Bruno Haible  <bruno@clisp.org>
91298
91299         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91300         MSVC7 <stdio.h> is included later.
91301
91302 2003-08-22  Simon Josefsson  <jas@extundo.com>
91303
91304         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91305
91306 2003-08-20  Karl Berry  <karl@gnu.org>
91307
91308         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91309
91310 2003-08-20  Bruno Haible  <bruno@clisp.org>
91311
91312         * modules/progname: New file.
91313         * MODULES.html.sh (func_all_modules): Add progname.
91314
91315 2003-08-20  Bruno Haible  <bruno@clisp.org>
91316
91317         * lib/progname.h: New file, from GNU gettext.
91318         * lib/progname.c: New file, from GNU gettext.
91319         * lib/progreloc.c: New file, from GNU gettext.
91320
91321 2003-08-19  Jim Meyering  <jim@meyering.net>
91322
91323         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91324         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91325
91326 2003-08-19  Bruno Haible  <bruno@clisp.org>
91327
91328         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91329         more.
91330
91331 2003-08-19  Bruno Haible  <bruno@clisp.org>
91332
91333         * lib/xstrdup.c: Assume <string.h> exists.
91334
91335 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91336
91337         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91338         in makefile rules.
91339
91340 2003-08-18  Jim Meyering  <jim@meyering.net>
91341
91342         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91343         * m4/lib-ld.m4: Likewise.
91344
91345 2003-08-18  Jim Meyering  <jim@meyering.net>
91346
91347         * lib/setenv.h: Indent nested cpp directive.
91348         * lib/vasnprintf.c: Remove trailing blanks.
91349
91350 2003-08-17  Simon Josefsson  <jas@extundo.com>
91351
91352         * modules/xstrndup: New file.
91353         * MODULES.html.sh (func_all_modules): Add xstrndup.
91354
91355 2003-08-17  Simon Josefsson  <jas@extundo.com>
91356
91357         * modules/argp: Fix autoconf macro name. Add more dependencies.
91358
91359 2003-08-17  Simon Josefsson  <jas@extundo.com>
91360
91361         * m4/xstrndup.m4: New file.
91362
91363 2003-08-17  Simon Josefsson  <jas@extundo.com>
91364
91365         * m4/argp.m4: New file.
91366
91367 2003-08-17  Simon Josefsson  <jas@extundo.com>
91368             Bruno Haible  <bruno@clisp.org>
91369
91370         * lib/xstrndup.h: New file.
91371         * lib/xstrndup.c: New file.
91372
91373 2003-08-17  Bruno Haible  <bruno@clisp.org>
91374
91375         * modules/strndup (Files, Include): Add lib/strndup.h.
91376
91377 2003-08-17  Bruno Haible  <bruno@clisp.org>
91378
91379         * modules/euidaccess (Files): Add lib/euidaccess.h.
91380
91381 2003-08-17  Bruno Haible  <bruno@clisp.org>
91382
91383         * lib/strndup.h: New file.
91384
91385 2003-08-17  Bruno Haible  <bruno@clisp.org>
91386
91387         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91388         like AC_GNU_SOURCE.
91389         * modules/extensions (configure.ac): Comment out the invocation of
91390         gl_USE_SYSTEM_EXTENSIONS.
91391
91392 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91393
91394         Merges from coreutils, etc.
91395         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91396         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91397         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91398         fixing a typo.
91399         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91400         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91401
91402 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91403
91404         Document merge from coreutils.
91405         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91406         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91407         * modules/utime: Add m4/utimes-null.m4.
91408
91409 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91410
91411         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91412         space, undoing this 2003-08-12 change:
91413         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91414
91415 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91416
91417         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91418         strtoul.c from libc, undoing this 2003-08-12 change:
91419         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91420
91421 2003-08-16  Jim Meyering  <jim@meyering.net>
91422
91423         Merges from coreutils.
91424         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91425         prefix.  Adjust cache variables similarly.  Create 500 rather than
91426         just 300 files, to exercise bug on Darwin6.5, too.
91427         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91428         $missing_dir.
91429         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91430         AM_SYS_POSIX_TERMIOS.
91431         Reported by mkc@mathdogs.com.
91432         Also change use of $am_cv_sys_posix_termios
91433         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91434         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91435         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91436         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91437         in /proc/mounts until it finds one with matching device number.  This
91438         is unnecessary when the FILE argument *is* a mount point.  No stat call
91439         is necessary in that case.  So, disable the statvfs-testing code on
91440         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91441         as RedHat bug# 84846.
91442         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91443         to 1MB, so as not to render systems with no stack size limit (e.g.,
91444         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91445         Include <unistd.h>.  On some systems,
91446         it is required for the definition of _SC_PAGESIZE.
91447
91448 2003-08-16  Jim Meyering  <jim@meyering.net>
91449
91450         Merge from coreutils.
91451         * lib/xstrtoimax.c: #else #if -> #elif.
91452         * lib/xstrtoumax.c: Likewise.
91453
91454 2003-08-16  Jim Meyering  <jim@meyering.net>
91455
91456         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91457         * m4/utimes.m4: Removed.
91458         * m4/utimes-null.m4: Renamed from utimes.m4.
91459
91460         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91461         to 1MB, so as not to render systems with no stack size limit (e.g.,
91462         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91463         Include <unistd.h>.  On some systems,
91464         it is required for the definition of _SC_PAGESIZE.
91465
91466 2003-08-16  Jim Meyering  <jim@meyering.net>
91467         and Paul Eggert  <eggert@cs.ucla.edu>
91468
91469         Merges from coreutils, etc.
91470
91471         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91472         using the latest version from cvs.  This avoids problems with #line
91473         directives using a vendor (Sun) compiler.
91474         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91475         Don't set GETGROUPS_LIB here; now it's
91476         done via getgroups.m4's wrapper function.
91477         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91478         rather than just in sh-util/configure.in, so that the
91479         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91480         same.
91481         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91482         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91483         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91484         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91485         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91486         Remove code that is now done by the newly-required macros.
91487         Append $(EXEEXT) to DF_PROG.
91488         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91489         Do not invoke or require the following here,
91490         since prereq.m4 or some gnulib .m4 now does this for us:
91491         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91492         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91493         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91494         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91495         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91496         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91497         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91498         AC_FUNC_OBSTACK.
91499         Do not replace the following functions, as this is now the job
91500         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91501         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91502         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91503         atexit getpass, strdup, getpagesize.
91504         Replace 'raise'.
91505         Do not check for the following functions, as this is now the job
91506         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91507         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91508         setregid.
91509         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91510         Check for sys/sysctl.h.
91511         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91512         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91513         of checking for ssize_t ourselves.
91514
91515         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91516         Require every macro that gnulib/modules/* suggests for us.
91517         (jm_PREREQ_ADDEXT): New macro.
91518         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91519         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91520
91521         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91522         (gl_PHYSMEM): Use it.
91523         Also check for `table' function.
91524         Check for new headers and functions.
91525         Add check for sys/sysmp.h.
91526         With suggestions from Kaveh Ghazi.
91527         Ignore headers that are present but cannot be compiled.  This
91528         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91529         C 5.4.
91530
91531 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91532
91533         Document merge from coreutils.
91534         * modules/userspec: Depend on posixver.
91535         * modules/strftime: Depend on tzset.
91536
91537 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91538
91539         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91540         rather than tab, after '#' in shell-script copyright notices.
91541         Suggested by Bruno Haible.
91542
91543 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91544
91545         * config/srclist-update: Use three spaces, rather than tab, after '#'
91546         in shell-script copyright notices.  Suggested by Bruno Haible.
91547         Remove unnecessary parenthesization in regular expression.
91548
91549 2003-08-15  Jim Meyering  <jim@meyering.net>
91550
91551         Merge from coreutils.
91552         * lib/xgethostname.c: Include <stdlib.h>.
91553         (xghostname): Don't exit for anything other than memory-related
91554         failure; just return NULL.
91555         * lib/userspec.c: Include "posixver.h".
91556         (parse_user_spec): Accept `.' as a separator only
91557         in pre-POSIX-200112 mode.
91558         * lib/strtoimax.c: Use #elif rather than #else #if.
91559         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91560         Remove function, now that we can rely on a working tzset function.
91561         [!_LIBC]: Ensure that the required autoconf test has been run.
91562         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91563         Use underlying_strftime for %r.
91564         * lib/sha.c: Merge in some clean-up and optimization changes from
91565         glibc.
91566         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91567         Ensure that it is a multiple of 64.
91568         Rearrange loop exit tests so as to avoid performing an
91569         additional fread after encountering an error or EOF.
91570         * lib/realloc.c: Update copyright date.
91571
91572 2003-08-15  Jim Meyering  <jim@meyering.net>
91573         and Paul Eggert  <eggert@twinsun.com>
91574
91575         Merge from coreutils.
91576         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91577         member but strut utmpx does not.  Needed for AIX 4.3.3.
91578         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91579
91580 2003-08-15  Jim Meyering  <jim@meyering.net>
91581         and Paul Eggert  <eggert@cs.ucla.edu>
91582
91583         Merges from coreutils, etc.
91584         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91585         Require gl_FUNC_TZSET_CLOBBER.
91586         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91587         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91588         members.
91589
91590 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91591
91592         Help the merge from coreutils.
91593         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91594         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91595         * m4/tzset.m4: Use it too.
91596
91597 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91598
91599         * modules/tzset: New file.
91600
91601 2003-08-14  Jim Meyering  <jim@meyering.net>
91602
91603         Merges from coreutils.
91604         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91605         variable names, rather than @FNMATCH_H@.
91606         * modules/alloca: Likewise for $(ALLOCA_H).
91607
91608         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91609         the three copies of the literal target, `fnmatch.h'.
91610         * modules/alloca (alloca.h): Likewise.
91611
91612 2003-08-14  Jim Meyering  <jim@meyering.net>
91613
91614         Merge from coreutils.
91615         * m4/tzset.m4: New file.
91616         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91617         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91618         otherwise, AIX 5.1 systems would end up using the latter.
91619         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91620         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91621         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91622         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91623
91624 2003-08-14  Jim Meyering  <jim@meyering.net>
91625
91626         Merge from coreutils.
91627         * lib/obstack.h: Whitespace changes.
91628         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91629         and xcalloc return values.
91630         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91631         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91632         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91633         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91634         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91635         error from mntctl.
91636         Use mntctl's return value to drive the entry-processing loop, since
91637         we can't rely on the value of the vmt_length member in the last
91638         entry.  On some systems doing so could result in exhausting
91639         virtual memory.  Based in part on a patch from Mike Jetzer.
91640
91641 2003-08-14  Jim Meyering  <jim@meyering.net>
91642         and Paul Eggert  <eggert@twinsun.com>
91643
91644         Merges from coreutils, plus other fixes.
91645         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91646         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91647         for credits and details.  Thanks to Kaveh Ghazi for helping
91648         to keep these files in sync.
91649         (ARRAY_SIZE): Define it.
91650         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91651         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91652         (memcasecmp): Don't assume size_t fits in unsigned int.
91653         Remove casts and duplicate code.
91654         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91655         (memcpy): Remove definition.
91656         Merge in some clean-up and optimization changes from glibc.
91657         [BLOCKSIZE]: Move definition to top of file.
91658         Ensure that it is a multiple of 64.
91659         Rearrange loop exit tests so as to avoid performing an
91660         additional fread after encountering an error or EOF.
91661         * lib/md5.h (md5_uintptr): Define.
91662         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91663         return to the initial working directory.  Preserve errno
91664         for caller.
91665         * lib/idcache.c: Include "xalloc.h".
91666         (xmalloc, xrealloc): Remove decls.
91667         (getuser): Remove casts no longer required in C89.
91668         * lib/human.c: Include stdio.h, for sprintf.
91669         * lib/group-member.c: Include "xalloc.h".
91670         (xmalloc, xrealloc): Remove decls.
91671         (get_group_info): Remove casts no longer required in C89.
91672         * lib/getusershell.c (readname): Remove casts no longer required in
91673         C89.
91674         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91675         * lib/getline.c: Whitespace fix, from coreutils.
91676
91677 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91678
91679         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91680         Check for isascii.
91681
91682         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91683         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91684         Undo previous (whitespace-only) change.
91685
91686 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91687
91688         * lib/exclude.c: Include <ctype.h>
91689         (IN_CTYPE_DOMAIN): New macro.
91690         (is_space): New fn.
91691         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91692         and empty lines.
91693
91694         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91695         Undo previous (whitespace-only) change.
91696
91697 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91698
91699         * config/srclist-update: Change update back to the old behavior,
91700         leaving whitespace alone.  Use one 'sed' command rather than a
91701         pipeline.
91702         (fixlicense): Now a variable, not a function.
91703         (remove_trailing_blanks): Remove.
91704         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91705         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91706         Undo previous (whitespace-only) change.
91707
91708 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91709
91710         Merge from coreutils.
91711         * modules/euidaccess: Add lib_SOURCES, include for new
91712         file euidaccess.h
91713
91714 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91715
91716         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91717         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91718         Normalize leading white space and remove trailing white space.
91719
91720         Merge from coreutils
91721         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91722
91723         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91724         0.12.1.  These files are now being upgraded automatically by
91725         ../config/srclist-update.
91726
91727 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91728
91729         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91730         Normalize leading white space and remove trailing white space.
91731         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91732         notice, as per ../config/srclist-update.
91733
91734         Merge from coreutils.
91735         * lib/euidaccess.h: New file.
91736         * lib/euidaccess.c: Include it.
91737         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91738         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91739         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91740
91741 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91742
91743         * config/srclist-update: Add copyright notice.
91744         (remove_id_lines, remove_trailing_blanks): New constants.
91745         (fixfile): Use them to normalize spacing a bit in copied files.
91746         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91747         Normalize leading white space and remove trailing white space.
91748
91749         * config/texinfo.tex: Sync with texinfo.
91750
91751         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91752         strtoul.c from libc, to merge coreutils whitespace changes.
91753
91754         * config/srclist.txt: Get the following m4 files from gettext:
91755         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91756         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91757         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91758         wint_t.m4.
91759
91760 2003-08-12  Karl Berry  <karl@gnu.org>
91761
91762         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91763         been made.
91764
91765 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91766
91767         * modules/gnu-source, m4/gnu-source.m4:
91768         Remove; we're assuming Autoconf 2.54 or later now.
91769         Suggested by Bruno Haible.
91770         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91771
91772 2003-08-11  Bruno Haible  <bruno@clisp.org>
91773
91774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91775
91776 2003-08-11  Bruno Haible  <bruno@clisp.org>
91777
91778         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91779         (vasnprintf): Use it instead of wcslen.
91780
91781 2003-08-11  Bruno Haible  <bruno@clisp.org>
91782
91783         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91784         value to ensure that _Bool promotes to int. Use #define for _Bool when
91785         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91786
91787 2003-08-10  Karl Berry  <karl@gnu.org>
91788
91789         * lib/regex.h: update from libc (whitespace fix).
91790
91791 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91792
91793         Merge some files from coreutils.  These changes were
91794         originally made by Jim Meyering.
91795         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91796         many older Unixes require this.
91797         * lib/alloca.c (alloca): Remove cast to argument of free;
91798         no longer needed in C89.
91799         * lib/alloca_.h, regex.h: Fix white space to match
91800         what GNU indent does.
91801
91802 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91803
91804         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91805         apparently Emacs's Unicode mode got confused before my 2003-08-05
91806         checkin.
91807
91808 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91809
91810         * m4/extensions.m4: New file.
91811         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91812         Require gl_USE_SYSTEM_EXTENSIONS.
91813         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91814         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91815
91816 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91817
91818         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91819         * modules/extensions, modules/gnu-source: New files.
91820         * modules/timespec, modules/unlocked-io: Depend on extensions.
91821
91822 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91823
91824         * modules/restrict: New file.
91825         * MODULES.html.sh (func_all_modules): Add restrict.
91826         * modules/regex: Depend on restrict.
91827
91828 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91829
91830         * m4/restrict.m4: New file.
91831         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91832
91833 2003-08-07  Bruno Haible  <bruno@clisp.org>
91834
91835         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91836         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91837
91838 2003-08-07  Bruno Haible  <bruno@clisp.org>
91839
91840         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91841         makes the module 'getndelim2' compatible with the module 'getline'.
91842
91843 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91844
91845         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91846         byte with "\201" to avoid glitches when editing that source file
91847         with multi-gnome-terminal.
91848
91849 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91850
91851         * lib/bumpalloc.h: Remove.
91852
91853 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91854
91855         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91856         * modules/bumpalloc: Remove.
91857
91858 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91859
91860         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91861         GNU coding style.
91862
91863         Merge from coreutils.
91864         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91865         1. From glibc.
91866         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91867         from Karl Berry, implemented by Jim Meyering.
91868         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91869         from Dmitry V. Levin.
91870         Remove anachronistic cast of xrealloc.
91871         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91872         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91873         type. Otherwise, it wouldn't compile with at least /bin/cc on
91874         ymp-cray-unicos9.0.2.X.
91875         Combine two mostly-identical uses of alloca into one.
91876         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91877
91878 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91879
91880         [From Emacs.]
91881
91882         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91883         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91884         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91885         obsolete NLIST_NAME_UNION.
91886         [__GNU__]: Undef BSD and FSCALE.
91887         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91888
91889 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91890
91891         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91892         an enum type, so that it's guaranteed to promote to int.  See:
91893         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91894
91895 2003-08-03  Karl Berry  <karl@gnu.org>
91896
91897         * config/depcomp: update from automake.
91898
91899 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91900
91901         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91902         (strerror): Don't assume that a printable int fits in 14 bytes.
91903
91904 2003-07-31  Bruno Haible  <bruno@clisp.org>
91905
91906         * modules/getpass-gnu: New file.
91907         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91908
91909 2003-07-31  Bruno Haible  <bruno@clisp.org>
91910
91911         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91912
91913 2003-07-24  Karl Berry  <karl@gnu.org>
91914
91915         * config/missing: update from automake.
91916
91917 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91918             Bruno Haible  <bruno@clisp.org>
91919
91920         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91921         * lib/getline.c (getline, getdelim): Likewise.
91922         Remove _GNU_SOURCE define; now it's defined in config.h through
91923         m4/getline.m4.
91924
91925 2003-07-23  Karl Berry  <karl@gnu.org>
91926
91927         * config/config.sub: update from prep.
91928
91929 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91930
91931         * modules/xalloc (Depends-on): Add exitfail.
91932         * modules/xmemcoll: Likewise.
91933
91934 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91935
91936         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91937         over-parenthesization in macros.
91938
91939         Sync with coreutils.
91940
91941         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91942         required by C99.
91943
91944         Use `exit_failure' for xalloc and xmemcoll instead of their own
91945         private exit-failure variables.
91946         * lib/xalloc.h (xalloc_exit_failure): Remove.
91947         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91948         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91949         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91950         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91951         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91952
91953 2003-07-20  Jim Meyering  <jim@meyering.net>
91954
91955         * modules/closeout (Depends-on): Add exitfail.
91956         Suggestion from Bruno Haible.
91957
91958 2003-07-19  Karl Berry  <karl@gnu.org>
91959
91960         * config/config.sub: update from prep.
91961
91962 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91963
91964         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91965         Remove.
91966         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91967         to test that it can stand by itself.  Include "exitfail.h".
91968         Clients should set exit_failure instead.
91969         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91970
91971 2003-07-18  Bruno Haible  <bruno@clisp.org>
91972
91973         * modules/getndelim2: New file.
91974         * modules/getline: Share files with module getndelim2.
91975         * modules/getnline: Depend on getndelim2 instead of sharing files with
91976         it. Add getnline.c to lib_SOURCES.
91977         * MODULES.html.sh (func_all_modules): Add getndelim2.
91978
91979 2003-07-18  Bruno Haible  <bruno@clisp.org>
91980
91981         * m4/getndelim2.m4: New file.
91982         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91983         invoke gl_PREREQ_GETNDELIM2.
91984         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91985         gl_PREREQ_GETNDELIM2.
91986         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91987         gl_GETNDELIM2.
91988
91989 2003-07-18  Bruno Haible  <bruno@clisp.org>
91990
91991         * lib/getndelim2.h: New file.
91992         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91993         getndelim2.h.
91994         (getndelim2): Make non-static. Change return type to ssize_t.
91995         * lib/getline.h: Change argument names.
91996         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91997         * lib/getnline.c: Include getndelim2.h.
91998
91999 2003-07-18  Andreas Schwab  <schwab@suse.de>
92000
92001         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92002
92003 2003-07-17  Karl Berry  <karl@gnu.org>
92004
92005         * config/config.sub: update from prep.
92006
92007 2003-07-17  Bruno Haible  <bruno@clisp.org>
92008
92009         * modules/getnline: New file.
92010         * modules/getline: Add lib/getndelim2.c to source file list.
92011         * MODULES.html.sh (func_all_modules): Add getnline.
92012
92013 2003-07-17  Bruno Haible  <bruno@clisp.org>
92014
92015         * m4/getnline.m4: New file.
92016
92017 2003-07-17  Bruno Haible  <bruno@clisp.org>
92018
92019         * m4/Makefile.am.in: Remove file.
92020         * m4/Makefile.am: Remove file.
92021         * m4/Makefile.in: Remove file.
92022
92023 2003-07-17  Bruno Haible  <bruno@clisp.org>
92024
92025         * lib/getnline.h: New file.
92026         * lib/getnline.c: New file.
92027         * lib/getndelim2.c: New file, extracted from getline.c.
92028         (getndelim2): Renamed from getdelim2, with added nmax argument.
92029         * lib/getline.c: Include getndelim2.c.
92030         (getdelim2): Moved out to getndelim2.c.
92031         (getline, getdelim): Update.
92032
92033 2003-07-17  Bruno Haible  <bruno@clisp.org>
92034
92035         * lib/Makefile.am: Remove file.
92036         * lib/Makefile.in: Remove file.
92037
92038 2003-07-17  Bruno Haible  <bruno@clisp.org>
92039
92040         * configure.in: Remove file.
92041         * Makefile.in: Remove file.
92042
92043 2003-07-17  Bruno Haible  <bruno@clisp.org>
92044
92045         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92046
92047 2003-07-16  Karl Berry  <karl@gnu.org>
92048
92049         * config/srclist-update: was running fixlicense twice, which caused
92050                 texinfo.tex to be nullified for some reason.  Simplify,
92051                 $gplsrc is no longer needed as far as I can see?
92052
92053 2003-07-16  Jim Meyering  <jim@meyering.net>
92054
92055         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92056
92057 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92058
92059         * config/srclist.txt: Get the following files from gettext-runtime/intl
92060         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92061         ref-del.sin.  From Bruno Haible.
92062         * config/srclist-update (fixfile): Change grep pattern again, since the
92063         previous fix didn't work (there was another trailing $).  Use
92064         '[$]' to escape the $s.
92065
92066 2003-07-15  Karl Berry  <karl@gnu.org>
92067
92068         * lib/vasnprintf.c: update from gettext.
92069
92070 2003-07-15  Karl Berry  <karl@gnu.org>
92071
92072         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92073         gets expanded when surrounded by '$'.
92074
92075 2003-07-15  Jim Meyering  <jim@meyering.net>
92076
92077         * modules/save-cwd: Don't depend on error.  From Derek Price.
92078
92079 2003-07-15  Jim Meyering  <jim@meyering.net>
92080
92081         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92082
92083 2003-07-14  Simon Josefsson  <jas@extundo.com>
92084
92085         * modules/mempcpy: New file.
92086         * MODULES.html.sh (func_all_modules): Add mempcpy.
92087
92088 2003-07-14  Simon Josefsson  <jas@extundo.com>
92089
92090         * m4/mempcpy.m4: New file.
92091
92092 2003-07-14  Simon Josefsson  <jas@extundo.com>
92093
92094         * lib/mempcpy.h: New file.
92095         * lib/mempcpy.c: New file.
92096
92097 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92098
92099         * modules/getdate, modules/posixtm: Depend on mktime.
92100
92101 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92102
92103         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92104         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92105         unicodeio.c, unicodeio.h, unlocked-io.h:
92106         Switch from LGPL to GPL.
92107
92108 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92109
92110         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92111         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92112         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92113         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92114         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92115         updated automatically by ../config/srclist-update.  This changes
92116         their license from LPGL to GPL.
92117
92118 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92119
92120         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92121         assumed to refer to the root of the most recent stable gettext version.
92122         * config/srclistvars.sh: Add defaults for eggert.
92123         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92124         Match "This program" as well as "The program".  This is needed
92125         for gettext.
92126
92127 2003-07-14  Jim Meyering  <jim@meyering.net>
92128
92129         Don't emit diagnostics.  Let callers do that.
92130         * lib/save-cwd.c: Don't include "error.h".
92131         (save_cwd): Don't call error.  Ensure that errno is valid
92132         when returning nonzero.
92133
92134         * lib/save-cwd.h (restore_cwd): Update prototype.
92135         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92136         Simplify.  Don't call error upon failure.  Let callers do that.
92137         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92138         when auditing is enabled.  But don't bother updating the #if.
92139
92140 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92141
92142         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92143         it breaks C++ compilation.
92144         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92145
92146 2003-07-10  Simon Josefsson  <jas@extundo.com>
92147
92148         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92149
92150 2003-07-10  Jim Meyering  <jim@meyering.net>
92151
92152         * m4/clock_time.m4: Remove trailing blank.
92153         * m4/intmax_t.m4: Likewise.
92154
92155 2003-07-10  Jim Meyering  <jim@meyering.net>
92156
92157         * lib/vasnprintf.c: Remove trailing blanks.
92158         Make cpp indentation consistent.
92159
92160 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92161
92162         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92163         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92164         Switch from LGPL to GPL.
92165
92166 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92167
92168         * config/srclist.txt: Sort sublists.  Add
92169         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92170         that differ from gnulib for one reason or another; we'd like this list
92171         to be smaller but for now let's document what we have.
92172
92173 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92174
92175         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92176         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92177         and sweeter "eval x=$x".
92178         * config/srclist.txt: Get lib/argp* from glibc.
92179
92180 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92181
92182         * lib/mktime.c: Fix some boundary cases and remove need for floating
92183         point.
92184
92185         Issue a compile-time diagnostic if time_t is floating point, or if
92186         two's complement arithmetic is not in effect, or if arithmetic
92187         right shift does not propagate the sign.  These assumptions were
92188         all in the original code but they weren't checked.
92189
92190         (TIME_T_MIDPOINT, verify): New macros.
92191         (__isleap): Remove; it has integer overflow problems.
92192         (leapyear): New function, without those problems.
92193         (ydhms_tm_diff): Remove; splitting into two parts.
92194         (ydhms_diff): New function, containing the arithmetic part of
92195         the old ydhms_tm_diff function.  Issue a compile-time
92196         diagnostic if we are not using C99 integer division.
92197         Avoid casts when possible.
92198         (guess_time_tm): New function, containing the checking part of
92199         the old ydhms_tm_diff function.  Return the new value, rather than
92200         the difference between it and the old.  Accept a new argument T
92201         so that *T specifies the old value.  Check for overflow in the result.
92202
92203         (__mktime_internal): Use a time_t offset, not a long int offset.
92204         This undoes the 2003-06-04 change, which is no longer needed now
92205         that we have better overflow checking.
92206         (localtime_offset): Likewise.
92207
92208         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92209         and long are 64-bit but int is only 32-bit.
92210         (ydhms_diff): Use long int to store year1 and yday1.
92211         Issue a compile-time diagnostic if long int is not wide enough.
92212
92213         (__mktime_internal): Use long int to store adjusted year and yday.
92214         Use plain C rather than preprocessor commands, if that doesn't
92215         affect efficiency.
92216         Check for overflow (and try to repair) after each probe
92217         rather than checking only at the very end.  This avoids some bugs
92218         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92219         does not equal GMT offset at maximum time).
92220         Use integer to check for overflow rather than floating point; this
92221         is more portable to non-IEEE hosts, and is a tad faster.
92222         When we detect that we are oscillating between two values,
92223         don't check whether tm_isdst has the requested value, since
92224         we already know the answer.  When tm_isdst has the wrong value,
92225         use a different heuristic to find the right one, based on the
92226         extreme values actually observed in practice in tz2003a,
92227         rather than the (overly optimistic) "previous 3 calendar quarters".
92228
92229         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92230         "T const" to accommodate glibc style.
92231         (check_result): Use less-confusing report format.  "long" -> "long int.
92232         (main): Likewise.
92233         Don't loop if the iteration overflows time_t.
92234         Allow a negative step in the iteration.
92235
92236 2003-07-06  Karl Berry  <karl@gnu.org>
92237
92238         * config/depcomp: update from automake.
92239         * config/config.sub: update from prep.
92240
92241 2003-07-03  Karl Berry  <karl@gnu.org>
92242
92243         * config/config.guess: update from prep.
92244
92245 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92246
92247         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92248         xreadlink.c now includes it unconditionally.
92249
92250 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92251
92252         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92253         having it depend on HAVE_SYS_TYPES_H.
92254
92255 2003-07-01  Bruno Haible  <bruno@clisp.org>
92256
92257         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92258         <sys/types.h> should be sufficient.
92259         Reported by Paul Eggert.
92260
92261 2003-06-26  Karl Berry  <karl@gnu.org>
92262
92263         * config/depcomp: update from automake.
92264
92265 2003-06-26  Bruno Haible  <bruno@clisp.org>
92266
92267         * modules/human: Depend on module stdbool.
92268
92269 2003-06-25  Bruno Haible  <bruno@clisp.org>
92270
92271         * modules/readlink: New file.
92272         * modules/xreadlink: Depend on it.
92273         * MODULES.html.sh (func_all_modules): Add readlink.
92274
92275 2003-06-25  Bruno Haible  <bruno@clisp.org>
92276
92277         * m4/readlink.m4: New file.
92278
92279 2003-06-25  Bruno Haible  <bruno@clisp.org>
92280
92281         * lib/readlink.c: New file.
92282
92283 2003-06-22  Karl Berry  <karl@gnu.org>
92284
92285         * config/srclist.txt: update mkinstalldirs from automake.
92286         * config/mkinstalldirs: update.
92287
92288 2003-06-22  Bruno Haible  <bruno@clisp.org>
92289
92290         Portability to mingw32.
92291         * m4/ssize_t.m4: New file, from GNU gettext.
92292         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92293         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92294
92295 2003-06-22  Bruno Haible  <bruno@clisp.org>
92296
92297         * modules/safe-read: Add m4/ssize_t.m4.
92298         * modules/xreadlink: Add m4/ssize_t.m4.
92299
92300 2003-06-20  Bruno Haible  <bruno@clisp.org>
92301
92302         Assume C89, so PARAMS isn't needed.
92303         * lib/unicodeio.h (PARAMS): Remove.
92304         * lib/unicodeio.c: Don't use PARAMS.
92305
92306 2003-06-18  Karl Berry  <karl@gnu.org>
92307
92308         * config/config.{guess,sub}: update from prep.
92309
92310 2003-06-18  Jim Meyering  <jim@meyering.net>
92311
92312         Merge changes from coreutils.
92313         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92314         Remove explicit declarations of xmalloc and realloc.
92315         Include xalloc.h.
92316         (read_utmp): Remove anachronistic cast of xmalloc.
92317
92318 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92319
92320         Assume C89, so PARAMS isn't needed.
92321         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92322         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92323         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92324         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92325         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92326         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92327         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92328         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92329         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92330         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92331         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92332         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92333         no longer needed. Anyway, config.h should always be included before any
92334         other file.
92335
92336 2003-06-11  Simon Josefsson  <jas@extundo.com>
92337
92338         * modules/sysexits: New file.
92339         * MODULES.html.sh (func_all_modules): Add sysexits.
92340
92341 2003-06-11  Simon Josefsson  <jas@extundo.com>
92342
92343         * lib/sysexit_.h: New file.
92344
92345 2003-06-11  Derek Price  <derek@ximbiot.com>
92346
92347         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92348         necessary.
92349
92350 2003-06-11  Bruno Haible  <bruno@clisp.org>
92351
92352         * m4/sysexits.m4: New file.
92353
92354 2003-06-10  Simon Josefsson  <jas@extundo.com>
92355
92356         * lib/argp.h: New file, from glibc.
92357         * lib/argp-ba.c: New file, from glibc.
92358         * lib/argp-eexst.c: New file, from glibc.
92359         * lib/argp-fmtstream.c: New file, from glibc.
92360         * lib/argp-fmtstream.h: New file, from glibc.
92361         * lib/argp-fs-xinl.c: New file, from glibc.
92362         * lib/argp-help.c: New file, from glibc.
92363         * lib/argp-namefrob.h: New file, from glibc.
92364         * lib/argp-parse.c: New file, from glibc.
92365         * lib/argp-pv.c: New file, from glibc.
92366         * lib/argp-pvh.c: New file, from glibc.
92367         * lib/argp-xinl.c: New file, from glibc.
92368
92369 2003-06-10  Simon Josefsson  <jas@extundo.com>
92370
92371         * modules/strchrnul: New file.
92372
92373 2003-06-10  Simon Josefsson  <jas@extundo.com>
92374
92375         * modules/argp: New file.
92376
92377 2003-06-10  Simon Josefsson  <jas@extundo.com>
92378
92379         * m4/strchrnul.m4: New file.
92380
92381 2003-06-10  Simon Josefsson  <jas@extundo.com>
92382
92383         * lib/strchrnul.h: New file.
92384         * lib/strchrnul.c: New file.
92385
92386 2003-06-10  Bruno Haible  <bruno@clisp.org>
92387
92388         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92389
92390 2003-06-07  Karl Berry  <karl@gnu.org>
92391
92392         * config/config.{guess,sub}: update from prep.
92393
92394 2003-06-07  Jim Meyering  <jim@meyering.net>
92395
92396         * modules/strtod: Use $(...) notation, not @...@ for
92397         AC_REPLACE'd variables.
92398         * modules/localcharset: Likewise.
92399
92400 2003-06-07  Jim Meyering  <jim@meyering.net>
92401
92402         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92403         in place of my name in the copyright comment.
92404         Remove definition and uses of __P.
92405
92406         From coreutils.
92407         * lib/stat.c: Don't declare xmalloc explicitly.
92408         Instead, include "xalloc.h".
92409         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92410         xrealloc, and xcalloc return values.
92411         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92412         Improve comment.
92413         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92414
92415 2003-06-07  Bruno Haible  <bruno@clisp.org>
92416
92417         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92418         avoid AC_CONFIG_LINKS.
92419         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92420         fnmatch.h, to avoid AC_CONFIG_LINKS.
92421         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92422
92423 2003-06-07  Bruno Haible  <bruno@clisp.org>
92424
92425         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92426         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92427         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92428         directory.
92429         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92430         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92431         directory.
92432
92433 2003-06-06  Jim Meyering  <jim@meyering.net>
92434
92435         Merge from coreutils.
92436         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92437         Consolidate declarations and initializations of *_base* locals.
92438
92439         Merge from coreutils.
92440         This avoids a core dump on systems without GNU putenv,
92441         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92442         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92443         (unsetenv): New static function, from GNU libc.
92444         (rpl_putenv): Use it.
92445
92446         * lib/modechange.c: Remove trailing blanks.
92447
92448         Merge from coreutils.
92449         * lib/fsusage.c: Remove declaration of statfs.
92450         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92451
92452         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92453
92454 2003-06-06  Jim Meyering  <jim@meyering.net>
92455
92456         * lib/stdbool_.h: Renamed from stdbool.h.in.
92457
92458 2003-06-06  Jim Meyering  <jim@meyering.net>
92459             Bruno Haible  <bruno@clisp.org>
92460
92461         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92462         Adjust Makefile.am snippet not to redirect directly to target.
92463         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92464
92465 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92466
92467         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92468         mismatch, look in future quarters as well as past.  This fixes a
92469         bug when processing fall-backwards gaps immediately after a long
92470         period of daylight-saving time.
92471
92472         * lib/mktime.c: Assume freestanding C89 or better.
92473         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92474         (__P): Remove; not used.
92475         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92476         (mktime, not_equal_tm, print_tm, check_result,
92477         main): Use prototypes.  Use const * where appropriate.
92478         (main): Fix typo in testing code that uncovered by above changes.
92479         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92480
92481 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92482
92483         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92484         locale.h, localeconv.  This merges changes from coreutils.
92485
92486         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92487         It can be removed after the next Autoconf is released.
92488         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92489         needed.
92490
92491 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92492
92493         * lib/mktime.c: Fix Debian bug 177940
92494         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92495         (localtime_offset): Now long int, not time_t, because we want it
92496         to be guaranteed to be signed.  All uses changed.
92497         (__mktime_internal): If overflow would occur when adding offset,
92498         don't add it.
92499
92500         Merge 'human' changes from coreutils.  Rewrite to support
92501         locale-specific notations like thousands separators.
92502         * lib/human.c: Simplify authorship notice.
92503         Include human.h immediately after config.h.
92504         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92505         <limits.h>: Do not include, since human.h does.
92506         (SIZE_MAX, UINTMAX_MAX): New macros.
92507         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92508         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92509         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92510         (power_letter): Renamed from suffixes.
92511         (generate_suffix_backwards): Remove.
92512         (adjust_value): Now takes int style (because of human.h changes)
92513         and long double value (for greater precision on some platforms).
92514         (group_number): New function.
92515         (human_readable): Use it.  Use integer options, not enum.
92516         Put the options before the sizes in the arg list.
92517         Support all the new options.
92518         The old human_readable function has been removed;
92519         use inttostr.h instead.
92520         (human_readable, default_block_size, humblock):
92521         Use uintmax_t, not int, for block sizes.
92522         (human_readable_inexact, block_size_types): Remove.
92523         (block_size_opts): New constant.
92524         (human_options): Renamed from human_block_size, with new signature
92525         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92526         * lib/human.h: Add copyright and authorship notice.
92527         Include <limits.h> and <stdbool.h> unconditionally.
92528         (PARAMS): Remove.  All uses removed.
92529         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92530         (enum human_inexact_style): Remove tag; now a nameless enum.
92531         (human_floor, human_ceiling, human_round_to_even): Now have
92532         values 2, 0, 1 rather than -1, 1, 0.
92533         (human_group_digits, human_suppress_point_zero, human_autoscale,
92534         human_base_1024, human_SI, human_B): New constants.
92535         (human_readable_inexact, human_block_size): Remove.
92536         (human_readable): Size args are now uintmax_t, not int.
92537         (human_options): New decl.
92538
92539         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92540         unnecessary now that we assume C89 or better.  This change
92541         imported from coreutils.
92542
92543         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92544         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92545         in the 2003-05-30 sync from glibc.
92546
92547         .h files should stand alone, but we shouldn't include <sys/types.h>
92548         if we can get away with just <stddef.h>.
92549
92550         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92551         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92552         rather than <sys/types.h>, as we merely need size_t.
92553         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92554         to get size_t.
92555         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92556         Include <stdio.h>, to get FILE.
92557         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92558         memcasecmp.h has included <stddef.h> and all we need is size_t.
92559         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92560         our interface, instead of including <sys/types.h>
92561
92562 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92563
92564         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92565         now, as glibc mktime is buggy on non-glibc systems.
92566
92567 2003-06-03  Karl Berry  <karl@gnu.org>
92568
92569         * config/config.sub: update from prep.
92570
92571 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92572
92573         [from coreutils]
92574         Fix some minor time-related bugs with POSIX time arguments.
92575         Some valid time stamps were being rejected (notably -1, and
92576         time stamps before 1900 on 64-bit hosts).  And some invalid
92577         time stamps were being accepted, e.g. September 31.
92578
92579         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92580         that we can return (time_t) -1 successfully.
92581         * lib/posixtm.c: Likewise.
92582         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92583         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92584         (t): Remove static var.
92585         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92586         of static var.  All uses changed.
92587         (year): Do not reject years before 1900; they can occur with
92588         64-bit time_t.
92589         (posix_time_parse): Do not check for out-of-range components;
92590         that is now the caller's responsibility, since our checks were
92591         only approximations.
92592         (posixtime): Use mktime to check for out-of-range components,
92593         since it knows them exactly.
92594         If mktime returns (time_t) -1, check whether an error actually occurred
92595         by invoking localtime on -1.
92596         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92597         posixtime failures better.
92598         Improve the test data (in comments only).
92599
92600 2003-06-02  Karl Berry  <karl@gnu.org>
92601
92602         * config/mkinstalldirs (version): new variable.
92603         (--version): new option.
92604         (usage): improve message.
92605
92606 2003-05-30  Karl Berry  <karl@gnu.org>
92607
92608         * lib/mktime.c: update from libc.
92609
92610 2003-05-30  Bruno Haible  <bruno@clisp.org>
92611
92612         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92613         * config/config.rpath: Upgrade to gettext-0.12.1.
92614
92615 2003-05-30  Bruno Haible  <bruno@clisp.org>
92616
92617         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92618         * m4/nls.m4: New file, from gettext-0.12.1.
92619         * m4/po.m4: New file, from gettext-0.12.1.
92620         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92621
92622 2003-05-30  Bruno Haible  <bruno@clisp.org>
92623
92624         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92625         * lib/localcharset.h: Likewise.
92626         * lib/localcharset.c: Likewise.
92627
92628 2003-05-29  Karl Berry  <karl@gnu.org>
92629
92630         * config/config.rpath: update from gettext.
92631
92632 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92633
92634         Assume the headers required for C89 freestanding compilers.
92635         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92636         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92637         * m4/human.m4 (gl_HUMAN): Likewise.
92638         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92639         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92640         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92641         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92642         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92643         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92644
92645 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92646
92647         Assume the headers required for C89 freestanding compilers.
92648         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92649         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92650         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92651         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92652         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92653         define, since <limits.h> is guaranteed to do that.
92654         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92655         * lib/exclude.c: Include <stdbool.h> unconditionally.
92656         * lib/tempname.c: Include <stddef.h> unconditionally.
92657         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92658         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92659         <stddef.h> does that.
92660         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92661         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92662         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92663         needed.
92664         * lib/xstrtol.c: Likewise.
92665         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92666         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92667
92668         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92669         warnings on some platforms.
92670
92671         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92672         arbitrarily.
92673
92674 2003-05-26  Jim Meyering  <jim@meyering.net>
92675
92676         Merge in a change from coreutils:
92677         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92678         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92679         that condition, rather than `-1' which is slightly misleading.
92680         Change the name of the cache variable to have the gl_ prefix.
92681         Prompted by a patch from Richard Dawe for DJGPP.
92682
92683 2003-05-24  Karl Berry  <karl@gnu.org>
92684
92685         * config/config.guess: update from prep.
92686
92687 2003-05-22  Karl Berry  <karl@gnu.org>
92688
92689         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92690
92691 2003-05-20  Karl Berry  <karl@gnu.org>
92692
92693         * config/config.guess: update from prep.
92694
92695 2003-05-18  Karl Berry  <karl@gnu.org>
92696
92697         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92698         might actually be set by the user.
92699
92700         * config/depcomp, install-sh, mdate-sh: update from automake.
92701
92702 2003-05-17  Bruno Haible  <bruno@clisp.org>
92703
92704         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92705         invalid expansion for AC_EGREP_CPP.
92706         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92707         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92708         Suggested by Akim Demaille <akim@epita.fr> in
92709         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92710
92711 2003-05-12  Jim Meyering  <jim@meyering.net>
92712
92713         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92714         the space-padded-by-default conversion specifiers, %e, %k, %l.
92715
92716 2003-05-12  Bruno Haible  <bruno@clisp.org>
92717
92718         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92719         the string is longer than 4 KB.
92720
92721 2003-05-11  Karl Berry  <karl@gnu.org>
92722
92723         * config/config.{guess,sub}: update from prep.
92724
92725 2003-05-09  Bruno Haible  <bruno@clisp.org>
92726
92727         * modules/error: Add m4/strerror_r.m4 to file list.
92728
92729 2003-05-03  Bruno Haible  <bruno@clisp.org>
92730
92731         Upgrade to Unicode-4.0.
92732         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92733         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92734         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92735         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92736         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92737         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92738         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92739         Change width of U+E0100..U+E01EF from 1 to 0.
92740
92741 2003-04-25  Jim Meyering  <jim@meyering.net>
92742
92743         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92744         of type size_t, not int.
92745
92746 2003-04-25  Bruno Haible  <bruno@clisp.org>
92747
92748         * lib/copy-file.c: Include <stddef.h>, for size_t.
92749
92750 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92751
92752         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92753         code which expansion is under static control.  Patch imported from
92754         Akim Demaille's patch to Bison; see
92755         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92756
92757 2003-04-14  Bruno Haible  <bruno@clisp.org>
92758
92759         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92760
92761 2003-04-11  Jim Meyering  <jim@meyering.net>
92762
92763         Merge changes from Coreutils.
92764
92765         2003-03-22  Jim Meyering  <jim@meyering.net>
92766
92767         * lib/strftime.c (widen): Cast alloca return value to proper type.
92768
92769         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92770
92771         From GNU libc.
92772         * lib/strftime.c (my_strftime): Handle very large width
92773         specifications for numeric values correctly.  Improve checks for
92774         overflow.
92775
92776         2003-01-19  Jim Meyering  <jim@meyering.net>
92777
92778         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92779         definitions.
92780         (nl_get_alt_digit) [! defined my_strftime]: Define.
92781         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92782         _nl_get_alt_digit and _nl_get_walt_digit.
92783
92784         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92785         libc. These changes have no effect outside of _LIBC.
92786
92787 2003-04-10  Bruno Haible  <bruno@clisp.org>
92788
92789         * modules/findprog: New file.
92790         * MODULES.html.sh (func_all_modules): Add it.
92791
92792 2003-04-10  Bruno Haible  <bruno@clisp.org>
92793
92794         * m4/findprog.m4: New file.
92795         * m4/eaccess.m4: New file.
92796
92797 2003-04-10  Bruno Haible  <bruno@clisp.org>
92798
92799         * lib/findprog.h: New file, from GNU gettext.
92800         * lib/findprog.c: New file, from GNU gettext.
92801
92802 2003-04-05  Jim Meyering  <jim@meyering.net>
92803
92804         Merge changes from Coreutils.
92805
92806         * lib/exclude.h (PARAMS): Remove definition and uses.
92807         * lib/exclude.c: Remove uses of `PARAMS'.
92808
92809         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92810         Add test-cases for DOS filenames. Declare program_name.
92811         (main): Set up program_name.  Patch by Rich Dawe.
92812
92813         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92814         error from mntctl.
92815         Use mntctl's return value to drive the entry-processing loop, since
92816         we can't rely on the value of the vmt_length member in the last
92817         entry.  On some systems doing so could result in exhausting
92818         virtual memory.  Based in part on a patch from Mike Jetzer.
92819
92820 2003-04-04  Bruno Haible  <bruno@clisp.org>
92821
92822         * modules/linebreak: New file.
92823         * MODULES.html.sh (func_all_modules): Add it.
92824
92825 2003-04-04  Bruno Haible  <bruno@clisp.org>
92826
92827         * m4/linebreak.m4: New file.
92828
92829 2003-04-04  Bruno Haible  <bruno@clisp.org>
92830
92831         * lib/linebreak.h: New file, from GNU gettext.
92832         * lib/linebreak.c: New file, from GNU gettext with slight
92833         modifications.
92834         * lib/lbrkprop.h: New file, from GNU gettext.
92835
92836 2003-04-03  Bruno Haible  <bruno@clisp.org>
92837
92838         * modules/utf8-ucs4: New file.
92839         * modules/utf16-ucs4: New file.
92840         * modules/ucs4-utf8: New file.
92841         * modules/ucs4-utf16: New file.
92842         * MODULES.html.sh (func_all_modules): Add them.
92843
92844 2003-04-03  Bruno Haible  <bruno@clisp.org>
92845
92846         * m4/utf-ucs4.m4: New file.
92847         * m4/ucs4-utf.m4: New file.
92848
92849 2003-04-03  Bruno Haible  <bruno@clisp.org>
92850
92851         * lib/utf8-ucs4.h: New file, from GNU gettext.
92852         * lib/utf16-ucs4.h: New file, from GNU gettext.
92853         * lib/ucs4-utf8.h: New file, from GNU gettext.
92854         * lib/ucs4-utf16.h: New file, from GNU gettext.
92855
92856 2003-04-02  Bruno Haible  <bruno@clisp.org>
92857
92858         * modules/binary-io: New file.
92859         * MODULES.html.sh (func_all_modules): Add it.
92860
92861 2003-04-02  Bruno Haible  <bruno@clisp.org>
92862
92863         * lib/binary-io.h: New file, from GNU gettext.
92864
92865 2003-04-01  Bruno Haible  <bruno@clisp.org>
92866
92867         * modules/pathname: New file.
92868         * MODULES.html.sh (func_all_modules): Add it.
92869
92870 2003-04-01  Bruno Haible  <bruno@clisp.org>
92871
92872         * lib/pathname.h: New file, from GNU gettext.
92873         * lib/concatpath.c: New file, from GNU gettext.
92874
92875 2003-03-30  Bruno Haible  <bruno@clisp.org>
92876
92877         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92878
92879 2003-03-30  Bruno Haible  <bruno@clisp.org>
92880
92881         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92882         function chown() doesn't exist.
92883
92884 2003-03-28  Bruno Haible  <bruno@clisp.org>
92885
92886         * modules/copy-file: New file.
92887         * MODULES.html.sh (func_all_modules): Add it.
92888
92889 2003-03-28  Bruno Haible  <bruno@clisp.org>
92890
92891         * m4/copy-file.m4: New file.
92892
92893 2003-03-28  Bruno Haible  <bruno@clisp.org>
92894
92895         * lib/copy-file.h: New file, from GNU gettext.
92896         * lib/copy-file.c: New file, from GNU gettext.
92897
92898 2003-03-18  Jim Meyering  <jim@meyering.net>
92899
92900         * lib/quote.c (quote_n): Fix typo in comment.
92901
92902 2003-03-18  Bruno Haible  <bruno@clisp.org>
92903
92904         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92905         checking.
92906         * m4/onceonly_2_57.m4: Likewise.
92907
92908 2003-03-17  Bruno Haible  <bruno@clisp.org>
92909
92910         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92911         (m4_quote): Remove macro.
92912         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92913
92914 2003-03-14  Jim Meyering  <jim@meyering.net>
92915
92916         Merge changes from Coreutils.
92917         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92918         to be const, in order to avoid warnings.
92919         (obstack_room): Likewise.
92920         (obstack_empty_p): Likewise.
92921
92922 2003-03-14  Bruno Haible  <bruno@clisp.org>
92923
92924         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92925         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92926
92927 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92928
92929         Merge changes from Bison.
92930         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92931         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92932         when compiling Bison 1.875's `bitset bset = obstack_alloc
92933         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92934         * lib/hash.c: Include <stdbool.h> unconditionally.
92935
92936 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92937
92938         * m4/onceonly.m4 (m4_quote): New macro.
92939         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92940         Quote AC_FOREACH variable-expansions properly.
92941
92942 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92943
92944         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92945
92946 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92947
92948         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92949         Reported by Bruce Becker; see:
92950         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92951
92952 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92953             Bruno Haible  <bruno@clisp.org>
92954
92955         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92956         Reported by John Hughes, see
92957         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92958
92959 2003-02-20  Bruno Haible  <bruno@clisp.org>
92960
92961         * MODULES.html.sh (func_all_modules): Add poll.
92962
92963 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92964
92965         * modules/poll: New file.
92966
92967 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92968
92969         * lib/poll_.h: New file.
92970         * lib/poll.c: New file.
92971
92972 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92973
92974         * m4/poll.m4: New file.
92975
92976 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92977
92978         * modules/mathl: New file.
92979
92980 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92981
92982         * lib/mathl.h: New file.
92983         * lib/acosl.c: New file.
92984         * lib/asinl.c: New file.
92985         * lib/atanl.c: New file.
92986         * lib/ceill.c: New file.
92987         * lib/cosl.c: New file.
92988         * lib/expl.c: New file.
92989         * lib/floorl.c: New file.
92990         * lib/frexpl.c: New file.
92991         * lib/ldexpl.c: New file.
92992         * lib/logl.c: New file.
92993         * lib/sincosl.c: New file.
92994         * lib/sinl.c: New file.
92995         * lib/sqrtl.c: New file.
92996         * lib/tanl.c: New file.
92997         * lib/trigl.c: New file.
92998         * lib/trigl.h: New file.
92999
93000 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93001
93002         * m4/mathl.m4: New file.
93003
93004 2003-02-18  Bruno Haible  <bruno@clisp.org>
93005
93006         * MODULES.html.sh (func_all_modules): Add mathl.
93007
93008 2003-02-17  Bruno Haible  <bruno@clisp.org>
93009
93010         * modules/mkdtemp: New module.
93011         * MODULES.html.sh (func_all_modules): Add it.
93012
93013 2003-02-17  Bruno Haible  <bruno@clisp.org>
93014
93015         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93016
93017 2003-02-17  Bruno Haible  <bruno@clisp.org>
93018
93019         * lib/mkdtemp.h: New file, from GNU gettext.
93020         * lib/mkdtemp.c: New file, from GNU gettext.
93021
93022 2003-02-02  Jim Meyering  <jim@meyering.net>
93023
93024         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93025         e.g. glibc-2.2.93.
93026
93027 2003-01-31  Bruno Haible  <bruno@clisp.org>
93028
93029         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93030         'rpl_rename'.
93031         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93032         'rpl_strnlen'.
93033         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93034         'rpl_strtod'.
93035         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93036         'rpl_utime'.
93037
93038 2003-01-31  Bruno Haible  <bruno@clisp.org>
93039
93040         * lib/rename.c: #undef rename before defining rpl_rename.
93041         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93042
93043 2003-01-30  Bruno Haible  <bruno@clisp.org>
93044
93045         * modules/vasnprintf, modules/vasprintf: New modules.
93046         * MODULES.html.sh (func_all_modules): Add them.
93047
93048 2003-01-30  Bruno Haible  <bruno@clisp.org>
93049
93050         * m4/signed.m4: New file, from GNU gettext.
93051         * m4/longdouble.m4: New file, from GNU gettext.
93052         * m4/wchar_t.m4: New file, from GNU gettext.
93053         * m4/wint_t.m4: New file, from GNU gettext.
93054         * m4/vasnprintf.m4: New file.
93055         * m4/vasprintf.m4: New file.
93056
93057 2003-01-30  Bruno Haible  <bruno@clisp.org>
93058
93059         * lib/printf-args.h: New file, from GNU gettext.
93060         * lib/printf-args.c: New file, from GNU gettext.
93061         * lib/printf-parse.h: New file, from GNU gettext.
93062         * lib/printf-parse.c: New file, from GNU gettext.
93063         * lib/vasnprintf.h: New file, from GNU gettext.
93064         * lib/vasnprintf.c: New file, from GNU gettext.
93065         * lib/asnprintf.c: New file, from GNU gettext.
93066         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93067         * lib/vasprintf.c: New file, from GNU gettext.
93068         * lib/asprintf.c: New file, from GNU gettext.
93069
93070 2003-01-29  Bruno Haible  <bruno@clisp.org>
93071
93072         * modules/stpncpy: New module.
93073         * MODULES.html.sh (func_all_modules): Add it.
93074
93075 2003-01-29  Bruno Haible  <bruno@clisp.org>
93076
93077         * m4/stpncpy.m4: New file.
93078
93079 2003-01-29  Bruno Haible  <bruno@clisp.org>
93080
93081         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93082         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93083
93084 2003-01-28  Bruno Haible  <bruno@clisp.org>
93085
93086         * modules/c-ctype: New module.
93087         * MODULES.html.sh (func_all_modules): Add it.
93088
93089 2003-01-28  Bruno Haible  <bruno@clisp.org>
93090
93091         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93092         Paul Eggert.
93093         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93094         Paul Eggert.
93095
93096 2003-01-27  Bruno Haible  <bruno@clisp.org>
93097
93098         * modules/xsetenv: New module.
93099         * MODULES.html.sh (func_all_modules): Add it.
93100
93101 2003-01-27  Bruno Haible  <bruno@clisp.org>
93102
93103         * lib/xsetenv.h: New file, from GNU gettext.
93104         * lib/xsetenv.c: New file, from GNU gettext.
93105
93106 2003-01-23  Jim Meyering  <jim@meyering.net>
93107
93108         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93109         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93110
93111 2003-01-23  Bruno Haible  <bruno@clisp.org>
93112
93113         * modules/minmax: New module.
93114         * MODULES.html.sh (func_all_modules): Add it.
93115
93116 2003-01-23  Bruno Haible  <bruno@clisp.org>
93117
93118         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93119         Eggert.
93120
93121 2003-01-22  Bruno Haible  <bruno@clisp.org>
93122
93123         * modules/exit: New module.
93124         * MODULES.html.sh (func_all_modules): Add it.
93125
93126 2003-01-22  Bruno Haible  <bruno@clisp.org>
93127
93128         * lib/exit.h: New file, from GNU gettext.
93129
93130 2003-01-19  Bruno Haible  <bruno@clisp.org>
93131
93132         * gnulib-tool: Recognize option --extract-maintainer.
93133         (func_get_maintainer): New function.
93134         * modules/*: Add Maintainer entry.
93135
93136 2003-01-16  Jim Meyering  <jim@meyering.net>
93137
93138         * m4/regex.m4: The `regex' struct is both input and output.
93139         Initialize it before each use.  Patch by Tim Waugh.
93140
93141 2003-01-16  Bruno Haible  <bruno@clisp.org>
93142
93143         * MODULES.html.sh: Add a table of contents. Add the module name as
93144         leftmost column. Add hyperlinks.
93145
93146 2003-01-15  Bruno Haible  <bruno@clisp.org>
93147
93148         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93149
93150 2003-01-15  Bruno Haible  <bruno@clisp.org>
93151
93152         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93153         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93154         suffix.
93155
93156 2003-01-15  Bruno Haible  <bruno@clisp.org>
93157
93158         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93159
93160 2003-01-15  Bruno Haible  <bruno@clisp.org>
93161
93162         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93163         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93164
93165 2003-01-14  Jim Meyering  <jim@meyering.net>
93166
93167         * lib/same.c (same_name): Tweak a comment.
93168
93169 2003-01-14  Bruno Haible  <bruno@clisp.org>
93170
93171         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93172         when a string comparison is sufficient.
93173
93174 2003-01-14  Bruno Haible  <bruno@clisp.org>
93175
93176         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93177         'unsigned int'.
93178
93179 2003-01-14  Bruno Haible  <bruno@clisp.org>
93180
93181         * lib/hash-pjw.c: Add comment about low quality of this function.
93182
93183 2003-01-13  Bruno Haible  <bruno@clisp.org>
93184
93185         * modules/stpcpy: Distribute lib/stpcpy.h.
93186         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93187
93188 2003-01-13  Bruno Haible  <bruno@clisp.org>
93189
93190         * modules/*: Add a description.
93191         * modules/strpbrk: Fix Makefile.am snippet.
93192         * modules/strtoimax: Fix dependencies.
93193         * modules/strtoumax: Likewise.
93194
93195 2003-01-13  Bruno Haible  <bruno@clisp.org>
93196
93197         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93198         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93199         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93200
93201 2003-01-13  Bruno Haible  <bruno@clisp.org>
93202
93203         * gnulib-tool (func_create_testdir): Store config/* files in the main
93204         directory.
93205         * config.rpath: Move to ...
93206         * config/config.rpath: ... here.
93207         * modules/gettext: Contains config/config.rpath, not config.rpath.
93208         * modules/iconv: Likewise.
93209
93210 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93211
93212         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93213         to avoid collisions with libcurses and libreadline.
93214
93215         * m4/getstr.m4: Remove.
93216         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93217
93218 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93219
93220         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93221         to avoid collisions with libcurses and libreadline.
93222
93223         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93224         * lib/getstr.h, getstr.c: Remove.
93225         * lib/getline.c: Include "getline.h", to check interface.
93226         Move body of old getstr.c here: this defines MIN_CHUNK and
93227         declares getdelim2, which is renamed from getstr.
93228         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93229
93230         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93231         All uses changed.
93232         * lib/linebuffer.h: Likewise.
93233         (readline): Remove backward-compatibility macro.
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         * getstr: Remove.
93240         * MODULES.html.sh: Remove getstr.
93241         * modules/getline: Depend on unlocked-io, not getstr.
93242
93243 2003-01-12  Jim Meyering  <jim@meyering.net>
93244
93245         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93246
93247 2003-01-10  Bruno Haible  <bruno@clisp.org>
93248
93249         * modules/alloca: Change Makefile.am requirements. Simplify Include
93250         requirements. Add lib/alloca_.h to file list.
93251
93252 2003-01-10  Bruno Haible  <bruno@clisp.org>
93253
93254         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93255
93256 2003-01-10  Bruno Haible  <bruno@clisp.org>
93257
93258         * lib/alloca_.h: New file.
93259         * lib/getdate.y: Unconditionally include alloca.h.
93260         * lib/makepath.c: Likewise.
93261         * lib/setenv.c: Likewise.
93262         * lib/userspec.c: Likewise.
93263
93264 2003-01-09  Karl Berry  <karl@gnu.org>
93265
93266         * MODULES.html.sh: include `dirname $0` in PATH, to find
93267         gnulib-tool.
93268
93269 2003-01-09  Bruno Haible  <bruno@clisp.org>
93270
93271         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93272         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93273
93274 2003-01-09  Bruno Haible  <bruno@clisp.org>
93275
93276         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93277
93278 2003-01-09  Bruno Haible  <bruno@clisp.org>
93279
93280         * lib/stdbool.h.in: New file.
93281
93282 2003-01-09  Bruno Haible  <bruno@clisp.org>
93283
93284         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93285         * MODULES.html.sh: Likewise.
93286
93287 2003-01-08  Jim Meyering  <jim@meyering.net>
93288
93289         * lib/full-write.c: Undefine and define-away `const' after inclusion
93290         of errno.h, not before.  Suggestion from Bruno Haible.
93291
93292 2003-01-08  Bruno Haible  <bruno@clisp.org>
93293
93294         * modules/full-read: Depend on full-write.
93295
93296 2003-01-08  Bruno Haible  <bruno@clisp.org>
93297
93298         * lib/safe-read.c: Include specification header first, to ensure its
93299         selfcontainedness.
93300         * lib/full-write.c: Likewise.
93301
93302 2003-01-07  Jim Meyering  <jim@meyering.net>
93303
93304         * lib/full-write.c: Rework so that it may serve to define full_read,
93305         too.
93306         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93307
93308 2003-01-07  Bruno Haible  <bruno@clisp.org>
93309
93310         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93311         <inttypes.h>.
93312         * lib/xstrtol.h: Likewise.
93313         * lib/xstrtoimax.c: Likewise.
93314         * lib/xstrtoumax.c: Likewise.
93315         * lib/human.h: Likewise.
93316
93317         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93318         on systems that have <inttypes.h> but not <stdint.h>.
93319
93320 2003-01-07  Bruno Haible  <bruno@clisp.org>
93321
93322         * MODULES.html.sh: Add copyright notice.
93323         (missed_files): Omit CVS directory entries.
93324         (func_module): Make it work with sed-3.02.
93325         * MODULES.txt: Remove file.
93326
93327 2003-01-06  Jim Meyering  <jim@meyering.net>
93328
93329         * lib/version-etc.c: Update year in translatable copyright string.
93330
93331 2003-01-03  Karl Berry  <karl@gnu.org>
93332
93333         * config/config.{guess,sub}: update from prep.
93334
93335 2003-01-02  Karl Berry  <karl@gnu.org>
93336
93337         * doc/COPYING.DOC: belatedly updated to 1.2.
93338
93339 2003-01-01  Karl Berry  <karl@gnu.org>
93340
93341         * gnulib-tool (func_verify_module): report module name $module in
93342         error message, not $1.
93343         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93344         be created, only if it doesn't exist.
93345         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93346
93347 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93348
93349         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93350
93351 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93352
93353         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93354         memcmp if strcoll doesn't work.
93355
93356 2002-12-31  Bruno Haible  <bruno@clisp.org>
93357
93358         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93359         nonempty.
93360
93361 2002-12-31  Bruno Haible  <bruno@clisp.org>
93362
93363         * lib/memcoll.c (STRCOLL): New macro.
93364         (memcoll): Use it.
93365
93366 2002-12-31  Bruno Haible  <bruno@clisp.org>
93367
93368         * lib/localcharset.h: New file.
93369         * lib/localcharset.c: Include it.
93370         * lib/unicodeio.c: Likewise.
93371
93372 2002-12-31  Bruno Haible  <bruno@clisp.org>
93373
93374         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93375         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93376
93377 2002-12-31  Bruno Haible  <bruno@clisp.org>
93378
93379         * lib/getline.h: Include <stddef.h>, for size_t.
93380
93381         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93382         * lib/unicodeio.c: Don't include <stddef.h>.
93383
93384 2002-12-31  Bruno Haible  <bruno@clisp.org>
93385
93386         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93387         HAVE_TM_ZONE.
93388
93389 2002-12-24  Karl Berry  <karl@gnu.org>
93390
93391         * config/config.guess: update from prep.
93392
93393 2002-12-24  Bruno Haible  <bruno@clisp.org>
93394
93395         General infrasructure.
93396         * m4/README: Rewritten.
93397         * m4/onceonly.m4: New file.
93398         * m4/onceonly_2_57.m4: New file.
93399
93400         Module atexit.
93401         * m4/atexit.m4: New file.
93402
93403         Module strtod.
93404         * m4/strtod.m4: New file.
93405
93406         Module strtol.
93407         * m4/strtol.m4: New file.
93408
93409         Module strtoul.
93410         * m4/strtoul.m4: New file.
93411
93412         Module memchr.
93413         * m4/memchr.m4: New file.
93414
93415         Module memcmp.
93416         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93417         (jm_FUNC_MEMCMP): Invoke it.
93418
93419         Module memcpy.
93420         * m4/memcpy.m4: New file.
93421
93422         Module memmove.
93423         * m4/memmove.m4: New file.
93424
93425         Module memset.
93426         * m4/memset.m4: New file.
93427
93428         Module strcspn.
93429         * m4/strcspn.m4: New file.
93430
93431         Module strpbrk.
93432         * m4/strpbrk.m4: New file.
93433
93434         Module strstr.
93435         * m4/strstr.m4: New file.
93436
93437         Module strerror.
93438         * m4/strerror.m4: New file.
93439
93440         Module mktime.
93441         * m4/mktime.m4: Renamed from jm-mktime.m4.
93442         (gl_PREREQ_MKTIME): New macro.
93443         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93444
93445         Module malloc.
93446         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93447         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93448         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93449
93450         Module realloc.
93451         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93452         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93453         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93454
93455         Module strftime.
93456         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93457         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93458         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93459         gl_TM_GMTOFF.
93460         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93461
93462         Module xalloc.
93463         * m4/xalloc.m4: New file.
93464
93465         Module alloca.
93466         * m4/alloca.m4: New file.
93467
93468         Module putenv.
93469         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93470         (jm_FUNC_PUTENV): Invoke it.
93471
93472         Module setenv.
93473         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93474         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93475         when invoked twice.
93476         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93477         gt_FUNC_SETENV.
93478
93479         Module memrchr.
93480         * m4/memrchr.m4: New file.
93481
93482         Module stpcpy.
93483         * m4/stpcpy.m4: New file.
93484
93485         Module strcase.
93486         * m4/strcase.m4: New file.
93487
93488         Module strdup.
93489         * m4/strdup.m4: New file.
93490
93491         Module strnlen.
93492         * m4/strnlen.m4: New file.
93493
93494         Module strndup.
93495         * m4/strndup.m4: New file.
93496
93497         Module xstrtod.
93498         * m4/xstrtod.m4: New file.
93499
93500         Module xstrtol.
93501         * m4/xstrtol.m4: New file.
93502
93503         Module getdate.
93504         * m4/getdate.m4: New file.
93505
93506         Module unlocked-io.
93507         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93508         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93509         * m4/jm-glibc-io.m4n: Remove file.
93510
93511         Module long-options.
93512         * m4/long-options.m4: New file.
93513
93514         Module md5.
93515         * m4/md5.m4: New file.
93516
93517         Module sha.
93518         * m4/sha.m4: New file.
93519
93520         Module getstr.
93521         * m4/getstr.m4: New file.
93522
93523         Module getline.
93524         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93525         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93526         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93527         simply getline. Infoke gl_PREREQ_GETLINE.
93528
93529         Module obstack.
93530         * m4/obstack.m4: New file.
93531
93532         Module hash.
93533         * m4/hash.m4: New file.
93534
93535         Module readtokens.
93536         * m4/readtokens.m4: New file.
93537
93538         Module strverscmp.
93539         * m4/strverscmp.m4: New file.
93540
93541         Module stdbool.
93542         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93543         OSF/1.
93544
93545         Module strtoll.
93546         * m4/strtoll.m4: New file.
93547
93548         Module strtoull.
93549         * m4/strtoull.m4: New file.
93550
93551         Module strtoimax.
93552         * m4/strtoimax.m4: New file.
93553
93554         Module strtoumax.
93555         * m4/strtoumax.m4: New file.
93556
93557         Module xstrtoimax.
93558         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93559         jm_AC_PREREQ_XSTRTOIMAX.
93560         Moved the strtol prerequisites to strtol.m4.
93561         Moved the strtoll prerequisites to strtoll.m4.
93562         Moved the strtoimax prerequisites to strtoimax.m4.
93563
93564         Module xstrtoumax.
93565         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93566         jm_AC_PREREQ_XSTRTOUMAX.
93567         Moved the strtoul prerequisites to strtoul.m4.
93568         Moved the strtoull prerequisites to strtoull.m4.
93569         Moved the strtoumax prerequisites to strtoumax.m4.
93570
93571         Module chown.
93572         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93573         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93574
93575         Module dup2.
93576         * m4/dup2.m4: New file.
93577
93578         Module ftruncate.
93579         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93580         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93581
93582         Module getgroups.
93583         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93584         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93585
93586         Module gettimeofday.
93587         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93588         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93589         gl_PREREQ_GETTIMEOFDAY.
93590
93591         Module mkdir.
93592         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93593         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93594
93595         Module mkstemp.
93596         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93597         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93598         jm_AC_TYPE_UINTMAX_T.
93599         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93600
93601         Module stat.
93602         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93603         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93604
93605         Module lstat.
93606         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93607         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93608
93609         Module timespec.
93610         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93611         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93612         * m4/st_mtim.m4: Indentation.
93613
93614         Module nanosleep.
93615         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93616         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93617         gl_PREREQ_NANOSLEEP.
93618
93619         Module regex.
93620         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93621         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93622         (gl_REGEX): New macro.
93623
93624         Module rename.
93625         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93626         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93627
93628         Module rmdir.
93629         * m4/rmdir.m4: New file.
93630
93631         Module utime.
93632         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93633         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93634         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93635
93636         Module dirname.
93637         * m4/dirname.m4: New file.
93638
93639         Module getopt.
93640         * m4/getopt.m4: New file.
93641
93642         Module unistd-safer.
93643         * m4/unistd-safer.m4: New file.
93644
93645         Module fnmatch.
93646         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93647         declaration.
93648         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93649         (gl_FUNC_FNMATCH_POSIX): New macro.
93650         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93651         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93652         simply fnmatch.
93653
93654         Module exclude.
93655         * m4/exclude.m4: New file.
93656
93657         Module human.
93658         * m4/human.m4: New file.
93659
93660         Module acl.
93661         * m4/acl.m4: Nop.
93662
93663         Module backupfile.
93664         * m4/backupfile.m4: New file.
93665         * m4/d-ino.m4: Indentation.
93666
93667         Module fsusage.
93668         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93669         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93670         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93671
93672         Module dirfd.
93673         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93674         requirements.
93675
93676         Module euidaccess.
93677         * m4/euidaccess.m4: New file.
93678
93679         Module file-type.
93680         * m4/file-type.m4: New file.
93681
93682         Module fileblocks.
93683         * m4/fileblocks.m4: New file.
93684
93685         Module filemode.
93686         * m4/filemode.m4: New file.
93687
93688         Module isdir.
93689         * m4/isdir.m4: New file.
93690
93691         Module lchown.
93692         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93693         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93694
93695         Module makepath.
93696         * m4/makepath.m4: New file.
93697
93698         Module modechange.
93699         * m4/modechange.m4: New file.
93700
93701         Module mountlist.
93702         * m4/mountlist.m4: New file.
93703         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93704         Indentation.
93705
93706         Module path-concat.
93707         * m4/path-concat.m4: New file.
93708
93709         Module pathmax.
93710         * m4/pathmax.m4: New file.
93711
93712         Module same.
93713         * m4/same.m4: New file.
93714
93715         Module save-cwd.
93716         * m4/save-cwd.m4: New file.
93717
93718         Module savedir.
93719         * m4/savedir.m4: New file.
93720
93721         Module xgetcwd.
93722         * m4/xgetcwd.m4: New file.
93723         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93724
93725         Module xreadlink.
93726         * m4/xreadlink.m4: New file.
93727
93728         Module safe-read.
93729         * m4/safe-read.m4: New file.
93730
93731         Module safe-write.
93732         * m4/safe-write.m4: New file.
93733
93734         Module closeout.
93735         * m4/closeout.m4: New file.
93736
93737         Module stdio-safer.
93738         * m4/stdio-safer.m4: New file.
93739
93740         Module getpass.
93741         * m4/getpass.m4: New file.
93742
93743         Module getugroups.
93744         * m4/getugroups.m4: New file.
93745
93746         Module group-member.
93747         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93748         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93749
93750         Module idcache.
93751         * m4/idcache.m4: New file.
93752
93753         Module userspec.
93754         * m4/userspec.m4: New file.
93755
93756         Module gettime.
93757         * m4/clock_time.m4: New file.
93758         * m4/gettime.m4: New file.
93759
93760         Module settime.
93761         * m4/settime.m4: New file.
93762
93763         Module posixtm.
93764         * m4/posixtm.m4: New file.
93765
93766         Module gethostname.
93767         * m4/gethostname.m4: New file.
93768
93769         Module canon-host.
93770         * m4/canon-host.m4: New file.
93771
93772         Module gettext.
93773         * m4/codeset.m4: New file, from gettext-0.11.5.
93774         * m4/gettext.m4: New file, from gettext-0.11.5.
93775         * m4/glibc21.m4: New file, from gettext-0.11.5.
93776         * m4/iconv.m4: New file, from gettext-0.11.5.
93777         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93778         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93779         * m4/inttypes.m4: New file, from gettext-0.11.5.
93780         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93781         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93782         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93783         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93784         * m4/lib-link.m4: New file, from gettext-0.11.5.
93785         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93786         * m4/progtest.m4: New file, from gettext-0.11.5.
93787         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93788         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93789         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93790
93791         Module localcharset.
93792         * m4/localcharset.m4: New file.
93793
93794         Module hard-locale.
93795         * m4/hard-locale.m4: New file.
93796
93797         Module mbswidth.
93798         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93799         onceonly macros.
93800         * m4/mbrtowc.m4: Add comment.
93801
93802         Module memcasecmp.
93803         * m4/memcasecmp.m4: New file.
93804
93805         Module memcoll.
93806         * m4/memcoll.m4: New file.
93807
93808         Module unicodeio.
93809         * m4/unicodeio.m4: New file.
93810
93811         Module rpmatch.
93812         * m4/rpmatch.m4: New file.
93813
93814         Module yesno.
93815         * m4/yesno.m4: New file.
93816
93817         Module exitfail.
93818         * m4/exitfail.m4: New file.
93819
93820         Module c-stack.
93821         * m4/c-stack.m4 (gl_C_STACK): New macro.
93822         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93823
93824         Module error.
93825         * m4/error.m4 (gl_ERROR): New macro.
93826         (jm_PREREQ_ERROR): Use onceonly macros.
93827
93828         Module fatal.
93829         * m4/fatal.m4: New file.
93830
93831         Module getloadavg.
93832         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93833         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93834
93835         Module getpagesize.
93836         * m4/getpagesize.m4: New file.
93837
93838         Module getusershell.
93839         * m4/getusershell.m4: New file.
93840
93841         Module physmem.
93842         * m4/physmem.m4: New file.
93843
93844         Module posixver.
93845         * m4/posixver.m4: New file.
93846
93847         Module quotearg.
93848         * m4/quotearg.m4: New file.
93849
93850         Module quote.
93851         * m4/quote.m4: New file.
93852
93853         Module readutmp.
93854         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93855
93856         Module sig2str.
93857         * m4/sig2str.m4: New file.
93858
93859         Other.
93860         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93861         ulonglong.m4.
93862         * m4/intmax_t.m4: New file.
93863         * m4/d-type.m4: Indentation.
93864         * m4/jm-macros.m4: Update.
93865         * m4/prereq.m4 (jm_PREREQ): Update.
93866         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93867         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93868         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93869         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93870         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93871         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93872         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93873         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93874         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93875         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93876         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93877         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93878         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93879         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93880         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93881         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93882         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93883         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93884         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93885
93886 2002-12-24  Bruno Haible  <bruno@clisp.org>
93887
93888         * MODULES.txt: Update according to m4/ changes.
93889
93890         Module gettext.
93891         * config.rpath: New file, from gettext-0.11.5.
93892
93893         * modules/*: New module descriptions.
93894         * gnulib-tool: New file.
93895         * MODULES.html.sh: New file.
93896
93897 2002-12-21  Karl Berry  <karl@gnu.org>
93898
93899         * doc/fdl.texi: update to version 1.2.
93900
93901 2002-12-19  Karl Berry  <karl@gnu.org>
93902
93903         * config/config.guess: update from prep.
93904
93905 2002-12-18  Bruno Haible  <bruno@clisp.org>
93906
93907         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93908         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93909
93910 2002-12-17  Bruno Haible  <bruno@clisp.org>
93911
93912         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93913         stdlib.h, string.h.
93914
93915 2002-12-17  Bruno Haible  <bruno@clisp.org>
93916
93917         * lib/canon-host.c (strdup): Remove unused declaration.
93918
93919         * lib/fsusage.c: Include full_read.h.
93920         (get_fs_usage): Use full_read instead of safe_read.
93921
93922         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93923
93924 2002-12-12  Karl Berry  <karl@gnu.org>
93925
93926         * config/config.guess: update from prep.
93927
93928 2002-12-11  Bruno Haible  <bruno@clisp.org>
93929
93930         * m4/setenv.m4: New file, from gettext-0.11.5.
93931
93932 2002-12-11  Bruno Haible  <bruno@clisp.org>
93933
93934         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93935         not unsetenv().
93936         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93937         modifications:
93938
93939         2002-12-11  Bruno Haible  <bruno@clisp.org>
93940
93941                 * setenv.c (alloca): Fall back to malloc.
93942                 (freea): New macro.
93943                 (setenv): Use freea() to free memory allocated with alloca().
93944
93945         2002-11-13  Bruno Haible  <bruno@clisp.org>
93946
93947                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93948                 function declarations.
93949                 * unsetenv.c (unsetenv): Likewise.
93950
93951         2002-03-04  Bruno Haible  <bruno@clisp.org>
93952
93953                 Portability to AIX 4.3.3.
93954                 * unsetenv.c: New file, extracted from setenv.c.
93955                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93956
93957         2001-12-20  Bruno Haible  <bruno@clisp.org>
93958
93959                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93960                 use malloc instead. For SunOS 4.
93961
93962         2001-12-11  Bruno Haible  <bruno@clisp.org>
93963
93964                 * setenv.c: Declare alloca.
93965                 (compar_fn_t): New typedef.
93966                 (KNOWN_VALUE, STORE_VALUE): Use it.
93967
93968         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93969         setenv.h.
93970
93971 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93972
93973         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93974         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93975         Choose values that are less likely to collide with system fnmatch
93976         options.
93977         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93978         defined (e.g., a pure POSIX system).
93979         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93980         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93981
93982 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93983
93984         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93985         a pain in practice to deal with generated m4 files.  This change
93986         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93987
93988         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93989         and jm-glibc-io.m4, as they are no longer a special case.
93990         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93991         kludge and the auto-generation stuff.  Check only whether the
93992         functions are declared, not whether they exist, since older hosts
93993         that don't declare the functions can't use the optimization anyway.
93994
93995 2002-12-06  Jim Meyering  <jim@meyering.net>
93996
93997         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93998
93999         Merge in changes from libc's misc/error.c, in preparation
94000         for the merge of gnulib's changes back into libc.
94001
94002         * lib/error.c (_): Define only if not already defined.
94003         Move definition to follow all #include directives.
94004         Include unlocked-io.h only if !_LIBC.
94005         [_LIBC]: Include <libio/libioP.h>.
94006         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94007         (fflush): Tweak definition to use INTUSE.
94008         (putc): Define.
94009
94010 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94011
94012         * lib/alloca.c [defined emacs]: Include "lisp.h".
94013         (xalloc_die) [defined emacs]: New macro.
94014         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94015         [! defined emacs]: Include <xalloc.h>.
94016         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94017         (pointer): Typedef to POINTER_TYPE *.
94018         (malloc): Remove decl; we now always use xmalloc.
94019         (alloca): Use old-style definition, since Emacs needs this.
94020         Check for arithmetic overflow when computing combined size.
94021
94022 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94023
94024         Do not generate unlocked-io.h automatically, since it's easier to
94025         maintain it by hand.
94026
94027         * lib/unlocked-io.h: New file, from GNU diffutils,
94028         but with proper copyright notice and attribution.
94029         * lib/gen-uio: Remove.
94030         * lib/Makefile.am: Add copyright notice.
94031         (libfetish_a_SOURCES): Add unlocked-io.h.
94032         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94033         (DISTCLEANFILES, io_functions): Remove macros.
94034         (EXTRA_DIST): Remove gen_uio.
94035         (unlocked-io.h): Remove rule.
94036
94037 2002-12-04  Jim Meyering  <jim@meyering.net>
94038
94039         Reflect the fact that stat.c and lstat.c are no longer generated.
94040         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94041         (DISTCLEANFILES): Likewise.
94042         (EXTRA_DIST): Likewise.
94043         (all_local): Don't depend on stat.c or lstat.c.
94044         (stat.c, lstat.c): Remove rules.
94045         (EXTRA_DIST): Remove xstat.in.
94046
94047         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94048         * lib/stat.c: New file.  Contents mostly from xstat.in.
94049         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94050         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94051
94052         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94053         too.
94054         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94055
94056 2002-12-03  Jim Meyering  <jim@meyering.net>
94057
94058         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94059         but not semantics, to minimize the differences between these two files.
94060         (safe_read): Change comment to mention SAFE_READ_ERROR.
94061
94062         * lib/safe-read.c (IS_EINTR): Define.
94063         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94064
94065 2002-12-02  Jim Meyering  <jim@meyering.net>
94066
94067         * lib/safe-read.c (EINTR): Define.
94068         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94069         (INT_MAX): Provide fallback.
94070         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94071
94072         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94073
94074 2002-12-02  Bruno Haible  <bruno@clisp.org>
94075
94076         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94077         Define, taken from safe-read.c.
94078         (INT_MAX): Provide fallback.
94079         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94080         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94081
94082         * lib/safe-read.c (EINTR): Remove definition.
94083         (safe_read): Don't use EINTR if it is absent.
94084
94085 2002-12-01  Jim Meyering  <jim@meyering.net>
94086
94087         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94088         zero.
94089         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94090
94091 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94092
94093         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94094         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94095         with `if (! (value < limit)) abort ();', for readability.
94096
94097 2002-11-26  Karl Berry  <karl@gnu.org>
94098
94099         * lib/strdup.c: copy from libc again, with jim's ok.
94100         * lib/.cppi-disable: re-add strdup.c
94101
94102 2002-11-25  Karl Berry  <karl@gnu.org>
94103
94104         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94105         instead of "strtol.c".
94106
94107 2002-11-25  Karl Berry  <karl@gnu.org>
94108
94109         * config/install-sh: update from automake for variable quoting, $0 in
94110         error msgs, etc.
94111
94112         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94113         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94114         entry.
94115
94116 2002-11-25  Jim Meyering  <jim@meyering.net>
94117
94118         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94119
94120 2002-11-24  Karl Berry  <karl@gnu.org>
94121
94122         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94123         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94124
94125 2002-11-24  Jim Meyering  <jim@meyering.net>
94126
94127         Update from coreutils:
94128
94129         * lib/mktime.c: Merge in changes from libc.
94130
94131         Avoid a link-time failure on some Linux systems.
94132         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94133         (otherwise).
94134         (__mon_yday): Declare with the STATIC attribute.
94135         (__mktime_internal): Likewise.
94136         Based on a report from Greg Schafer.
94137
94138 2002-11-23  Jim Meyering  <jim@meyering.net>
94139
94140         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94141         Use `unsigned', not `int', as type of index.
94142
94143         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94144
94145         * lib/fsusage.c: Remove unneeded parentheses around operands of
94146         `defined'.
94147
94148 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94149
94150         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94151         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94152         so that we can be included first.
94153         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94154         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94155         No need to include stddef.h or sys/types.h any more.
94156         Surround local include files with "", not "<>".
94157         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94158         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94159         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94160         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94161         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94162         (ISPRINT): Remove; no longer needed now that we assume C89.
94163
94164         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94165         Preserve errno.
94166
94167         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94168         quotearg_char): Use SIZE_MAX rather than
94169         (size_t) -1 when we are talking about "infinity".
94170
94171         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94172
94173 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94174
94175         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94176         hint that one should use `if (! x) abort ();' rather than `assert
94177         (x);', and anyway it's one less thing to worry about configuring.
94178         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94179         hash_rehash, hash_insert): Use abort rather than assert.
94180
94181 2002-11-22  Bruno Haible  <bruno@clisp.org>
94182
94183         * lib/safe-read.h: Assume C89. Add comments.
94184         (safe_read): Change return type to size_t.
94185         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94186         byte counts > SSIZE_MAX correctly.
94187         * lib/safe-write.h: New file.
94188         * lib/safe-write.c: New file.
94189         * lib/full-read.h: New file.
94190         * lib/full-read.c: New file.
94191         * lib/full-write.h: Assume C89. Add comments.
94192         * lib/full-write.c: Include safe-write.h.
94193         (full_write): Rewritten to use safe_write.
94194         Suggested by Jim Meyering and Paul Eggert.
94195
94196 2002-11-21  Jim Meyering  <jim@meyering.net>
94197
94198         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94199
94200         Merge in changes from the coreutils.
94201
94202         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94203         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94204         <stdint.h>.
94205         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94206         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94207         int.  Work more efficiently if X is the same width as uintmax_t.
94208         Do not compare X to -1, to avoid bogus compiler warning.
94209         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94210         Don't assume that f_frsize and f_bsize are the same type.
94211
94212         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94213         warning on FreeBSD.
94214
94215         * lib/makepath.c (make_path): Restore umask *before* creating the final
94216         component.
94217         (make_path): Minor reformatting.
94218
94219         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94220         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94221         HAVE_MALLOC/HAVE_REALLOC.
94222
94223         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94224         dummy ones.  At least on GNU/Linux systems, `auto' means something
94225         else.
94226         From Michael Stone.
94227
94228 2002-11-21  Bruno Haible  <bruno@clisp.org>
94229
94230         Remove case insensitive option matching.
94231         * lib/argmatch.h (argcasematch): Remove declaration.
94232         (ARGCASEMATCH): Remove macro.
94233         (__xargmatch_internal): Remove case_sensitive argument.
94234         (XARGMATCH): Update.
94235         (XARGCASEMATCH): Remove macro.
94236         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94237         case_sensitive argument.
94238         (argcasematch): Remove function.
94239         (__xargmatch_internal): Remove case_sensitive argument.
94240         (main): Use XARGMATCH instead of XARGCASEMATCH.
94241
94242         * lib/xmalloc.c: Change compile-time error message. Add comment about
94243         required autoconf version.
94244
94245 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94246
94247         Merge argmatch cleanups from Bison.  Assume C89.
94248
94249         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94250         Include stdlib.h, for EXIT_FAILURE.
94251         Always include <string.h>, since we assume C89.
94252         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94253         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94254         Include <stddef.h> instead, since it's all we need for size_t.
94255         (PARAMS): Remove.  All uses removed.
94256         (ARRAY_CARDINALITY): Do not bother to #undef.
94257         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94258         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94259         Remove unnecessary parentheses.
94260         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94261         Insert necessary parentheses.
94262         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94263         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94264
94265 2002-11-19  Bruno Haible  <bruno@clisp.org>
94266
94267         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94268         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94269
94270         * lib/mbswidth.h (PARAMS): Remove macro.
94271         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94272         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94273
94274         * lib/gcd.h (PARAMS): Remove macro.
94275         (gcd): Use ANSI C function declarations.
94276         * lib/gcd.c (gcd): Likewise.
94277
94278 2002-11-15  Bruno Haible  <bruno@clisp.org>
94279
94280         * lib/strcspn.c: Include <stddef.h>.
94281         (strcspn): Use ANSI C function declaration. Change return type to
94282         size_t. Use NULL.
94283         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94284         (strpbrk): Use NULL.
94285         * lib/strpbrk.h (PARAMS): Remove macro.
94286         (strpbrk): Use ANSI C function declaration.
94287         * lib/strstr.c: Don't include <sys/types.h>.
94288         * lib/strstr.h (PARAMS): Remove macro.
94289         (strstr): Use ANSI C function declarations.
94290
94291 2002-11-14  Karl Berry  <karl@gnu.org>
94292
94293         * config/mkinstalldirs: `do' on separate line, instead of
94294         `for var; do'.
94295
94296 2002-11-06  Bruno Haible  <bruno@clisp.org>
94297
94298         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94299         * lib/gcd.c (gcd): Likewise.
94300
94301 2002-11-05  Bruno Haible  <bruno@clisp.org>
94302
94303         * lib/gcd.h: New file, from gettext-0.11.5.
94304         * lib/gcd.c: New file, from gettext-0.11.5.
94305
94306 2002-11-05  Bruno Haible  <bruno@clisp.org>
94307
94308         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94309         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94310         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94311         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94312
94313         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94314         <libintl.h>.
94315         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94316         <libintl.h>.
94317
94318         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94319         * lib/human.c: Include gettext.h instead of <libintl.h>.
94320         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94321         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94322         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94323         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94324         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94325         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94326         (textdomain): Remove definition.
94327         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94328
94329         * lib/long-options.c: Remove include of <libintl.h> and definition of
94330         _.
94331         * lib/same.c: Remove include of <libintl.h> and definition of _.
94332
94333 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94334
94335         * lib/config.charset: A few additions for Solaris.
94336
94337 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94338
94339         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94340         * lib/localcharset.c (locale_charset): Declare as extern "C".
94341
94342 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94343
94344         * lib/config.charset: msdos in uk_UA uses CP1125.
94345
94346 2002-11-04  Bruno Haible  <bruno@clisp.org>
94347
94348         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94349         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94350         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94351         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94352         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94353
94354 2002-11-04  Bruno Haible  <bruno@clisp.org>
94355
94356         * lib/localcharset.c (locale_charset): Don't return an empty string.
94357
94358 2002-11-04  Bruno Haible  <bruno@clisp.org>
94359
94360         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94361         aliases.
94362
94363 2002-11-04  Bruno Haible  <bruno@clisp.org>
94364
94365         * lib/config.charset: Update for newest glibc. Add canonical names
94366         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94367
94368 2002-11-04  Bruno Haible  <bruno@clisp.org>
94369
94370         * lib/config.charset: Add support for NetBSD.
94371
94372 2002-11-04  Bruno Haible  <bruno@clisp.org>
94373
94374         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94375
94376 2002-11-01  Bruno Haible  <bruno@clisp.org>
94377
94378         * configure.in: Add AC_CONFIG_AUX_DIR call.
94379         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94380         test/Makefile.
94381         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94382
94383 2002-09-28  Karl Berry  <karl@gnu.org>
94384
94385         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94386         installed automake until the next release, since changes have been
94387         made.
94388
94389 2002-09-25  Karl Berry  <karl@gnu.org>
94390
94391         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94392         * lib/getopt*: copy from libc/posix.
94393         * lib/gettext.h: copy from gettext.
94394         * lib/.cppi-disable: add strdup.c, gettext.h.
94395
94396 2002-09-25  Karl Berry  <karl@gnu.org>
94397
94398         * config/srclist.txt: enable gettext.h check.
94399         * config/config.{guess,sub}: update from prep.
94400         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94401                 from automake 1.6.3.
94402         See srclist*.
94403
94404 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94405
94406         * regex.c (PATFETCH): Remove the translating fetch.
94407         (PATFETCH_RAW): Rename to PATFETCH.
94408         (set_image_of_range): New fun.
94409         (SET_RANGE_TABLE_WORK_AREA): Use it.
94410         (regex_compile): Don't translate the pattern chars so eagerly.
94411         Only do it when inserting an `exactn' bytecode or when handling
94412         a char-range.
94413         (mutually_exclusive_p): Avoid empty statement.
94414
94415 2002-07-06  Jim Meyering  <meyering@lucent.com>
94416
94417         * m4/README: Don't mention Makefile.am.in.
94418         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94419
94420 2002-07-01  Jim Meyering  <meyering@lucent.com>
94421
94422         * lib/c-stack.c: Include sys/time.h.
94423         From Volker Borchert.
94424
94425 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94426
94427         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94428
94429 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94430
94431         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94432         New macro.  Use it uniformly instead of
94433         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94434         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94435         reported by Vin Shelton.
94436
94437 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94438
94439         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94440         Do not assume SA_SIGINFO behavior.
94441         Bug reported by Jim Meyering on NetBSD 1.5.2.
94442
94443 2002-06-22  Jim Meyering  <meyering@lucent.com>
94444
94445         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94446         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94447
94448         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94449         now that configure.ac uses AC_GNU_SOURCE.
94450         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94451         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94452
94453         Update to latest tools.  Suggestions from Paul Eggert.
94454         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94455         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94456         * m4/fnmatch.m4: Likewise.
94457         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94458         to AC_HEADER_STDBOOL
94459
94460 2002-06-22  Jim Meyering  <meyering@lucent.com>
94461
94462         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94463         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94464
94465 2002-06-22  Jim Meyering  <meyering@lucent.com>
94466
94467         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94468
94469         * lib/exitfail.c, exitfail.h: Likewise.
94470         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94471
94472         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94473         of fnmatch.h.
94474         (EXTRA_DIST): Add fnmatch_loop.c.
94475         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94476
94477         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94478         * lib/fnmatch.c: Update from diffutils-2.8.2.
94479         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94480         * lib/fnmatch.h: Remove file.
94481
94482 2002-06-21  Jim Meyering  <meyering@lucent.com>
94483
94484         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94485         * m4/mbrtowc.m4: Likewise.
94486
94487         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94488         * m4/mbswidth.m4: Reflect name change:
94489         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94490         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94491
94492         * m4/lib-link.m4: Update from gettext-0.11.2.
94493         * m4/gettext.m4: Likewise.
94494
94495         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94496         From Alfred M. Szmidt.
94497
94498 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94499
94500         * lib/file-type.h: Report an error if neither S_ISREG nor
94501         S_IFREG is defined, instead of using a test specific to glibc
94502         2.2.  This should be safe, since POSIX requires S_ISREG and
94503         Unix Version 7 had S_IFREG.  We don't need to check for
94504         <sys/types.h> since we don't use any symbols that it defines.
94505
94506 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94507
94508         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94509         $@-t, so that each temporary file name is unique and valid in the first
94510         8 characters, for operation under DOS.
94511
94512 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94513
94514         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94515
94516 2002-06-15  Jim Meyering  <meyering@lucent.com>
94517
94518         Work even with DJGPP 2.03, which lacks support for symlinks.
94519         From Richard Dawe.
94520         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94521         is defined.
94522         * lib/lchown.c (S_ISLNK): Likewise.
94523
94524 2002-06-15  Jim Meyering  <meyering@lucent.com>
94525
94526         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94527         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94528         have been included before this file.
94529
94530 2002-06-14  Jim Meyering  <meyering@lucent.com>
94531
94532         * lib/file-type.h: Use the version from diffutils-2.8.2.
94533         * lib/file-type.c: Likewise.
94534
94535 2002-06-07  Jim Meyering  <meyering@lucent.com>
94536
94537         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94538         They're needed at least for NetBSD 1.5.2.
94539         ($statxfs_includes): Include those same headers.
94540         ($statxfs_includes): Include sys/vfs.h if available.
94541         ($statxfs_includes): Likewise for sys/statvfs.h.
94542         Check for the following members in both structs statfs and statvfs:
94543         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94544
94545 2002-06-01  Jim Meyering  <meyering@lucent.com>
94546
94547         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94548         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94549
94550 2002-05-28  Jim Meyering  <meyering@lucent.com>
94551
94552         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94553         Reported by Volker Borchert.
94554
94555 2002-05-27  Jim Meyering  <meyering@lucent.com>
94556
94557         Fix a problem seen only on nonconforming systems whereby ls.c's
94558         use of localtime, and then of gettimeofday would cause trouble:
94559         the localtime call used to initialize rpl_gettimeofday's save
94560         mechanism would clobber ls's current local time information so
94561         that in any long listing the first file would always be listed
94562         with date 1970-01-01.  Analysis by Volker Borchert.
94563
94564         * lib/gettimeofday.c (localtime): Undefine.
94565         (rpl_localtime): New function.
94566
94567 2002-05-27  Jim Meyering  <meyering@lucent.com>
94568
94569         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94570         localtime.
94571
94572         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94573         use the replacement function; it wouldn't resolve at link time.
94574         Reported by Volker Borchert.
94575
94576 2002-05-22  Jim Meyering  <meyering@lucent.com>
94577
94578         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94579         file-type.h.
94580         * lib/file-type.h: New file.
94581         * lib/file-type.c (file_type): New file/function.  Extracted from
94582         diffutils.
94583
94584 2002-04-30  Jim Meyering  <meyering@lucent.com>
94585
94586         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94587
94588 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94589
94590         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94591
94592 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94593
94594         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94595         Do not check for alloca.h (no longer used) or stdbool.h (was never
94596         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94597
94598 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94599
94600         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94601
94602 2002-04-29  Jim Meyering  <meyering@lucent.com>
94603
94604         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94605         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94606         Use AC_FUNC_STRNLEN here instead.
94607
94608         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94609         With autoconf-2.53a, it's part of AC_PROG_CC.
94610
94611 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94612
94613         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94614         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94615
94616 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94617
94618         * lib/sig2str.h, lib/sig2str.c: New files.
94619         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94620
94621 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94622
94623         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94624         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94625         of 127, since 64 is the largest conceivable number for ancient
94626         nonstandard hosts.
94627         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94628
94629 2002-04-28  Jim Meyering  <meyering@lucent.com>
94630
94631         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94632
94633 2002-04-24  Jim Meyering  <meyering@lucent.com>
94634
94635         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94636         (jm_PREREQ): Use it.
94637
94638         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94639         mach/mach.h fcntl.h.
94640         Check for this function: setlocale.
94641
94642 2002-04-24  Jim Meyering  <meyering@lucent.com>
94643
94644         * lib/gettext.h: New file, from Gettext.
94645         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94646         (libfetish_a_SOURCES): Add gettext.h.
94647
94648 2002-04-16  Jim Meyering  <meyering@lucent.com>
94649
94650         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94651         ut_pid, ut_id, ut_exit.
94652
94653 2002-04-16  Jim Meyering  <meyering@lucent.com>
94654
94655         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94656         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94657         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94658
94659 2002-04-12  Jim Meyering  <meyering@lucent.com>
94660
94661         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94662         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94663         existence of the getmntinfo function.  Needed for Darwin 5.3.
94664
94665         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94666         This is necessary at least on Darwin 5.3.
94667
94668         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94669         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94670         strnlen.o in the library, and that makes some versions of ranlib
94671         object.
94672
94673 2002-04-12  Jim Meyering  <meyering@lucent.com>
94674
94675         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94676
94677 2002-04-09  Jim Meyering  <meyering@lucent.com>
94678
94679         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94680         to be more precise.  Rather than saying we're checking whether the
94681         function `works', say what we're testing.
94682         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94683         Reported by Bruno Haible.
94684
94685 2002-03-10  Jim Meyering  <meyering@lucent.com>
94686
94687         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94688         Suggestion from Santiago Vila.
94689
94690 2002-03-08  Jim Meyering  <meyering@lucent.com>
94691
94692         * lib/rename.c: Mention that this wrapper is needed also on
94693         mips-dec-ultrix4.4 systems.
94694
94695 2002-03-02  Jim Meyering  <meyering@lucent.com>
94696
94697         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94698         not HAVE_CLOCK_SETTIME.
94699
94700 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94701
94702         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94703         Check for clock_settime.
94704
94705 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94706
94707         * lib/nanosleep.h: Rename to....
94708         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94709
94710         * lib/gettime.c: New file.
94711         * lib/settime.c: New file.
94712         * lib/stime.c: Remove.
94713
94714         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94715         timespec.h.  Remove nanosleep.h.
94716
94717 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94718
94719         * m4/acl.m4: New file.
94720         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94721         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94722
94723 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94724
94725         * lib/acl.c, lib/acl.h: New files.
94726         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94727
94728 2002-02-24  Jim Meyering  <meyering@lucent.com>
94729
94730         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94731         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94732         cause trouble.  Reported by Nelson Beebe.
94733
94734 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94735
94736         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94737         compilers that don't know that xalloc_die never returns.
94738
94739 2002-02-20  Jim Meyering  <meyering@lucent.com>
94740
94741         * lib/getdate.c: Regenerate using bison-1.33.
94742
94743 2002-02-17  Jim Meyering  <meyering@lucent.com>
94744
94745         * config/config.guess (main): Don't use `head -1'; it's no longer
94746         portable. Use `sed 1q' instead.
94747
94748 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94749
94750         * m4/codeset.m4: Upgrade to gettext-0.11.
94751         * m4/gettext.m4: Upgrade to gettext-0.11.
94752         * m4/glibc21.m4: Upgrade to gettext-0.11.
94753         * m4/iconv.m4: Upgrade to gettext-0.11.
94754         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94755         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94756         * m4/lib-ld.m4: New file, from gettext-0.11.
94757         * m4/lib-link.m4: New file, from gettext-0.11.
94758         * m4/lib-prefix.m4: New file, from gettext-0.11.
94759         * m4/progtest.m4: Upgrade to gettext-0.11.
94760
94761 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94762
94763         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94764         (jm_PREREQ): Use it.
94765
94766 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94767
94768         * lib/posixver.c, lib/posixver.h: New files.
94769         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94770
94771 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94772             Bruno Haible  <bruno@clisp.org>
94773
94774         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94775         (fwrite_success_callback): New declaration.
94776         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94777         print_unicode_char. Call failure callback instead of error.
94778         (fwrite_success_callback): New function.
94779         (exit_failure_callback): New function.
94780         (fallback_failure_callback): New function.
94781         (print_unicode_char): Call unicode_to_mb.
94782
94783 2002-01-26  Jim Meyering  <meyering@lucent.com>
94784
94785         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94786         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94787
94788 2002-01-26  Jim Meyering  <meyering@lucent.com>
94789
94790         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94791
94792 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94793
94794         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94795
94796 2002-01-22  Jim Meyering  <meyering@lucent.com>
94797
94798         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94799         Otherwise, some versions of automake would omit the rule that makes
94800         Makefile from Makefile.in.
94801
94802 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94803
94804         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94805         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94806         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94807         (memcoll): Set errno to zero if there is no error.
94808
94809         * lib/quotearg.c (quotearg_buffer_restyled):
94810         Fix bug with quoting buffers containing NUL when backslashing escapes.
94811         This bug was exposed by the other changes in this patch.
94812         (quotearg_n_options): New arg ARGSIZE.
94813         All callers changed.
94814         (quoting_options_from_style): New function.
94815         (quotearg_n_style): Use it.
94816         (quotearg_n_style_mem): New function.
94817
94818         * lib/quotearg.h (quotearg_n_style_mem): New function.
94819
94820 2002-01-19  Jim Meyering  <meyering@lucent.com>
94821
94822         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94823         Remove useless quotes: DF_PROG="df".
94824         * m4/strnlen.m4: New file.
94825
94826 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94827
94828         * lib/backupfile.c (ISDIGIT): Comment fix.
94829         * lib/getdate.y (ISDIGIT): Likewise.
94830         * lib/posixtm.c (ISDIGIT, year): Likewise.
94831         * lib/strverscmp.c (ISDIGIT): Likewise.
94832         * lib/userspec.c (ISDIGIT): Likewise.
94833
94834 2002-01-16  Jim Meyering  <meyering@lucent.com>
94835
94836         * lib/getdate.y: Add three semicolons, each just before a closing
94837         brace. Bison (as of version 1.31) no longer papers over that mistake.
94838
94839 2002-01-05  Jim Meyering  <meyering@lucent.com>
94840
94841         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94842
94843 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94844
94845         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94846         not silently exit merely because the output buffer happens to
94847         have nothing pending.
94848
94849 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94850
94851         See the big note in ../ChangeLog.
94852         * lib/human.c (suffixes): Prefer K to k for 1024.
94853         (generate_suffix_backwards): New function.
94854         (human_readable_inexact): Use it.
94855         * lib/xstrtol.c (__xstrtol): If there is no number but there
94856         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94857         Accept 'K' as well as 'k'.
94858
94859 2001-12-15  Jim Meyering  <meyering@lucent.com>
94860
94861         * lib/regex.h (__restrict_arr): Update from libc.
94862
94863         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94864         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94865         (STREQ): Define.
94866
94867 2001-12-14  Jim Meyering  <meyering@lucent.com>
94868
94869         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94870         Suggestion from Bruno Haible.
94871
94872 2001-12-10  Jim Meyering  <meyering@lucent.com>
94873
94874         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94875         xrealloc, Instead, include "xalloc.h".
94876         (initbuffer): Don't cast xmalloc return value to char*.
94877         (readline): Reword comment.
94878         Don't cast xrealloc return value to char*
94879         Return NULL, not 0.
94880
94881 2001-12-09  Jim Meyering  <meyering@lucent.com>
94882
94883         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94884         about `signed and unsigned type in conditional expression'.
94885         * lib/posixtm.c (posix_time_parse): Likewise.
94886
94887         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94888
94889         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94890         to avoid a pedantic warning.
94891
94892         * lib/getstr.c: Don't include assert.h.
94893         (getstr): Remove warning-evoking assertions.
94894         Return -1 if offset parameter is out of bounds.
94895         Change the type of a local from int to size_t.
94896
94897         * lib/strftime.c (my_strftime_localtime_r): Include this function
94898         definition in the `#if ! HAVE_TM_GMTOFF' block.
94899
94900         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94901         Include xalloc.h instead.
94902
94903 2001-12-02  Jim Meyering  <meyering@lucent.com>
94904
94905         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94906         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94907         included.
94908
94909         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94910         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94911
94912 2001-11-30  Akim Demaille  <akim@epita.fr>
94913
94914         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94915         before being defined.
94916
94917 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94918
94919         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94920         First arg is int, not unsigned.
94921         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94922         (SIZE_MAX, UINT_MAX): New macros.
94923         (quotearg_n_options): Abort if N is negative.
94924         Avoid overflow check on hosts where size_t is 64 bits and int
94925         is 32 bits, as overflow is impossible there.
94926         Fix off-by-one typo that caused unnecessary reallocation.
94927
94928 2001-11-27  Jim Meyering  <meyering@lucent.com>
94929
94930         * lib/tempname.c: Merge with version from libc.
94931         * lib/regex.c: Likewise.
94932
94933         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94934         systems for which STDC_HEADERS is 0, it was not included, resulting in
94935         a warning about an integer-to-pointer conversion problem with getenv.
94936         Reported by Volker Borchert.
94937
94938 2001-11-26  Jim Meyering  <meyering@lucent.com>
94939
94940         * lib/gtod.h: Remove file.
94941         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94942         * lib/gettimeofday.c: Don't include gtod.h.
94943         (GTOD_init): Remove function.
94944         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94945         Suggestion from Volker Borchert.
94946
94947 2001-11-23  Jim Meyering  <meyering@lucent.com>
94948
94949         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94950         it.
94951         * lib/hash.c (struct hash_table): Define it here instead.
94952
94953 2001-11-22  Jim Meyering  <meyering@lucent.com>
94954
94955         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94956
94957 2001-11-20  Jim Meyering  <meyering@lucent.com>
94958
94959         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94960         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94961
94962 2001-11-19  Jim Meyering  <meyering@lucent.com>
94963
94964         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94965         directory.  Use "conftestXXXXXX" as the template.
94966         Suggestion from Paul Eggert.
94967
94968         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94969         immediately, so the test doesn't mistakenly hit the max-open-files
94970         limit.
94971
94972 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94973
94974         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94975         (TEMPORARIES): New macro.
94976         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94977         removes an artificial limitation (e.g. HP-UX 10.20, where
94978         TMP_MAX is 17576).
94979
94980 2001-11-18  Jim Meyering  <meyering@lucent.com>
94981
94982         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94983
94984 2001-11-18  Jim Meyering  <meyering@lucent.com>
94985
94986         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94987         on SunOS 4.
94988
94989         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94990         files will be created before anything else.
94991
94992 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94993
94994         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94995         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94996
94997 2001-11-17  Jim Meyering  <meyering@lucent.com>
94998
94999         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95000         Prompted by a report from Bob Proulx.
95001
95002         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95003         Instead, require UTILS_FUNC_MKSTEMP.
95004
95005 2001-11-17  Jim Meyering  <meyering@lucent.com>
95006
95007         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95008         Now, that's done as part of AC_FUNC_STRTOD.
95009
95010 2001-11-17  Jim Meyering  <meyering@lucent.com>
95011
95012         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95013         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95014         rather than group writable.  Patch by Juan F. Codagnone.
95015
95016         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95017         xrealloc, Instead, include "xalloc.h".
95018
95019         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95020         Remove explicit declarations of xmalloc, xrealloc,
95021         and xstrdup.  Instead, include "xalloc.h".
95022
95023         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95024         unlocked-io.h.
95025         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95026         Likewise.
95027         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95028
95029         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95030         Reported by Padraig Brady.
95031
95032         * lib/mkstemp.c: #undef mkstemp.
95033         Include config.h.
95034         (rpl_mkstemp): Rename from mkstemp.
95035         Protoize.
95036
95037 2001-11-16  Jim Meyering  <meyering@lucent.com>
95038
95039         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95040         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95041         determine the amount of total physical memory, use pstat_getstatic.
95042         HPUX-11 doesn't define _SC_PHYS_PAGES.
95043         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95044         If sysconf couldn't be used to determine the amount of available
95045         physical memory, use both pstat_getstatic and pstat_getdynamic.
95046         Based on a patch from Bob Proulx.
95047
95048 2001-11-10  Jim Meyering  <meyering@lucent.com>
95049
95050         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95051         (jm_PREREQ): Use it.
95052
95053 2001-11-09  Jim Meyering  <meyering@lucent.com>
95054
95055         * m4/jm-macros.m4: Require autoconf-2.52f.
95056         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95057         Use these AC_-prefixed names, not the AM_-prefixed ones.
95058
95059         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95060
95061 2001-11-05  Jim Meyering  <meyering@lucent.com>
95062
95063         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95064
95065 2001-11-04  Jim Meyering  <meyering@lucent.com>
95066
95067         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95068         $DEFS.
95069
95070 2001-11-03  Jim Meyering  <meyering@lucent.com>
95071
95072         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95073         of AC_DEFUN.
95074
95075         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95076         know the name of the variable in the macro definition.
95077
95078 2001-11-03  Jim Meyering  <meyering@lucent.com>
95079
95080         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95081         in argmatch_to_argument call.
95082
95083         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95084         argument.
95085
95086         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95087         e.g., a fault due to an attempt to free a NULL pointer.
95088
95089 2001-11-01  Jim Meyering  <meyering@lucent.com>
95090
95091         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95092         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95093
95094 2001-11-01  Jim Meyering  <meyering@lucent.com>
95095
95096         * lib/dirfd.c, lib/dirfd.h: New files.
95097         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95098
95099         * lib/hash.c (hash_print) [TESTING]: Clean up.
95100
95101 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95102
95103         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95104         to avoid a warning if -Wall.
95105
95106 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95107
95108         * README: New file
95109         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95110         (per RMS's instructions, this is now the canonical source)
95111         * lgpl/, gpl/: New directories.
95112
95113 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95114
95115         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95116
95117 2001-10-21  Jim Meyering  <meyering@lucent.com>
95118
95119         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95120         this code would end up calling gettext even in packages built
95121         with --disable-nls.
95122         * lib/getopt.c (_): Likewise.
95123         * lib/regex.c (_): Likewise.
95124
95125 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95126
95127         * m4/error.m4 (jm_PREREQ_ERROR):
95128         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95129         AC_FUNC_STRERROR_R does that.
95130         Check for strerror declaration.
95131
95132         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95133         are supposed to have them these days.
95134         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95135         Merge changes from latest Autoconf CVS.
95136         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95137         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95138         POSIX decided to standardize on the int flavor of strerror_r.
95139
95140 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95141
95142         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95143         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95144         Use strerror_r that is only a macro, even if it is not a function.
95145         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95146         (private_strerror): Use prototypes, not old-style function definition.
95147         (print_errno_message): New function.
95148         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95149         char*-flavored one.
95150         (error_tail, error, error_at_line): Use it.
95151
95152 2001-10-11  Jim Meyering  <meyering@lucent.com>
95153
95154         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95155         and quote_n (1, ... to avoid clobbering a buffer.
95156
95157 2001-10-05  Jim Meyering  <meyering@lucent.com>
95158
95159         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95160         hash-pjw.h.
95161         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95162         * lib/hash-pjw.h: New file.
95163
95164 2001-09-30  Jim Meyering  <meyering@lucent.com>
95165
95166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95167         `struct fsstat' has the `f_fstypename' member.
95168         Use that to define FS_TYPE, which is now used to make
95169         the getfsstat link test tighter.
95170
95171 2001-09-30  Jim Meyering  <meyering@lucent.com>
95172
95173         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95174         Include <sys/ucred.h>, for Apple Darwin.
95175         Include sys/mount.h and sys/fs_types.h only if available.
95176         (FS_TYPE): Define.
95177         (read_filesystem_list): Use FS_TYPE.
95178
95179 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95180
95181         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95182         a boolean context.
95183
95184 2001-09-29  Jim Meyering  <meyering@lucent.com>
95185
95186         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95187         [one-argument getmntent function]): Include stdio.h before mntent.h.
95188         SunOS 4.1.x needs it for the declaration of `FILE'.
95189         Patch by Volker Borchert.
95190
95191         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95192         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95193         sys/fs_types.h, and make the link-test for getfsstat guard #include
95194         directives with appropriate #if HAVE_*_H tests so that we can
95195         detect getfsstat on Apple Darwin1.3.7 systems.
95196         Reported by Nelson Beebe.
95197         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95198
95199 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95200
95201         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95202         #defines strtoimax.  Also treat the other strto* functions
95203         like strtoimax.
95204
95205         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95206         Check for strtoul and strtoumax,
95207         as those declarations are made even in the signed case.
95208         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95209         Likewise, for strtol and strtoimax.
95210
95211 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95212
95213         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95214         #defines strtoimax.  Also treat the other strto* functions
95215         like strtoimax.
95216
95217         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95218         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95219         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95220
95221 2001-09-26  Jim Meyering  <meyering@lucent.com>
95222
95223         Most macros in unlocked-io.h had the wrong number of arguments.
95224         * lib/gen-uio: New script.
95225         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95226         * lib/unlocked-io.hin: Remove file.
95227         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95228         rather than trying to embed it here.
95229         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95230         Reported by Padraig Brady.
95231
95232 2001-09-25  Volker Borchert  <bt@teknon.de>
95233
95234         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95235         `result'.
95236
95237 2001-09-24  Jim Meyering  <meyering@lucent.com>
95238
95239         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95240
95241 2001-09-23  Jim Meyering  <meyering@lucent.com>
95242
95243         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95244         instead of the mere test for existence of mntent.h.  The latter
95245         would get a false-positive on AIX 3.4 systems.
95246         In the outer getmntent if-block, don't die if neither of the getmntent
95247         tests succeeds.  Instead, just fall through and continue with the
95248         remaining tests.
95249
95250 2001-09-23  Jim Meyering  <meyering@lucent.com>
95251
95252         * lib/mountlist.c: Remove useless parentheses in #if directives.
95253         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95254         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95255
95256 2001-09-22  Jim Meyering  <meyering@lucent.com>
95257
95258         * m4/gettext.m4: New file.  From gettext.
95259         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95260         * m4/progtest.m4: Likewise
95261         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95262         * m4/glibc21.m4: Likewise.
95263
95264         * m4/libintl.m4: Remove.  No longer used.
95265
95266 2001-09-22  Jim Meyering  <meyering@lucent.com>
95267
95268         * lib/localcharset.c: Update from latest gettext.
95269         * lib/config.charset: Likewise.
95270
95271 2001-09-20  Jim Meyering  <meyering@lucent.com>
95272
95273         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95274         strtoimax.
95275         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95276         strtoumax.
95277
95278 2001-09-20  Jim Meyering  <meyering@lucent.com>
95279
95280         * lib/xstrtol.c (strtoimax): Guard declaration with
95281         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95282         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95283         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95284         (strtoumax): Likewise, for completeness (it wasn't necessary).
95285
95286 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95287
95288         * lib/strtoimax.c (HAVE_LONG_LONG):
95289         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95290         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95291         to work around bug in IBM C compiler.
95292
95293 2001-09-17  Jim Meyering  <meyering@lucent.com>
95294
95295         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95296         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95297         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95298         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95299         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95300         whenever the right hand side need not be expanded by the shell.
95301
95302 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95303
95304         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95305         library.  It's not correct, as some older glibcs are buggy.
95306         fnmatch wasn't fixed until glibc 2.2.
95307
95308         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95309         special shell magic here.
95310
95311 2001-09-16  Jim Meyering  <meyering@lucent.com>
95312
95313         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95314         * m4/jm-macros.m4: Require it.
95315
95316 2001-09-16  Jim Meyering  <meyering@lucent.com>
95317
95318         * lib/mkdir.c: New file.
95319
95320 2001-09-15  Jim Meyering  <meyering@lucent.com>
95321
95322         * m4/jm-macros.m4: Check for help2man.
95323
95324 2001-09-11  Jim Meyering  <meyering@lucent.com>
95325
95326         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95327         The body, by Paul Eggert, was moved here from configure.in.
95328         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95329
95330 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95331
95332         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95333         (jm_PREREQ): Use it.
95334
95335 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95336
95337         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95338         Use ssize_t, not int, to store result of readlink.
95339         Check for ssize_t overflow as well as size_t overflow,
95340         as POSIX says the result of readlink is implementation-defined
95341         when ssize_t overflows.
95342         Remove unnecessary cast to char*.
95343         Use free+malloc instead of realloc, as the storage doesn't need
95344         to be preserved and it's clearer and can be more efficient that way.
95345         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95346         * lib/xreadlink.h (xreadlink): Update prototype.
95347
95348 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95349
95350         * lib/xgetcwd.c: Revert some of the previous change; intead,
95351         fix the HAVE_GETCWD_NULL code to behave more like the
95352         !HAVE_GETCWD_NULL code used to.
95353
95354         Include "xalloc.h".
95355         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95356         invoke xalloc_die.
95357
95358 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95359
95360         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95361         sys/param.h, as pathmax.h includes them.
95362
95363 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95364
95365         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95366         (jm_PREREQ_XGETCWD): New macro.
95367
95368         * m4/getcwd.m4: New file.
95369
95370 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95371
95372         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95373         like the HAVE_GETCWD_NULL code.
95374         Include pathmax.h if not HAVE_GETCWD.
95375         Do not include xalloc.h.
95376         (INITIAL_BUFFER_SIZE): New symbol.
95377         Do not use xmalloc / xrealloc, since the caller is responsible for
95378         handling errors.  Preserve errno around `free' during failure.
95379         Do not overrun buffer when using getwd.
95380
95381 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95382
95383         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95384         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95385         getcwd (NULL, 0).
95386
95387 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95388
95389         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95390         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95391         spotted by Jim Meyering.
95392
95393 2001-09-03  Jim Meyering  <meyering@lucent.com>
95394
95395         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95396         failure.
95397
95398 2001-09-02  Jim Meyering  <meyering@lucent.com>
95399
95400         * lib/error.c: Update from GNU libc.
95401
95402 2001-09-01  Jim Meyering  <meyering@lucent.com>
95403
95404         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95405         Used by df.
95406
95407 2001-09-01  Jim Meyering  <meyering@lucent.com>
95408
95409         * lib/xreadlink.c: New file.
95410         * lib/xreadlink.h: New file.
95411         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95412         xreadlink.h.
95413
95414         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95415         doesn't conflict with sparc Solaris 7's definition in
95416         /usr/include/sys/int_types.h.
95417
95418         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95419         files.
95420         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95421         and strncasecmp as r-values.  Unixware didn't have declarations.
95422
95423 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95424
95425         * lib/xstrtol.h: Add copyright notice.
95426         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95427         LONGINT_INVALID_SUFFIX_CHAR.
95428
95429 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95430
95431         * lib/xstrtol.c (strtoimax): New decl.
95432
95433 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95434
95435         * lib/xgetcwd.c: Don't include pathmax.h.
95436         Include stdlib.h and unistd.h if available.
95437         Include xalloc.h.
95438         (xmalloc, xstrdup, free): Remove decls.
95439         (xgetcwd): Don't assume sizes fit in unsigned.
95440         Check for overflow when computing sizes.
95441         Simplify reallocation code.
95442
95443 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95444
95445         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95446         a directory's st_size can have an arbitrary value, so the old
95447         usage could waste an arbitrary amount of memory.  All uses
95448         changed.
95449         * lib/savedir.h: Update prototype.
95450
95451 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95452
95453         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95454
95455         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95456         old strtoimax.c.
95457
95458         Also, make the following further changes to make this file's
95459         configuration more similar to that of strtol.c:
95460         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95461         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95462         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95463         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95464         changed to signed values.
95465
95466         And make the following changes as well:
95467         Fix copyright notice, as 1999 was missing.
95468         (verify): New macro.
95469         (strtoimax): Check sizes at compile-time, not run-time.
95470         Prefer strtol to strtoll if both work.
95471         (main): Remove; it was not that useful and was a pain to maintain.
95472
95473         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95474
95475 2001-08-31  Jim Meyering  <meyering@lucent.com>
95476
95477         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95478         Use an initial, malloc'd, buffer of length 128 rather than
95479         a statically allocated one of length 1024.
95480
95481 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95482
95483         Simplify code, partly by assuming autoconf 2.52 semantics.
95484
95485         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95486
95487         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95488         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95489         All uses removed.
95490         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95491         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95492         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95493         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95494         jm_AC_HEADER_INTTYPES_H.
95495         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95496
95497         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95498
95499         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95500         Quote first arg of AC_DEFUN.
95501         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95502         since they are needed to parse the include file even if we need
95503         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95504         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95505         but with opposite signedness.
95506
95507 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95508
95509         Merge 'exclude' changes from tar 1.13.22.
95510         This fixes one or two unlikely storage allocation overflow bugs,
95511         but doesn't change user-visible behavior otherwise.
95512
95513 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95514
95515         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95516         (jm_PREREQ_EXCLUDE): New macro.
95517
95518 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95519
95520         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95521         tm to be declared.
95522
95523 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95524
95525         * lib/hash.c: Remove '2001' from copyright notice.
95526
95527 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95528
95529         * lib/full-write.h: New file.
95530         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95531         * lib/full-write.c: Correct credits, as cccp.c no longer
95532         exists and anyway it was so heavily changed from the old cccp
95533         code as to be unrecognizable.  Include full-write.h.
95534         (full_write): Return size_t, with short writes meaning failure.
95535         All callers changed.  This fixes a bug with large buffers
95536         on 64-bit hosts.
95537         * lib/utime.c: Include full-write.h.
95538
95539 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95540
95541         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95542         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95543         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95544         Include if available.
95545         (<xalloc.h>): Include
95546         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95547         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95548         collide with FNM macros.
95549         (struct patopts): New struct.
95550         (struct exclude): Use it, as exclude patterns now come with options.
95551         (new_exclude): Support above changes.
95552         (new_exclude, add_exclude_file):
95553         Initial size must now be a power of two to simplify overflow checking.
95554         (free_exclude, fnmatch_no_wildcards): New function.
95555         (excluded_filename): No longer requires options arg, as the options
95556         are determined by add_exclude.  Now returns bool, not int.
95557         (excluded_filename, add_exclude):
95558         Add support for the fancy new exclusion options.
95559         (add_exclude, add_exclude_file): Now takes int options arg.
95560         Check for arithmetic overflow when computing sizes.
95561         (add_exclude_file): xrealloc might modify errno, so don't
95562         realloc until after errno might be used.
95563
95564         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95565         New macros.
95566         (free_exclude): New decl.
95567         (add_exclude, add_exclude_file): Now takes int options arg.
95568         (excluded_filename): No longer requires options arg, as the options
95569         are determined by add_exclude.  Now returns bool, not int.
95570
95571 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95572
95573         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95574
95575 2001-08-27  Jim Meyering  <meyering@lucent.com>
95576
95577         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95578
95579         * lib/version-etc.c (N_): Remove definition.
95580         Revert most of last change.
95581         Instead, simply don't mark the `Copyright...' string for translation.
95582         Based on advice from Paul Eggert.
95583
95584         * lib/strtoxmax.c: Tweak comment.
95585
95586 2001-08-26  Jim Meyering  <meyering@lucent.com>
95587
95588         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95589
95590         * m4/xstrtoimax.m4: New file.
95591         * m4/xstrtoumax.m4: Add comments explaining why we
95592         AC_REPLACE_FUNCS(strtol).
95593
95594 2001-08-26  Jim Meyering  <meyering@lucent.com>
95595
95596         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95597         of copyright with `%s' so translators don't get an untranslated
95598         message in 2002.
95599         (COPYRIGHT_YEAR): Define.
95600         (version_etc): Use fprintf rather than fputs.
95601         Suggestion from Ulrich Drepper.
95602
95603         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95604
95605         * lib/strtoll.c: New file, from GNU libc.
95606         * lib/xstrtoimax.c: New file.
95607
95608         * lib/xstrtol.h: Add xstrtoimax.
95609         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95610         * lib/strtoimax.c: New file.  Likewise, but first define
95611         STRTOUXMAX_SIGNED.
95612
95613         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95614         ...
95615         * lib/strtoxmax.c: ... then renamed to this.
95616
95617 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95618
95619         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95620         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95621         (jm_AC_TYPE_INTMAX_T): New macro.
95622         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95623
95624         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95625
95626         * m4/longlong.m4: Renamed from ulonglong.m4.
95627         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95628         * m4/uintmax_t.m4: Removed.
95629
95630 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95631
95632         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95633         Port to Solaris 8, where 'sed' requires a space after the 'r'
95634         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95635         Redirect output to $tmp just once.
95636
95637 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95638
95639         * lib/addext.c (<errno.h>): Include.
95640         (errno): Declare if not defined.
95641         (addext): Work correctly when pathconf returns -1 and leaves
95642         errno alone because there is no limit.  Also, work even if
95643         pathconf returns a value greater than SIZE_MAX.
95644
95645 2001-08-12  Jim Meyering  <meyering@lucent.com>
95646
95647         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95648         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95649         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95650         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95651         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95652         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95653         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95654         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95655         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95656         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95657         utime.m4, utimes.m4, xstrtoumax.m4:
95658         Quote the first argument in each use of AC_DEFUN.
95659
95660 2001-08-12  Jim Meyering  <meyering@lucent.com>
95661
95662         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95663         Simply `return getcwd (NULL, 0);'.
95664         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95665         Use 1300 as initial value for length, not PATH_MAX.
95666
95667         * lib/pathmax.h: Clean up cpp syntax.
95668
95669 2001-08-12  Jim Meyering  <meyering@lucent.com>
95670
95671         * lib/gettimeofday.c: New file.
95672         * lib/gtod.h: New file.
95673         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95674
95675 2001-08-05  Jim Meyering  <meyering@lucent.com>
95676
95677         * m4/jm-macros.m4: Require autoconf-2.52.
95678
95679 2001-08-04  Jim Meyering  <meyering@lucent.com>
95680
95681         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95682         stmt, to get in sync with glibc.
95683
95684 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95685
95686         The following changes are from gettext 0.10.39 as maintained by
95687         Bruno Haible.
95688
95689         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95690         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95691         with inverted sense.  All uses changed.
95692
95693         * lib/mbswidth.c: Don't include <limits.h>.
95694         Include <stdlib.h> and <string.h> unconditionally.
95695         (iswcntrl, mbsinit, ISCNTRL): New macros.
95696         (mbsnwidth): Use K&R style function declarations.
95697         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95698         can optimize it when MB_CUR_MAX == 1.
95699         The width of control characters is zero, not 1.
95700
95701 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95702
95703         The following changes are from gettext 0.10.39 as maintained by
95704         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95705
95706         * m4/codeset.m4: Upgrade to serial AM1.
95707         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95708         all uses changed.  Quote first arg of AC_DEFUN.
95709         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95710
95711         * m4/iconv.m4: Upgrade to serial AM2.
95712         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95713         Add --with-libconv-prefix.
95714         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95715         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95716         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95717         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95718         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95719
95720         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95721         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95722         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95723         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95724         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95725         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95726         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95727         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95728         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95729
95730         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95731         string.h any more.
95732
95733         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95734         not the default value.
95735
95736         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95737         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95738         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95739         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95740         Also check for iswcntrl, used for wcwidth fallback.
95741         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95742         to Autoconf 2.13.
95743
95744 2001-08-03  Jim Meyering  <meyering@lucent.com>
95745
95746         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95747         as it was in the original.  Reported by Paul Eggert.
95748
95749 2001-07-16  Jim Meyering  <meyering@lucent.com>
95750
95751         * m4/gettimeofday.m4: New file.
95752         Prompted by a report from Bernhard Baehr.
95753
95754 2001-07-15  Jim Meyering  <meyering@lucent.com>
95755
95756         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95757         stuff. Now it's in ../Makefile.cfg.
95758
95759 2001-07-15  Jim Meyering  <meyering@lucent.com>
95760
95761         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95762         (BUILT_SOURCES): Add unlocked-io.h.
95763         (io_functions): Define.
95764         (unlocked-io.h): New rule.
95765         (DISTCLEANFILES): Add unlocked-io.h.
95766         (all-local): Depend on unlocked-io.h, to ensure it is created.
95767
95768         * lib/unlocked-io.hin: New file
95769
95770         * lib/regex.c: Update from glibc.
95771
95772 2001-07-05  Jim Meyering  <meyering@lucent.com>
95773
95774         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95775         recommendation.
95776         (libfetish_a_SOURCES): Put all .h files here instead.
95777         Remove a thus-exposed (better checks in automake) duplicate and
95778         two unnecessary .h files.
95779
95780 2001-07-04  Jim Meyering  <meyering@lucent.com>
95781
95782         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95783         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95784         distcheck failure.
95785
95786 2001-07-02  Jim Meyering  <meyering@lucent.com>
95787
95788         The following changes were prompted by suggestions from Bruno Haible.
95789
95790         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95791         is now generated.
95792         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95793         definition of EXTRA_DIST.
95794         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95795         ensure that the generated file is created/updated whenever the list
95796         of $(unlocked_functions) is changed.
95797         (jm-glibc-io.m4): New rule.
95798         (unlocked-io.h): New rule -- currently unused.
95799
95800 2001-06-24  Jim Meyering  <meyering@lucent.com>
95801
95802         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95803         unmatched right bracket, rather than kludging it with an extra,
95804         falsely-matching quote in a comment.  Patch by Akim Demaille.
95805
95806 2001-06-11  Jim Meyering  <meyering@lucent.com>
95807
95808         * lib/regex.c: Update from GNU libc.
95809
95810 2001-05-27  Jim Meyering  <meyering@lucent.com>
95811
95812         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95813         Check for ut_type in struct utmp.
95814
95815 2001-05-27  Jim Meyering  <meyering@lucent.com>
95816
95817         * lib/readutmp.h (UT_TYPE): Define.
95818
95819 2001-05-24  Jim Meyering  <meyering@lucent.com>
95820
95821         * lib/argmatch.c: Include "quote.h".
95822         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95823         quote function.  Reported by Göran Uddeborg.
95824
95825 2001-05-22  Jim Meyering  <meyering@lucent.com>
95826
95827         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95828         now that we use the package-supplied version unconditionally.
95829         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95830
95831 2001-05-21  Jim Meyering  <meyering@lucent.com>
95832
95833         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95834         shell syntax errors.
95835
95836 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95837
95838         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95839
95840 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95841
95842         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95843         Don't bother to check library strftime, since
95844         we'll be using our own my_strftime function anyway.
95845         Define my_strftime instead of strftime.
95846
95847 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95848
95849         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95850         which is not yet declared.
95851
95852 2001-05-15  Jim Meyering  <meyering@lucent.com>
95853
95854         * m4/regex.m4: Use proper quoting so brackets appear in the test
95855         program.
95856         Reported by, and with help from, Bruno Haible.
95857
95858 2001-05-13  Jim Meyering  <meyering@lucent.com>
95859
95860         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95861         undefined.
95862
95863 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95864
95865         dirname code cleanup.  base_name now behaves more compatibly
95866         with POSIX basename when given file names that have trailing
95867         slashes, and similarly for dir_name.  Add new primitives
95868         base_len and dir_len.  Put the directory-name-related decls
95869         into dirname.h.
95870
95871         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95872         * lib/backupfile.c (base_name): Likewise.
95873         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95874         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95875         * lib/makepath.c (strip_trailing_slashes): Likewise.
95876         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95877         ISSLASH): Likewise.
95878         * lib/rename.c (strip_trailing_slashes): Likewise.
95879         * lib/same.c (base_name): Likewise.
95880         * lib/stripslash.c (ISSLASH): Likewise.
95881
95882         * lib/addext.c: Include <dirname.h> after size_t is defined.
95883         * lib/backupfile.c: Likewise.
95884
95885         * lib/addext.c (addext): Use base_len to trim redundant
95886         trailing slashes instead of doing it ourselves.
95887         But do not trim the last slash if it is not redundant.
95888
95889         * lib/backupfile.c (find_backup_file_name,
95890         max_backup_version): Use base_len instead of rolling it ourselves.
95891         Handle the case of "" and (on DOS) "C:" correctly.
95892
95893         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95894         needed. Include <string.h>, <dirname.h>.
95895         (base_name): Allow file names ending in slashes, other than names
95896         that are all slashes.  In this case, return the basename followed
95897         by the slashes.  This is more general, and can be used in places
95898         where the original base_name purposely had an assertion failure.
95899         (base_len): New function.
95900
95901         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95902         Do not include <assert.h>; no longer needed.
95903         Include xalloc.h.
95904         (memrchr): Remove decl.
95905         (dir_name_r): Remove.
95906         (dir_len): Renamed from dirlen.  All callers changed.
95907         Rewrite in terms of base_name, for simplicity and consistency.
95908         (dir_name): Never return NULL.  All callers changed.
95909         Do not include <stdlib.h> in test program; no longer needed.
95910         return 0; is fine for test program.
95911
95912         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95913         New macros.
95914         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95915
95916         * lib/path-concat.c (path_concat): Use base_len to compute
95917         base length, not strlen; this means we cannot rely on memcpy
95918         to null-terminate.
95919
95920         * lib/same.c (STREQ): Remove.
95921         (same_name): Handle the case where the basename ends in trailing '/'.
95922
95923         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95924         a slash was stripped.  Do not strip the last slash after a
95925         file system prefix.
95926
95927 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95928
95929         * lib/Makefile.am (libfetish_a_SOURCES):
95930         Add strftime.c, since we now compile it on all hosts.
95931
95932         * lib/strftime.c (my_strftime):
95933         Define to nstrftime if emacs, but only if my_strftime is not defined.
95934         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95935         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95936         Add one more extra argument: a nanoseconds value.
95937         All uses changed.
95938         (ns): New macro.
95939         (my_strftime function): Add %N format.
95940         (emacs_strftimeu): Renamed from emacs_strftime,
95941         with extra ut argument.
95942
95943 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95944
95945         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95946
95947 2001-04-21  Jim Meyering  <meyering@lucent.com>
95948
95949         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95950         doesn't interfere.
95951
95952 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95953
95954         * m4/ftruncate.m4: Check for chsize.
95955         Link with ftruncate.o unconditionally if ftruncate is missing.
95956         This was required when cross-compiling to i586-mingw32msvc.
95957
95958 2001-04-08  Jim Meyering  <meyering@lucent.com>
95959
95960         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95961         recomputed; that's necessary when the offset spans a DST transition.
95962         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95963
95964 2001-04-02  Jim Meyering  <meyering@lucent.com>
95965
95966         * lib/regex.h, regex.c: Update from GNU libc.
95967
95968 2001-03-24  Jim Meyering  <meyering@lucent.com>
95969
95970         * m4/jm-macros.m4: Require autoconf-2.49d.
95971
95972 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95973
95974         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95975
95976 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95977
95978         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95979
95980 2001-03-17  Jim Meyering  <meyering@lucent.com>
95981
95982         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95983         now that the version in autoconf is equivalent.
95984         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95985
95986         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95987         Suggestion from Akim Demaille.
95988
95989         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95990         (jm_PREREQ_TEMPNAME): New function.
95991
95992 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95993
95994         * lib/tempname.c (uint64_t): Define to uintmax_t if
95995         not defined, and if UINT64_MAX is not defined.
95996         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95997         Reported by John David Anglin.
95998
95999 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96000
96001         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96002         resolve alias if codeset is empty.
96003         * lib/config.charset (BeOS): Use wildcard syntax.
96004
96005 2001-03-13  Jim Meyering  <meyering@lucent.com>
96006
96007         * lib/path-concat.c (path_concat)
96008         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96009         concatenating e.g., `C:' and `foo'.
96010         From Bruno Haible.
96011
96012 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96013
96014         * lib/localcharset.c (locale_charset): Don't use
96015         setlocale(LC_CTYPE,NULL). Don't return NULL.
96016         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96017
96018 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96019
96020         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96021         support for DOS/DJGPP.
96022
96023 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96024
96025         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96026         lacks mkstemp.  Compile our own tempname.c if we compile our own
96027         mkstemp.c, as mkstemp relies on tempname.
96028
96029 2001-03-01  Jim Meyering  <meyering@lucent.com>
96030
96031         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96032         AH_VERBATIM really does output its argument verbatim.
96033
96034 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96035
96036         * lib/Makefile.am (libfetish_a_SOURCES):
96037         Add dup-safer.c, fopen-safer.c.
96038         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96039
96040         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96041         * lib/unistd-safer.h: New files.
96042
96043 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96044
96045         The mkstemp replacement is taken from glibc 2.2.2, with some
96046         portability fixes for use outside glibc, as follows:
96047
96048         * lib/tempname.c (struct_stat64): New macro.
96049         (direxists, __gen_tempname): Use it.
96050         This avoids a portability problem with Solaris 8.
96051
96052         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96053         (<stddef.h>, <stdint.h>, <string.h>):
96054         Include only if STDC_HEADERS || _LIBC.
96055         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96056         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96057         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96058         (__set_errno): Define this macro if <errno.h> doesn't.
96059         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96060         Define these macros if <stdio.h> doesn't.
96061         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96062         Define these macros if <sys/stat.h>
96063         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96064         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96065         __xstat64): Define if not _LIBC.
96066         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96067         (__gen_tempname): Invoke gettimeofday only if
96068         HAVE_GETTIMEOFDAY || _LIBC;
96069         otherwise, fall back on plain "time".
96070         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96071
96072         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96073
96074         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96075
96076 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96077
96078         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96079
96080 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96081
96082         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96083         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96084         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96085         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96086
96087 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96088
96089         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96090         Remove workaround macros for hosts that have mbrtowc but not
96091         mbstate_t, as we now insist on proper declarations for both
96092         before using mbrtowc.
96093
96094 2001-02-17  Jim Meyering  <meyering@lucent.com>
96095
96096         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96097         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96098         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96099         UnixWare 7.1.1.
96100
96101         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96102         rather than AC_CACHE_VAL.
96103
96104 2001-02-17  Jim Meyering  <meyering@lucent.com>
96105
96106         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96107         around included file name.
96108
96109         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96110
96111         * lib/strftime.c: Update from GNU libc (the only changes were to
96112         comments).
96113
96114 2001-02-17  Jim Meyering  <meyering@lucent.com>
96115
96116         * lib/regex.c: Update from libc.
96117
96118 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96119
96120         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96121         clash.
96122
96123 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96124
96125         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96126         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96127         Reported by Mark Hounschell via Paul Eggert.
96128
96129 2001-02-07  Jim Meyering  <meyering@lucent.com>
96130
96131         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96132
96133 2001-02-05  Jim Meyering  <meyering@lucent.com>
96134
96135         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96136         it includes the patch required for `large file' support with at least
96137         HP-UX's 10.20 /bin/cc.
96138
96139 2001-02-03  Jim Meyering  <meyering@lucent.com>
96140
96141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96142         AS_IF, now that it works once again (mysteriously).
96143         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96144
96145 2001-01-30  Jim Meyering  <meyering@lucent.com>
96146
96147         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96148         * m4/chown.m4: Rename conftestchown to conftest.chown.
96149         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96150         s/conftestdir2/conftest.d2/.
96151         * m4/utimes.m4: s/conftestdata/conftest.data/
96152         Inspired by Pavel Roskin's change in autoconf.
96153
96154 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96155
96156         * lib/config.charset: Update for FreeBSD 4.2.
96157
96158 2001-01-27  Jim Meyering  <meyering@lucent.com>
96159
96160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96161         a use of AS_IF.
96162         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96163
96164 2001-01-26  Jim Meyering  <meyering@lucent.com>
96165
96166         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96167         quotearg.c includes it.
96168
96169 2001-01-26  Jim Meyering  <meyering@lucent.com>
96170
96171         * lib/quotearg.c: Include stddef.h.
96172         * lib/quote.c: Include stddef.h.
96173         Reported by Axel Kittenberger.
96174
96175         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96176         line in double quotes so that it evokes a better diagnostic.
96177         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96178         Reported by Axel Kittenberger.
96179
96180 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96181
96182         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96183         as if it was a `charset'.
96184
96185 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96186
96187         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96188         has const.
96189
96190 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96191
96192         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96193         to avoid a warning.  Add back 'const' to inptr.
96194
96195 2001-01-20  Jim Meyering  <meyering@lucent.com>
96196
96197         Be sure that headers are checked before used in code compiled
96198         for the type checks.
96199         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96200         In place of that, invoke jm_CHECK_ALL_TYPES.
96201         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96202         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96203         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96204         The check for ssize_t was mistakenly run before the test for unistd.h.
96205
96206         The configure-time check for stdbool.h was missing.
96207         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96208         (jm_PREREQ_HASH): New function.
96209
96210 2001-01-17  Jim Meyering  <meyering@lucent.com>
96211
96212         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96213         for autoconf-2.49c.
96214         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96215
96216 2001-01-16  Jim Meyering  <meyering@lucent.com>
96217
96218         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96219         From Bruno Haible.
96220
96221 2001-01-14  Jim Meyering  <meyering@lucent.com>
96222
96223         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96224         foo and bar.  Create conftestdir/ in the script, not in the C code.
96225         Remove directories in the script, not in the C code.
96226         Remove conftestdir{,2} before trying to create the directory.
96227         Make the entire configure script fail if the mkdir fails.
96228
96229 2001-01-14  Jim Meyering  <meyering@lucent.com>
96230
96231         * lib/rename.c: New file.  From Volker Borchert.
96232         Include stdlib.h, string.h or strings.h, and xalloc.h.
96233         Use strip_trailing_slashes rather than open-coding it.
96234
96235 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96236
96237         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96238
96239 2001-01-03  Jim Meyering  <meyering@lucent.com>
96240
96241         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96242         of local `inptr' to avoid warning with some system declarations of
96243         iconv.
96244
96245 2001-01-02  Volker Borchert  <bt@teknon.de>
96246
96247         * m4/rename.m4: New file.
96248         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96249
96250 2001-01-01  Jim Meyering  <meyering@lucent.com>
96251
96252         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96253         even on systems with utmpx.h.  It's necessary for the declaration of
96254         utmp's ut_user member.  Reported by Andreas Jaeger.
96255
96256         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96257         available. They are required for the declarations of getgrgid and
96258         getpwuid resp.
96259         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96260         Reported by Andreas Jaeger.
96261
96262 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96263
96264         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96265         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96266         so `make install' also works in VPATH builds.
96267
96268 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96269
96270         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96271         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96272         can be used in subdirectories.
96273
96274 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96275
96276         * lib/modechange.c: Do not assume that mode_t uses the
96277         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96278         the other-execute bit of FOO even if S_IXOTH != 1.
96279
96280         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96281         WOTH, XOTH, ALLM): New macros.
96282         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96283          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96284         Use them.
96285         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96286         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96287         (mode_compile):
96288         No need to use uintmax_t; unsigned long is long enough.
96289         Don't bother to get suffix since we don't use it.
96290
96291 2000-12-26  Jim Meyering  <meyering@lucent.com>
96292
96293         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96294         better with autoheader.
96295
96296 2000-12-24  Jim Meyering  <meyering@lucent.com>
96297
96298         * lib/hash.c (is_prime): Return explicit boolean values.
96299         (hash_get_first): Return NULL to appease Irix5.6's 89.
96300         Reported by Nelson Beebe.
96301
96302 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96303
96304         * lib/localcharset.c (locale_charset): Add support for Win32.
96305
96306 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96307
96308         * lib/physmem.h, lib/physmem.c: New files.
96309
96310         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96311         (noinst_HEADERS): Add physmem.h.
96312
96313         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96314         't' for compatibility with Solaris 8 sort.
96315
96316 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96317
96318         * lib/config.charset: Add support for BeOS.
96319
96320 2000-12-17  Jim Meyering  <meyering@lucent.com>
96321
96322         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96323         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96324
96325 2000-12-16  Jim Meyering  <meyering@lucent.com>
96326
96327         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96328         N and M) would have treated it like `chown N:N FILE'.
96329
96330         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96331
96332 2000-12-16  Jim Meyering  <meyering@lucent.com>
96333
96334         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96335         SHELLS_FILE to a file name that's useful on djgpp systems.
96336         Include stdlib.h.
96337         (ADDITIONAL_DEFAULT_SHELLS): Define.
96338         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96339         Based mostly on a patch from Prashant TR.
96340
96341 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96342
96343         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96344         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96345         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96346
96347 2000-12-08  Andreas Schwab  <schwab@suse.de>
96348
96349         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96350         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96351
96352 2000-12-07  Jim Meyering  <meyering@lucent.com>
96353
96354         * lib/stripslash.c (ISSLASH): Define.
96355         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96356         `/'.
96357         From Prashant TR.
96358
96359         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96360         (dir_name_r): Declare this function as static.
96361         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96362         manifest itself on a name containing a mix of slashes and
96363         backslashes.
96364         Make this function work with names starting with a DOS-style
96365         drive letter and colon prefix.
96366         (dir_name): Append `.' if necessary.
96367         Based mostly on patches from Prashant TR and Eli Zaretskii.
96368
96369         * lib/dirname.h (dir_name_r): Remove prototype.
96370
96371 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96372
96373         * m4/off_t-format.m4: Remove this file.
96374         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96375
96376 2000-12-06  Jim Meyering  <meyering@lucent.com>
96377
96378         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96379         replacement strtoull, we may well need the replacement strtoul, too.
96380         Check for declarations of strtoul and strtoull.
96381         Check for strtol.  Mainly as a cue to cause automake to include
96382         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96383         Check for limits.h -- strtol.c needs it.
96384
96385 2000-12-05  Jim Meyering  <meyering@lucent.com>
96386
96387         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96388
96389 2000-12-04  Jim Meyering  <meyering@lucent.com>
96390
96391         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96392         Also include memory.h, stdlib.h, unistd.h if appropriate.
96393         Reported by Andreas Jaeger (conflicting declaration of malloc).
96394
96395 2000-12-02  Jim Meyering  <meyering@lucent.com>
96396
96397         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96398         * m4/jm-macros.m4 (jm_MACROS): require it.
96399
96400 2000-12-02  Jim Meyering  <meyering@lucent.com>
96401
96402         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96403
96404 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96405
96406         * lib/memrchr.c: Include <config.h> before any system include file.
96407
96408 2000-11-30  Jim Meyering  <meyering@lucent.com>
96409
96410         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96411
96412 2000-11-30  Jim Meyering  <meyering@lucent.com>
96413
96414         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96415
96416 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96417
96418         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96419
96420 2000-11-26  Jim Meyering  <meyering@lucent.com>
96421
96422         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96423
96424 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96425
96426         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96427         size of (size_t) -1; it's not portable.
96428
96429 2000-11-17  Jim Meyering  <meyering@lucent.com>
96430
96431         * lib/strstr.c: Update from GNU libc.
96432
96433 2000-11-17  Akim Demaille  <akim@epita.fr>
96434
96435         * lib/obstack.h: Formatting changes.
96436         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96437         prevent type checking.
96438         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96439         cast the value to (void *): assigning a `foo *' to a `void *'
96440         variable is valid.
96441         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96442
96443 2000-11-16  Jim Meyering  <meyering@lucent.com>
96444
96445         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96446
96447 2000-11-11  Jim Meyering  <meyering@lucent.com>
96448
96449         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96450
96451 2000-11-10  Jim Meyering  <meyering@lucent.com>
96452
96453         * lib/obstack.h: Update from GNU libc.
96454         * lib/obstack.c: Likewise.
96455
96456 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96457
96458         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96459
96460 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96461
96462         * lib/getusershell.c (setusershell): Use rewind rather than
96463         fseek/fseeko, to avoid configuration hassles with fseeko.
96464         Don't bother opening SHELLS_FILE if shellstream is NULL;
96465         it's not necessary.
96466
96467 2000-11-05  Jim Meyering  <meyering@lucent.com>
96468
96469         * lib/makepath.h (make_dir): Declare.
96470         * lib/makepath.c (make_dir): Remove `static' attribute.
96471         Tweak a comment.
96472
96473 2000-11-04  Jim Meyering  <meyering@lucent.com>
96474
96475         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96476
96477 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96478
96479         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96480         last one in a bucket, advance to the next bucket.
96481
96482 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96483
96484         * lib/fnmatch.c: Do not comment out all the code if we are using
96485         the GNU C library, because in some cases we are replacing buggy
96486         code in the GNU C library itself.
96487
96488 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96489
96490         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96491         (regex_compile): Catch bogus \(\1\).
96492
96493 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96494
96495         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96496         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96497         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96498
96499 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96500
96501         * lib/error.h, getline.h, modechange.h:
96502         Remove "2000" from Copyright line, as the file hasn't been
96503         changed this year other than in the copyright notice.
96504
96505         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96506         was changed this year.
96507
96508 2000-10-29  Jim Meyering  <meyering@lucent.com>
96509
96510         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96511         renaming.
96512         * m4/ls-mntd-fs.m4: Likewise
96513
96514 2000-10-29  Jim Meyering  <meyering@lucent.com>
96515
96516         * lib/xstat.in: Fix grammar in comment.
96517
96518 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96519
96520         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96521         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96522         doesn't define __restrict_arr.
96523
96524 2000-10-28  Jim Meyering  <meyering@lucent.com>
96525
96526         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96527         (jm_PREREQ_MEMCHR): New function.
96528
96529 2000-10-28  Jim Meyering  <meyering@lucent.com>
96530
96531         * lib/memchr.c: Update from libc.
96532         Adjust for portability:
96533         [HAVE_STDLIB_H]: Include stdlib.h.
96534         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96535         Undef __memchr, too.
96536         [!weak_alias]: Define __memchr to memchr.
96537
96538         * lib/regex.c: Update from libc.
96539         * lib/regex.h: Likewise.
96540         * lib/getopt1.c: Likewise.
96541         * lib/memcmp.c: Likewise.
96542
96543         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96544         Avoid using fseek, when possible -- it's broken by design.
96545         Patch by Ulrich Drepper.
96546
96547 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96548
96549         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96550         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96551         Giving in to popular pressure to shut up the compiler with casts.
96552
96553 2000-10-26  Jim Meyering  <meyering@lucent.com>
96554
96555         * lib/strftime.c: Update from libc.
96556
96557 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96558
96559         * regex.c: More `unsigned char' -> `re_char' changes.
96560         Also change several `int' into `re_wchar_t'.
96561         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96562         (PUSH_FAILURE_POINTER): Don't cast any more.
96563         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96564         We want GCC to complain, since this piece of code makes
96565         re_match non-reentrant, which *should* be fixed.
96566         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96567         (EXTEND_BUFFER): Use RETALLOC.
96568         (SET_LIST_BIT): Don't cast.
96569         (re_wchar_t): New type.
96570         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96571         that those two functions will always properly return.
96572         (IMMEDIATE_QUIT_CHECK): Cast to void.
96573         (analyse_first): Use recursion rather than an explicit stack.
96574         (re_compile_fastmap): Can't fail anymore.
96575         (re_search_2): Don't check re_compile_fastmap for failure.
96576         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96577         Now also sets the new value (passed in a new argument).
96578         (re_match_2_internal): Use it.
96579         Also, use a new var `reg' of type size_t when looping through regs
96580         rather than reuse the inappropriate `mcnt'.
96581
96582 2000-10-25  Jim Meyering  <meyering@lucent.com>
96583
96584         * lib/obstack.c: Update from libc.
96585
96586 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96587
96588         * regex.c (regex_compile): Change the way of handling a range from
96589         a char less than 256 to a char not less than 256.
96590
96591 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96592
96593         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96594         NT-Emacs only.
96595         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96596         so that re_search functions only quit when callers expect them to.
96597
96598 2000-10-23  Jim Meyering  <meyering@lucent.com>
96599
96600         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96601         wrong.  That set_locale call must not have any side effects.
96602         From Paul Eggert.
96603
96604 2000-10-22  Jim Meyering  <meyering@lucent.com>
96605
96606         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96607         [CYCLIC]: Remove now-unused definition.
96608
96609         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96610         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96611         Suggestion from Ulrich Drepper.
96612
96613 2000-10-21  Jim Meyering  <meyering@lucent.com>
96614
96615         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96616         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96617         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96618
96619 2000-10-21  Jim Meyering  <meyering@lucent.com>
96620
96621         * lib/dirname.c (memrchr): Declare if necessary.
96622         (dir_name): Remove the restriction that there be no
96623         trailing slashes.  Now, this code skips past them, effectively
96624         ignoring them.
96625         [TEST_DIRNAME] (main): New unit tests.
96626
96627         * lib/memrchr.c: New file from GNU libc.
96628         Undef __memrchr, too.
96629         [!weak_alias]: Define __memrchr to memrchr.
96630         Guard weak_alias use with `#ifdef weak_alias'.
96631
96632 2000-10-21  Jim Meyering  <meyering@lucent.com>
96633
96634         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96635         (dir_name): Use dir_name_r.
96636         * lib/dirname.h (dir_name_r): Declare it.
96637
96638 2000-10-17  Jim Meyering  <meyering@lucent.com>
96639
96640         * lib/quote.h (PARAMS): Define and use.
96641         Reported by Akim Demaille.
96642
96643         * lib/getopt.c: Update from libc.
96644
96645 2000-10-16  Jim Meyering  <meyering@lucent.com>
96646
96647         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96648         setlocale.
96649         From Jan Fedak.
96650
96651 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96652
96653         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96654
96655 2000-09-25  Jim Meyering  <meyering@lucent.com>
96656
96657         * lib/md5.h (rol): Define (from GnuPG).
96658
96659         * lib/sha.c: Give credit (GnuPG) where due.
96660         (M): Use rol rather than open-coding it.
96661         Add a FIXME comment.
96662
96663 2000-09-21  Jim Meyering  <meyering@lucent.com>
96664
96665         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96666         Reported by Michael Stone.
96667
96668 2000-09-20  Jim Meyering  <meyering@lucent.com>
96669
96670         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96671         (noinst_HEADERS): Add sha.h.
96672         Based on code from Scott G. Miller and from GnuPG.
96673
96674 2000-09-18  Jim Meyering  <meyering@lucent.com>
96675
96676         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96677         LIBS. Otherwise, everyone ends up linking with -lelf for some
96678         configurations.
96679         Reported by Mike Stone.
96680
96681 2000-09-15  Jim Meyering  <meyering@lucent.com>
96682
96683         * lib/regex.c: Update from libc.
96684
96685 2000-09-10  Jim Meyering  <meyering@lucent.com>
96686
96687         * lib/getopt.c (_getopt_internal): Update from glibc.
96688
96689 2000-09-09  Jim Meyering  <meyering@lucent.com>
96690
96691         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96692         think it should be used as a general replacement for isascii.
96693         * lib/fnmatch.c: Likewise.
96694         * lib/mbswidth.c: Likewise
96695         * lib/regex.c: Likewise.
96696
96697         Don't use atoi.
96698         * lib/userspec.c: Include sys/param.h and limits.h.
96699         Include xstrtol.h.
96700         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96701         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96702         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96703         UID, GID.  Check range.
96704
96705 2000-09-06  Jim Meyering  <meyering@lucent.com>
96706
96707         * lib/getopt.c (_getopt_internal): Update from glibc.
96708
96709 2000-08-30  Jim Meyering  <meyering@lucent.com>
96710
96711         * lib/strftime.c: Merge in changes from GNU libc.
96712
96713 2000-08-26  Jim Meyering  <meyering@lucent.com>
96714
96715         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96716         * m4/fpending.m4: New file.
96717
96718 2000-08-26  Jim Meyering  <meyering@lucent.com>
96719
96720         * lib/closeout.c: Include "__fpending.h".
96721         (close_stdout_status): Return right away if there's nothing to flush.
96722
96723         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96724         * lib/__fpending.c: New file.
96725         * lib/__fpending.h: New file.
96726
96727 2000-08-20  Jim Meyering  <meyering@lucent.com>
96728
96729         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96730         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96731         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96732
96733 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96734
96735         Improve fileutils installation on systems where running
96736         programs (like install) can't be unlinked.
96737         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96738         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96739
96740 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96741
96742         Standardize on "memory exhausted" instead of "Memory exhausted"
96743         or "virtual memory exhausted".
96744         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96745         "virtual memory exhausted".
96746         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96747         our own message.
96748         * lib/userspec.c (parse_user_spec): Likewise.
96749         * lib/bumpalloc.h: comment fix
96750         * lib/same.c, userspec.c: Include xalloc.h.
96751
96752         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96753         not char *const and pointing to a constant array.
96754         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96755         (xrealloc): Comment fix.
96756
96757         * lib/userspec.c (parse_user_spec):
96758         Don't translate a message until just before returning,
96759         to avoid unnecessary translation.
96760
96761 2000-08-07  Jim Meyering  <meyering@lucent.com>
96762
96763         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96764         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96765         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96766         getgroups.c, gethostname.c, getopt.h, group-member.c,
96767         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96768         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96769         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96770         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96771         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96772         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96773         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96774         yesno.c: Back out Copyright date changes for each file with no change
96775         this year.  This eases coordination with other programs using the same
96776         source code modules.  From Paul Eggert.
96777
96778 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96779
96780         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96781         not char, for compatibility with glibc 2.1.3 strftime.c.
96782
96783 2000-08-03  Greg McGary  <greg@mcgary.org>
96784
96785         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96786         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96787         (EXTEND_BUFFER): Use them.
96788
96789 2000-08-01  Jim Meyering  <meyering@lucent.com>
96790
96791         * lib/dirname.c (ISSLASH): Define.
96792         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96793         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96794         both `\' and `/' may be use as path separators.
96795         Based on a patch from Prashant TR.
96796
96797 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96798
96799         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96800         slot vector a constant, since it might get modified.
96801
96802 2000-07-31  Jim Meyering  <meyering@lucent.com>
96803
96804         * lib/xmalloc.c: Use `virtual memory exhausted', not
96805         `Memory exhausted'.
96806         * lib/obstack.c (print_and_abort): Likewise.
96807
96808 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96809
96810         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96811         buffer, so that the caller can always quote one small
96812         component of a "memory exhausted" message in slot 0.
96813         From a suggestion by Jim Meyering.
96814
96815 2000-07-30  Jim Meyering  <meyering@lucent.com>
96816
96817         * lib/makepath.c (make_path): Quote the other instance, too.
96818
96819         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96820         (STATIC_BUF_SIZE): Define.
96821         (quotearg_n_options): Use only statically allocated storage when
96822         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96823         than STATIC_BUF_SIZE.
96824
96825 2000-07-29  Jim Meyering  <meyering@lucent.com>
96826
96827         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96828         * lib/dirname.c (dir_name): Likewise.
96829
96830         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96831         `/'.
96832
96833         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96834         (dir_name): Assert that there are no trailing slashes.
96835
96836 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96837
96838         * lib/mbswidth.h (mbswidth): Add a flags argument.
96839         (mbswidth): New declaration.
96840         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96841         * lib/mbswidth.c (mbswidth): Add a flags argument.
96842         (mbsnwidth): New function.
96843
96844 2000-07-24  Jim Meyering  <meyering@lucent.com>
96845
96846         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96847
96848 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96849
96850         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96851
96852 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96853
96854         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96855         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96856         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96857         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96858         invoke multibyte primitives.
96859
96860 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96861
96862         * lib/quotearg.c:
96863         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96864         so that mbstate_t is always defined.
96865
96866         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96867         be 1 in at least one GCC installation, and this configuration
96868         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96869         performance on hosts that have mbrtowc but have only unibyte
96870         locales, but I assume these hosts are rare.
96871
96872 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96873
96874         * lib/mbswidth.c (_XOPEN_SOURCE):
96875         Don't define; this causes problems on Solaris 7.
96876         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96877
96878 2000-07-23  Jim Meyering  <meyering@lucent.com>
96879
96880         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96881         too: getgrgid, getpwuid, getuid.
96882
96883 2000-07-23  Jim Meyering  <meyering@lucent.com>
96884
96885         * lib/basename.c (base_name): Add an assertion.
96886
96887 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96888
96889         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96890         shadow its mbsinit function.
96891
96892 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96893
96894         * lib/mbswidth.h: New file.
96895         * lib/mbswidth.c: New file.
96896         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96897         (noinst_HEADERS): Add mbswidth.h.
96898
96899 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96900
96901         * lib/config.charset: Add support for FreeBSD. Improve support for
96902         HP-UX and IRIX 6.
96903
96904 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96905
96906         * m4/mbswidth.m4: New file.
96907         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96908
96909 2000-07-15  Jim Meyering  <meyering@lucent.com>
96910
96911         * lib/makepath.c: Include quote.h.
96912         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96913         corresponding argument in a `quote (...)' call.
96914         Give better diagnostics.
96915
96916         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96917         (noinst_HEADERS): Add quote.h.
96918
96919         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96920         from tar's src/misc.c.
96921         * lib/quote.h: New file.  Prototypes for same.
96922
96923 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96924
96925         From a suggestion by Bruno Haible.
96926         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96927         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96928         to decide whether to define the BeOS workaround macro;
96929         this adjusts to the change to AC_MBSTATE_T.
96930
96931 2000-07-14  Jim Meyering  <meyering@lucent.com>
96932
96933         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96934         jm_AC_TYPE_UINTMAX_T.
96935
96936 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96937
96938         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96939
96940         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96941         quotearg_buffer_restyled): Add support for
96942         clocale_quoting_style.  Undo previous change to
96943         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96944         and "{RIGHT QUOTATION MARK}" msgids.
96945
96946 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96947
96948         From a suggestion by Bruno Haible.
96949         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96950         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96951         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96952         and mbstate_t, to a single-part test that simply defines mbstate_t.
96953         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96954         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96955
96956 2000-07-10  Jim Meyering  <meyering@lucent.com>
96957
96958         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96959
96960         * m4/gnu-source.m4: Output to confdefs.h directly.
96961         Suggestion from Akim Demaille.
96962
96963 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96964
96965         The old behavior of quoting `like this' doesn't look good with
96966         newer, ISO-style fonts.  See:
96967         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96968
96969         Instead, quote "like this" by default.  Let the translator
96970         tailor the locale-specific quoting behavior by providing
96971         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96972
96973         * lib/quotearg.c (N_): New macro.
96974         (gettext_default): New function.
96975         (quotearg_buffer_restyled): Use
96976         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96977         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96978
96979 2000-07-09  Jim Meyering  <meyering@lucent.com>
96980
96981         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96982         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96983
96984         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96985         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96986
96987 2000-07-09  Jim Meyering  <meyering@lucent.com>
96988
96989         * lib/Most files: Update copyright dates to include 2000.
96990
96991 2000-07-08  Jim Meyering  <meyering@lucent.com>
96992
96993         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96994         if not defined.
96995         (xgethostname): Remove now-unnecessary #ifdef.
96996         Move declaration of `err' into loop where it's used.
96997
96998 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96999         and Bruno Haible  <haible@clisp.cons.org>
97000
97001         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97002         only if the test for an object-type mbstate_t fails.  This
97003         prevents us from mistakenly reporting that mbstate_t is a
97004         system object type after we "#define mbstate_t int" to work
97005         around its lack.
97006
97007 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97008         and Bruno Haible  <haible@clisp.cons.org>
97009
97010         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97011
97012 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97013
97014         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97015         to strerror_r.
97016         Include <ctype.h> for use of isalpha.
97017
97018 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97019
97020         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97021         by allocating a larger buffer. Test the gethostname return value for
97022         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97023         returns an error and ENAMETOOLONG isn't defined.
97024
97025 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97026
97027         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97028         dimension.
97029
97030 2000-07-04  Jim Meyering  <meyering@lucent.com>
97031
97032         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97033         of the deprecated AC_CHECKING.
97034
97035 2000-07-04  Jim Meyering  <meyering@lucent.com>
97036
97037         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97038         Reported by Bruno Haible.
97039
97040 2000-07-04  Jim Meyering  <meyering@lucent.com>
97041
97042         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97043         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97044         lacks mbrtowc.
97045
97046 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97047
97048         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97049         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97050
97051 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97052         and Bruno Haible  <haible@clisp.cons.org>
97053
97054         * lib/quotearg.c (mbrtowc):
97055         Assign to *pwc, and return 1 only if result is nonzero.
97056         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97057
97058 2000-07-03  Jim Meyering  <meyering@lucent.com>
97059
97060         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97061
97062 2000-07-03  Jim Meyering  <meyering@lucent.com>
97063
97064         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97065         This is necessary to get a definition of e.g., UTMP_FILE on
97066         HP-UX 10.20.
97067         From Bob Proulx.
97068
97069 2000-07-02  Jim Meyering  <meyering@lucent.com>
97070
97071         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97072
97073         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97074         AC_LIBOBJ(function_name).
97075         * m4/chown.m4: Likewise.
97076         * m4/fnmatch.m4: Likewise.
97077         * m4/ftruncate.m4: Likewise.
97078         * m4/getgroups.m4: Likewise.
97079         * m4/getline.m4: Likewise.
97080         * m4/group-member.m4: Likewise.
97081         * m4/jm-macros.m4: Likewise.
97082         * m4/lstat.m4: Likewise.
97083         * m4/malloc.m4: Likewise.
97084         * m4/memcmp.m4: Likewise.
97085         * m4/nanosleep.m4: Likewise.
97086         * m4/putenv.m4: Likewise.
97087         * m4/realloc.m4: Likewise.
97088         * m4/regex.m4: Likewise.
97089         * m4/stat.m4: Likewise.
97090         * m4/strftime.m4: Likewise.
97091
97092 2000-07-02  Jim Meyering  <meyering@lucent.com>
97093
97094         * lib/quotearg.c (mbstate_t): Don't define here.
97095
97096 2000-07-02  Jim Meyering  <meyering@lucent.com>
97097
97098         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97099
97100 2000-07-01  Jim Meyering  <meyering@lucent.com>
97101
97102         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97103
97104 2000-07-01  Jim Meyering  <meyering@lucent.com>
97105
97106         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97107         problem.
97108
97109 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97110
97111         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97112         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97113
97114 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97115
97116         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97117         per change in ../m4/ls-mntd-fs.m4.
97118         (read_filesystem_list): Ignore symbolic links.
97119
97120 2000-06-29  Jim Meyering  <meyering@lucent.com>
97121
97122         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97123         for declaration of strcmp.
97124
97125         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97126
97127         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97128         Avoid warning by casting result to `char *' to remove `const'.
97129
97130 2000-06-28  Jim Meyering  <meyering@lucent.com>
97131
97132         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97133         included by quotearg.c, for which we perform this test.  From
97134         Bruno Haible.
97135
97136 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97137
97138         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97139         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97140         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97141
97142 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97143
97144         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97145
97146 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97147
97148         savedir now sets errno on failure and invokes xmalloc to get memory.
97149         Fix a couple of other minor bugs while we're at it.
97150
97151         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97152         (NAMLEN): Remove macro.
97153         (malloc, realloc): Remove decls.
97154         (stpcpy): Likewise.
97155         ("xalloc.h"): Include.
97156         (NAME_SIZE_DEFAULT): New macro.
97157         (savedir): Use xmalloc / xrealloc to allocate memory.
97158         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97159         Skip "" directory entries.
97160         Use strlen to calculate directory entry length, since the old method
97161         is rarely used these days and isn't worth supporting.
97162         Don't use a pointer after freeing it.
97163         Check for integer overflow when calculating allocation size.
97164         Use memcpy to copy entries, instead of stpcpy.
97165         Set errno properly when returning NULL.
97166         Check for readdir error.
97167
97168 2000-06-26  Jim Meyering  <meyering@lucent.com>
97169
97170         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97171
97172 2000-06-25  Jim Meyering  <meyering@lucent.com>
97173
97174         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97175         Linux header bug when _XOPEN_SOURCE is defined to 500.
97176
97177 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97178
97179         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97180         deficiency.
97181
97182 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97183
97184         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97185         Include xalloc.h.
97186         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97187
97188 2000-06-24  Jim Meyering  <meyering@lucent.com>
97189
97190         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97191         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97192         for which strerror does return char*, but which lacks a conveniently
97193         accessible declaration of the function.  If the compile-test says
97194         strerror_r doesn't work, then resort to a `run'-test that works on
97195         BeOS and segfaults on DEC Unix.
97196
97197 2000-06-24  Jim Meyering  <meyering@lucent.com>
97198
97199         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97200
97201 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97202
97203         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97204         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97205
97206 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97207
97208         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97209         (mbrtowc, mbstate_t): Define substitutes if
97210         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97211         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97212         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97213
97214 2000-06-23  Jim Meyering  <meyering@lucent.com>
97215
97216         * m4/afs.m4: Add missing AC_MSG_RESULT.
97217         Reported by Bruno Haible.
97218
97219         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97220         Suggestion from Bruno Haible.
97221
97222 2000-06-23  Jim Meyering  <meyering@lucent.com>
97223
97224         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97225
97226 2000-06-21  Jim Meyering  <meyering@lucent.com>
97227
97228         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97229
97230 2000-06-21  Jim Meyering  <meyering@lucent.com>
97231
97232         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97233         (noinst_HEADERS): Add getstr.h.
97234
97235         * lib/getline.c (getstr): Move into a separate file.
97236         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97237         the following changes: new parameter, delim2; both delim[12]
97238         parameters have type `int', not `char'.  The latter would lose
97239         with 8-bit delimiters.
97240         * lib/getstr.h: New file.
97241
97242 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97243
97244         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97245         than 1024, return a memory chunk of least possible size, instead
97246         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97247         Use free/xmalloc instead of xrealloc to avoid copying for very long
97248         paths.
97249
97250 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97251
97252         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97253         the empty string.
97254
97255 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97256
97257         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97258         address, not strdup.  Include <stdlib.h> and don't declare free().
97259
97260 2000-06-19  Jim Meyering  <meyering@lucent.com>
97261
97262         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97263
97264 2000-06-18  Jim Meyering  <meyering@lucent.com>
97265
97266         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97267
97268         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97269         `checking whether...' message to be consistent with that of the
97270         lstat test.
97271
97272 2000-06-18  Jim Meyering  <meyering@lucent.com>
97273
97274         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97275         Besides, these days every porting target provides a mkdir function.
97276
97277         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97278         needed. (this snippet comes from src/system.h).
97279
97280 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97281
97282         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97283
97284 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97285
97286         * lib/human.c (adjust_value): New function.
97287         (human_readable_inexact): Apply rounding style even when
97288         printing approximate values.
97289
97290 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97291
97292         * lib/human.c (human_readable_inexact): Allow an input block
97293         size that is not a multiple of the output block size, and vice versa.
97294         Reported by Piergiorgio Sartor.
97295
97296 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97297
97298         * lib/getdate.y (get_date): Apply relative times after time
97299         zone indicator, not before.  Reported by Todd A. Jacobs.
97300
97301 2000-06-13  Jim Meyering  <meyering@lucent.com>
97302
97303         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97304
97305         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97306
97307 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97308
97309         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97310
97311 2000-06-12  Jim Meyering  <meyering@lucent.com>
97312
97313         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97314         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97315         optional argument.
97316         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97317         the optional argument, `lib'.
97318
97319 2000-06-08  Jim Meyering  <meyering@lucent.com>
97320
97321         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97322
97323 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97324
97325         Rewrite largefile configuration so that we don't need to run
97326         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97327         AC_CANONICAL_HOST in configure.in -- jmm]
97328
97329         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97330         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97331         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97332         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97333         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97334         All uses changed.
97335         Instead of inspecting the output of getconf, try to compile the
97336         test program without and with the macro definition.
97337         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97338         for getconf.  Instead, check for the needed flags by compiling
97339         test programs.
97340
97341 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97342
97343         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97344
97345 2000-06-04  Jim Meyering  <meyering@lucent.com>
97346
97347         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97348         SunOS 4.1.4 for which gid_t is an unsigned type.
97349
97350 2000-06-03  Jim Meyering  <meyering@lucent.com>
97351
97352         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97353         now that autoconf requires that.
97354
97355         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97356         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97357         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97358
97359 2000-06-03  Jim Meyering  <meyering@lucent.com>
97360
97361         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97362
97363 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97364
97365         * m4/glibc21.m4: New file.
97366         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97367
97368 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97369
97370         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97371         newer, don't install charset.alias.
97372         * lib/config.charset: Change the Linux/glibc rules so they become empty
97373         on glibc-2.1 or newer.
97374
97375 2000-06-02  Jim Meyering  <meyering@lucent.com>
97376
97377         * lib/mountlist.c: Back out last change.  Instead, do this...
97378         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97379         me_dummy member using the same `ignore'-testing code.
97380         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97381         fs_type strings.
97382         From Mark D. Roth.
97383
97384 2000-05-29  Jim Meyering  <meyering@lucent.com>
97385
97386         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97387         mounts with the `ignore' attribute.  Based on a patch from
97388         Mark D. Roth.
97389
97390 2000-05-28  Jim Meyering  <meyering@lucent.com>
97391
97392         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97393         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97394         * m4/stat.m4: Likewise.
97395         * m4/lstat.m4: Likewise.
97396         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97397
97398         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97399         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97400
97401 2000-05-26  Jim Meyering  <meyering@lucent.com>
97402
97403         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97404
97405 2000-05-24  Jim Meyering  <meyering@lucent.com>
97406
97407         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97408         autoconf requires that.
97409         * m4/lib-check.m4: Likewise.
97410         * m4/jm-macros.m4: Likewise.
97411         * m4/strftime.m4: Likewise.
97412
97413         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97414         AC_CHECK_DECLS, now that autoconf requires that.
97415
97416 2000-05-22  Jim Meyering  <meyering@lucent.com>
97417
97418         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97419         * m4/lstat.m4: Likewise.
97420
97421 2000-05-22  Jim Meyering  <meyering@lucent.com>
97422
97423         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97424
97425 2000-05-20  Jim Meyering  <meyering@lucent.com>
97426
97427         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97428         (jm_PREREQ): Use it.
97429
97430 2000-05-18  Jim Meyering  <meyering@lucent.com>
97431
97432         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97433         back, too, since it may have been modified by allocate_entry.
97434         (hash_delete): Rewrite to use neither the assignment operator
97435         nor the comma operator in an if-expression.
97436
97437 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97438
97439         * lib/closeout.c:
97440         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97441         Remove; no longer needed.
97442         "quotearg.h": Add include.
97443         (file_name): Do not bother to explicitly initialize to NULL; it's less
97444         efficient on some hosts.
97445         (close_stdout_status): Remove test as to whether stdout was already
97446         closed; it breaks for the case "echo x | sort >&-".
97447         Quote file name colons.
97448         Do not assume that _("write error") lacks format strings.
97449
97450 2000-05-15  Jim Meyering  <meyering@lucent.com>
97451
97452         * lib/version-etc.c (version_etc_copyright): Update the copyright
97453         string used in all --version output.
97454
97455 2000-05-14  Jim Meyering  <meyering@lucent.com>
97456
97457         * lib/closeout.c (close_stdout_set_file_name): New function.
97458         (close_stdout_status): Use new file-scoped global.
97459         Return right away if fstat says the stdout file descriptor is invalid.
97460         * lib/closeout.h (close_stdout_set_file_name): Declare.
97461
97462 2000-05-10  Jim Meyering  <meyering@lucent.com>
97463
97464         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97465         (close_stdout_set_status): New function.
97466         * lib/closeout.h (close_stdout_set_status): Declare.
97467
97468 2000-05-09  Jim Meyering  <meyering@lucent.com>
97469
97470         * m4/gettext.m4: Rename this...
97471         * m4/libintl.m4: ...to this.
97472
97473 2000-05-08  Jim Meyering  <meyering@lucent.com>
97474
97475         * lib/long-options.c: Don't include closeout.h.
97476         (parse_long_options): Don't call close_stdout for --version.
97477
97478 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97479
97480         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97481         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97482         2.1.3 bug.  This avoids a clash when files like regex.c define
97483         _GNU_SOURCE.
97484
97485 2000-05-06  Jim Meyering  <meyering@lucent.com>
97486
97487         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97488         (AC_REPLACE_FUNCS): Add strnlen.
97489
97490         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97491         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97492
97493         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97494         AC_SEARCH_LIBS call for nanosleep.
97495         (LIB_NANOSLEEP): Set and AC_SUBST.
97496
97497 2000-05-06  Jim Meyering  <meyering@lucent.com>
97498
97499         * lib/strnlen.c: Undefine __strnlen and strnlen.
97500         [!weak_alias]: Define __strnlen to strnlen.
97501
97502         * lib/atexit.c: New file, from libiberty.
97503
97504 2000-05-06  Jim Meyering  <meyering@lucent.com>
97505
97506         * lib/closeout.c (close_stdout_status): Also check for errors on the
97507         stderr stream.
97508
97509 2000-05-05  Jim Meyering  <meyering@lucent.com>
97510
97511         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97512         AC_SEARCH_LIBS call for clock_gettime.
97513         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97514
97515         * m4/search-libs.m4: Update from autoconf.
97516
97517         su doesn't work on Solaris 2.6.
97518         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97519         <shadow.h>.  Reported by Dragos Harabor.
97520
97521 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97522
97523         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97524         memcpy instead of xmalloc, xrealloc, path_concat.
97525         (locale_charset): Treat empty environment variables as absent.
97526         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97527
97528 2000-05-04  Jim Meyering  <meyering@lucent.com>
97529
97530         * lib/getopt.c: Update from glibc.
97531         * lib/obstack.c: Likewise.
97532         * lib/obstack.h: Likewise.
97533         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97534         file
97535
97536         * lib/regex.h: Likewise.
97537         * lib/strndup.c: Likewise.
97538         * lib/strnlen.c: New file, from glibc.
97539
97540 2000-05-03  Jim Meyering  <meyering@lucent.com>
97541
97542         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97543
97544 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97545
97546         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97547         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97548         compile-time test, rather than inspecting host and OS, to
97549         decide whether to define _LARGEFILE_SOURCE.
97550
97551 2000-05-01  Jim Meyering  <meyering@lucent.com>
97552
97553         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97554
97555         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97556         Based on a patch from Bruno Haible.
97557
97558 2000-05-01  Jim Meyering  <meyering@lucent.com>
97559
97560         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97561
97562 2000-04-29  Jim Meyering  <meyering@lucent.com>
97563
97564         * lib/path-concat.c: Declare strdup only if it's not defined.
97565         * lib/canon-host.c: Likewise.
97566
97567 2000-04-28  Jim Meyering  <meyering@lucent.com>
97568
97569         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97570         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97571         is included first, then limits.h is included by locale.h by libintl.h.
97572         From John David Anglin.
97573
97574 2000-04-25  Jim Meyering  <meyering@lucent.com>
97575
97576         * lib/makepath.c (S_IRWXUGO): Define.
97577         (make_path): Always perform explicit chmod if MODE specifies any
97578         of the `special' permission bits.  Prompted by a bug report against
97579         install from Mate Wierdl and Joost van Baal.
97580
97581 2000-04-18  Jim Meyering  <meyering@lucent.com>
97582
97583         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97584         (jm_PREREQ): Use it.
97585
97586 2000-04-18  Jim Meyering  <meyering@lucent.com>
97587
97588         * lib/README: New file.
97589
97590         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97591         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97592
97593 2000-04-17  Jim Meyering  <meyering@lucent.com>
97594
97595         Get it right :-)
97596         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97597         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97598         Suggestion from Akim Demaille.
97599
97600 2000-04-17  Jim Meyering  <meyering@lucent.com>
97601
97602         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97603         the definition of it to rpl_strftime also defined-away the system's
97604         declaration.
97605
97606 2000-04-15  Jim Meyering  <meyering@lucent.com>
97607
97608         Use `C' to denote so-called `contiguous' files, the same way
97609         that tar does.
97610         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97611         (ftypelet): Use S_ISCTG.
97612         From Michael Deutschmann.
97613
97614 2000-04-14  Jim Meyering  <meyering@lucent.com>
97615
97616         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97617         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97618         clobbered.
97619
97620 2000-04-14  Jim Meyering  <meyering@lucent.com>
97621
97622         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97623
97624 2000-04-13  Jim Meyering  <meyering@lucent.com>
97625
97626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97627         AH_VERBATIM to insert required #ifndef into config.h.in.
97628         Suggestion from Akim Demaille.
97629
97630 2000-04-12  Jim Meyering  <meyering@lucent.com>
97631
97632         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97633         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97634         Christian Krackowizer.
97635
97636         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97637         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97638         (AC_SYS_LARGEFILE): Require.
97639         (AM_C_PROTOTYPES): Require.
97640
97641 2000-04-08  Jim Meyering  <meyering@lucent.com>
97642
97643         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97644         names don't conflict.  Reported by Eli Zaretskii.
97645
97646 2000-04-07  Jim Meyering  <meyering@lucent.com>
97647
97648         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97649         sys/types.h, to work around system header problems on AIX 3.2.5.
97650         From Bruno Haible.
97651
97652 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97653
97654         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97655         bug.  Deal with the different error behavior of Irix iconv.
97656
97657 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97658
97659         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97660         IRIX if the installer said otherwise.
97661
97662 2000-04-05  Jim Meyering  <meyering@lucent.com>
97663
97664         Portability tweaks required for ultrix4.3.
97665         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97666         (jm_CHECK_DECLS): Add getutent to the list of functions.
97667         (_jm_DECL_HEADERS): Add utmpx.h.
97668         From John David Anglin.
97669
97670         * m4/strftime.m4: Back out the 2000-04-02 change.
97671         Instead of that change, simply undefine putenv in the test program.
97672
97673 2000-04-05  Jim Meyering  <meyering@lucent.com>
97674
97675         Portability tweaks required for ultrix4.3.
97676         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97677         getutent.
97678         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97679         * lib/canon-host.c: Declare strdup.
97680         * lib/path-concat.c: Likewise.
97681         From John David Anglin.
97682
97683 2000-04-04  Jim Meyering  <meyering@lucent.com>
97684
97685         Be more DOS 8.3-friendly.
97686         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97687         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97688         * lib/Makefile.am: Reflect renaming.
97689         Reported by Eli Zaretskii.
97690
97691         Use a temporary file name that won't clash with `charset.alias'
97692         in the DOS 8.3 name space.
97693         * lib/Makefile.am (charset_tmp): Define.
97694         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97695         (uninstall-local): Likewise.
97696         Reported by Eli Zaretskii.
97697
97698 2000-04-03  Jim Meyering  <meyering@lucent.com>
97699
97700         * m4/gettext.m4: Fix typo in comment.
97701
97702         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97703         textutils/configure.in).  Suggestion from Paul Eggert.
97704         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97705
97706 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97707
97708         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97709         variable in the shell rather than using putenv, which isn't
97710         portable.  This avoids the configure-time inter-test dependency
97711         on the potentially-renamed putenv function.
97712
97713 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97714
97715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97716         before checking struct stat.st_blksize, so that
97717         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97718
97719 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97720
97721         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97722         since strftime.c uses HAVE_STRFTIME to decide whether to use
97723         the underlying strftime.
97724
97725 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97726
97727         * lib/time/strftime.c (my_strftime): Make sure we call the system
97728         strftime, not ourselves, when invoking the underlying strftime.
97729
97730 2000-03-24  Jim Meyering  <meyering@lucent.com>
97731
97732         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97733         (charset_alias): Define.
97734         (install-exec-local): Factor out common code.
97735         (uninstall-local): Split lines longer than 80.
97736         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97737         (SUFFIXES): Define.
97738         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97739         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97740
97741 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97742
97743         * lib/config.charset: Output a line containing "Packages using this
97744         file".
97745         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97746         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97747         ref-del.sed): New rules.
97748
97749 2000-03-17  Jim Meyering  <meyering@lucent.com>
97750
97751         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97752         Otherwise, include <strings.h>
97753
97754 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97755
97756         * lib/unicodeio.c (utf8_wctomb): New function.
97757         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97758         format instead of in UCS-4 with platform dependent endianness.
97759
97760 2000-03-10  Jim Meyering  <meyering@lucent.com>
97761
97762         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97763         From Marco Franzen.
97764
97765 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97766
97767         * lib/savedir.c (savedir): Work even if directory size is
97768         negative; this can happen with some screwy NFS configurations.
97769
97770 2000-03-06  Jim Meyering  <meyering@lucent.com>
97771
97772         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97773         if it's NULL (because we ran out of memory).  From Bruno Haible.
97774
97775 2000-03-05  Jim Meyering  <meyering@lucent.com>
97776
97777         * lib/localcharset.c ("path-concat.h"): Include.
97778         (get_charset_aliases): Use path_concat instead of ANSI string
97779         concatenation.
97780
97781         * lib/unicodeio.h (PARAMS): Define.
97782         Use it to guard prototype.
97783
97784 2000-03-04  Jim Meyering  <meyering@lucent.com>
97785
97786         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97787         for lib/localcharset.c.
97788
97789 2000-03-04  Jim Meyering  <meyering@lucent.com>
97790
97791         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97792         installing into it.
97793         (uninstall-local): Uncomment this rule so `make distcheck' works
97794         once again.
97795
97796         * lib/unicodeio.c (<errno.h>): Include it.
97797         (errno): Declare if not defined.
97798
97799         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97800
97801         * lib/config.charset: New version, incorporating remarks from a linux
97802         i18n mailing list.  From Bruno Haible.
97803
97804 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97805
97806         * m4/codeset.m4: New file.
97807         * m4/iconv.m4: New file.
97808         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97809
97810 2000-03-03  Jim Meyering  <meyering@lucent.com>
97811
97812         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97813
97814 2000-03-02  Jim Meyering  <meyering@lucent.com>
97815
97816         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97817         the messages come out on separate lines.
97818
97819         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97820         rather than jm_CHECK_DECLARATIONS.
97821         * m4/decl.m4: Remove now-unused file.
97822
97823         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97824         geteuid.
97825
97826 2000-03-02  Jim Meyering  <meyering@lucent.com>
97827
97828         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97829
97830 2000-03-01  Jim Meyering  <meyering@lucent.com>
97831
97832         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97833         * lib/unicodeio.c: Likewise.
97834
97835 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97836
97837         * lib/config.charset: New file.
97838         * lib/localcharset.c: New file.
97839         * lib/unicodeio.h, lib/unicodeio.c: New files.
97840         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97841         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97842         (noinst_HEADERS): Add unicodeio.h.
97843         (all-local, install-exec-local, charset.alias): New targets.
97844
97845 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97846
97847         * lib/quotearg.c (ALERT_CHAR): New macro.
97848         (quotearg_buffer_restyled): Use it.
97849
97850 2000-02-27  Jim Meyering  <meyering@lucent.com>
97851
97852         * m4/check-decl.m4: Add getenv to the list.
97853
97854 2000-02-27  Jim Meyering  <meyering@lucent.com>
97855
97856         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97857         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97858
97859         * lib/backupfile.c: Guard inclusion of stdlib.h with
97860         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97861         Declare malloc if needed.
97862
97863         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97864         `#ifndef HAVE_DECL..'
97865         now that autoconf always defines the HAVE_DECL_ symbols.
97866         * lib/human.c: Likewise.
97867         * lib/same.c: Likewise.
97868         * lib/strtoumax.c: Likewise.
97869
97870         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97871         declaration check was not run.
97872         * lib/hash.c: Likewise.
97873         * lib/human.c: Likewise.
97874         * lib/same.c: Likewise.
97875         * lib/strtoumax.c: Likewise.
97876
97877         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97878         `.', then first look up the entire `.'-containing string as a login
97879         name.
97880
97881 2000-02-23  Jim Meyering  <meyering@lucent.com>
97882
97883         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97884         in place of my hack.
97885
97886 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97887
97888         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97889         (textint): New typedef.
97890         (parser_control): Member year changed from int to textint.
97891         All uses changed.
97892         (YYSTYPE): Removed; replaced by %union with int and textint members.
97893         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97894         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97895         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97896         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97897         (date, number, to_year): Use width of number in digits, not its value,
97898         to determine whether it's a 2-digit year, or a 2-digit time.
97899         (yylex): Store number of digits of numeric tokens.
97900         Reported by John Kendall.
97901
97902         (parser_control): Changed from struct parser_control to typedef (for
97903         consistency).  All uses changed.
97904
97905         (tID): Removed; not used.
97906         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97907
97908 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97909
97910         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97911         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97912
97913 2000-02-12  Jim Meyering  <meyering@lucent.com>
97914
97915         * lib/userspec.c (ISDIGIT): Define it.
97916         (isdigit): Remove definition.
97917         (is_number): Use ISDIGIT, not isdigit.
97918         <libintl.h>: Include.
97919         (_ and N_): Define.
97920         (parse_user_spec): Mark translatable strings.
97921
97922 2000-02-10  Jim Meyering  <meyering@lucent.com>
97923
97924         With these changes, nanosleep.[ch] are finally enough like the other
97925         lib/* replacement files to compile on a few more losing systems.
97926
97927         * lib/nanosleep.h: Don't include config.h.
97928         Remove prototype from declaration of nanosleep.
97929         (PARAMS): Remove now-unneeded definition.
97930         * lib/nanosleep.c: #undef nanosleep.
97931         (rpl_nanosleep): Rename from nanosleep.
97932
97933 2000-02-10  Jim Meyering  <meyering@lucent.com>
97934
97935         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97936         gnu_nanosleep to rpl_nanosleep.
97937
97938 2000-02-09  Jim Meyering  <meyering@lucent.com>
97939
97940         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97941         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97942
97943 2000-02-08  Akim Demaille  <akim@epita.fr>
97944
97945         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97946         `[' and `]' and remove uses of `changequote'.
97947         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97948         (AC_SYS_LARGEFILE): Likewise.
97949         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97950         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97951         of changequote.
97952         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97953         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97954         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97955         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97956
97957 2000-02-05  Jim Meyering  <meyering@lucent.com>
97958
97959         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97960         Remove explicit use of AC_HEADER_TIME.  It is required by
97961         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97962         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97963         in autoconf whereby the expansion of the latter ended up preceding
97964         the expansion of its prerequisite, AC_HEADER_TIME.
97965         Reported by Volker Borchert.
97966
97967 2000-02-03  Jim Meyering  <meyering@lucent.com>
97968
97969         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97970
97971 2000-02-03  Jim Meyering  <meyering@lucent.com>
97972
97973         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97974         rather than with `#if HAVE_UTMPNAME'.
97975
97976 2000-02-02  Jim Meyering  <meyering@lucent.com>
97977
97978         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97979         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97980         Reported by Eli Zaretskii.
97981
97982 2000-02-01  Jim Meyering  <meyering@lucent.com>
97983
97984         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97985
97986 2000-01-31  Jim Meyering  <meyering@lucent.com>
97987
97988         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97989         functions.  Add the time.h and sys/time.h headers along with the
97990         AC_REQUIRE'ment of AC_HEADER_TIME.
97991
97992 2000-01-31  Jim Meyering  <meyering@lucent.com>
97993
97994         * lib/nanosleep.h (nanosleep): Guard declaration with
97995         `#if ! HAVE_DECL_NANOSLEEP'.
97996         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97997         the declaration in that vendor's sys/timers.h.
97998         Reported by Christian Krackowizer.
97999
98000         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98001         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98002         (ISPRINT): Likewise.
98003         Reported by Tom Tromey.
98004
98005 2000-01-30  Jim Meyering  <meyering@lucent.com>
98006
98007         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98008
98009         * m4/prereq.m4 (utmp_includes): Define.
98010         Check for ut_user and ut_name members in both struct utmpx
98011         and struct utmp.
98012
98013 2000-01-30  Jim Meyering  <meyering@lucent.com>
98014
98015         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98016         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98017         header files where only utmpx.ut_user is declared.
98018
98019         * lib/readutmp.h (UT_USER): Define.
98020
98021 2000-01-29  Jim Meyering  <meyering@lucent.com>
98022
98023         * m4/lib-check.m4: New file containing library-related checks from
98024         fileutils and sh-utils (textutils had none).
98025
98026 2000-01-28  Jim Meyering  <meyering@lucent.com>
98027
98028         * m4/perl.m4: Change format of warning message to look more like that
98029         from the missing script.  Suggestion from François Pinard.
98030
98031 2000-01-25  Jim Meyering  <meyering@lucent.com>
98032
98033         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98034         well as time.h in the compile check.
98035         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98036         Fix typo in cross-compiling case: s/yes/no/.
98037
98038 2000-01-23  Jim Meyering  <meyering@lucent.com>
98039
98040         * m4/jm-macros.m4: Move df-related tests here from
98041         fileutils/configure.in
98042
98043         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98044         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98045
98046         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98047         s/space/ac_fsusage_space/.
98048         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98049
98050         * m4/ftruncate.m4: New file (derived from part of
98051         fileutils/configure.in).
98052         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98053         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98054
98055         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98056         AC_SUBST these here, rather than just in sh-util/configure.in, so
98057         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98058         all the same.
98059         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98060         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98061         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98062         (AC_SUBST(POW_LIBM)): Likewise.
98063         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98064
98065 2000-01-23  Jim Meyering  <meyering@lucent.com>
98066
98067         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98068         obstack.c.
98069
98070 2000-01-22  Jim Meyering  <meyering@lucent.com>
98071
98072         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98073
98074         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98075
98076         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98077         configure.in
98078         (AC_CHECK_HEADERS): Likewise for sh-utils.
98079         (AC_CHECK_HEADERS): Likewise for textutils.
98080         Merge the three lists of headers.
98081
98082         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98083         from fileutils' configure.in.
98084
98085         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98086         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98087         check-decl.m4.
98088
98089         * m4/check-decl.m4: Use #if rather than #ifdef.
98090         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98091         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98092         (_jm_DECL_HEADERS): Define new function.
98093         (jm_CHECK_DECLARATIONS): Require it.
98094
98095 2000-01-22  Jim Meyering  <meyering@lucent.com>
98096
98097         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98098         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98099         Required for some AIX systems.  Reported by Christian Krackowizer.
98100         [TESTING] (main): New function.
98101
98102         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98103         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98104         letters.
98105
98106         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98107         iswprint.
98108
98109         * lib/strverscmp.c (ISDIGIT): Define.
98110         (strverscmp): Use ISDIGIT, not isdigit.
98111
98112 2000-01-19  Jim Meyering  <meyering@lucent.com>
98113
98114         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98115         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98116         defines `struct timespec' in <sys/time.h>
98117
98118         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98119         Thanks to Akim for explaining.
98120
98121 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98122
98123         * lib/nanosleep.c (nanosleep):
98124         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98125         POSIX.1 doesn't require SA_INTERRUPT and some systems
98126         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98127         it's been part of POSIX.1 since day 1 (in 1988).
98128
98129 2000-01-17  Jim Meyering  <meyering@lucent.com>
98130
98131         * lib/interlock: Remove unused file.  Reported by François Pinard.
98132
98133 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98134
98135         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98136         alert, backslash, formfeed, and vertical tab unnecessarily in
98137         shell quoting style.
98138
98139 2000-01-16  Jim Meyering  <meyering@lucent.com>
98140
98141         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98142         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98143         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98144         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98145
98146 2000-01-16  Jim Meyering  <meyering@lucent.com>
98147
98148         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98149         because the latter didn't work.
98150
98151 2000-01-15  Jim Meyering  <meyering@lucent.com>
98152
98153         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98154         (AC_REPLACE_FUNCS): Add memcpy and memset.
98155         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98156         Add strpbrk.
98157         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98158
98159 2000-01-12  Jim Meyering  <meyering@lucent.com>
98160
98161         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98162         (jm_PREREQ): Use it.
98163         (jm_PREREQ_READUTMP): New macro.
98164         (jm_PREREQ): Use it.
98165
98166 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98167
98168         Quote multibyte characters correctly.
98169         * m4/c-bs-a.m4: New file.
98170         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98171         (jm_PREREQ): Use it.
98172
98173 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98174
98175         * m4/uintmax_t.m4: Port to autoconf 2.13.
98176
98177 2000-01-08  Jim Meyering  <meyering@ascend.com>
98178
98179         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98180         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98181
98182 2000-01-04  Jim Meyering  <meyering@ascend.com>
98183
98184         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98185         jm_STRUCT_DIRENT_D_TYPE.
98186         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98187         jm_STRUCT_DIRENT_D_INO.
98188         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98189         jm_STRUCT_UTIMBUF.
98190         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98191         renamings.
98192         * m4/utime.m4: Likewise.
98193
98194         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98195         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98196
98197 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98198
98199         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98200         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98201
98202 2000-01-02  Jim Meyering  <meyering@ascend.com>
98203
98204         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98205         remember if this is necessary.
98206
98207 1999-12-26  Jim Meyering  <meyering@ascend.com>
98208
98209         * m4/jm-macros.m4: Use it here.
98210         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98211
98212 1999-12-23  Jim Meyering  <meyering@ascend.com>
98213
98214         * m4/jm-macros.m4: Check for clock_gettime (moved from
98215         fileutils/configure.in)
98216         Check for gettimeofday.
98217
98218 1999-12-20  Jim Meyering  <meyering@ascend.com>
98219
98220         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98221         autoconf-2.14a-1999-12-20.
98222
98223 1999-12-19  Jim Meyering  <meyering@ascend.com>
98224
98225         * m4/lstat-slash.m4: New file.
98226         * m4/jm-macros.m4: Use the new macro:
98227         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98228
98229 1999-12-07  Jim Meyering  <meyering@ascend.com>
98230
98231         * m4/perl.m4: Require that File::Compare be available, too.
98232         Too many systems seem to lack it.
98233
98234         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98235         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98236
98237 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98238
98239         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98240         problem with the QNX 4.25 shell, which doesn't propagate exit
98241         status of failed commands inside shell assignments.
98242
98243 1999-11-17  Jim Meyering  <meyering@ascend.com>
98244
98245         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98246
98247 1999-11-07  Jim Meyering  <meyering@ascend.com>
98248
98249         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98250
98251 1999-11-06  Jim Meyering  <meyering@ascend.com>
98252
98253         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98254         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98255
98256 1999-11-05  Jim Meyering  <meyering@ascend.com>
98257
98258         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98259         configure.in of textutils, fileutils, and sh-utils into this one
98260         (shared between those packages) file.
98261         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98262         AC_STRUCT_ST_BLKSIZE.
98263
98264 1999-11-03  Jim Meyering  <meyering@ascend.com>
98265
98266         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98267         of AC_CHECK_TYPE checks includes unistd.h.
98268         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98269         Suggestion from Akim Demaille.
98270
98271 1999-10-30  Jim Meyering  <meyering@ascend.com>
98272
98273         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98274         m4-quoted string.
98275         * m4/ls-mntd-fs.m4: Likewise.
98276         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98277         * m4/jm-winsz1.m4: Likewise.
98278
98279         * m4/const.m4: Remove file, since the fix made it into the experimental
98280         version of autoconf.
98281         * m4/mktime.m4: Likewise.
98282
98283         * m4/check-type.m4: Remove file, now that the latest version of
98284         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98285
98286         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98287         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98288         AC_CHECK_TYPE.
98289
98290 1999-10-04  Jim Meyering  <meyering@ascend.com>
98291
98292         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98293
98294 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98295
98296         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98297         2.95.1 bug with HP-UX 10.20.
98298
98299 1999-09-17  Jim Meyering  <meyering@ascend.com>
98300
98301         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98302         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98303         due to missing strdup (against sh-utils-2.0).
98304
98305 1999-08-29  Jim Meyering  <meyering@ascend.com>
98306
98307         * m4/jm-macros.m4: Require jm_BISON.
98308         * m4/bison.m4: New file.
98309
98310 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98311
98312         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98313         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98314
98315 1999-08-05  Jim Meyering  <meyering@ascend.com>
98316
98317         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98318         to avoid conflicts with `conftest' on 8+3 filesystems.
98319         Suggestion from Eli Zaretskii.
98320
98321 1999-08-04  Jim Meyering  <meyering@ascend.com>
98322
98323         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98324         fileutils and sh-utils (textutils's getline test was inadequate).
98325         (AM_FUNC_GETLINE): Run this test.
98326         (AC_CHECK_FUNCS): Check for getdelim.
98327         Reported by Bob Proulx.
98328
98329 1999-08-02  Jim Meyering  <meyering@ascend.com>
98330
98331         * m4/jm-macros.m4: Add a comment.
98332
98333 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98334
98335         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98336         <inttypes.h> defines strtoumax as a macro (and not as a
98337         function).
98338
98339 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98340
98341         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98342         that we can shift, multiply and divide unsigned long long
98343         values; Ultrix cc can't do it.
98344
98345 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98346
98347         * m4/mktime.m4: New file, which is a preview of what should appear
98348         in the next public autoconf release.
98349
98350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98351
98352         * m4/lfs.m4: Remove this file.
98353         * m4/largefile.m4: New file.  It contains the old contents of
98354         lfs.m4, except that all names with prefix AC_LFS have been
98355         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98356         compatible with future autoconf versions.  Also, some minor m4
98357         quoting problems have been fixed.
98358
98359 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98360
98361         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98362         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98363         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98364         and simplify the shell code.
98365
98366 1999-08-01  Jim Meyering  <meyering@ascend.com>
98367
98368         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98369         m4.
98370
98371 1999-07-20  Jim Meyering  <meyering@ascend.com>
98372
98373         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98374
98375 1999-07-15  Jim Meyering  <meyering@ascend.com>
98376
98377         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98378
98379 1999-05-22  Jim Meyering  <meyering@ascend.com>
98380
98381         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98382
98383 1999-05-20  Jim Meyering  <meyering@ascend.com>
98384
98385         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98386         Add a colon after each `then' in case $4 is empty.
98387
98388 1999-05-16  Jim Meyering  <meyering@ascend.com>
98389
98390         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98391
98392 1999-05-10  Jim Meyering  <meyering@ascend.com>
98393
98394         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98395
98396         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98397         AC_FUNC_MKTIME.
98398
98399 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98400
98401         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98402
98403 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98404
98405         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98406         not CPPFLAGS, so that linking works correctly in IRIX.
98407
98408 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98409
98410         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98411
98412 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98413
98414         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98415         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98416         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98417         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98418         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98419
98420         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98421
98422 1999-04-20  Jim Meyering  <meyering@ascend.com>
98423
98424         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98425         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98426         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98427
98428 1999-04-18  Jim Meyering  <meyering@ascend.com>
98429
98430         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98431         * m4/jm-macros.m4: Use it.
98432
98433 1999-04-06  Jim Meyering  <meyering@ascend.com>
98434
98435         * m4/strftime.m4: Remove test for %f.
98436
98437 1999-03-29  Jim Meyering  <meyering@ascend.com>
98438
98439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98440         superset of the AC_TYPE_* checks in the textutils, fileutils,
98441         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98442         AC_TYPE_PID_T.
98443
98444 1999-03-28  Jim Meyering  <meyering@ascend.com>
98445
98446         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98447         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98448         replaced e.g., in the *.sh files of the sh-utils.
98449
98450 1999-03-20  Jim Meyering  <meyering@ascend.com>
98451
98452         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98453         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98454         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98455
98456 1999-03-19  Jim Meyering  <meyering@ascend.com>
98457
98458         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98459
98460 1999-03-12  Jim Meyering  <meyering@ascend.com>
98461
98462         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98463
98464 1999-03-07  Jim Meyering  <meyering@ascend.com>
98465
98466         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98467         declared.
98468
98469 1999-02-17  Jim Meyering  <meyering@ascend.com>
98470
98471         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98472         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98473
98474 1999-02-07  Jim Meyering  <meyering@ascend.com>
98475
98476         * m4/group-member.m4: New file -- extracted from sh-utils'
98477         configure.in.
98478
98479         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98480         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98481
98482 1999-02-06  Jim Meyering  <meyering@ascend.com>
98483
98484         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98485         * m4/fnmatch.m4: Likewise.
98486         * m4/getgroups.m4: Likewise.
98487         * m4/lstat.m4: Likewise.
98488         * m4/malloc.m4: Likewise.
98489         * m4/putenv.m4: Likewise.
98490         * m4/realloc.m4: Likewise.
98491         * m4/regex.m4: Likewise.
98492         * m4/stat.m4: Likewise.
98493         * m4/strftime.m4: Likewise.
98494         Suggestion from Alain Magloire.
98495
98496         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98497         * m4/fnmatch.m4: Likewise.
98498         * m4/getgroups.m4: Likewise.
98499         * m4/getline.m4: Likewise.
98500         * m4/lstat.m4: Likewise.
98501         * m4/malloc.m4: Likewise.
98502         * m4/memcmp.m4: Likewise.
98503         * m4/putenv.m4: Likewise.
98504         * m4/realloc.m4: Likewise.
98505         * m4/regex.m4: Likewise.
98506         * m4/stat.m4: Likewise.
98507         * m4/strftime.m4: Likewise.
98508         Suggestion from Alain Magloire.
98509
98510         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98511         an argument.
98512
98513         * m4/regex.m4: Add a run-time Test for proper operation of
98514         re_compile_pattern.
98515
98516 1999-01-31  Jim Meyering  <meyering@ascend.com>
98517
98518         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98519
98520 1999-01-30  Jim Meyering  <meyering@ascend.com>
98521
98522         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98523
98524         * m4/jm-mktime.m4: Make this a wrapper around the official
98525         AM_FUNC_MKTIME rather than my private copy, now that the official one
98526         is up to date.
98527         * m4/mktime.m4: Remove file.
98528
98529         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98530         * m4/uptime.m4: Likewise.
98531         * m4/uintmax_t.m4: Likewise.
98532
98533 1999-01-28  Jim Meyering  <meyering@ascend.com>
98534
98535         * m4/jm-macros.m4: Use jm_AFS.
98536         * m4/afs.m4: New file (from fileutils' configure.in).
98537
98538         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98539         * m4/chown.m4: Likewise.
98540         * m4/d-ino.m4: Likewise.
98541         * m4/d-type.m4: Likewise.
98542         * m4/fnmatch.m4: Likewise.
98543         * m4/getgroups.m4: Likewise.
98544         * m4/gettext.m4: Likewise.
98545         * m4/jm-mktime.m4: Likewise.
98546         * m4/jm-winsz2.m4: Likewise.
98547         * m4/lcmessage.m4: Likewise.
98548         * m4/ls-mntd-fs.m4: Likewise.
98549         * m4/malloc.m4: Likewise.
98550         * m4/memcmp.m4: Likewise.
98551         * m4/putenv.m4: Likewise.
98552         * m4/realloc.m4: Likewise.
98553         * m4/st_mtim.m4: Likewise.
98554         * m4/strftime.m4: Likewise.
98555
98556 1999-01-16  Jim Meyering  <meyering@ascend.com>
98557
98558         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98559         (ARGMATCH_DIE_DECL): Define.
98560
98561 1999-01-12  Jim Meyering  <meyering@ascend.com>
98562
98563         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98564         Reported by Lars Hecking.
98565
98566 1999-01-10  Jim Meyering  <meyering@ascend.com>
98567
98568         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98569         gross kludge.
98570         * m4/inttypes_h.m4: Likewise.
98571         * m4/lstat.m4: Likewise.
98572         * m4/malloc.m4: Likewise.
98573         * m4/readdir.m4: Likewise.
98574         * m4/realloc.m4: Likewise.
98575         * m4/st_dm_mode.m4: Likewise.
98576         * m4/stat.m4: Likewise.
98577         * m4/utimbuf.m4: Likewise.
98578         * m4/utimes.m4: Likewise.
98579
98580         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98581         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98582         comments in config.h.in are meaningful.
98583
98584         * m4/jm-macros.m4: Require autoconf-2.13 here.
98585
98586         * m4/regex.m4: By default, don't use the included regex.c on systems
98587         with glibc 2.  Suggestion from Uli Drepper.
98588
98589 1999-01-02  Jim Meyering  <meyering@ascend.com>
98590
98591         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98592
98593 1998-12-18  Jim Meyering  <meyering@ascend.com>
98594
98595         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98596         Based on a suggestion from Lars Hecking.
98597
98598 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98599
98600         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98601
98602 1998-11-16  Jim Meyering  <meyering@ascend.com>
98603
98604         * m4/lfs.m4: Double-quote the `uname...` expression.
98605
98606 1998-11-14  Jim Meyering  <meyering@ascend.com>
98607
98608         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98609         * m4/stat.m4: Likewise.
98610
98611 1998-11-03  Jim Meyering  <meyering@ascend.com>
98612
98613         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98614         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98615
98616 1998-10-18  Jim Meyering  <meyering@ascend.com>
98617
98618         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98619
98620 1998-10-17  Jim Meyering  <meyering@ascend.com>
98621
98622         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98623         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98624         calls for those previously hard-coded headers.  Instead, take a new
98625         parameter.
98626         (jm_CHECK_DECLARATIONS): Reflect interface change.
98627         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98628         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98629
98630         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98631
98632 1998-10-14  Jim Meyering  <meyering@ascend.com>
98633
98634         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98635         instead of "TZ=America/Vancouver".  From Paul Eggert.
98636
98637 1998-10-11  Jim Meyering  <meyering@ascend.com>
98638
98639         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98640         This adds a test for a recently added compatibility fix for mktime.c.
98641         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98642
98643 1998-09-27  Jim Meyering  <meyering@ascend.com>
98644
98645         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98646
98647         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98648         ../configure.in, including a change from Gordon Matzigkeit to allow
98649         cross-compiling for the Hurd.
98650
98651         * m4/glibc.m4: New file/macro to test for the GNU C Library
98652         versions 1 and 2.  From Gordon Matzigkeit.
98653         Indent.
98654
98655 1998-09-21  Jim Meyering  <meyering@ascend.com>
98656
98657         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98658
98659 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98660
98661         Port nanosecond-resolution times to UnixWare 2.1.2 and
98662         pedantic Solaris 2.6.
98663
98664         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98665         AC_STRUCT_ST_MTIM.
98666         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98667         Generate name of ns member, instead of just 1 or undef.
98668         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98669
98670 1998-08-15  Jim Meyering  <meyering@ascend.com>
98671
98672         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98673         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98674         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98675         instead of jm_TYPE_SSIZE_T.
98676
98677 1998-08-12  Jim Meyering  <meyering@ascend.com>
98678
98679         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98680
98681 1998-08-02  Jim Meyering  <meyering@ascend.com>
98682
98683         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98684         in acconfig.h manually.
98685
98686 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98687
98688         * m4/st_mtim.m4: New file.
98689
98690 1998-07-28  Jim Meyering  <meyering@ascend.com>
98691
98692         * m4/utimes.m4: Undef stat.
98693
98694 1998-07-25  Jim Meyering  <meyering@ascend.com>
98695
98696         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98697         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98698
98699 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98700
98701         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98702         uid and gid actually remain unchanged.
98703
98704 1998-07-07  Jim Meyering  <meyering@ascend.com>
98705
98706         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98707
98708 1998-07-04  Jim Meyering  <meyering@ascend.com>
98709
98710         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98711         to prove that this macro can be used in packages without regex.c.
98712
98713 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98714
98715         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98716         is to be used.
98717
98718 1998-07-03  Jim Meyering  <meyering@ascend.com>
98719
98720         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98721
98722         * m4/gettext.m4: New file -- from gettext-0.10.35.
98723         * m4/lcmessage.m4: Likewise.
98724         * m4/progtest.m4: Likewise.
98725
98726         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98727         * m4/jm-macros.m4: Require the new macro.
98728
98729 1998-06-29  Jim Meyering  <meyering@ascend.com>
98730
98731         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98732         for the definition of NGROUPS (used in a system header included
98733         by sys/mount.h).
98734
98735 1998-06-28  Jim Meyering  <meyering@ascend.com>
98736
98737         * m4/ls-mntd-fs.m4: New file.
98738         * m4/fstypename.m4: New file.
98739
98740         * m4/jm-macros.m4: Require the new macro.
98741         * m4/jm-glibc-io.m4: New file.
98742
98743 1998-05-19  Jim Meyering  <meyering@ascend.com>
98744
98745         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98746         * m4/lchown.m4: New file.
98747
98748         * m4/Makefile.am.in: New file.
98749         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98750
98751 1998-05-14  Jim Meyering  <meyering@ascend.com>
98752
98753         * m4/Makefile.am (EXTRA_DIST): Add them.
98754         * m4/jm-macros.m4: New file.
98755         * m4/utimbuf.m4: New file.
98756
98757 1998-05-12  Jim Meyering  <meyering@ascend.com>
98758
98759         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98760
98761 1998-05-11  Jim Meyering  <meyering@ascend.com>
98762
98763         * m4/isc-posix.m4: New file.
98764
98765 1998-05-10  Jim Meyering  <meyering@ascend.com>
98766
98767         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98768
98769 1998-05-09  Jim Meyering  <meyering@ascend.com>
98770
98771         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98772         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98773         with automake.
98774
98775         * m4/ssize_t.m4: New file.
98776         * m4/mktime.m4: Remove file -- the new automake has this now.
98777
98778 1998-04-26  Jim Meyering  <meyering@ascend.com>
98779
98780         * m4/assert.m4: New file.
98781         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98782
98783 1998-04-05  Jim Meyering  <meyering@ascend.com>
98784
98785         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98786         (jm_PREREQ): Use it here.
98787
98788 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98789
98790         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98791         in acconfig.h.
98792
98793 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98794
98795         * m4/prereq.m4: New file.
98796         * m4/error.m4: New file.
98797         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98798
98799 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98800
98801         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98802         cache-check for the same variable -- that defeated the purpose of
98803         the test; the test program was never run.  This was a problem only
98804         on systems with losing getline functions -- HP-UX 10.20 is one.
98805         Reported by Bjorn Helgaas.
98806
98807 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98808
98809         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98810
98811 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98812
98813         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98814
98815         * m4/const.m4: New file.  Use an initializer in this declaration
98816         typedef int charset[2]; const charset x;
98817         Reported by Bob Glickstein.
98818
98819 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98820
98821         * m4/chown.m4: Fix reversed types on -1 args to chown.
98822         From Kaveh Ghazi.
98823
98824 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98825
98826         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98827         Add lseek and memchr.
98828
98829         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98830         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98831         have a 20-character limit on names.
98832
98833 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98834
98835         * m4/inttypes_h.m4: New file.
98836         * m4/uintmax_t.m4: New file.
98837         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98838
98839
98840         -----
98841
98842         Local Variables:
98843         coding: utf-8
98844         End:
98845
98846         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98847
98848         Copying and distribution of this file, with or without
98849         modification, are permitted provided the copyright notice
98850         and this notice are preserved.